blob: 021ab5291f40f54a0dceadae6690611ac60769c8 [file] [log] [blame]
Takashi Matsuo06694102015-09-11 13:55:40 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="deploymentmanager_v2.html">Google Cloud Deployment Manager API</a> . <a href="deploymentmanager_v2.deployments.html">deployments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#cancelPreview">cancelPreview(project, deployment, body=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -070079<p class="firstline">Cancels and removes the preview currently associated with the deployment.</p>
80<p class="toc_element">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080081 <code><a href="#delete">delete(project, deployment, deletePolicy=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -070082<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">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -070087 <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">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#insert">insert(project, body=None, createPolicy=None, preview=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -070091<p class="firstline">Creates a deployment and all of the resources described by the deployment manifest.</p>
92<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -070094<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">
Bu Sun Kim65020912020-05-20 12:08:20 -070099 <code><a href="#patch">patch(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700100<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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setIamPolicy">setIamPolicy(project, resource, body=None)</a></code></p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700103<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#stop">stop(project, deployment, body=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700106<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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body=None)</a></code></p>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700109<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
110<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 <code><a href="#update">update(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700112<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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 <code class="details" id="cancelPreview">cancelPreview(project, deployment, body=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -0700116 <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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700122 The object takes the form of:
123
124{
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;fingerprint&quot;: &quot;A String&quot;, # 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).
Takashi Matsuo06694102015-09-11 13:55:40 -0700126 #
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800127 # 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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700128 }
129
130
131Returns:
132 An object of the form:
133
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700134 { # 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 ==)
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
136 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
137 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
138 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
139 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
140 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -0700141 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
143 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
144 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -0700145 },
146 ],
147 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
149 &quot;httpErrorStatusCode&quot;: 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.
150 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
151 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
152 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
153 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
154 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
155 &quot;progress&quot;: 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.
156 &quot;region&quot;: &quot;A String&quot;, # [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.
157 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
158 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
159 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
160 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
161 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
162 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
163 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
164 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
165 {
166 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
167 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
168 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
169 {
170 &quot;key&quot;: &quot;A String&quot;, # [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).
171 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
172 },
173 ],
174 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
175 },
176 ],
177 &quot;zone&quot;: &quot;A String&quot;, # [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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700178 }</pre>
179</div>
180
181<div class="method">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800182 <code class="details" id="delete">delete(project, deployment, deletePolicy=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -0700183 <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)
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800188 deletePolicy: string, Sets the policy to use for deleting resources.
189 Allowed values
190 ABANDON -
191 DELETE -
Takashi Matsuo06694102015-09-11 13:55:40 -0700192
193Returns:
194 An object of the form:
195
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 { # 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 ==)
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
198 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
199 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
200 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
201 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
202 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -0700203 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
205 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
206 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -0700207 },
208 ],
209 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
211 &quot;httpErrorStatusCode&quot;: 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.
212 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
213 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
214 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
215 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
216 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
217 &quot;progress&quot;: 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.
218 &quot;region&quot;: &quot;A String&quot;, # [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.
219 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
220 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
221 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
222 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
223 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
224 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
225 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
226 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
227 {
228 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
229 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
230 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
231 {
232 &quot;key&quot;: &quot;A String&quot;, # [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).
233 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
234 },
235 ],
236 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
237 },
238 ],
239 &quot;zone&quot;: &quot;A String&quot;, # [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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700240 }</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 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
256 &quot;fingerprint&quot;: &quot;A String&quot;, # 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.
257 #
258 # 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.
259 &quot;id&quot;: &quot;A String&quot;,
260 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
261 &quot;labels&quot;: [ # 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])?)?
262 {
263 &quot;key&quot;: &quot;A String&quot;,
264 &quot;value&quot;: &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700265 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 ],
267 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed.
268 &quot;name&quot;: &quot;A String&quot;, # 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.
269 &quot;operation&quot;: { # 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.
270 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
271 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
272 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
273 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
274 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
275 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -0700276 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
278 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
279 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -0700280 },
281 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 },
283 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
284 &quot;httpErrorStatusCode&quot;: 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.
285 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
286 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
287 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
288 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
289 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
290 &quot;progress&quot;: 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.
291 &quot;region&quot;: &quot;A String&quot;, # [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.
292 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
293 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
294 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
295 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
296 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
297 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
298 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
299 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
300 {
301 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
302 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
303 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
Takashi Matsuo06694102015-09-11 13:55:40 -0700304 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &quot;key&quot;: &quot;A String&quot;, # [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).
306 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Takashi Matsuo06694102015-09-11 13:55:40 -0700307 },
308 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700309 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Takashi Matsuo06694102015-09-11 13:55:40 -0700310 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 ],
312 &quot;zone&quot;: &quot;A String&quot;, # [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.
313 },
314 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
315 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
316 &quot;config&quot;: { # The configuration to use for this deployment.
317 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
Takashi Matsuo06694102015-09-11 13:55:40 -0700318 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700319 &quot;imports&quot;: [ # 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.
320 {
321 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
322 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
Takashi Matsuo06694102015-09-11 13:55:40 -0700323 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 ],
325 },
326 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
327 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
328 &quot;labels&quot;: [ # 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])?)?
329 {
330 &quot;key&quot;: &quot;A String&quot;,
331 &quot;value&quot;: &quot;A String&quot;,
332 },
333 ],
334 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
335 },
336 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
337 }</pre>
Takashi Matsuo06694102015-09-11 13:55:40 -0700338</div>
339
340<div class="method">
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700341 <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)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700346 resource: string, Name or id of the resource for this request. (required)
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700347
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 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700355 # 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.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700356 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700357 # **JSON Example**
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700358 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 # { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/owner&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-other-app@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/viewer&quot;, &quot;members&quot;: [&quot;user:sean@example.com&quot;] } ] }
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700360 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 # **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 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 # For a description of IAM and its features, see the [IAM developer&#x27;s guide](https://cloud.google.com/iam/docs).
368 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400369 { # 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400370 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700371 # 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.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400372 #
373 # Example Policy with multiple AuditConfigs:
374 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 # { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot; &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:foo@gmail.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot;, } ] }, { &quot;service&quot;: &quot;fooservice.googleapis.com&quot; &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:bar@gmail.com&quot; ] } ] } ] }
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400376 #
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700378 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400379 { # Provides the configuration for logging a type of permissions. Example:
380 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700381 # { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:foo@gmail.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, } ] }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400382 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting foo@gmail.com from DATA_READ logging.
384 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
385 &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800386 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700387 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800388 },
389 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700390 &quot;exemptedMembers&quot;: [
391 &quot;A String&quot;,
392 ],
393 &quot;service&quot;: &quot;A String&quot;, # 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.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700394 },
395 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700397 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700398 &quot;condition&quot;: { # 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.
399 #
400 # title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot;
401 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
402 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
403 #
404 # The application context of the containing message determines which well-known feature set of CEL is supported.
405 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
406 &quot;title&quot;: &quot;A String&quot;, # 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.
407 },
408 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700409 #
410 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
411 #
412 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
413 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700414 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700415 #
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800416 #
417 #
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700418 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
419 #
420 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
421 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700422 #
423 #
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700424 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 &quot;A String&quot;,
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700426 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700428 },
429 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 &quot;etag&quot;: &quot;A String&quot;, # `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.
431 #
432 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
433 &quot;iamOwned&quot;: True or False,
434 &quot;rules&quot;: [ # 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.
435 { # A rule to be applied in a Policy.
436 &quot;action&quot;: &quot;A String&quot;, # Required
437 &quot;conditions&quot;: [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
438 { # A condition to be met.
439 &quot;iam&quot;: &quot;A String&quot;, # Trusted attributes supplied by the IAM system.
440 &quot;op&quot;: &quot;A String&quot;, # An operator to apply the subject with.
441 &quot;svc&quot;: &quot;A String&quot;, # Trusted attributes discharged by the service.
442 &quot;sys&quot;: &quot;A String&quot;, # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
443 &quot;value&quot;: &quot;A String&quot;, # DEPRECATED. Use &#x27;values&#x27; instead.
444 &quot;values&quot;: [ # The objects of the condition. This is mutually exclusive with &#x27;value&#x27;.
445 &quot;A String&quot;,
446 ],
447 },
448 ],
449 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of the rule.
450 &quot;ins&quot;: [ # If one or more &#x27;in&#x27; clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
451 &quot;A String&quot;,
452 ],
453 &quot;logConfigs&quot;: [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
454 { # Specifies what kind of log the caller must write
455 &quot;cloudAudit&quot;: { # Write a Cloud Audit log # Cloud audit options.
456 &quot;authorizationLoggingOptions&quot;: { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
457 &quot;permissionType&quot;: &quot;A String&quot;, # The type of the permission that was checked.
458 },
459 &quot;logName&quot;: &quot;A String&quot;, # The log_name to populate in the Cloud Audit Record.
460 },
461 &quot;counter&quot;: { # Increment a streamz counter with the specified metric and field names. # Counter options.
462 #
463 # Metric names should start with a &#x27;/&#x27;, generally be lowercase-only, and end in &quot;_count&quot;. Field names should not contain an initial slash. The actual exported metric names will have &quot;/iam/policy&quot; prepended.
464 #
465 # Field names correspond to IAM request parameters and field values are their respective values.
466 #
467 # Supported field names: - &quot;authority&quot;, which is &quot;[token]&quot; if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - &quot;iam_principal&quot;, a representation of IAMContext.principal even if a token or authority selector is present; or - &quot;&quot; (empty string), resulting in a counter with no fields.
468 #
469 # Examples: counter { metric: &quot;/debug_access_count&quot; field: &quot;iam_principal&quot; } ==&gt; increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
470 #
471 # At this time we do not support multiple field names (though this may be supported in the future).
472 &quot;field&quot;: &quot;A String&quot;, # The field value to attribute.
473 &quot;metric&quot;: &quot;A String&quot;, # The metric to update.
474 },
475 &quot;dataAccess&quot;: { # Write a Data Access (Gin) log # Data access options.
476 &quot;logMode&quot;: &quot;A String&quot;, # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
477 #
478 # 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).
479 },
480 },
481 ],
482 &quot;notIns&quot;: [ # If one or more &#x27;not_in&#x27; clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
483 &quot;A String&quot;,
484 ],
485 &quot;permissions&quot;: [ # A permission is a string of form &#x27;..&#x27; (e.g., &#x27;storage.buckets.list&#x27;). A value of &#x27;*&#x27; matches all permissions, and a verb part of &#x27;*&#x27; (e.g., &#x27;storage.buckets.*&#x27;) matches all verbs.
486 &quot;A String&quot;,
487 ],
488 },
489 ],
490 &quot;version&quot;: 42, # Deprecated.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700491 }</pre>
492</div>
493
494<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700495 <code class="details" id="insert">insert(project, body=None, createPolicy=None, preview=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -0700496 <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)
Dan O'Mearadd494642020-05-01 07:42:23 -0700500 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700501 The object takes the form of:
502
503{
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
505 &quot;fingerprint&quot;: &quot;A String&quot;, # 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.
506 #
507 # 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.
508 &quot;id&quot;: &quot;A String&quot;,
509 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
510 &quot;labels&quot;: [ # 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])?)?
511 {
512 &quot;key&quot;: &quot;A String&quot;,
513 &quot;value&quot;: &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700514 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 ],
516 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed.
517 &quot;name&quot;: &quot;A String&quot;, # 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.
518 &quot;operation&quot;: { # 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.
519 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
520 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
521 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
522 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
523 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
524 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -0700525 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
527 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
528 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -0700529 },
530 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700531 },
532 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
533 &quot;httpErrorStatusCode&quot;: 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.
534 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
535 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
536 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
537 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
538 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
539 &quot;progress&quot;: 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.
540 &quot;region&quot;: &quot;A String&quot;, # [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.
541 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
542 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
543 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
544 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
545 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
546 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
547 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
548 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
549 {
550 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
551 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
552 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
Takashi Matsuo06694102015-09-11 13:55:40 -0700553 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 &quot;key&quot;: &quot;A String&quot;, # [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).
555 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Takashi Matsuo06694102015-09-11 13:55:40 -0700556 },
557 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700558 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Takashi Matsuo06694102015-09-11 13:55:40 -0700559 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 ],
561 &quot;zone&quot;: &quot;A String&quot;, # [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.
562 },
563 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
564 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
565 &quot;config&quot;: { # The configuration to use for this deployment.
566 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
Takashi Matsuo06694102015-09-11 13:55:40 -0700567 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 &quot;imports&quot;: [ # 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.
569 {
570 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
571 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
Takashi Matsuo06694102015-09-11 13:55:40 -0700572 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700573 ],
574 },
575 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
576 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
577 &quot;labels&quot;: [ # 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])?)?
578 {
579 &quot;key&quot;: &quot;A String&quot;,
580 &quot;value&quot;: &quot;A String&quot;,
581 },
582 ],
583 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
584 },
585 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
586}
Takashi Matsuo06694102015-09-11 13:55:40 -0700587
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700588 createPolicy: string, Sets the policy to use for creating new resources.
589 Allowed values
590 ACQUIRE -
591 CREATE_OR_ACQUIRE -
Bu Sun Kim65020912020-05-20 12:08:20 -0700592 preview: boolean, If set to true, creates a deployment and creates &quot;shell&quot; 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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700593
594Returns:
595 An object of the form:
596
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700597 { # 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 ==)
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
599 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
600 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
601 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
602 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
603 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -0700604 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700605 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
606 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
607 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -0700608 },
609 ],
610 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700611 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
612 &quot;httpErrorStatusCode&quot;: 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.
613 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
614 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
615 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
616 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
617 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
618 &quot;progress&quot;: 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.
619 &quot;region&quot;: &quot;A String&quot;, # [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.
620 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
621 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
622 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
623 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
624 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
625 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
626 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
627 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
628 {
629 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
630 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
631 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
632 {
633 &quot;key&quot;: &quot;A String&quot;, # [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).
634 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
635 },
636 ],
637 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
638 },
639 ],
640 &quot;zone&quot;: &quot;A String&quot;, # [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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700641 }</pre>
642</div>
643
644<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 <code class="details" id="list">list(project, filter=None, maxResults=None, orderBy=None, pageToken=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -0700646 <pre>Lists all deployments for a given project.
647
648Args:
649 project: string, The project ID for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700650 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 =, !=, &gt;, or &lt;.
Takashi Matsuo06694102015-09-11 13:55:40 -0700651
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700652For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
Takashi Matsuo06694102015-09-11 13:55:40 -0700653
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700654You 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800655
Bu Sun Kim65020912020-05-20 12:08:20 -0700656To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true).
657 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)
658 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
659
660You can also sort results in descending order based on the creation timestamp using orderBy=&quot;creationTimestamp desc&quot;. 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.
661
662Currently, only sorting by name or creationTimestamp desc is supported.
663 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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700664
665Returns:
666 An object of the form:
667
668 { # A response containing a partial list of deployments and a page token used to build the next request if the request has been truncated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 &quot;deployments&quot;: [ # Output only. The deployments contained in this response.
Takashi Matsuo06694102015-09-11 13:55:40 -0700670 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700671 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
672 &quot;fingerprint&quot;: &quot;A String&quot;, # 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.
673 #
674 # 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.
675 &quot;id&quot;: &quot;A String&quot;,
676 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
677 &quot;labels&quot;: [ # 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])?)?
678 {
679 &quot;key&quot;: &quot;A String&quot;,
680 &quot;value&quot;: &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700681 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 ],
683 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed.
684 &quot;name&quot;: &quot;A String&quot;, # 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.
685 &quot;operation&quot;: { # 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.
686 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
687 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
688 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
689 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
690 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
691 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -0700692 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700693 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
694 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
695 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -0700696 },
697 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700698 },
699 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
700 &quot;httpErrorStatusCode&quot;: 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.
701 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
702 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
703 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
704 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
705 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
706 &quot;progress&quot;: 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.
707 &quot;region&quot;: &quot;A String&quot;, # [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.
708 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
709 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
710 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
711 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
712 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
713 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
714 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
715 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
716 {
717 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
718 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
719 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
Takashi Matsuo06694102015-09-11 13:55:40 -0700720 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 &quot;key&quot;: &quot;A String&quot;, # [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).
722 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Takashi Matsuo06694102015-09-11 13:55:40 -0700723 },
724 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Takashi Matsuo06694102015-09-11 13:55:40 -0700726 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 ],
728 &quot;zone&quot;: &quot;A String&quot;, # [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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700729 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
731 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
732 &quot;config&quot;: { # The configuration to use for this deployment.
733 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
734 },
735 &quot;imports&quot;: [ # 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.
736 {
737 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
738 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
739 },
740 ],
741 },
742 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
743 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
744 &quot;labels&quot;: [ # 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])?)?
745 {
746 &quot;key&quot;: &quot;A String&quot;,
747 &quot;value&quot;: &quot;A String&quot;,
748 },
749 ],
750 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
751 },
752 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
753 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700754 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700755 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. A token used to continue a truncated list request.
Takashi Matsuo06694102015-09-11 13:55:40 -0700756 }</pre>
757</div>
758
759<div class="method">
760 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
761 <pre>Retrieves the next page of results.
762
763Args:
764 previous_request: The request for the previous page. (required)
765 previous_response: The response from the request for the previous page. (required)
766
767Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 A request object that you can call &#x27;execute()&#x27; on to request the next
Takashi Matsuo06694102015-09-11 13:55:40 -0700769 page. Returns None if there are no more items in the collection.
770 </pre>
771</div>
772
773<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 <code class="details" id="patch">patch(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -0700775 <pre>Updates a deployment and all of the resources described by the deployment manifest. This method supports patch semantics.
776
777Args:
778 project: string, The project ID for this request. (required)
779 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700780 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -0700781 The object takes the form of:
782
783{
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
785 &quot;fingerprint&quot;: &quot;A String&quot;, # 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.
786 #
787 # 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.
788 &quot;id&quot;: &quot;A String&quot;,
789 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
790 &quot;labels&quot;: [ # 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])?)?
791 {
792 &quot;key&quot;: &quot;A String&quot;,
793 &quot;value&quot;: &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -0700794 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 ],
796 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed.
797 &quot;name&quot;: &quot;A String&quot;, # 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.
798 &quot;operation&quot;: { # 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.
799 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
800 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
801 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
802 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
803 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
804 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -0700805 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700806 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
807 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
808 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -0700809 },
810 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700811 },
812 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
813 &quot;httpErrorStatusCode&quot;: 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.
814 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
815 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
816 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
817 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
818 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
819 &quot;progress&quot;: 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.
820 &quot;region&quot;: &quot;A String&quot;, # [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.
821 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
822 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
823 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
824 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
825 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
826 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
827 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
828 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
829 {
830 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
831 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
832 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
Takashi Matsuo06694102015-09-11 13:55:40 -0700833 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 &quot;key&quot;: &quot;A String&quot;, # [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).
835 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Takashi Matsuo06694102015-09-11 13:55:40 -0700836 },
837 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700838 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Takashi Matsuo06694102015-09-11 13:55:40 -0700839 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 ],
841 &quot;zone&quot;: &quot;A String&quot;, # [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.
842 },
843 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
844 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
845 &quot;config&quot;: { # The configuration to use for this deployment.
846 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
Takashi Matsuo06694102015-09-11 13:55:40 -0700847 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700848 &quot;imports&quot;: [ # 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.
849 {
850 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
851 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
Takashi Matsuo06694102015-09-11 13:55:40 -0700852 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700853 ],
854 },
855 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
856 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
857 &quot;labels&quot;: [ # 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])?)?
858 {
859 &quot;key&quot;: &quot;A String&quot;,
860 &quot;value&quot;: &quot;A String&quot;,
861 },
862 ],
863 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
864 },
865 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
866}
Takashi Matsuo06694102015-09-11 13:55:40 -0700867
Takashi Matsuo06694102015-09-11 13:55:40 -0700868 createPolicy: string, Sets the policy to use for creating new resources.
869 Allowed values
870 ACQUIRE -
871 CREATE_OR_ACQUIRE -
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 deletePolicy: string, Sets the policy to use for deleting resources.
873 Allowed values
874 ABANDON -
875 DELETE -
876 preview: boolean, If set to true, updates the deployment and creates and updates the &quot;shell&quot; 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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700877
878Returns:
879 An object of the form:
880
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881 { # 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 ==)
Bu Sun Kim65020912020-05-20 12:08:20 -0700882 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
883 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
884 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
885 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
886 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
887 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -0700888 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700889 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
890 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
891 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -0700892 },
893 ],
894 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
896 &quot;httpErrorStatusCode&quot;: 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.
897 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
898 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
899 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
900 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
901 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
902 &quot;progress&quot;: 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.
903 &quot;region&quot;: &quot;A String&quot;, # [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.
904 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
905 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
906 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
907 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
908 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
909 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
910 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
911 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
912 {
913 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
914 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
915 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
916 {
917 &quot;key&quot;: &quot;A String&quot;, # [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).
918 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
919 },
920 ],
921 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
922 },
923 ],
924 &quot;zone&quot;: &quot;A String&quot;, # [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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700925 }</pre>
926</div>
927
928<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700929 <code class="details" id="setIamPolicy">setIamPolicy(project, resource, body=None)</code>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700930 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.
931
932Args:
933 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700934 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700935 body: object, The request body.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700936 The object takes the form of:
937
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700938{
Bu Sun Kim65020912020-05-20 12:08:20 -0700939 &quot;bindings&quot;: [ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use &#x27;policy&#x27; to specify bindings.
940 { # Associates `members` with a `role`.
941 &quot;condition&quot;: { # 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.
942 #
943 # title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot;
944 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
945 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
946 #
947 # The application context of the containing message determines which well-known feature set of CEL is supported.
948 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
949 &quot;title&quot;: &quot;A String&quot;, # 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.
950 },
951 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
952 #
953 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
954 #
955 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
956 #
957 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
958 #
959 #
960 #
961 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
962 #
963 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
964 #
965 #
966 #
967 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
968 &quot;A String&quot;,
969 ],
970 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
971 },
972 ],
973 &quot;etag&quot;: &quot;A String&quot;, # Flatten Policy to create a backward compatible wire-format. Deprecated. Use &#x27;policy&#x27; to specify the etag.
974 &quot;policy&quot;: { # 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 &#x27;resource&#x27;. 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400975 #
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400976 #
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400977 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700978 # 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.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400979 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700980 # **JSON Example**
981 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700982 # { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/owner&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-other-app@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/viewer&quot;, &quot;members&quot;: [&quot;user:sean@example.com&quot;] } ] }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700983 #
984 # **YAML Example**
985 #
986 # 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
987 #
988 #
989 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700990 # For a description of IAM and its features, see the [IAM developer&#x27;s guide](https://cloud.google.com/iam/docs).
991 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700992 { # 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400993 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700994 # 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400995 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700996 # Example Policy with multiple AuditConfigs:
997 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700998 # { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot; &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:foo@gmail.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot;, } ] }, { &quot;service&quot;: &quot;fooservice.googleapis.com&quot; &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:bar@gmail.com&quot; ] } ] } ] }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700999 #
1000 # 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001001 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001002 { # Provides the configuration for logging a type of permissions. Example:
1003 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001004 # { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:foo@gmail.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, } ] }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001005 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001006 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting foo@gmail.com from DATA_READ logging.
1007 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1008 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001009 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001010 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001011 },
1012 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001013 &quot;exemptedMembers&quot;: [
1014 &quot;A String&quot;,
1015 ],
1016 &quot;service&quot;: &quot;A String&quot;, # 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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001017 },
1018 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001019 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001020 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 &quot;condition&quot;: { # 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.
1022 #
1023 # title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot;
1024 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1025 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1026 #
1027 # The application context of the containing message determines which well-known feature set of CEL is supported.
1028 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1029 &quot;title&quot;: &quot;A String&quot;, # 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.
1030 },
1031 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001032 #
1033 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1034 #
1035 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1036 #
1037 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
1038 #
1039 #
1040 #
1041 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1042 #
1043 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1044 #
1045 #
1046 #
1047 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001049 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001050 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001051 },
1052 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001053 &quot;etag&quot;: &quot;A String&quot;, # `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.
1054 #
1055 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
1056 &quot;iamOwned&quot;: True or False,
1057 &quot;rules&quot;: [ # 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.
1058 { # A rule to be applied in a Policy.
1059 &quot;action&quot;: &quot;A String&quot;, # Required
1060 &quot;conditions&quot;: [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
1061 { # A condition to be met.
1062 &quot;iam&quot;: &quot;A String&quot;, # Trusted attributes supplied by the IAM system.
1063 &quot;op&quot;: &quot;A String&quot;, # An operator to apply the subject with.
1064 &quot;svc&quot;: &quot;A String&quot;, # Trusted attributes discharged by the service.
1065 &quot;sys&quot;: &quot;A String&quot;, # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1066 &quot;value&quot;: &quot;A String&quot;, # DEPRECATED. Use &#x27;values&#x27; instead.
1067 &quot;values&quot;: [ # The objects of the condition. This is mutually exclusive with &#x27;value&#x27;.
1068 &quot;A String&quot;,
1069 ],
1070 },
1071 ],
1072 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of the rule.
1073 &quot;ins&quot;: [ # If one or more &#x27;in&#x27; clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
1074 &quot;A String&quot;,
1075 ],
1076 &quot;logConfigs&quot;: [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1077 { # Specifies what kind of log the caller must write
1078 &quot;cloudAudit&quot;: { # Write a Cloud Audit log # Cloud audit options.
1079 &quot;authorizationLoggingOptions&quot;: { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
1080 &quot;permissionType&quot;: &quot;A String&quot;, # The type of the permission that was checked.
1081 },
1082 &quot;logName&quot;: &quot;A String&quot;, # The log_name to populate in the Cloud Audit Record.
1083 },
1084 &quot;counter&quot;: { # Increment a streamz counter with the specified metric and field names. # Counter options.
1085 #
1086 # Metric names should start with a &#x27;/&#x27;, generally be lowercase-only, and end in &quot;_count&quot;. Field names should not contain an initial slash. The actual exported metric names will have &quot;/iam/policy&quot; prepended.
1087 #
1088 # Field names correspond to IAM request parameters and field values are their respective values.
1089 #
1090 # Supported field names: - &quot;authority&quot;, which is &quot;[token]&quot; if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - &quot;iam_principal&quot;, a representation of IAMContext.principal even if a token or authority selector is present; or - &quot;&quot; (empty string), resulting in a counter with no fields.
1091 #
1092 # Examples: counter { metric: &quot;/debug_access_count&quot; field: &quot;iam_principal&quot; } ==&gt; increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
1093 #
1094 # At this time we do not support multiple field names (though this may be supported in the future).
1095 &quot;field&quot;: &quot;A String&quot;, # The field value to attribute.
1096 &quot;metric&quot;: &quot;A String&quot;, # The metric to update.
1097 },
1098 &quot;dataAccess&quot;: { # Write a Data Access (Gin) log # Data access options.
1099 &quot;logMode&quot;: &quot;A String&quot;, # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
1100 #
1101 # 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).
1102 },
1103 },
1104 ],
1105 &quot;notIns&quot;: [ # If one or more &#x27;not_in&#x27; clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1106 &quot;A String&quot;,
1107 ],
1108 &quot;permissions&quot;: [ # A permission is a string of form &#x27;..&#x27; (e.g., &#x27;storage.buckets.list&#x27;). A value of &#x27;*&#x27; matches all permissions, and a verb part of &#x27;*&#x27; (e.g., &#x27;storage.buckets.*&#x27;) matches all verbs.
1109 &quot;A String&quot;,
1110 ],
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001111 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001112 ],
1113 &quot;version&quot;: 42, # Deprecated.
1114 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001115 }
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001116
1117
1118Returns:
1119 An object of the form:
1120
1121 { # Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.
1122 #
1123 #
1124 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001125 # 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.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001126 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001127 # **JSON Example**
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001128 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001129 # { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/owner&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-other-app@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/viewer&quot;, &quot;members&quot;: [&quot;user:sean@example.com&quot;] } ] }
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001130 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001131 # **YAML Example**
1132 #
1133 # 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
1134 #
1135 #
1136 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 # For a description of IAM and its features, see the [IAM developer&#x27;s guide](https://cloud.google.com/iam/docs).
1138 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001139 { # 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001140 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001141 # 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.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001142 #
1143 # Example Policy with multiple AuditConfigs:
1144 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 # { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot; &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:foo@gmail.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot;, } ] }, { &quot;service&quot;: &quot;fooservice.googleapis.com&quot; &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:bar@gmail.com&quot; ] } ] } ] }
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001146 #
1147 # 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001148 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001149 { # Provides the configuration for logging a type of permissions. Example:
1150 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001151 # { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:foo@gmail.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, } ] }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001152 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001153 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting foo@gmail.com from DATA_READ logging.
1154 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1155 &quot;A String&quot;,
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001156 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001157 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001158 },
1159 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 &quot;exemptedMembers&quot;: [
1161 &quot;A String&quot;,
1162 ],
1163 &quot;service&quot;: &quot;A String&quot;, # 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.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001164 },
1165 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001166 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. `bindings` with no members will result in an error.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001167 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001168 &quot;condition&quot;: { # 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.
1169 #
1170 # title: &quot;User account presence&quot; description: &quot;Determines whether the request has a user account&quot; expression: &quot;size(request.user) &gt; 0&quot;
1171 &quot;description&quot;: &quot;A String&quot;, # An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1172 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1173 #
1174 # The application context of the containing message determines which well-known feature set of CEL is supported.
1175 &quot;location&quot;: &quot;A String&quot;, # An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1176 &quot;title&quot;: &quot;A String&quot;, # 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.
1177 },
1178 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001179 #
1180 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1181 #
1182 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1183 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001184 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001185 #
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001186 #
1187 #
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001188 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1189 #
1190 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1191 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001192 #
1193 #
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001194 # * `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001195 &quot;A String&quot;,
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001196 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001197 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001198 },
1199 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001200 &quot;etag&quot;: &quot;A String&quot;, # `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.
1201 #
1202 # If no `etag` is provided in the call to `setIamPolicy`, then the existing policy is overwritten blindly.
1203 &quot;iamOwned&quot;: True or False,
1204 &quot;rules&quot;: [ # 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.
1205 { # A rule to be applied in a Policy.
1206 &quot;action&quot;: &quot;A String&quot;, # Required
1207 &quot;conditions&quot;: [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
1208 { # A condition to be met.
1209 &quot;iam&quot;: &quot;A String&quot;, # Trusted attributes supplied by the IAM system.
1210 &quot;op&quot;: &quot;A String&quot;, # An operator to apply the subject with.
1211 &quot;svc&quot;: &quot;A String&quot;, # Trusted attributes discharged by the service.
1212 &quot;sys&quot;: &quot;A String&quot;, # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1213 &quot;value&quot;: &quot;A String&quot;, # DEPRECATED. Use &#x27;values&#x27; instead.
1214 &quot;values&quot;: [ # The objects of the condition. This is mutually exclusive with &#x27;value&#x27;.
1215 &quot;A String&quot;,
1216 ],
1217 },
1218 ],
1219 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of the rule.
1220 &quot;ins&quot;: [ # If one or more &#x27;in&#x27; clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
1221 &quot;A String&quot;,
1222 ],
1223 &quot;logConfigs&quot;: [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1224 { # Specifies what kind of log the caller must write
1225 &quot;cloudAudit&quot;: { # Write a Cloud Audit log # Cloud audit options.
1226 &quot;authorizationLoggingOptions&quot;: { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
1227 &quot;permissionType&quot;: &quot;A String&quot;, # The type of the permission that was checked.
1228 },
1229 &quot;logName&quot;: &quot;A String&quot;, # The log_name to populate in the Cloud Audit Record.
1230 },
1231 &quot;counter&quot;: { # Increment a streamz counter with the specified metric and field names. # Counter options.
1232 #
1233 # Metric names should start with a &#x27;/&#x27;, generally be lowercase-only, and end in &quot;_count&quot;. Field names should not contain an initial slash. The actual exported metric names will have &quot;/iam/policy&quot; prepended.
1234 #
1235 # Field names correspond to IAM request parameters and field values are their respective values.
1236 #
1237 # Supported field names: - &quot;authority&quot;, which is &quot;[token]&quot; if IAMContext.token is present, otherwise the value of IAMContext.authority_selector if present, and otherwise a representation of IAMContext.principal; or - &quot;iam_principal&quot;, a representation of IAMContext.principal even if a token or authority selector is present; or - &quot;&quot; (empty string), resulting in a counter with no fields.
1238 #
1239 # Examples: counter { metric: &quot;/debug_access_count&quot; field: &quot;iam_principal&quot; } ==&gt; increment counter /iam/policy/backend_debug_access_count {iam_principal=[value of IAMContext.principal]}
1240 #
1241 # At this time we do not support multiple field names (though this may be supported in the future).
1242 &quot;field&quot;: &quot;A String&quot;, # The field value to attribute.
1243 &quot;metric&quot;: &quot;A String&quot;, # The metric to update.
1244 },
1245 &quot;dataAccess&quot;: { # Write a Data Access (Gin) log # Data access options.
1246 &quot;logMode&quot;: &quot;A String&quot;, # Whether Gin logging should happen in a fail-closed manner at the caller. This is relevant only in the LocalIAM implementation, for now.
1247 #
1248 # 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).
1249 },
1250 },
1251 ],
1252 &quot;notIns&quot;: [ # If one or more &#x27;not_in&#x27; clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1253 &quot;A String&quot;,
1254 ],
1255 &quot;permissions&quot;: [ # A permission is a string of form &#x27;..&#x27; (e.g., &#x27;storage.buckets.list&#x27;). A value of &#x27;*&#x27; matches all permissions, and a verb part of &#x27;*&#x27; (e.g., &#x27;storage.buckets.*&#x27;) matches all verbs.
1256 &quot;A String&quot;,
1257 ],
1258 },
1259 ],
1260 &quot;version&quot;: 42, # Deprecated.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001261 }</pre>
1262</div>
1263
1264<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001265 <code class="details" id="stop">stop(project, deployment, body=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -07001266 <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.
1267
1268Args:
1269 project: string, The project ID for this request. (required)
1270 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001271 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -07001272 The object takes the form of:
1273
1274{
Bu Sun Kim65020912020-05-20 12:08:20 -07001275 &quot;fingerprint&quot;: &quot;A String&quot;, # 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).
Takashi Matsuo06694102015-09-11 13:55:40 -07001276 #
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001277 # 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.
Takashi Matsuo06694102015-09-11 13:55:40 -07001278 }
1279
1280
1281Returns:
1282 An object of the form:
1283
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001284 { # 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 ==)
Bu Sun Kim65020912020-05-20 12:08:20 -07001285 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1286 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1287 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1288 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1289 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1290 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -07001291 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1293 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1294 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -07001295 },
1296 ],
1297 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001298 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1299 &quot;httpErrorStatusCode&quot;: 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.
1300 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1301 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1302 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1303 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
1304 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1305 &quot;progress&quot;: 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.
1306 &quot;region&quot;: &quot;A String&quot;, # [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.
1307 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1308 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1309 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1310 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1311 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1312 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
1313 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
1314 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1315 {
1316 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1317 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1318 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1319 {
1320 &quot;key&quot;: &quot;A String&quot;, # [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).
1321 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1322 },
1323 ],
1324 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1325 },
1326 ],
1327 &quot;zone&quot;: &quot;A String&quot;, # [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.
Takashi Matsuo06694102015-09-11 13:55:40 -07001328 }</pre>
1329</div>
1330
1331<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001332 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body=None)</code>
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001333 <pre>Returns permissions that a caller has on the specified resource.
1334
1335Args:
1336 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001337 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001338 body: object, The request body.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001339 The object takes the form of:
1340
1341{
Bu Sun Kim65020912020-05-20 12:08:20 -07001342 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
1343 &quot;A String&quot;,
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001344 ],
1345 }
1346
1347
1348Returns:
1349 An object of the form:
1350
1351 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001352 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1353 &quot;A String&quot;,
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -07001354 ],
1355 }</pre>
1356</div>
1357
1358<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001359 <code class="details" id="update">update(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -07001360 <pre>Updates a deployment and all of the resources described by the deployment manifest.
1361
1362Args:
1363 project: string, The project ID for this request. (required)
1364 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001365 body: object, The request body.
Takashi Matsuo06694102015-09-11 13:55:40 -07001366 The object takes the form of:
1367
1368{
Bu Sun Kim65020912020-05-20 12:08:20 -07001369 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
1370 &quot;fingerprint&quot;: &quot;A String&quot;, # 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.
1371 #
1372 # 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.
1373 &quot;id&quot;: &quot;A String&quot;,
1374 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
1375 &quot;labels&quot;: [ # 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])?)?
1376 {
1377 &quot;key&quot;: &quot;A String&quot;,
1378 &quot;value&quot;: &quot;A String&quot;,
Takashi Matsuo06694102015-09-11 13:55:40 -07001379 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001380 ],
1381 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed.
1382 &quot;name&quot;: &quot;A String&quot;, # 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.
1383 &quot;operation&quot;: { # 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.
1384 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1385 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1386 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1387 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1388 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1389 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -07001390 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001391 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1392 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1393 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -07001394 },
1395 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 },
1397 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1398 &quot;httpErrorStatusCode&quot;: 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.
1399 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1400 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1401 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1402 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
1403 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1404 &quot;progress&quot;: 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.
1405 &quot;region&quot;: &quot;A String&quot;, # [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.
1406 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1407 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1408 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1409 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1410 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1411 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
1412 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
1413 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1414 {
1415 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1416 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1417 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
Takashi Matsuo06694102015-09-11 13:55:40 -07001418 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001419 &quot;key&quot;: &quot;A String&quot;, # [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).
1420 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Takashi Matsuo06694102015-09-11 13:55:40 -07001421 },
1422 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001423 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Takashi Matsuo06694102015-09-11 13:55:40 -07001424 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001425 ],
1426 &quot;zone&quot;: &quot;A String&quot;, # [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.
1427 },
1428 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
1429 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
1430 &quot;config&quot;: { # The configuration to use for this deployment.
1431 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
Takashi Matsuo06694102015-09-11 13:55:40 -07001432 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001433 &quot;imports&quot;: [ # 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.
1434 {
1435 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
1436 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
Takashi Matsuo06694102015-09-11 13:55:40 -07001437 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001438 ],
1439 },
1440 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
1441 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
1442 &quot;labels&quot;: [ # 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])?)?
1443 {
1444 &quot;key&quot;: &quot;A String&quot;,
1445 &quot;value&quot;: &quot;A String&quot;,
1446 },
1447 ],
1448 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
1449 },
1450 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
1451}
Takashi Matsuo06694102015-09-11 13:55:40 -07001452
Takashi Matsuo06694102015-09-11 13:55:40 -07001453 createPolicy: string, Sets the policy to use for creating new resources.
1454 Allowed values
1455 ACQUIRE -
1456 CREATE_OR_ACQUIRE -
Bu Sun Kim65020912020-05-20 12:08:20 -07001457 deletePolicy: string, Sets the policy to use for deleting resources.
1458 Allowed values
1459 ABANDON -
1460 DELETE -
1461 preview: boolean, If set to true, updates the deployment and creates and updates the &quot;shell&quot; 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.
Takashi Matsuo06694102015-09-11 13:55:40 -07001462
1463Returns:
1464 An object of the form:
1465
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001466 { # 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 ==)
Bu Sun Kim65020912020-05-20 12:08:20 -07001467 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1468 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1469 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1470 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1471 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1472 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Takashi Matsuo06694102015-09-11 13:55:40 -07001473 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001474 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1475 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1476 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Takashi Matsuo06694102015-09-11 13:55:40 -07001477 },
1478 ],
1479 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001480 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1481 &quot;httpErrorStatusCode&quot;: 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.
1482 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1483 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1484 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1485 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the resource.
1486 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1487 &quot;progress&quot;: 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.
1488 &quot;region&quot;: &quot;A String&quot;, # [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.
1489 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1490 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1491 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1492 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1493 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1494 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
1495 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: user@example.com.
1496 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1497 {
1498 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
1499 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1500 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1501 {
1502 &quot;key&quot;: &quot;A String&quot;, # [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).
1503 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1504 },
1505 ],
1506 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1507 },
1508 ],
1509 &quot;zone&quot;: &quot;A String&quot;, # [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.
Takashi Matsuo06694102015-09-11 13:55:40 -07001510 }</pre>
1511</div>
1512
1513</body></html>