1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="clouddebugger_v2.html">Stackdriver Debugger API</a> . <a href="clouddebugger_v2.controller.html">controller</a> . <a href="clouddebugger_v2.controller.debuggees.html">debuggees</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="clouddebugger_v2.controller.debuggees.breakpoints.html">breakpoints()</a></code> 79</p> 80<p class="firstline">Returns the breakpoints Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="#register">register(body, x__xgafv=None)</a></code></p> 84<p class="firstline">Registers the debuggee with the controller service.</p> 85<h3>Method Details</h3> 86<div class="method"> 87 <code class="details" id="register">register(body, x__xgafv=None)</code> 88 <pre>Registers the debuggee with the controller service. 89 90All agents attached to the same application should call this method with 91the same request content to get back the same stable `debuggee_id`. Agents 92should call this method again whenever `google.rpc.Code.NOT_FOUND` is 93returned from any controller method. 94 95This allows the controller service to disable the agent or recover from any 96data loss. If the debuggee is disabled by the server, the response will 97have `is_disabled` set to `true`. 98 99Args: 100 body: object, The request body. (required) 101 The object takes the form of: 102 103{ # Request to register a debuggee. 104 "debuggee": { # Represents the application to debug. The application may include one or more # Debuggee information to register. 105 # The fields `project`, `uniquifier`, `description` and `agent_version` 106 # of the debuggee must be set. 107 # replicated processes executing the same code. Each of these processes is 108 # attached with a debugger agent, carrying out the debugging commands. 109 # The agents attached to the same debuggee are identified by using exactly the 110 # same field values when registering. 111 "status": { # Represents a contextual status message. # Human readable message to be displayed to the user about this debuggee. 112 # Absence of this field indicates no status. The message can be either 113 # informational or an error status. 114 # The message can indicate an error or informational status, and refer to 115 # specific parts of the containing object. 116 # For example, the `Breakpoint.status` field can indicate an error referring 117 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. 118 "isError": True or False, # Distinguishes errors from informational messages. 119 "refersTo": "A String", # Reference to which the message applies. 120 "description": { # Represents a message with parameters. # Status message text. 121 "parameters": [ # Optional parameters to be embedded into the message. 122 "A String", 123 ], 124 "format": "A String", # Format template for the message. The `format` uses placeholders `$0`, 125 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$` 126 # character. 127 # 128 # Examples: 129 # 130 # * `Failed to load '$0' which helps debug $1 the first time it 131 # is loaded. Again, $0 is very important.` 132 # * `Please pay $$10 to use $0 instead of $1.` 133 }, 134 }, 135 "description": "A String", # Human readable description of the debuggee. 136 # Including a human-readable project name, environment name and version 137 # information is recommended. 138 "isDisabled": True or False, # If set to `true`, indicates that the agent should disable itself and 139 # detach from the debuggee. 140 "labels": { # A set of custom debuggee properties, populated by the agent, to be 141 # displayed to the user. 142 "a_key": "A String", 143 }, 144 "uniquifier": "A String", # Debuggee uniquifier within the project. 145 # Any string that identifies the application within the project can be used. 146 # Including environment and version or build IDs is recommended. 147 "project": "A String", # Project the debuggee is associated with. 148 # Use the project number when registering a Google Cloud Platform project. 149 "sourceContexts": [ # References to the locations and revisions of the source code used in the 150 # deployed application. 151 # 152 # NOTE: This field is deprecated. Consumers should use 153 # `ext_source_contexts` if it is not empty. Debug agents should populate 154 # both this field and `ext_source_contexts`. 155 { # A SourceContext is a reference to a tree of files. A SourceContext together 156 # with a path point to a unique revision of a single file or directory. 157 "cloudWorkspace": { # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. # A SourceContext referring to a snapshot in a cloud workspace. 158 "snapshotId": "A String", # The ID of the snapshot. 159 # An empty snapshot_id refers to the most recent snapshot. 160 "workspaceId": { # A CloudWorkspaceId is a unique identifier for a cloud workspace. # The ID of the workspace. 161 # A cloud workspace is a place associated with a repo where modified files 162 # can be stored before they are committed. 163 "name": "A String", # The unique name of the workspace within the repo. This is the name 164 # chosen by the client in the Source API's CreateWorkspace method. 165 "repoId": { # A unique identifier for a cloud repo. # The ID of the repo containing the workspace. 166 "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID # A combination of a project ID and a repo name. 167 # (e.g. winged-cargo-31) and a repo name within that project. 168 "projectId": "A String", # The ID of the project. 169 "repoName": "A String", # The name of the repo. Leave empty for the default repo. 170 }, 171 "uid": "A String", # A server-assigned, globally unique identifier. 172 }, 173 }, 174 }, 175 "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a cloud # A SourceContext referring to a revision in a cloud repo. 176 # repo (a repo hosted by the Google Cloud Platform). 177 "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. 178 "kind": "A String", # The alias kind. 179 "name": "A String", # The alias name. 180 }, 181 "revisionId": "A String", # A revision ID. 182 "aliasName": "A String", # The name of an alias (branch, tag, etc.). 183 "repoId": { # A unique identifier for a cloud repo. # The ID of the repo. 184 "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID # A combination of a project ID and a repo name. 185 # (e.g. winged-cargo-31) and a repo name within that project. 186 "projectId": "A String", # The ID of the project. 187 "repoName": "A String", # The name of the repo. Leave empty for the default repo. 188 }, 189 "uid": "A String", # A server-assigned, globally unique identifier. 190 }, 191 }, 192 "git": { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g. GitHub). 193 # repository (e.g. GitHub). 194 "url": "A String", # Git repository URL. 195 "revisionId": "A String", # Git commit hash. 196 # required. 197 }, 198 "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. 199 "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. 200 "kind": "A String", # The alias kind. 201 "name": "A String", # The alias name. 202 }, 203 "revisionId": "A String", # A revision (commit) ID. 204 "hostUri": "A String", # The URI of a running Gerrit instance. 205 "aliasName": "A String", # The name of an alias (branch, tag, etc.). 206 "gerritProject": "A String", # The full project name within the host. Projects may be nested, so 207 # "project/subproject" is a valid project name. 208 # The "repo name" is hostURI/project. 209 }, 210 }, 211 ], 212 "extSourceContexts": [ # References to the locations and revisions of the source code used in the 213 # deployed application. 214 # 215 # Contexts describing a remote repo related to the source code 216 # have a `category` label of `remote_repo`. Source snapshot source 217 # contexts have a `category` of `snapshot`. 218 { # An ExtendedSourceContext is a SourceContext combined with additional 219 # details describing the context. 220 "labels": { # Labels with user defined metadata. 221 "a_key": "A String", 222 }, 223 "context": { # A SourceContext is a reference to a tree of files. A SourceContext together # Any source context. 224 # with a path point to a unique revision of a single file or directory. 225 "cloudWorkspace": { # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. # A SourceContext referring to a snapshot in a cloud workspace. 226 "snapshotId": "A String", # The ID of the snapshot. 227 # An empty snapshot_id refers to the most recent snapshot. 228 "workspaceId": { # A CloudWorkspaceId is a unique identifier for a cloud workspace. # The ID of the workspace. 229 # A cloud workspace is a place associated with a repo where modified files 230 # can be stored before they are committed. 231 "name": "A String", # The unique name of the workspace within the repo. This is the name 232 # chosen by the client in the Source API's CreateWorkspace method. 233 "repoId": { # A unique identifier for a cloud repo. # The ID of the repo containing the workspace. 234 "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID # A combination of a project ID and a repo name. 235 # (e.g. winged-cargo-31) and a repo name within that project. 236 "projectId": "A String", # The ID of the project. 237 "repoName": "A String", # The name of the repo. Leave empty for the default repo. 238 }, 239 "uid": "A String", # A server-assigned, globally unique identifier. 240 }, 241 }, 242 }, 243 "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a cloud # A SourceContext referring to a revision in a cloud repo. 244 # repo (a repo hosted by the Google Cloud Platform). 245 "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. 246 "kind": "A String", # The alias kind. 247 "name": "A String", # The alias name. 248 }, 249 "revisionId": "A String", # A revision ID. 250 "aliasName": "A String", # The name of an alias (branch, tag, etc.). 251 "repoId": { # A unique identifier for a cloud repo. # The ID of the repo. 252 "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID # A combination of a project ID and a repo name. 253 # (e.g. winged-cargo-31) and a repo name within that project. 254 "projectId": "A String", # The ID of the project. 255 "repoName": "A String", # The name of the repo. Leave empty for the default repo. 256 }, 257 "uid": "A String", # A server-assigned, globally unique identifier. 258 }, 259 }, 260 "git": { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g. GitHub). 261 # repository (e.g. GitHub). 262 "url": "A String", # Git repository URL. 263 "revisionId": "A String", # Git commit hash. 264 # required. 265 }, 266 "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. 267 "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. 268 "kind": "A String", # The alias kind. 269 "name": "A String", # The alias name. 270 }, 271 "revisionId": "A String", # A revision (commit) ID. 272 "hostUri": "A String", # The URI of a running Gerrit instance. 273 "aliasName": "A String", # The name of an alias (branch, tag, etc.). 274 "gerritProject": "A String", # The full project name within the host. Projects may be nested, so 275 # "project/subproject" is a valid project name. 276 # The "repo name" is hostURI/project. 277 }, 278 }, 279 }, 280 ], 281 "agentVersion": "A String", # Version ID of the agent release. The version ID is structured as 282 # following: `domain/type/vmajor.minor` (for example 283 # `google.com/gcp-java/v1.1`). 284 "isInactive": True or False, # If set to `true`, indicates that the debuggee is considered as inactive by 285 # the Controller service. 286 "id": "A String", # Unique identifier for the debuggee generated by the controller service. 287 }, 288 } 289 290 x__xgafv: string, V1 error format. 291 Allowed values 292 1 - v1 error format 293 2 - v2 error format 294 295Returns: 296 An object of the form: 297 298 { # Response for registering a debuggee. 299 "debuggee": { # Represents the application to debug. The application may include one or more # Debuggee resource. 300 # The field `id` is guranteed to be set (in addition to the echoed fields). 301 # replicated processes executing the same code. Each of these processes is 302 # attached with a debugger agent, carrying out the debugging commands. 303 # The agents attached to the same debuggee are identified by using exactly the 304 # same field values when registering. 305 "status": { # Represents a contextual status message. # Human readable message to be displayed to the user about this debuggee. 306 # Absence of this field indicates no status. The message can be either 307 # informational or an error status. 308 # The message can indicate an error or informational status, and refer to 309 # specific parts of the containing object. 310 # For example, the `Breakpoint.status` field can indicate an error referring 311 # to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`. 312 "isError": True or False, # Distinguishes errors from informational messages. 313 "refersTo": "A String", # Reference to which the message applies. 314 "description": { # Represents a message with parameters. # Status message text. 315 "parameters": [ # Optional parameters to be embedded into the message. 316 "A String", 317 ], 318 "format": "A String", # Format template for the message. The `format` uses placeholders `$0`, 319 # `$1`, etc. to reference parameters. `$$` can be used to denote the `$` 320 # character. 321 # 322 # Examples: 323 # 324 # * `Failed to load '$0' which helps debug $1 the first time it 325 # is loaded. Again, $0 is very important.` 326 # * `Please pay $$10 to use $0 instead of $1.` 327 }, 328 }, 329 "description": "A String", # Human readable description of the debuggee. 330 # Including a human-readable project name, environment name and version 331 # information is recommended. 332 "isDisabled": True or False, # If set to `true`, indicates that the agent should disable itself and 333 # detach from the debuggee. 334 "labels": { # A set of custom debuggee properties, populated by the agent, to be 335 # displayed to the user. 336 "a_key": "A String", 337 }, 338 "uniquifier": "A String", # Debuggee uniquifier within the project. 339 # Any string that identifies the application within the project can be used. 340 # Including environment and version or build IDs is recommended. 341 "project": "A String", # Project the debuggee is associated with. 342 # Use the project number when registering a Google Cloud Platform project. 343 "sourceContexts": [ # References to the locations and revisions of the source code used in the 344 # deployed application. 345 # 346 # NOTE: This field is deprecated. Consumers should use 347 # `ext_source_contexts` if it is not empty. Debug agents should populate 348 # both this field and `ext_source_contexts`. 349 { # A SourceContext is a reference to a tree of files. A SourceContext together 350 # with a path point to a unique revision of a single file or directory. 351 "cloudWorkspace": { # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. # A SourceContext referring to a snapshot in a cloud workspace. 352 "snapshotId": "A String", # The ID of the snapshot. 353 # An empty snapshot_id refers to the most recent snapshot. 354 "workspaceId": { # A CloudWorkspaceId is a unique identifier for a cloud workspace. # The ID of the workspace. 355 # A cloud workspace is a place associated with a repo where modified files 356 # can be stored before they are committed. 357 "name": "A String", # The unique name of the workspace within the repo. This is the name 358 # chosen by the client in the Source API's CreateWorkspace method. 359 "repoId": { # A unique identifier for a cloud repo. # The ID of the repo containing the workspace. 360 "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID # A combination of a project ID and a repo name. 361 # (e.g. winged-cargo-31) and a repo name within that project. 362 "projectId": "A String", # The ID of the project. 363 "repoName": "A String", # The name of the repo. Leave empty for the default repo. 364 }, 365 "uid": "A String", # A server-assigned, globally unique identifier. 366 }, 367 }, 368 }, 369 "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a cloud # A SourceContext referring to a revision in a cloud repo. 370 # repo (a repo hosted by the Google Cloud Platform). 371 "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. 372 "kind": "A String", # The alias kind. 373 "name": "A String", # The alias name. 374 }, 375 "revisionId": "A String", # A revision ID. 376 "aliasName": "A String", # The name of an alias (branch, tag, etc.). 377 "repoId": { # A unique identifier for a cloud repo. # The ID of the repo. 378 "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID # A combination of a project ID and a repo name. 379 # (e.g. winged-cargo-31) and a repo name within that project. 380 "projectId": "A String", # The ID of the project. 381 "repoName": "A String", # The name of the repo. Leave empty for the default repo. 382 }, 383 "uid": "A String", # A server-assigned, globally unique identifier. 384 }, 385 }, 386 "git": { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g. GitHub). 387 # repository (e.g. GitHub). 388 "url": "A String", # Git repository URL. 389 "revisionId": "A String", # Git commit hash. 390 # required. 391 }, 392 "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. 393 "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. 394 "kind": "A String", # The alias kind. 395 "name": "A String", # The alias name. 396 }, 397 "revisionId": "A String", # A revision (commit) ID. 398 "hostUri": "A String", # The URI of a running Gerrit instance. 399 "aliasName": "A String", # The name of an alias (branch, tag, etc.). 400 "gerritProject": "A String", # The full project name within the host. Projects may be nested, so 401 # "project/subproject" is a valid project name. 402 # The "repo name" is hostURI/project. 403 }, 404 }, 405 ], 406 "extSourceContexts": [ # References to the locations and revisions of the source code used in the 407 # deployed application. 408 # 409 # Contexts describing a remote repo related to the source code 410 # have a `category` label of `remote_repo`. Source snapshot source 411 # contexts have a `category` of `snapshot`. 412 { # An ExtendedSourceContext is a SourceContext combined with additional 413 # details describing the context. 414 "labels": { # Labels with user defined metadata. 415 "a_key": "A String", 416 }, 417 "context": { # A SourceContext is a reference to a tree of files. A SourceContext together # Any source context. 418 # with a path point to a unique revision of a single file or directory. 419 "cloudWorkspace": { # A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. # A SourceContext referring to a snapshot in a cloud workspace. 420 "snapshotId": "A String", # The ID of the snapshot. 421 # An empty snapshot_id refers to the most recent snapshot. 422 "workspaceId": { # A CloudWorkspaceId is a unique identifier for a cloud workspace. # The ID of the workspace. 423 # A cloud workspace is a place associated with a repo where modified files 424 # can be stored before they are committed. 425 "name": "A String", # The unique name of the workspace within the repo. This is the name 426 # chosen by the client in the Source API's CreateWorkspace method. 427 "repoId": { # A unique identifier for a cloud repo. # The ID of the repo containing the workspace. 428 "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID # A combination of a project ID and a repo name. 429 # (e.g. winged-cargo-31) and a repo name within that project. 430 "projectId": "A String", # The ID of the project. 431 "repoName": "A String", # The name of the repo. Leave empty for the default repo. 432 }, 433 "uid": "A String", # A server-assigned, globally unique identifier. 434 }, 435 }, 436 }, 437 "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a cloud # A SourceContext referring to a revision in a cloud repo. 438 # repo (a repo hosted by the Google Cloud Platform). 439 "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. 440 "kind": "A String", # The alias kind. 441 "name": "A String", # The alias name. 442 }, 443 "revisionId": "A String", # A revision ID. 444 "aliasName": "A String", # The name of an alias (branch, tag, etc.). 445 "repoId": { # A unique identifier for a cloud repo. # The ID of the repo. 446 "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID # A combination of a project ID and a repo name. 447 # (e.g. winged-cargo-31) and a repo name within that project. 448 "projectId": "A String", # The ID of the project. 449 "repoName": "A String", # The name of the repo. Leave empty for the default repo. 450 }, 451 "uid": "A String", # A server-assigned, globally unique identifier. 452 }, 453 }, 454 "git": { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g. GitHub). 455 # repository (e.g. GitHub). 456 "url": "A String", # Git repository URL. 457 "revisionId": "A String", # Git commit hash. 458 # required. 459 }, 460 "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. 461 "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. 462 "kind": "A String", # The alias kind. 463 "name": "A String", # The alias name. 464 }, 465 "revisionId": "A String", # A revision (commit) ID. 466 "hostUri": "A String", # The URI of a running Gerrit instance. 467 "aliasName": "A String", # The name of an alias (branch, tag, etc.). 468 "gerritProject": "A String", # The full project name within the host. Projects may be nested, so 469 # "project/subproject" is a valid project name. 470 # The "repo name" is hostURI/project. 471 }, 472 }, 473 }, 474 ], 475 "agentVersion": "A String", # Version ID of the agent release. The version ID is structured as 476 # following: `domain/type/vmajor.minor` (for example 477 # `google.com/gcp-java/v1.1`). 478 "isInactive": True or False, # If set to `true`, indicates that the debuggee is considered as inactive by 479 # the Controller service. 480 "id": "A String", # Unique identifier for the debuggee generated by the controller service. 481 }, 482 }</pre> 483</div> 484 485</body></html>