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="deploymentmanager_alpha.html">Google Cloud Deployment Manager Alpha API</a> . <a href="deploymentmanager_alpha.types.html">types</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#delete">delete(project, type)</a></code></p> 79<p class="firstline">Deletes a type and all of the resources in the type.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(project, type)</a></code></p> 82<p class="firstline">Gets information about a specific type.</p> 83<p class="toc_element"> 84 <code><a href="#insert">insert(project, body)</a></code></p> 85<p class="firstline">Creates a type.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 88<p class="firstline">Lists all resource types for Deployment Manager.</p> 89<p class="toc_element"> 90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#patch">patch(project, type, body)</a></code></p> 94<p class="firstline">Updates a type. This method supports patch semantics.</p> 95<p class="toc_element"> 96 <code><a href="#update">update(project, type, body)</a></code></p> 97<p class="firstline">Updates a type.</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="delete">delete(project, type)</code> 101 <pre>Deletes a type and all of the resources in the type. 102 103Args: 104 project: string, The project ID for this request. (required) 105 type: string, The name of the type for this request. (required) 106 107Returns: 108 An object of the form: 109 110 { # An Operation resource, used to manage asynchronous API requests. 111 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 112 "clientOperationId": "A String", # [Output Only] Reserved for future use. 113 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 114 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 115 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 116 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 117 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 118 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 119 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 120 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 121 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 122 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 123 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 124 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 125 { 126 "message": "A String", # [Output Only] A human-readable description of the warning code. 127 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 128 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 129 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 130 { 131 "value": "A String", # [Output Only] A warning data value corresponding to the key. 132 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 133 }, 134 ], 135 }, 136 ], 137 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 138 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 139 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 140 "name": "A String", # [Output Only] Name of the resource. 141 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 142 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 143 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 144 { 145 "message": "A String", # [Output Only] An optional, human-readable error message. 146 "code": "A String", # [Output Only] The error type identifier for this error. 147 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 148 }, 149 ], 150 }, 151 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 152 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 153 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 154 }</pre> 155</div> 156 157<div class="method"> 158 <code class="details" id="get">get(project, type)</code> 159 <pre>Gets information about a specific type. 160 161Args: 162 project: string, The project ID for this request. (required) 163 type: string, The name of the type for this request. (required) 164 165Returns: 166 An object of the form: 167 168 { # A resource type supported by Deployment Manager. 169 "name": "A String", # Name of the type. 170 "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? 171 { 172 "value": "A String", 173 "key": "A String", 174 }, 175 ], 176 "insertTime": "A String", # [Output Only] Timestamp when the type was created, in RFC3339 text format. 177 "operation": { # An Operation resource, used to manage asynchronous API requests. # [Output Only] The Operation that most recently ran, or is currently running, on this type. 178 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 179 "clientOperationId": "A String", # [Output Only] Reserved for future use. 180 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 181 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 182 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 183 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 184 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 185 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 186 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 187 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 188 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 189 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 190 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 191 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 192 { 193 "message": "A String", # [Output Only] A human-readable description of the warning code. 194 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 195 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 196 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 197 { 198 "value": "A String", # [Output Only] A warning data value corresponding to the key. 199 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 200 }, 201 ], 202 }, 203 ], 204 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 205 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 206 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 207 "name": "A String", # [Output Only] Name of the resource. 208 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 209 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 210 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 211 { 212 "message": "A String", # [Output Only] An optional, human-readable error message. 213 "code": "A String", # [Output Only] The error type identifier for this error. 214 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 215 }, 216 ], 217 }, 218 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 219 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 220 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 221 }, 222 "configurableService": { # BaseType that describes a service-backed Type. # Base Type (configurable service) that backs this Type. 223 "credential": { # Credential used by ConfigurableResourceTypes. # Credential used when interacting with this type. 224 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credentials for this Type. 225 "password": "A String", 226 "user": "A String", 227 }, 228 }, 229 "descriptorUrl": "A String", # Descriptor Url for the this type. 230 "collectionOverrides": [ # Allows resource handling overrides for specific collections 231 { # CollectionOverride allows resource handling overrides for specific resources within a BaseType 232 "options": { # Options allows customized resource handling by Deployment Manager. # The options to apply to this resource-level override 233 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 234 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 235 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 236 }, 237 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 238 "inputMappings": [ # The mappings that apply for requests. 239 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 240 "fieldName": "A String", # The name of the field that is going to be injected. 241 "location": "A String", # The location where this mapping applies. 242 "value": "A String", # A jsonPath expression to select an element. 243 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 244 }, 245 ], 246 }, 247 "collection": "A String", # The collection that identifies this resource within its service. 248 }, 249 ], 250 "options": { # Options allows customized resource handling by Deployment Manager. # Options to apply when handling any resources in this service. 251 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 252 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 253 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 254 }, 255 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 256 "inputMappings": [ # The mappings that apply for requests. 257 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 258 "fieldName": "A String", # The name of the field that is going to be injected. 259 "location": "A String", # The location where this mapping applies. 260 "value": "A String", # A jsonPath expression to select an element. 261 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 262 }, 263 ], 264 }, 265 }, 266 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 267 "selfLink": "A String", # [Output Only] Self link for the type. 268 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. 269 }</pre> 270</div> 271 272<div class="method"> 273 <code class="details" id="insert">insert(project, body)</code> 274 <pre>Creates a type. 275 276Args: 277 project: string, The project ID for this request. (required) 278 body: object, The request body. (required) 279 The object takes the form of: 280 281{ # A resource type supported by Deployment Manager. 282 "name": "A String", # Name of the type. 283 "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? 284 { 285 "value": "A String", 286 "key": "A String", 287 }, 288 ], 289 "insertTime": "A String", # [Output Only] Timestamp when the type was created, in RFC3339 text format. 290 "operation": { # An Operation resource, used to manage asynchronous API requests. # [Output Only] The Operation that most recently ran, or is currently running, on this type. 291 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 292 "clientOperationId": "A String", # [Output Only] Reserved for future use. 293 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 294 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 295 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 296 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 297 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 298 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 299 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 300 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 301 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 302 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 303 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 304 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 305 { 306 "message": "A String", # [Output Only] A human-readable description of the warning code. 307 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 308 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 309 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 310 { 311 "value": "A String", # [Output Only] A warning data value corresponding to the key. 312 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 313 }, 314 ], 315 }, 316 ], 317 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 318 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 319 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 320 "name": "A String", # [Output Only] Name of the resource. 321 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 322 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 323 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 324 { 325 "message": "A String", # [Output Only] An optional, human-readable error message. 326 "code": "A String", # [Output Only] The error type identifier for this error. 327 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 328 }, 329 ], 330 }, 331 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 332 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 333 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 334 }, 335 "configurableService": { # BaseType that describes a service-backed Type. # Base Type (configurable service) that backs this Type. 336 "credential": { # Credential used by ConfigurableResourceTypes. # Credential used when interacting with this type. 337 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credentials for this Type. 338 "password": "A String", 339 "user": "A String", 340 }, 341 }, 342 "descriptorUrl": "A String", # Descriptor Url for the this type. 343 "collectionOverrides": [ # Allows resource handling overrides for specific collections 344 { # CollectionOverride allows resource handling overrides for specific resources within a BaseType 345 "options": { # Options allows customized resource handling by Deployment Manager. # The options to apply to this resource-level override 346 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 347 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 348 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 349 }, 350 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 351 "inputMappings": [ # The mappings that apply for requests. 352 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 353 "fieldName": "A String", # The name of the field that is going to be injected. 354 "location": "A String", # The location where this mapping applies. 355 "value": "A String", # A jsonPath expression to select an element. 356 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 357 }, 358 ], 359 }, 360 "collection": "A String", # The collection that identifies this resource within its service. 361 }, 362 ], 363 "options": { # Options allows customized resource handling by Deployment Manager. # Options to apply when handling any resources in this service. 364 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 365 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 366 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 367 }, 368 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 369 "inputMappings": [ # The mappings that apply for requests. 370 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 371 "fieldName": "A String", # The name of the field that is going to be injected. 372 "location": "A String", # The location where this mapping applies. 373 "value": "A String", # A jsonPath expression to select an element. 374 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 375 }, 376 ], 377 }, 378 }, 379 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 380 "selfLink": "A String", # [Output Only] Self link for the type. 381 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. 382 } 383 384 385Returns: 386 An object of the form: 387 388 { # An Operation resource, used to manage asynchronous API requests. 389 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 390 "clientOperationId": "A String", # [Output Only] Reserved for future use. 391 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 392 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 393 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 394 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 395 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 396 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 397 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 398 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 399 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 400 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 401 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 402 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 403 { 404 "message": "A String", # [Output Only] A human-readable description of the warning code. 405 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 406 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 407 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 408 { 409 "value": "A String", # [Output Only] A warning data value corresponding to the key. 410 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 411 }, 412 ], 413 }, 414 ], 415 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 416 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 417 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 418 "name": "A String", # [Output Only] Name of the resource. 419 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 420 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 421 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 422 { 423 "message": "A String", # [Output Only] An optional, human-readable error message. 424 "code": "A String", # [Output Only] The error type identifier for this error. 425 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 426 }, 427 ], 428 }, 429 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 430 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 431 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 432 }</pre> 433</div> 434 435<div class="method"> 436 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 437 <pre>Lists all resource types for Deployment Manager. 438 439Args: 440 project: string, The project ID for this request. (required) 441 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 442 443You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 444 445Currently, only sorting by name or creationTimestamp desc is supported. 446 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 447 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 448 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. 449 450The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. 451 452For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. 453 454You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. 455 456To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 457 458Returns: 459 An object of the form: 460 461 { # A response that returns all Types supported by Deployment Manager 462 "nextPageToken": "A String", # A token used to continue a truncated list request. 463 "types": [ # [Output Only] A list of resource types supported by Deployment Manager. 464 { # A resource type supported by Deployment Manager. 465 "name": "A String", # Name of the type. 466 "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? 467 { 468 "value": "A String", 469 "key": "A String", 470 }, 471 ], 472 "insertTime": "A String", # [Output Only] Timestamp when the type was created, in RFC3339 text format. 473 "operation": { # An Operation resource, used to manage asynchronous API requests. # [Output Only] The Operation that most recently ran, or is currently running, on this type. 474 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 475 "clientOperationId": "A String", # [Output Only] Reserved for future use. 476 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 477 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 478 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 479 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 480 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 481 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 482 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 483 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 484 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 485 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 486 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 487 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 488 { 489 "message": "A String", # [Output Only] A human-readable description of the warning code. 490 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 491 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 492 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 493 { 494 "value": "A String", # [Output Only] A warning data value corresponding to the key. 495 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 496 }, 497 ], 498 }, 499 ], 500 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 501 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 502 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 503 "name": "A String", # [Output Only] Name of the resource. 504 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 505 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 506 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 507 { 508 "message": "A String", # [Output Only] An optional, human-readable error message. 509 "code": "A String", # [Output Only] The error type identifier for this error. 510 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 511 }, 512 ], 513 }, 514 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 515 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 516 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 517 }, 518 "configurableService": { # BaseType that describes a service-backed Type. # Base Type (configurable service) that backs this Type. 519 "credential": { # Credential used by ConfigurableResourceTypes. # Credential used when interacting with this type. 520 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credentials for this Type. 521 "password": "A String", 522 "user": "A String", 523 }, 524 }, 525 "descriptorUrl": "A String", # Descriptor Url for the this type. 526 "collectionOverrides": [ # Allows resource handling overrides for specific collections 527 { # CollectionOverride allows resource handling overrides for specific resources within a BaseType 528 "options": { # Options allows customized resource handling by Deployment Manager. # The options to apply to this resource-level override 529 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 530 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 531 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 532 }, 533 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 534 "inputMappings": [ # The mappings that apply for requests. 535 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 536 "fieldName": "A String", # The name of the field that is going to be injected. 537 "location": "A String", # The location where this mapping applies. 538 "value": "A String", # A jsonPath expression to select an element. 539 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 540 }, 541 ], 542 }, 543 "collection": "A String", # The collection that identifies this resource within its service. 544 }, 545 ], 546 "options": { # Options allows customized resource handling by Deployment Manager. # Options to apply when handling any resources in this service. 547 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 548 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 549 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 550 }, 551 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 552 "inputMappings": [ # The mappings that apply for requests. 553 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 554 "fieldName": "A String", # The name of the field that is going to be injected. 555 "location": "A String", # The location where this mapping applies. 556 "value": "A String", # A jsonPath expression to select an element. 557 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 558 }, 559 ], 560 }, 561 }, 562 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 563 "selfLink": "A String", # [Output Only] Self link for the type. 564 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. 565 }, 566 ], 567 }</pre> 568</div> 569 570<div class="method"> 571 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 572 <pre>Retrieves the next page of results. 573 574Args: 575 previous_request: The request for the previous page. (required) 576 previous_response: The response from the request for the previous page. (required) 577 578Returns: 579 A request object that you can call 'execute()' on to request the next 580 page. Returns None if there are no more items in the collection. 581 </pre> 582</div> 583 584<div class="method"> 585 <code class="details" id="patch">patch(project, type, body)</code> 586 <pre>Updates a type. This method supports patch semantics. 587 588Args: 589 project: string, The project ID for this request. (required) 590 type: string, The name of the type for this request. (required) 591 body: object, The request body. (required) 592 The object takes the form of: 593 594{ # A resource type supported by Deployment Manager. 595 "name": "A String", # Name of the type. 596 "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? 597 { 598 "value": "A String", 599 "key": "A String", 600 }, 601 ], 602 "insertTime": "A String", # [Output Only] Timestamp when the type was created, in RFC3339 text format. 603 "operation": { # An Operation resource, used to manage asynchronous API requests. # [Output Only] The Operation that most recently ran, or is currently running, on this type. 604 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 605 "clientOperationId": "A String", # [Output Only] Reserved for future use. 606 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 607 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 608 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 609 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 610 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 611 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 612 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 613 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 614 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 615 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 616 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 617 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 618 { 619 "message": "A String", # [Output Only] A human-readable description of the warning code. 620 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 621 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 622 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 623 { 624 "value": "A String", # [Output Only] A warning data value corresponding to the key. 625 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 626 }, 627 ], 628 }, 629 ], 630 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 631 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 632 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 633 "name": "A String", # [Output Only] Name of the resource. 634 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 635 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 636 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 637 { 638 "message": "A String", # [Output Only] An optional, human-readable error message. 639 "code": "A String", # [Output Only] The error type identifier for this error. 640 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 641 }, 642 ], 643 }, 644 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 645 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 646 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 647 }, 648 "configurableService": { # BaseType that describes a service-backed Type. # Base Type (configurable service) that backs this Type. 649 "credential": { # Credential used by ConfigurableResourceTypes. # Credential used when interacting with this type. 650 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credentials for this Type. 651 "password": "A String", 652 "user": "A String", 653 }, 654 }, 655 "descriptorUrl": "A String", # Descriptor Url for the this type. 656 "collectionOverrides": [ # Allows resource handling overrides for specific collections 657 { # CollectionOverride allows resource handling overrides for specific resources within a BaseType 658 "options": { # Options allows customized resource handling by Deployment Manager. # The options to apply to this resource-level override 659 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 660 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 661 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 662 }, 663 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 664 "inputMappings": [ # The mappings that apply for requests. 665 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 666 "fieldName": "A String", # The name of the field that is going to be injected. 667 "location": "A String", # The location where this mapping applies. 668 "value": "A String", # A jsonPath expression to select an element. 669 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 670 }, 671 ], 672 }, 673 "collection": "A String", # The collection that identifies this resource within its service. 674 }, 675 ], 676 "options": { # Options allows customized resource handling by Deployment Manager. # Options to apply when handling any resources in this service. 677 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 678 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 679 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 680 }, 681 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 682 "inputMappings": [ # The mappings that apply for requests. 683 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 684 "fieldName": "A String", # The name of the field that is going to be injected. 685 "location": "A String", # The location where this mapping applies. 686 "value": "A String", # A jsonPath expression to select an element. 687 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 688 }, 689 ], 690 }, 691 }, 692 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 693 "selfLink": "A String", # [Output Only] Self link for the type. 694 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. 695 } 696 697 698Returns: 699 An object of the form: 700 701 { # An Operation resource, used to manage asynchronous API requests. 702 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 703 "clientOperationId": "A String", # [Output Only] Reserved for future use. 704 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 705 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 706 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 707 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 708 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 709 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 710 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 711 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 712 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 713 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 714 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 715 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 716 { 717 "message": "A String", # [Output Only] A human-readable description of the warning code. 718 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 719 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 720 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 721 { 722 "value": "A String", # [Output Only] A warning data value corresponding to the key. 723 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 724 }, 725 ], 726 }, 727 ], 728 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 729 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 730 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 731 "name": "A String", # [Output Only] Name of the resource. 732 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 733 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 734 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 735 { 736 "message": "A String", # [Output Only] An optional, human-readable error message. 737 "code": "A String", # [Output Only] The error type identifier for this error. 738 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 739 }, 740 ], 741 }, 742 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 743 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 744 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 745 }</pre> 746</div> 747 748<div class="method"> 749 <code class="details" id="update">update(project, type, body)</code> 750 <pre>Updates a type. 751 752Args: 753 project: string, The project ID for this request. (required) 754 type: string, The name of the type for this request. (required) 755 body: object, The request body. (required) 756 The object takes the form of: 757 758{ # A resource type supported by Deployment Manager. 759 "name": "A String", # Name of the type. 760 "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)? 761 { 762 "value": "A String", 763 "key": "A String", 764 }, 765 ], 766 "insertTime": "A String", # [Output Only] Timestamp when the type was created, in RFC3339 text format. 767 "operation": { # An Operation resource, used to manage asynchronous API requests. # [Output Only] The Operation that most recently ran, or is currently running, on this type. 768 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 769 "clientOperationId": "A String", # [Output Only] Reserved for future use. 770 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 771 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 772 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 773 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 774 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 775 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 776 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 777 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 778 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 779 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 780 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 781 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 782 { 783 "message": "A String", # [Output Only] A human-readable description of the warning code. 784 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 785 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 786 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 787 { 788 "value": "A String", # [Output Only] A warning data value corresponding to the key. 789 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 790 }, 791 ], 792 }, 793 ], 794 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 795 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 796 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 797 "name": "A String", # [Output Only] Name of the resource. 798 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 799 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 800 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 801 { 802 "message": "A String", # [Output Only] An optional, human-readable error message. 803 "code": "A String", # [Output Only] The error type identifier for this error. 804 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 805 }, 806 ], 807 }, 808 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 809 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 810 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 811 }, 812 "configurableService": { # BaseType that describes a service-backed Type. # Base Type (configurable service) that backs this Type. 813 "credential": { # Credential used by ConfigurableResourceTypes. # Credential used when interacting with this type. 814 "basicAuth": { # Basic Auth used as a credential. # Basic Auth Credentials for this Type. 815 "password": "A String", 816 "user": "A String", 817 }, 818 }, 819 "descriptorUrl": "A String", # Descriptor Url for the this type. 820 "collectionOverrides": [ # Allows resource handling overrides for specific collections 821 { # CollectionOverride allows resource handling overrides for specific resources within a BaseType 822 "options": { # Options allows customized resource handling by Deployment Manager. # The options to apply to this resource-level override 823 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 824 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 825 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 826 }, 827 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 828 "inputMappings": [ # The mappings that apply for requests. 829 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 830 "fieldName": "A String", # The name of the field that is going to be injected. 831 "location": "A String", # The location where this mapping applies. 832 "value": "A String", # A jsonPath expression to select an element. 833 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 834 }, 835 ], 836 }, 837 "collection": "A String", # The collection that identifies this resource within its service. 838 }, 839 ], 840 "options": { # Options allows customized resource handling by Deployment Manager. # Options to apply when handling any resources in this service. 841 "validationOptions": { # Options for how to validate and process properties on a resource. # Options for how to validate and process properties on a resource. 842 "undeclaredProperties": "A String", # Specify what to do with extra properties when executing a request. 843 "schemaValidation": "A String", # Customize how deployment manager will validate the resource against schema errors. 844 }, 845 "nameProperty": "A String", # The json path to the field in the resource JSON body into which the resource name should be mapped. Leaving this empty indicates that there should be no mapping performed. 846 "inputMappings": [ # The mappings that apply for requests. 847 { # InputMapping creates a 'virtual' property that will be injected into the properties before sending the request to the underlying API. 848 "fieldName": "A String", # The name of the field that is going to be injected. 849 "location": "A String", # The location where this mapping applies. 850 "value": "A String", # A jsonPath expression to select an element. 851 "methodMatch": "A String", # Regex to evaluate on method to decide if input applies. 852 }, 853 ], 854 }, 855 }, 856 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 857 "selfLink": "A String", # [Output Only] Self link for the type. 858 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created. 859 } 860 861 862Returns: 863 An object of the form: 864 865 { # An Operation resource, used to manage asynchronous API requests. 866 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 867 "clientOperationId": "A String", # [Output Only] Reserved for future use. 868 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 869 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 870 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 871 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 872 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 873 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 874 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 875 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 876 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 877 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 878 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 879 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 880 { 881 "message": "A String", # [Output Only] A human-readable description of the warning code. 882 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 883 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 884 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 885 { 886 "value": "A String", # [Output Only] A warning data value corresponding to the key. 887 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 888 }, 889 ], 890 }, 891 ], 892 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 893 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 894 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 895 "name": "A String", # [Output Only] Name of the resource. 896 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 897 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 898 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 899 { 900 "message": "A String", # [Output Only] An optional, human-readable error message. 901 "code": "A String", # [Output Only] The error type identifier for this error. 902 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 903 }, 904 ], 905 }, 906 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 907 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 908 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 909 }</pre> 910</div> 911 912</body></html>