• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_v2beta.html">Google Cloud Deployment Manager API V2Beta Methods</a> . <a href="deploymentmanager_v2beta.deployments.html">deployments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#cancelPreview">cancelPreview(project, deployment, body)</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="#delete">delete(project, deployment, deletePolicy=None)</a></code></p>
82<p class="firstline">Deletes a deployment and all of the resources in the deployment.</p>
83<p class="toc_element">
84  <code><a href="#get">get(project, deployment)</a></code></p>
85<p class="firstline">Gets information about a specific deployment.</p>
86<p class="toc_element">
87  <code><a href="#getIamPolicy">getIamPolicy(project, resource)</a></code></p>
88<p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p>
89<p class="toc_element">
90  <code><a href="#insert">insert(project, body, createPolicy=None, preview=None)</a></code></p>
91<p class="firstline">Creates a deployment and all of the resources described by the deployment manifest.</p>
92<p class="toc_element">
93  <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
94<p class="firstline">Lists all deployments for a given project.</p>
95<p class="toc_element">
96  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99  <code><a href="#patch">patch(project, deployment, body, deletePolicy=None, createPolicy=None, preview=None)</a></code></p>
100<p class="firstline">Updates a deployment and all of the resources described by the deployment manifest. This method supports patch semantics.</p>
101<p class="toc_element">
102  <code><a href="#setIamPolicy">setIamPolicy(project, resource, body)</a></code></p>
103<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p>
104<p class="toc_element">
105  <code><a href="#stop">stop(project, deployment, body)</a></code></p>
106<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>
107<p class="toc_element">
108  <code><a href="#testIamPermissions">testIamPermissions(project, resource, body)</a></code></p>
109<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
110<p class="toc_element">
111  <code><a href="#update">update(project, deployment, body, deletePolicy=None, createPolicy=None, preview=None)</a></code></p>
112<p class="firstline">Updates a deployment and all of the resources described by the deployment manifest.</p>
113<h3>Method Details</h3>
114<div class="method">
115    <code class="details" id="cancelPreview">cancelPreview(project, deployment, body)</code>
116  <pre>Cancels and removes the preview currently associated with the deployment.
117
118Args:
119  project: string, The project ID for this request. (required)
120  deployment: string, The name of the deployment for this request. (required)
121  body: object, The request body. (required)
122    The object takes the form of:
123
124{
125    "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).
126        #
127        # 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.
128  }
129
130
131Returns:
132  An object of the form:
133
134    { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
135    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
136    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
137    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
138    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
139    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
140    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
141    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
142    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
143    "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.
144    "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.
145    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
146    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
147    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
148    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
149      {
150        "message": "A String", # [Output Only] A human-readable description of the warning code.
151        "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.
152        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
153            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
154          {
155            "value": "A String", # [Output Only] A warning data value corresponding to the key.
156            "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).
157          },
158        ],
159      },
160    ],
161    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
162    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
163    "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
164    "name": "A String", # [Output Only] Name of the resource.
165    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
166    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
167      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
168        {
169          "message": "A String", # [Output Only] An optional, human-readable error message.
170          "code": "A String", # [Output Only] The error type identifier for this error.
171          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
172        },
173      ],
174    },
175    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
176    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
177    "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.
178  }</pre>
179</div>
180
181<div class="method">
182    <code class="details" id="delete">delete(project, deployment, deletePolicy=None)</code>
183  <pre>Deletes a deployment and all of the resources in the deployment.
184
185Args:
186  project: string, The project ID for this request. (required)
187  deployment: string, The name of the deployment for this request. (required)
188  deletePolicy: string, Sets the policy to use for deleting resources.
189    Allowed values
190      ABANDON -
191      DELETE -
192
193Returns:
194  An object of the form:
195
196    { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
197    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
198    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
199    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
200    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
201    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
202    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
203    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
204    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
205    "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.
206    "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.
207    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
208    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
209    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
210    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
211      {
212        "message": "A String", # [Output Only] A human-readable description of the warning code.
213        "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.
214        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
215            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
216          {
217            "value": "A String", # [Output Only] A warning data value corresponding to the key.
218            "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).
219          },
220        ],
221      },
222    ],
223    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
224    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
225    "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
226    "name": "A String", # [Output Only] Name of the resource.
227    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
228    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
229      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
230        {
231          "message": "A String", # [Output Only] An optional, human-readable error message.
232          "code": "A String", # [Output Only] The error type identifier for this error.
233          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
234        },
235      ],
236    },
237    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
238    "selfLink": "A String", # [Output Only] Server-defined URL for the 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  }</pre>
241</div>
242
243<div class="method">
244    <code class="details" id="get">get(project, deployment)</code>
245  <pre>Gets information about a specific deployment.
246
247Args:
248  project: string, The project ID for this request. (required)
249  deployment: string, The name of the deployment for this request. (required)
250
251Returns:
252  An object of the form:
253
254    {
255      "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format.
256      "description": "A String", # An optional user-provided description of the deployment.
257      "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
258        {
259          "value": "A String",
260          "key": "A String",
261        },
262      ],
263      "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
264        "labels": [ # Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
265          {
266            "value": "A String",
267            "key": "A String",
268          },
269        ],
270        "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied.
271        "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment.
272      },
273      "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed.
274      "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format.
275      "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.
276          #
277          # 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.
278      "operation": { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) # Output only. The Operation that most recently ran, or is currently running, on this deployment.
279        "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
280        "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
281        "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
282        "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
283        "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
284        "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
285        "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
286        "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
287        "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.
288        "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.
289        "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
290        "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
291        "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
292        "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
293          {
294            "message": "A String", # [Output Only] A human-readable description of the warning code.
295            "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.
296            "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
297                # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
298              {
299                "value": "A String", # [Output Only] A warning data value corresponding to the key.
300                "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).
301              },
302            ],
303          },
304        ],
305        "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
306        "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
307        "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
308        "name": "A String", # [Output Only] Name of the resource.
309        "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
310        "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
311          "errors": [ # [Output Only] The array of errors encountered while processing this operation.
312            {
313              "message": "A String", # [Output Only] An optional, human-readable error message.
314              "code": "A String", # [Output Only] The error type identifier for this error.
315              "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
316            },
317          ],
318        },
319        "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
320        "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
321        "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.
322      },
323      "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
324        "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.
325          {
326            "content": "A String", # The contents of the file.
327            "name": "A String", # The name of the file.
328          },
329        ],
330        "config": { # The configuration to use for this deployment.
331          "content": "A String", # The contents of the file.
332        },
333      },
334      "id": "A String",
335      "selfLink": "A String", # Output only. Server defined URL for the resource.
336      "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.
337    }</pre>
338</div>
339
340<div class="method">
341    <code class="details" id="getIamPolicy">getIamPolicy(project, resource)</code>
342  <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists.
343
344Args:
345  project: string, Project ID for this request. (required)
346  resource: string, Name or id of the resource for this request. (required)
347
348Returns:
349  An object of the form:
350
351    { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
352      #
353      #
354      #
355      # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
356      #
357      # **JSON Example**
358      #
359      # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
360      #
361      # **YAML Example**
362      #
363      # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
364      #
365      #
366      #
367      # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
368    "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
369      { # 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.
370          #
371          # 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.
372          #
373          # Example Policy with multiple AuditConfigs:
374          #
375          # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
376          #
377          # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
378        "exemptedMembers": [
379          "A String",
380        ],
381        "auditLogConfigs": [ # The configuration for logging of each type of permission.
382          { # Provides the configuration for logging a type of permissions. Example:
383              #
384              # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
385              #
386              # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
387            "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
388              "A String",
389            ],
390            "logType": "A String", # The log type that this config enables.
391          },
392        ],
393        "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.
394      },
395    ],
396    "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
397      { # A rule to be applied in a Policy.
398        "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
399          { # Specifies what kind of log the caller must write
400            "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
401                #
402                # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
403                #
404                # Field names correspond to IAM request parameters and field values are their respective values.
405                #
406                # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
407                #
408                # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
409                #
410                # At this time we do not support multiple field names (though this may be supported in the future).
411              "field": "A String", # The field value to attribute.
412              "metric": "A String", # The metric to update.
413            },
414            "dataAccess": { # Write a Data Access (Gin) log # Data access options.
415              "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
416                  #
417                  # NOTE: Logging to Gin in a fail-closed manner is currently unsupported while work is being done to satisfy the requirements of go/345. Currently, setting LOG_FAIL_CLOSED mode will have no effect, but still exists because there is active work being done to support it (b/115874152).
418            },
419            "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
420              "logName": "A String", # The log_name to populate in the Cloud Audit Record.
421              "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
422                "permissionType": "A String", # The type of the permission that was checked.
423              },
424            },
425          },
426        ],
427        "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
428          "A String",
429        ],
430        "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
431          "A String",
432        ],
433        "action": "A String", # Required
434        "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
435          "A String",
436        ],
437        "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
438          { # A condition to be met.
439            "iam": "A String", # Trusted attributes supplied by the IAM system.
440            "svc": "A String", # Trusted attributes discharged by the service.
441            "value": "A String", # DEPRECATED. Use 'values' instead.
442            "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
443            "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
444              "A String",
445            ],
446            "op": "A String", # An operator to apply the subject with.
447          },
448        ],
449        "description": "A String", # Human-readable description of the rule.
450      },
451    ],
452    "version": 42, # Deprecated.
453    "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.
454        #
455        # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
456    "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
457      { # Associates `members` with a `role`.
458        "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
459        "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
460            #
461            # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
462            #
463            # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
464            #
465            # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
466            #
467            #
468            #
469            # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
470            #
471            # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
472            #
473            #
474            #
475            # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
476          "A String",
477        ],
478        "condition": { # Represents an expression text. Example: # Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
479            #
480            # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
481          "title": "A String", # An 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.
482          "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
483              #
484              # The application context of the containing message determines which well-known feature set of CEL is supported.
485          "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
486          "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
487        },
488      },
489    ],
490    "iamOwned": True or False,
491  }</pre>
492</div>
493
494<div class="method">
495    <code class="details" id="insert">insert(project, body, createPolicy=None, preview=None)</code>
496  <pre>Creates a deployment and all of the resources described by the deployment manifest.
497
498Args:
499  project: string, The project ID for this request. (required)
500  body: object, The request body. (required)
501    The object takes the form of:
502
503{
504    "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format.
505    "description": "A String", # An optional user-provided description of the deployment.
506    "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
507      {
508        "value": "A String",
509        "key": "A String",
510      },
511    ],
512    "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
513      "labels": [ # Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
514        {
515          "value": "A String",
516          "key": "A String",
517        },
518      ],
519      "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied.
520      "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment.
521    },
522    "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed.
523    "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format.
524    "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.
525        #
526        # 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.
527    "operation": { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) # Output only. The Operation that most recently ran, or is currently running, on this deployment.
528      "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
529      "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
530      "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
531      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
532      "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
533      "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
534      "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
535      "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
536      "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.
537      "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.
538      "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
539      "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
540      "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
541      "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
542        {
543          "message": "A String", # [Output Only] A human-readable description of the warning code.
544          "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.
545          "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
546              # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
547            {
548              "value": "A String", # [Output Only] A warning data value corresponding to the key.
549              "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).
550            },
551          ],
552        },
553      ],
554      "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
555      "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
556      "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
557      "name": "A String", # [Output Only] Name of the resource.
558      "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
559      "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
560        "errors": [ # [Output Only] The array of errors encountered while processing this operation.
561          {
562            "message": "A String", # [Output Only] An optional, human-readable error message.
563            "code": "A String", # [Output Only] The error type identifier for this error.
564            "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
565          },
566        ],
567      },
568      "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
569      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
570      "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.
571    },
572    "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
573      "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.
574        {
575          "content": "A String", # The contents of the file.
576          "name": "A String", # The name of the file.
577        },
578      ],
579      "config": { # The configuration to use for this deployment.
580        "content": "A String", # The contents of the file.
581      },
582    },
583    "id": "A String",
584    "selfLink": "A String", # Output only. Server defined URL for the resource.
585    "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.
586  }
587
588  createPolicy: string, Sets the policy to use for creating new resources.
589    Allowed values
590      ACQUIRE -
591      CREATE -
592      CREATE_OR_ACQUIRE -
593  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.
594
595Returns:
596  An object of the form:
597
598    { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
599    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
600    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
601    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
602    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
603    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
604    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
605    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
606    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
607    "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.
608    "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.
609    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
610    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
611    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
612    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
613      {
614        "message": "A String", # [Output Only] A human-readable description of the warning code.
615        "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.
616        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
617            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
618          {
619            "value": "A String", # [Output Only] A warning data value corresponding to the key.
620            "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).
621          },
622        ],
623      },
624    ],
625    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
626    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
627    "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
628    "name": "A String", # [Output Only] Name of the resource.
629    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
630    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
631      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
632        {
633          "message": "A String", # [Output Only] An optional, human-readable error message.
634          "code": "A String", # [Output Only] The error type identifier for this error.
635          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
636        },
637      ],
638    },
639    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
640    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
641    "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.
642  }</pre>
643</div>
644
645<div class="method">
646    <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
647  <pre>Lists all deployments for a given project.
648
649Args:
650  project: string, The project ID for this request. (required)
651  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
652
653You 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.
654
655Currently, only sorting by name or creationTimestamp desc is supported.
656  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)
657  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.
658  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
659
660For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
661
662You 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.
663
664To 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).
665
666Returns:
667  An object of the form:
668
669    { # A response containing a partial list of deployments and a page token used to build the next request if the request has been truncated.
670    "nextPageToken": "A String", # Output only. A token used to continue a truncated list request.
671    "deployments": [ # Output only. The deployments contained in this response.
672      {
673          "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format.
674          "description": "A String", # An optional user-provided description of the deployment.
675          "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
676            {
677              "value": "A String",
678              "key": "A String",
679            },
680          ],
681          "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
682            "labels": [ # Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
683              {
684                "value": "A String",
685                "key": "A String",
686              },
687            ],
688            "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied.
689            "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment.
690          },
691          "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed.
692          "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format.
693          "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.
694              #
695              # 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.
696          "operation": { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) # Output only. The Operation that most recently ran, or is currently running, on this deployment.
697            "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
698            "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
699            "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
700            "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
701            "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
702            "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
703            "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
704            "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
705            "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.
706            "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.
707            "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
708            "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
709            "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
710            "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
711              {
712                "message": "A String", # [Output Only] A human-readable description of the warning code.
713                "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.
714                "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
715                    # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
716                  {
717                    "value": "A String", # [Output Only] A warning data value corresponding to the key.
718                    "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).
719                  },
720                ],
721              },
722            ],
723            "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
724            "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
725            "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
726            "name": "A String", # [Output Only] Name of the resource.
727            "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
728            "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
729              "errors": [ # [Output Only] The array of errors encountered while processing this operation.
730                {
731                  "message": "A String", # [Output Only] An optional, human-readable error message.
732                  "code": "A String", # [Output Only] The error type identifier for this error.
733                  "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
734                },
735              ],
736            },
737            "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
738            "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
739            "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.
740          },
741          "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
742            "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.
743              {
744                "content": "A String", # The contents of the file.
745                "name": "A String", # The name of the file.
746              },
747            ],
748            "config": { # The configuration to use for this deployment.
749              "content": "A String", # The contents of the file.
750            },
751          },
752          "id": "A String",
753          "selfLink": "A String", # Output only. Server defined URL for the resource.
754          "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.
755        },
756    ],
757  }</pre>
758</div>
759
760<div class="method">
761    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
762  <pre>Retrieves the next page of results.
763
764Args:
765  previous_request: The request for the previous page. (required)
766  previous_response: The response from the request for the previous page. (required)
767
768Returns:
769  A request object that you can call 'execute()' on to request the next
770  page. Returns None if there are no more items in the collection.
771    </pre>
772</div>
773
774<div class="method">
775    <code class="details" id="patch">patch(project, deployment, body, deletePolicy=None, createPolicy=None, preview=None)</code>
776  <pre>Updates a deployment and all of the resources described by the deployment manifest. This method supports patch semantics.
777
778Args:
779  project: string, The project ID for this request. (required)
780  deployment: string, The name of the deployment for this request. (required)
781  body: object, The request body. (required)
782    The object takes the form of:
783
784{
785    "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format.
786    "description": "A String", # An optional user-provided description of the deployment.
787    "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
788      {
789        "value": "A String",
790        "key": "A String",
791      },
792    ],
793    "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
794      "labels": [ # Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
795        {
796          "value": "A String",
797          "key": "A String",
798        },
799      ],
800      "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied.
801      "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment.
802    },
803    "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed.
804    "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format.
805    "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.
806        #
807        # 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.
808    "operation": { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) # Output only. The Operation that most recently ran, or is currently running, on this deployment.
809      "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
810      "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
811      "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
812      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
813      "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
814      "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
815      "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
816      "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
817      "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.
818      "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.
819      "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
820      "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
821      "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
822      "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
823        {
824          "message": "A String", # [Output Only] A human-readable description of the warning code.
825          "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.
826          "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
827              # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
828            {
829              "value": "A String", # [Output Only] A warning data value corresponding to the key.
830              "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).
831            },
832          ],
833        },
834      ],
835      "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
836      "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
837      "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
838      "name": "A String", # [Output Only] Name of the resource.
839      "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
840      "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
841        "errors": [ # [Output Only] The array of errors encountered while processing this operation.
842          {
843            "message": "A String", # [Output Only] An optional, human-readable error message.
844            "code": "A String", # [Output Only] The error type identifier for this error.
845            "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
846          },
847        ],
848      },
849      "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
850      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
851      "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.
852    },
853    "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
854      "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.
855        {
856          "content": "A String", # The contents of the file.
857          "name": "A String", # The name of the file.
858        },
859      ],
860      "config": { # The configuration to use for this deployment.
861        "content": "A String", # The contents of the file.
862      },
863    },
864    "id": "A String",
865    "selfLink": "A String", # Output only. Server defined URL for the resource.
866    "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.
867  }
868
869  deletePolicy: string, Sets the policy to use for deleting resources.
870    Allowed values
871      ABANDON -
872      DELETE -
873  createPolicy: string, Sets the policy to use for creating new resources.
874    Allowed values
875      ACQUIRE -
876      CREATE -
877      CREATE_OR_ACQUIRE -
878  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.
879
880Returns:
881  An object of the form:
882
883    { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
884    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
885    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
886    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
887    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
888    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
889    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
890    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
891    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
892    "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.
893    "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.
894    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
895    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
896    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
897    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
898      {
899        "message": "A String", # [Output Only] A human-readable description of the warning code.
900        "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.
901        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
902            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
903          {
904            "value": "A String", # [Output Only] A warning data value corresponding to the key.
905            "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).
906          },
907        ],
908      },
909    ],
910    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
911    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
912    "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
913    "name": "A String", # [Output Only] Name of the resource.
914    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
915    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
916      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
917        {
918          "message": "A String", # [Output Only] An optional, human-readable error message.
919          "code": "A String", # [Output Only] The error type identifier for this error.
920          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
921        },
922      ],
923    },
924    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
925    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
926    "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.
927  }</pre>
928</div>
929
930<div class="method">
931    <code class="details" id="setIamPolicy">setIamPolicy(project, resource, body)</code>
932  <pre>Sets the access control policy on the specified resource. Replaces any existing policy.
933
934Args:
935  project: string, Project ID for this request. (required)
936  resource: string, Name or id of the resource for this request. (required)
937  body: object, The request body. (required)
938    The object takes the form of:
939
940{
941    "policy": { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources. # 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.
942        #
943        #
944        #
945        # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
946        #
947        # **JSON Example**
948        #
949        # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
950        #
951        # **YAML Example**
952        #
953        # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
954        #
955        #
956        #
957        # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
958      "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
959        { # 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.
960            #
961            # 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.
962            #
963            # Example Policy with multiple AuditConfigs:
964            #
965            # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
966            #
967            # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
968          "exemptedMembers": [
969            "A String",
970          ],
971          "auditLogConfigs": [ # The configuration for logging of each type of permission.
972            { # Provides the configuration for logging a type of permissions. Example:
973                #
974                # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
975                #
976                # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
977              "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
978                "A String",
979              ],
980              "logType": "A String", # The log type that this config enables.
981            },
982          ],
983          "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.
984        },
985      ],
986      "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
987        { # A rule to be applied in a Policy.
988          "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
989            { # Specifies what kind of log the caller must write
990              "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
991                  #
992                  # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
993                  #
994                  # Field names correspond to IAM request parameters and field values are their respective values.
995                  #
996                  # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
997                  #
998                  # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
999                  #
1000                  # At this time we do not support multiple field names (though this may be supported in the future).
1001                "field": "A String", # The field value to attribute.
1002                "metric": "A String", # The metric to update.
1003              },
1004              "dataAccess": { # Write a Data Access (Gin) log # Data access options.
1005                "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
1006                    #
1007                    # NOTE: Logging to Gin in a fail-closed manner is currently unsupported while work is being done to satisfy the requirements of go/345. Currently, setting LOG_FAIL_CLOSED mode will have no effect, but still exists because there is active work being done to support it (b/115874152).
1008              },
1009              "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
1010                "logName": "A String", # The log_name to populate in the Cloud Audit Record.
1011                "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
1012                  "permissionType": "A String", # The type of the permission that was checked.
1013                },
1014              },
1015            },
1016          ],
1017          "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1018            "A String",
1019          ],
1020          "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
1021            "A String",
1022          ],
1023          "action": "A String", # Required
1024          "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
1025            "A String",
1026          ],
1027          "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
1028            { # A condition to be met.
1029              "iam": "A String", # Trusted attributes supplied by the IAM system.
1030              "svc": "A String", # Trusted attributes discharged by the service.
1031              "value": "A String", # DEPRECATED. Use 'values' instead.
1032              "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1033              "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
1034                "A String",
1035              ],
1036              "op": "A String", # An operator to apply the subject with.
1037            },
1038          ],
1039          "description": "A String", # Human-readable description of the rule.
1040        },
1041      ],
1042      "version": 42, # Deprecated.
1043      "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.
1044          #
1045          # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
1046      "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
1047        { # Associates `members` with a `role`.
1048          "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1049          "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1050              #
1051              # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1052              #
1053              # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1054              #
1055              # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
1056              #
1057              #
1058              #
1059              # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1060              #
1061              # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1062              #
1063              #
1064              #
1065              # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
1066            "A String",
1067          ],
1068          "condition": { # Represents an expression text. Example: # Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
1069              #
1070              # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
1071            "title": "A String", # An 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.
1072            "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
1073                #
1074                # The application context of the containing message determines which well-known feature set of CEL is supported.
1075            "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1076            "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1077          },
1078        },
1079      ],
1080      "iamOwned": True or False,
1081    },
1082    "bindings": [ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify bindings.
1083      { # Associates `members` with a `role`.
1084        "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1085        "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1086            #
1087            # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1088            #
1089            # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1090            #
1091            # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
1092            #
1093            #
1094            #
1095            # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1096            #
1097            # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1098            #
1099            #
1100            #
1101            # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
1102          "A String",
1103        ],
1104        "condition": { # Represents an expression text. Example: # Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
1105            #
1106            # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
1107          "title": "A String", # An 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.
1108          "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
1109              #
1110              # The application context of the containing message determines which well-known feature set of CEL is supported.
1111          "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1112          "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1113        },
1114      },
1115    ],
1116    "etag": "A String", # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.
1117  }
1118
1119
1120Returns:
1121  An object of the form:
1122
1123    { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
1124      #
1125      #
1126      #
1127      # A `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.
1128      #
1129      # **JSON Example**
1130      #
1131      # { "bindings": [ { "role": "roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { "role": "roles/viewer", "members": ["user:sean@example.com"] } ] }
1132      #
1133      # **YAML Example**
1134      #
1135      # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer
1136      #
1137      #
1138      #
1139      # For a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).
1140    "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
1141      { # 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.
1142          #
1143          # 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.
1144          #
1145          # Example Policy with multiple AuditConfigs:
1146          #
1147          # { "audit_configs": [ { "service": "allServices" "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", }, { "log_type": "ADMIN_READ", } ] }, { "service": "fooservice.googleapis.com" "audit_log_configs": [ { "log_type": "DATA_READ", }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] } ] } ] }
1148          #
1149          # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.com from DATA_WRITE logging.
1150        "exemptedMembers": [
1151          "A String",
1152        ],
1153        "auditLogConfigs": [ # The configuration for logging of each type of permission.
1154          { # Provides the configuration for logging a type of permissions. Example:
1155              #
1156              # { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] }, { "log_type": "DATA_WRITE", } ] }
1157              #
1158              # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.com from DATA_READ logging.
1159            "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1160              "A String",
1161            ],
1162            "logType": "A String", # The log type that this config enables.
1163          },
1164        ],
1165        "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.
1166      },
1167    ],
1168    "rules": [ # If more than one rule is specified, the rules are applied in the following manner: - All matching LOG rules are always applied. - If any DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if one or more matching rule requires logging. - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if one or more matching rule requires logging. - Otherwise, if no rule applies, permission is denied.
1169      { # A rule to be applied in a Policy.
1170        "logConfigs": [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1171          { # Specifies what kind of log the caller must write
1172            "counter": { # Increment a streamz counter with the specified metric and field names. # Counter options.
1173                #
1174                # Metric names should start with a '/', generally be lowercase-only, and end in "_count". Field names should not contain an initial slash. The actual exported metric names will have "/iam/policy" prepended.
1175                #
1176                # Field names correspond to IAM request parameters and field values are their respective values.
1177                #
1178                # Supported field names: - "authority", which is "[token]" if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - "iam_principal", a representation of IAMContext.principal even if a token or authority selector is present; or - "" (empty string), resulting in a counter with no fields.
1179                #
1180                # Examples: counter { metric: "/debug_access_count" field: "iam_principal" } ==> increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
1181                #
1182                # At this time we do not support multiple field names (though this may be supported in the future).
1183              "field": "A String", # The field value to attribute.
1184              "metric": "A String", # The metric to update.
1185            },
1186            "dataAccess": { # Write a Data Access (Gin) log # Data access options.
1187              "logMode": "A String", # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
1188                  #
1189                  # NOTE: Logging to Gin in a fail-closed manner is currently unsupported while work is being done to satisfy the requirements of go/345. Currently, setting LOG_FAIL_CLOSED mode will have no effect, but still exists because there is active work being done to support it (b/115874152).
1190            },
1191            "cloudAudit": { # Write a Cloud Audit log # Cloud audit options.
1192              "logName": "A String", # The log_name to populate in the Cloud Audit Record.
1193              "authorizationLoggingOptions": { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
1194                "permissionType": "A String", # The type of the permission that was checked.
1195              },
1196            },
1197          },
1198        ],
1199        "notIns": [ # If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1200          "A String",
1201        ],
1202        "ins": [ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
1203          "A String",
1204        ],
1205        "action": "A String", # Required
1206        "permissions": [ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
1207          "A String",
1208        ],
1209        "conditions": [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
1210          { # A condition to be met.
1211            "iam": "A String", # Trusted attributes supplied by the IAM system.
1212            "svc": "A String", # Trusted attributes discharged by the service.
1213            "value": "A String", # DEPRECATED. Use 'values' instead.
1214            "sys": "A String", # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1215            "values": [ # The objects of the condition. This is mutually exclusive with 'value'.
1216              "A String",
1217            ],
1218            "op": "A String", # An operator to apply the subject with.
1219          },
1220        ],
1221        "description": "A String", # Human-readable description of the rule.
1222      },
1223    ],
1224    "version": 42, # Deprecated.
1225    "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.
1226        #
1227        # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
1228    "bindings": [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
1229      { # Associates `members` with a `role`.
1230        "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1231        "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1232            #
1233            # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1234            #
1235            # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1236            #
1237            # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
1238            #
1239            #
1240            #
1241            # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1242            #
1243            # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1244            #
1245            #
1246            #
1247            # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
1248          "A String",
1249        ],
1250        "condition": { # Represents an expression text. Example: # Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
1251            #
1252            # title: "User account presence" description: "Determines whether the request has a user account" expression: "size(request.user) > 0"
1253          "title": "A String", # An 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.
1254          "expression": "A String", # Textual representation of an expression in Common Expression Language syntax.
1255              #
1256              # The application context of the containing message determines which well-known feature set of CEL is supported.
1257          "description": "A String", # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1258          "location": "A String", # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1259        },
1260      },
1261    ],
1262    "iamOwned": True or False,
1263  }</pre>
1264</div>
1265
1266<div class="method">
1267    <code class="details" id="stop">stop(project, deployment, body)</code>
1268  <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.
1269
1270Args:
1271  project: string, The project ID for this request. (required)
1272  deployment: string, The name of the deployment for this request. (required)
1273  body: object, The request body. (required)
1274    The object takes the form of:
1275
1276{
1277    "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).
1278        #
1279        # 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.
1280  }
1281
1282
1283Returns:
1284  An object of the form:
1285
1286    { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
1287    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1288    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1289    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
1290    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1291    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1292    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1293    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1294    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1295    "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.
1296    "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.
1297    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1298    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1299    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1300    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1301      {
1302        "message": "A String", # [Output Only] A human-readable description of the warning code.
1303        "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.
1304        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1305            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1306          {
1307            "value": "A String", # [Output Only] A warning data value corresponding to the key.
1308            "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).
1309          },
1310        ],
1311      },
1312    ],
1313    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1314    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1315    "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1316    "name": "A String", # [Output Only] Name of the resource.
1317    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1318    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1319      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1320        {
1321          "message": "A String", # [Output Only] An optional, human-readable error message.
1322          "code": "A String", # [Output Only] The error type identifier for this error.
1323          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1324        },
1325      ],
1326    },
1327    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1328    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1329    "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.
1330  }</pre>
1331</div>
1332
1333<div class="method">
1334    <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body)</code>
1335  <pre>Returns permissions that a caller has on the specified resource.
1336
1337Args:
1338  project: string, Project ID for this request. (required)
1339  resource: string, Name or id of the resource for this request. (required)
1340  body: object, The request body. (required)
1341    The object takes the form of:
1342
1343{
1344    "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
1345      "A String",
1346    ],
1347  }
1348
1349
1350Returns:
1351  An object of the form:
1352
1353    {
1354    "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1355      "A String",
1356    ],
1357  }</pre>
1358</div>
1359
1360<div class="method">
1361    <code class="details" id="update">update(project, deployment, body, deletePolicy=None, createPolicy=None, preview=None)</code>
1362  <pre>Updates a deployment and all of the resources described by the deployment manifest.
1363
1364Args:
1365  project: string, The project ID for this request. (required)
1366  deployment: string, The name of the deployment for this request. (required)
1367  body: object, The request body. (required)
1368    The object takes the form of:
1369
1370{
1371    "updateTime": "A String", # Output only. Update timestamp in RFC3339 text format.
1372    "description": "A String", # An optional user-provided description of the deployment.
1373    "labels": [ # Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
1374      {
1375        "value": "A String",
1376        "key": "A String",
1377      },
1378    ],
1379    "update": { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
1380      "labels": [ # Output only. Map of labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
1381        {
1382          "value": "A String",
1383          "key": "A String",
1384        },
1385      ],
1386      "description": "A String", # Output only. An optional user-provided description of the deployment after the current update has been applied.
1387      "manifest": "A String", # Output only. URL of the manifest representing the update configuration of this deployment.
1388    },
1389    "manifest": "A String", # Output only. URL of the manifest representing the last manifest that was successfully deployed.
1390    "insertTime": "A String", # Output only. Creation timestamp in RFC3339 text format.
1391    "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.
1392        #
1393        # 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.
1394    "operation": { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) # Output only. The Operation that most recently ran, or is currently running, on this deployment.
1395      "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1396      "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1397      "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
1398      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1399      "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1400      "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1401      "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1402      "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1403      "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.
1404      "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.
1405      "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1406      "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1407      "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1408      "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1409        {
1410          "message": "A String", # [Output Only] A human-readable description of the warning code.
1411          "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.
1412          "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1413              # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1414            {
1415              "value": "A String", # [Output Only] A warning data value corresponding to the key.
1416              "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).
1417            },
1418          ],
1419        },
1420      ],
1421      "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1422      "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1423      "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1424      "name": "A String", # [Output Only] Name of the resource.
1425      "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1426      "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1427        "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1428          {
1429            "message": "A String", # [Output Only] An optional, human-readable error message.
1430            "code": "A String", # [Output Only] The error type identifier for this error.
1431            "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1432          },
1433        ],
1434      },
1435      "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1436      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1437      "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.
1438    },
1439    "target": { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
1440      "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.
1441        {
1442          "content": "A String", # The contents of the file.
1443          "name": "A String", # The name of the file.
1444        },
1445      ],
1446      "config": { # The configuration to use for this deployment.
1447        "content": "A String", # The contents of the file.
1448      },
1449    },
1450    "id": "A String",
1451    "selfLink": "A String", # Output only. Server defined URL for the resource.
1452    "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.
1453  }
1454
1455  deletePolicy: string, Sets the policy to use for deleting resources.
1456    Allowed values
1457      ABANDON -
1458      DELETE -
1459  createPolicy: string, Sets the policy to use for creating new resources.
1460    Allowed values
1461      ACQUIRE -
1462      CREATE -
1463      CREATE_OR_ACQUIRE -
1464  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.
1465
1466Returns:
1467  An object of the form:
1468
1469    { # An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
1470    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1471    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1472    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
1473    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1474    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1475    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1476    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1477    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1478    "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.
1479    "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.
1480    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1481    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1482    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1483    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1484      {
1485        "message": "A String", # [Output Only] A human-readable description of the warning code.
1486        "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.
1487        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1488            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1489          {
1490            "value": "A String", # [Output Only] A warning data value corresponding to the key.
1491            "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).
1492          },
1493        ],
1494      },
1495    ],
1496    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1497    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1498    "kind": "deploymentmanager#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1499    "name": "A String", # [Output Only] Name of the resource.
1500    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
1501    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1502      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1503        {
1504          "message": "A String", # [Output Only] An optional, human-readable error message.
1505          "code": "A String", # [Output Only] The error type identifier for this error.
1506          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1507        },
1508      ],
1509    },
1510    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1511    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1512    "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.
1513  }</pre>
1514</div>
1515
1516</body></html>