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_v2.html">Cloud Deployment Manager V2 API</a> . <a href="deploymentmanager_v2.deployments.html">deployments</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#cancelPreview">cancelPreview(project, deployment, body=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Cancels and removes the preview currently associated with the deployment.</p> 80<p class="toc_element"> 81 <code><a href="#close">close()</a></code></p> 82<p class="firstline">Close httplib2 connections.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(project, deployment, deletePolicy=None, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes a deployment and all of the resources in the deployment.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(project, deployment, x__xgafv=None)</a></code></p> 88<p class="firstline">Gets information about a specific deployment.</p> 89<p class="toc_element"> 90 <code><a href="#getIamPolicy">getIamPolicy(project, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p> 92<p class="toc_element"> 93 <code><a href="#insert">insert(project, body=None, createPolicy=None, preview=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Creates a deployment and all of the resources described by the deployment manifest.</p> 95<p class="toc_element"> 96 <code><a href="#list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Lists all deployments for a given project.</p> 98<p class="toc_element"> 99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 100<p class="firstline">Retrieves the next page of results.</p> 101<p class="toc_element"> 102 <code><a href="#patch">patch(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Patches a deployment and all of the resources described by the deployment manifest.</p> 104<p class="toc_element"> 105 <code><a href="#setIamPolicy">setIamPolicy(project, resource, body=None, x__xgafv=None)</a></code></p> 106<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p> 107<p class="toc_element"> 108 <code><a href="#stop">stop(project, deployment, body=None, x__xgafv=None)</a></code></p> 109<p class="firstline">Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started.</p> 110<p class="toc_element"> 111 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body=None, x__xgafv=None)</a></code></p> 112<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 113<p class="toc_element"> 114 <code><a href="#update">update(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None, x__xgafv=None)</a></code></p> 115<p class="firstline">Updates a deployment and all of the resources described by the deployment manifest.</p> 116<h3>Method Details</h3> 117<div class="method"> 118 <code class="details" id="cancelPreview">cancelPreview(project, deployment, body=None, x__xgafv=None)</code> 119 <pre>Cancels and removes the preview currently associated with the deployment. 120 121Args: 122 project: string, The project ID for this request. (required) 123 deployment: string, The name of the deployment for this request. (required) 124 body: object, The request body. 125 The object takes the form of: 126 127{ 128 "fingerprint": "A String", # Specifies a fingerprint for `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided in `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to cancel a preview, this would prevent one of the requests). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment. 129} 130 131 x__xgafv: string, V1 error format. 132 Allowed values 133 1 - v1 error format 134 2 - v2 error format 135 136Returns: 137 An object of the form: 138 139 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 140 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 141 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 142 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 143 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 144 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 145 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 146 { 147 "code": "A String", # [Output Only] The error type identifier for this error. 148 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 149 "message": "A String", # [Output Only] An optional, human-readable error message. 150 }, 151 ], 152 }, 153 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 154 "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. 155 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 156 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 157 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 158 "name": "A String", # [Output Only] Name of the operation. 159 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 160 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 161 "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. 162 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 163 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 164 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 165 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 166 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 167 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 168 "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. 169 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 170 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 171 { 172 "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. 173 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 174 { 175 "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). 176 "value": "A String", # [Output Only] A warning data value corresponding to the key. 177 }, 178 ], 179 "message": "A String", # [Output Only] A human-readable description of the warning code. 180 }, 181 ], 182 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 183}</pre> 184</div> 185 186<div class="method"> 187 <code class="details" id="close">close()</code> 188 <pre>Close httplib2 connections.</pre> 189</div> 190 191<div class="method"> 192 <code class="details" id="delete">delete(project, deployment, deletePolicy=None, x__xgafv=None)</code> 193 <pre>Deletes a deployment and all of the resources in the deployment. 194 195Args: 196 project: string, The project ID for this request. (required) 197 deployment: string, The name of the deployment for this request. (required) 198 deletePolicy: string, Sets the policy to use for deleting resources. 199 Allowed values 200 DELETE - 201 ABANDON - 202 x__xgafv: string, V1 error format. 203 Allowed values 204 1 - v1 error format 205 2 - v2 error format 206 207Returns: 208 An object of the form: 209 210 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 211 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 212 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 213 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 214 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 215 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 216 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 217 { 218 "code": "A String", # [Output Only] The error type identifier for this error. 219 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 220 "message": "A String", # [Output Only] An optional, human-readable error message. 221 }, 222 ], 223 }, 224 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 225 "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. 226 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 227 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 228 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 229 "name": "A String", # [Output Only] Name of the operation. 230 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 231 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 232 "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. 233 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 234 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 235 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 236 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 237 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 238 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 239 "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. 240 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 241 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 242 { 243 "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. 244 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 245 { 246 "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). 247 "value": "A String", # [Output Only] A warning data value corresponding to the key. 248 }, 249 ], 250 "message": "A String", # [Output Only] A human-readable description of the warning code. 251 }, 252 ], 253 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 254}</pre> 255</div> 256 257<div class="method"> 258 <code class="details" id="get">get(project, deployment, x__xgafv=None)</code> 259 <pre>Gets information about a specific deployment. 260 261Args: 262 project: string, The project ID for this request. (required) 263 deployment: string, The name of the deployment for this request. (required) 264 x__xgafv: string, V1 error format. 265 Allowed values 266 1 - v1 error format 267 2 - v2 error format 268 269Returns: 270 An object of the form: 271 272 { 273 "description": "A String", # An optional user-provided description of the deployment. 274 "fingerprint": "A String", # Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment. 275 "id": "A String", 276 "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format. 277 "labels": [ # Map of One Platform 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])?)?`. 278 { # Label object for Deployments 279 "key": "A String", # Key of the label 280 "value": "A String", # Value of the label 281 }, 282 ], 283 "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent. 284 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 285 "operation": { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment. 286 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 287 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 288 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 289 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 290 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 291 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 292 { 293 "code": "A String", # [Output Only] The error type identifier for this error. 294 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 295 "message": "A String", # [Output Only] An optional, human-readable error message. 296 }, 297 ], 298 }, 299 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 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 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 302 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 303 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 304 "name": "A String", # [Output Only] Name of the operation. 305 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 306 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 307 "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. 308 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 309 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 310 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 311 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 312 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 313 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 314 "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. 315 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 316 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 317 { 318 "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. 319 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 320 { 321 "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). 322 "value": "A String", # [Output Only] A warning data value corresponding to the key. 323 }, 324 ], 325 "message": "A String", # [Output Only] A human-readable description of the warning code. 326 }, 327 ], 328 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 329 }, 330 "selfLink": "A String", # Output only. Server defined URL for the resource. 331 "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates. 332 "config": { # The configuration to use for this deployment. 333 "content": "A String", # The contents of the file. 334 }, 335 "imports": [ # Specifies any files to import for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. 336 { 337 "content": "A String", # The contents of the file. 338 "name": "A String", # The name of the file. 339 }, 340 ], 341 }, 342 "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here. 343 "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied. 344 "labels": [ # Map of One Platform 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])?)?`. 345 { # Label object for DeploymentUpdate 346 "key": "A String", # Key of the label 347 "value": "A String", # Value of the label 348 }, 349 ], 350 "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment. 351 }, 352 "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format. 353}</pre> 354</div> 355 356<div class="method"> 357 <code class="details" id="getIamPolicy">getIamPolicy(project, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code> 358 <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists. 359 360Args: 361 project: string, Project ID for this request. (required) 362 resource: string, Name or id of the resource for this request. (required) 363 optionsRequestedPolicyVersion: integer, Requested IAM Policy version. 364 x__xgafv: string, V1 error format. 365 Allowed values 366 1 - v1 error format 367 2 - v2 error format 368 369Returns: 370 An object of the form: 371 372 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). 373 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 374 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 375 "auditLogConfigs": [ # The configuration for logging of each type of permission. 376 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 377 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 378 "A String", 379 ], 380 "logType": "A String", # The log type that this config enables. 381 }, 382 ], 383 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 384 }, 385 ], 386 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 387 { # Associates `members`, or principals, with a `role`. 388 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 389 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 390 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 391 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 392 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 393 }, 394 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 395 "A String", 396 ], 397 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 398 }, 399 ], 400 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 401 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 402}</pre> 403</div> 404 405<div class="method"> 406 <code class="details" id="insert">insert(project, body=None, createPolicy=None, preview=None, x__xgafv=None)</code> 407 <pre>Creates a deployment and all of the resources described by the deployment manifest. 408 409Args: 410 project: string, The project ID for this request. (required) 411 body: object, The request body. 412 The object takes the form of: 413 414{ 415 "description": "A String", # An optional user-provided description of the deployment. 416 "fingerprint": "A String", # Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment. 417 "id": "A String", 418 "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format. 419 "labels": [ # Map of One Platform 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])?)?`. 420 { # Label object for Deployments 421 "key": "A String", # Key of the label 422 "value": "A String", # Value of the label 423 }, 424 ], 425 "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent. 426 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 427 "operation": { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment. 428 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 429 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 430 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 431 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 432 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 433 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 434 { 435 "code": "A String", # [Output Only] The error type identifier for this error. 436 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 437 "message": "A String", # [Output Only] An optional, human-readable error message. 438 }, 439 ], 440 }, 441 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 442 "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. 443 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 444 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 445 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 446 "name": "A String", # [Output Only] Name of the operation. 447 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 448 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 449 "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. 450 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 451 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 452 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 453 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 454 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 455 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 456 "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. 457 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 458 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 459 { 460 "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. 461 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 462 { 463 "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). 464 "value": "A String", # [Output Only] A warning data value corresponding to the key. 465 }, 466 ], 467 "message": "A String", # [Output Only] A human-readable description of the warning code. 468 }, 469 ], 470 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 471 }, 472 "selfLink": "A String", # Output only. Server defined URL for the resource. 473 "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates. 474 "config": { # The configuration to use for this deployment. 475 "content": "A String", # The contents of the file. 476 }, 477 "imports": [ # Specifies any files to import for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. 478 { 479 "content": "A String", # The contents of the file. 480 "name": "A String", # The name of the file. 481 }, 482 ], 483 }, 484 "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here. 485 "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied. 486 "labels": [ # Map of One Platform 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])?)?`. 487 { # Label object for DeploymentUpdate 488 "key": "A String", # Key of the label 489 "value": "A String", # Value of the label 490 }, 491 ], 492 "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment. 493 }, 494 "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format. 495} 496 497 createPolicy: string, Sets the policy to use for creating new resources. 498 Allowed values 499 CREATE_OR_ACQUIRE - 500 ACQUIRE - 501 preview: boolean, If set to true, creates a deployment and creates "shell" resources but does not actually instantiate these resources. This allows you to preview what your deployment looks like. After previewing a deployment, you can deploy your resources by making a request with the `update()` method or you can use the `cancelPreview()` method to cancel the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. 502 x__xgafv: string, V1 error format. 503 Allowed values 504 1 - v1 error format 505 2 - v2 error format 506 507Returns: 508 An object of the form: 509 510 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 511 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 512 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 513 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 514 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 515 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 516 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 517 { 518 "code": "A String", # [Output Only] The error type identifier for this error. 519 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 520 "message": "A String", # [Output Only] An optional, human-readable error message. 521 }, 522 ], 523 }, 524 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 525 "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. 526 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 527 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 528 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 529 "name": "A String", # [Output Only] Name of the operation. 530 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 531 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 532 "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. 533 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 534 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 535 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 536 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 537 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 538 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 539 "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. 540 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 541 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 542 { 543 "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. 544 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 545 { 546 "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). 547 "value": "A String", # [Output Only] A warning data value corresponding to the key. 548 }, 549 ], 550 "message": "A String", # [Output Only] A human-readable description of the warning code. 551 }, 552 ], 553 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 554}</pre> 555</div> 556 557<div class="method"> 558 <code class="details" id="list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None, x__xgafv=None)</code> 559 <pre>Lists all deployments for a given project. 560 561Args: 562 project: string, The project ID for this request. (required) 563 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` 564 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`) 565 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 566 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. 567 x__xgafv: string, V1 error format. 568 Allowed values 569 1 - v1 error format 570 2 - v2 error format 571 572Returns: 573 An object of the form: 574 575 { # A response containing a partial list of deployments and a page token used to build the next request if the request has been truncated. 576 "deployments": [ # Output only. The deployments contained in this response. 577 { 578 "description": "A String", # An optional user-provided description of the deployment. 579 "fingerprint": "A String", # Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment. 580 "id": "A String", 581 "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format. 582 "labels": [ # Map of One Platform 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])?)?`. 583 { # Label object for Deployments 584 "key": "A String", # Key of the label 585 "value": "A String", # Value of the label 586 }, 587 ], 588 "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent. 589 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 590 "operation": { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment. 591 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 592 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 593 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 594 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 595 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 596 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 597 { 598 "code": "A String", # [Output Only] The error type identifier for this error. 599 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 600 "message": "A String", # [Output Only] An optional, human-readable error message. 601 }, 602 ], 603 }, 604 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 605 "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. 606 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 607 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 608 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 609 "name": "A String", # [Output Only] Name of the operation. 610 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 611 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 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 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 614 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 615 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 616 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 617 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 618 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 619 "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. 620 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 621 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 622 { 623 "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. 624 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 625 { 626 "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). 627 "value": "A String", # [Output Only] A warning data value corresponding to the key. 628 }, 629 ], 630 "message": "A String", # [Output Only] A human-readable description of the warning code. 631 }, 632 ], 633 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 634 }, 635 "selfLink": "A String", # Output only. Server defined URL for the resource. 636 "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates. 637 "config": { # The configuration to use for this deployment. 638 "content": "A String", # The contents of the file. 639 }, 640 "imports": [ # Specifies any files to import for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. 641 { 642 "content": "A String", # The contents of the file. 643 "name": "A String", # The name of the file. 644 }, 645 ], 646 }, 647 "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here. 648 "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied. 649 "labels": [ # Map of One Platform 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])?)?`. 650 { # Label object for DeploymentUpdate 651 "key": "A String", # Key of the label 652 "value": "A String", # Value of the label 653 }, 654 ], 655 "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment. 656 }, 657 "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format. 658 }, 659 ], 660 "nextPageToken": "A String", # Output only. A token used to continue a truncated list request. 661}</pre> 662</div> 663 664<div class="method"> 665 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 666 <pre>Retrieves the next page of results. 667 668Args: 669 previous_request: The request for the previous page. (required) 670 previous_response: The response from the request for the previous page. (required) 671 672Returns: 673 A request object that you can call 'execute()' on to request the next 674 page. Returns None if there are no more items in the collection. 675 </pre> 676</div> 677 678<div class="method"> 679 <code class="details" id="patch">patch(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None, x__xgafv=None)</code> 680 <pre>Patches a deployment and all of the resources described by the deployment manifest. 681 682Args: 683 project: string, The project ID for this request. (required) 684 deployment: string, The name of the deployment for this request. (required) 685 body: object, The request body. 686 The object takes the form of: 687 688{ 689 "description": "A String", # An optional user-provided description of the deployment. 690 "fingerprint": "A String", # Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment. 691 "id": "A String", 692 "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format. 693 "labels": [ # Map of One Platform 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])?)?`. 694 { # Label object for Deployments 695 "key": "A String", # Key of the label 696 "value": "A String", # Value of the label 697 }, 698 ], 699 "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent. 700 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 701 "operation": { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment. 702 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 703 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 704 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 705 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 706 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 707 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 708 { 709 "code": "A String", # [Output Only] The error type identifier for this error. 710 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 711 "message": "A String", # [Output Only] An optional, human-readable error message. 712 }, 713 ], 714 }, 715 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 716 "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. 717 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 718 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 719 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 720 "name": "A String", # [Output Only] Name of the operation. 721 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 722 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 723 "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. 724 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 725 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 726 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 727 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 728 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 729 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 730 "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. 731 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 732 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 733 { 734 "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. 735 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 736 { 737 "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). 738 "value": "A String", # [Output Only] A warning data value corresponding to the key. 739 }, 740 ], 741 "message": "A String", # [Output Only] A human-readable description of the warning code. 742 }, 743 ], 744 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 745 }, 746 "selfLink": "A String", # Output only. Server defined URL for the resource. 747 "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates. 748 "config": { # The configuration to use for this deployment. 749 "content": "A String", # The contents of the file. 750 }, 751 "imports": [ # Specifies any files to import for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. 752 { 753 "content": "A String", # The contents of the file. 754 "name": "A String", # The name of the file. 755 }, 756 ], 757 }, 758 "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here. 759 "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied. 760 "labels": [ # Map of One Platform 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 { # Label object for DeploymentUpdate 762 "key": "A String", # Key of the label 763 "value": "A String", # Value of the label 764 }, 765 ], 766 "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment. 767 }, 768 "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format. 769} 770 771 createPolicy: string, Sets the policy to use for creating new resources. 772 Allowed values 773 CREATE_OR_ACQUIRE - 774 ACQUIRE - 775 deletePolicy: string, Sets the policy to use for deleting resources. 776 Allowed values 777 DELETE - 778 ABANDON - 779 preview: boolean, If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a `target.config` with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the `update()` or you can `cancelPreview()` to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. 780 x__xgafv: string, V1 error format. 781 Allowed values 782 1 - v1 error format 783 2 - v2 error format 784 785Returns: 786 An object of the form: 787 788 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 789 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 790 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 791 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 792 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 793 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 794 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 795 { 796 "code": "A String", # [Output Only] The error type identifier for this error. 797 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 798 "message": "A String", # [Output Only] An optional, human-readable error message. 799 }, 800 ], 801 }, 802 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 803 "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. 804 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 805 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 806 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 807 "name": "A String", # [Output Only] Name of the operation. 808 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 809 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 810 "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. 811 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 812 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 813 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 814 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 815 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 816 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 817 "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. 818 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 819 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 820 { 821 "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. 822 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 823 { 824 "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). 825 "value": "A String", # [Output Only] A warning data value corresponding to the key. 826 }, 827 ], 828 "message": "A String", # [Output Only] A human-readable description of the warning code. 829 }, 830 ], 831 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 832}</pre> 833</div> 834 835<div class="method"> 836 <code class="details" id="setIamPolicy">setIamPolicy(project, resource, body=None, x__xgafv=None)</code> 837 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. 838 839Args: 840 project: string, Project ID for this request. (required) 841 resource: string, Name or id of the resource for this request. (required) 842 body: object, The request body. 843 The object takes the form of: 844 845{ 846 "bindings": [ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings. 847 { # Associates `members`, or principals, with a `role`. 848 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 849 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 850 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 851 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 852 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 853 }, 854 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 855 "A String", 856 ], 857 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 858 }, 859 ], 860 "etag": "A String", # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. 861 "policy": { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. 862 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 863 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 864 "auditLogConfigs": [ # The configuration for logging of each type of permission. 865 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 866 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 867 "A String", 868 ], 869 "logType": "A String", # The log type that this config enables. 870 }, 871 ], 872 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 873 }, 874 ], 875 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 876 { # Associates `members`, or principals, with a `role`. 877 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 878 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 879 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 880 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 881 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 882 }, 883 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 884 "A String", 885 ], 886 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 887 }, 888 ], 889 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 890 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 891 }, 892} 893 894 x__xgafv: string, V1 error format. 895 Allowed values 896 1 - v1 error format 897 2 - v2 error format 898 899Returns: 900 An object of the form: 901 902 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). 903 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 904 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 905 "auditLogConfigs": [ # The configuration for logging of each type of permission. 906 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 907 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 908 "A String", 909 ], 910 "logType": "A String", # The log type that this config enables. 911 }, 912 ], 913 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 914 }, 915 ], 916 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 917 { # Associates `members`, or principals, with a `role`. 918 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 919 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 920 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 921 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 922 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 923 }, 924 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 925 "A String", 926 ], 927 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 928 }, 929 ], 930 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 931 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 932}</pre> 933</div> 934 935<div class="method"> 936 <code class="details" id="stop">stop(project, deployment, body=None, x__xgafv=None)</code> 937 <pre>Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started. 938 939Args: 940 project: string, The project ID for this request. (required) 941 deployment: string, The name of the deployment for this request. (required) 942 body: object, The request body. 943 The object takes the form of: 944 945{ 946 "fingerprint": "A String", # Specifies a fingerprint for `stop()` requests. A fingerprint is a randomly generated value that must be provided in `stop()` requests to perform optimistic locking. This ensures optimistic concurrency so that the deployment does not have conflicting requests (e.g. if someone attempts to make a new update request while another user attempts to stop an ongoing update request, this would prevent a collision). The fingerprint is initially generated by Deployment Manager and changes after every request to modify a deployment. To get the latest fingerprint value, perform a `get()` request on the deployment. 947} 948 949 x__xgafv: string, V1 error format. 950 Allowed values 951 1 - v1 error format 952 2 - v2 error format 953 954Returns: 955 An object of the form: 956 957 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 958 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 959 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 960 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 961 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 962 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 963 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 964 { 965 "code": "A String", # [Output Only] The error type identifier for this error. 966 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 967 "message": "A String", # [Output Only] An optional, human-readable error message. 968 }, 969 ], 970 }, 971 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 972 "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. 973 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 974 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 975 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 976 "name": "A String", # [Output Only] Name of the operation. 977 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 978 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 979 "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. 980 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 981 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 982 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 983 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 984 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 985 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 986 "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. 987 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 988 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 989 { 990 "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. 991 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 992 { 993 "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). 994 "value": "A String", # [Output Only] A warning data value corresponding to the key. 995 }, 996 ], 997 "message": "A String", # [Output Only] A human-readable description of the warning code. 998 }, 999 ], 1000 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1001}</pre> 1002</div> 1003 1004<div class="method"> 1005 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body=None, x__xgafv=None)</code> 1006 <pre>Returns permissions that a caller has on the specified resource. 1007 1008Args: 1009 project: string, Project ID for this request. (required) 1010 resource: string, Name or id of the resource for this request. (required) 1011 body: object, The request body. 1012 The object takes the form of: 1013 1014{ 1015 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 1016 "A String", 1017 ], 1018} 1019 1020 x__xgafv: string, V1 error format. 1021 Allowed values 1022 1 - v1 error format 1023 2 - v2 error format 1024 1025Returns: 1026 An object of the form: 1027 1028 { 1029 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 1030 "A String", 1031 ], 1032}</pre> 1033</div> 1034 1035<div class="method"> 1036 <code class="details" id="update">update(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None, x__xgafv=None)</code> 1037 <pre>Updates a deployment and all of the resources described by the deployment manifest. 1038 1039Args: 1040 project: string, The project ID for this request. (required) 1041 deployment: string, The name of the deployment for this request. (required) 1042 body: object, The request body. 1043 The object takes the form of: 1044 1045{ 1046 "description": "A String", # An optional user-provided description of the deployment. 1047 "fingerprint": "A String", # Provides a fingerprint to use in requests to modify a deployment, such as `update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a randomly generated value that must be provided with `update()`, `stop()`, and `cancelPreview()` requests to perform optimistic locking. This ensures optimistic concurrency so that only one request happens at a time. The fingerprint is initially generated by Deployment Manager and changes after every request to modify data. To get the latest fingerprint value, perform a `get()` request to a deployment. 1048 "id": "A String", 1049 "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format. 1050 "labels": [ # Map of One Platform 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])?)?`. 1051 { # Label object for Deployments 1052 "key": "A String", # Key of the label 1053 "value": "A String", # Value of the label 1054 }, 1055 ], 1056 "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent. 1057 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1058 "operation": { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment. 1059 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1060 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1061 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1062 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1063 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1064 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1065 { 1066 "code": "A String", # [Output Only] The error type identifier for this error. 1067 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1068 "message": "A String", # [Output Only] An optional, human-readable error message. 1069 }, 1070 ], 1071 }, 1072 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 1073 "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. 1074 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 1075 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1076 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 1077 "name": "A String", # [Output Only] Name of the operation. 1078 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 1079 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 1080 "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. 1081 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1082 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1083 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1084 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 1085 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1086 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1087 "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. 1088 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 1089 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1090 { 1091 "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. 1092 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1093 { 1094 "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). 1095 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1096 }, 1097 ], 1098 "message": "A String", # [Output Only] A human-readable description of the warning code. 1099 }, 1100 ], 1101 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1102 }, 1103 "selfLink": "A String", # Output only. Server defined URL for the resource. 1104 "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates. 1105 "config": { # The configuration to use for this deployment. 1106 "content": "A String", # The contents of the file. 1107 }, 1108 "imports": [ # Specifies any files to import for this configuration. This can be used to import templates or other files. For example, you might import a text file in order to use the file in a template. 1109 { 1110 "content": "A String", # The contents of the file. 1111 "name": "A String", # The name of the file. 1112 }, 1113 ], 1114 }, 1115 "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here. 1116 "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied. 1117 "labels": [ # Map of One Platform 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])?)?`. 1118 { # Label object for DeploymentUpdate 1119 "key": "A String", # Key of the label 1120 "value": "A String", # Value of the label 1121 }, 1122 ], 1123 "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment. 1124 }, 1125 "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format. 1126} 1127 1128 createPolicy: string, Sets the policy to use for creating new resources. 1129 Allowed values 1130 CREATE_OR_ACQUIRE - 1131 ACQUIRE - 1132 deletePolicy: string, Sets the policy to use for deleting resources. 1133 Allowed values 1134 DELETE - 1135 ABANDON - 1136 preview: boolean, If set to true, updates the deployment and creates and updates the "shell" resources but does not actually alter or instantiate these resources. This allows you to preview what your deployment will look like. You can use this intent to preview how an update would affect your deployment. You must provide a `target.config` with a configuration if this is set to true. After previewing a deployment, you can deploy your resources by making a request with the `update()` or you can `cancelPreview()` to remove the preview altogether. Note that the deployment will still exist after you cancel the preview and you must separately delete this deployment if you want to remove it. 1137 x__xgafv: string, V1 error format. 1138 Allowed values 1139 1 - v1 error format 1140 2 - v2 error format 1141 1142Returns: 1143 An object of the form: 1144 1145 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 1146 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1147 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1148 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1149 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1150 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1151 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1152 { 1153 "code": "A String", # [Output Only] The error type identifier for this error. 1154 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1155 "message": "A String", # [Output Only] An optional, human-readable error message. 1156 }, 1157 ], 1158 }, 1159 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 1160 "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. 1161 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 1162 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1163 "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 1164 "name": "A String", # [Output Only] Name of the operation. 1165 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 1166 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 1167 "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. 1168 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1169 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1170 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1171 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 1172 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1173 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1174 "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. 1175 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 1176 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1177 { 1178 "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. 1179 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1180 { 1181 "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). 1182 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1183 }, 1184 ], 1185 "message": "A String", # [Output Only] A human-readable description of the warning code. 1186 }, 1187 ], 1188 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1189}</pre> 1190</div> 1191 1192</body></html>