blob: 8081e34057630f0510a5e3c71b288dc877499798 [file] [log] [blame]
Sai Cheemalapatie833b792017-03-24 15:06:46 -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_v2beta.html">Google Cloud Deployment Manager API V2Beta Methods</a> . <a href="deploymentmanager_v2beta.deployments.html">deployments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#cancelPreview">cancelPreview(project, deployment, body=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -070079<p class="firstline">Cancels and removes the preview currently associated with the deployment.</p>
80<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
Sai Cheemalapatie833b792017-03-24 15:06:46 -070084 <code><a href="#delete">delete(project, deployment, deletePolicy=None)</a></code></p>
85<p class="firstline">Deletes a deployment and all of the resources in the deployment.</p>
86<p class="toc_element">
87 <code><a href="#get">get(project, deployment)</a></code></p>
88<p class="firstline">Gets information about a specific deployment.</p>
89<p class="toc_element">
90 <code><a href="#getIamPolicy">getIamPolicy(project, resource)</a></code></p>
91<p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#insert">insert(project, body=None, createPolicy=None, preview=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -070094<p class="firstline">Creates a deployment and all of the resources described by the deployment manifest.</p>
95<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070096 <code><a href="#list">list(project, pageToken=None, filter=None, maxResults=None, orderBy=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -070097<p class="firstline">Lists all deployments for a given project.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code><a href="#patch">patch(project, deployment, body=None, deletePolicy=None, preview=None, createPolicy=None)</a></code></p>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700103<p class="firstline">Patches a deployment and all of the resources described by the deployment manifest.</p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#setIamPolicy">setIamPolicy(project, resource, body=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700106<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#stop">stop(project, deployment, body=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700109<p class="firstline">Stops an ongoing operation. This does not roll back any work that has already been completed, but prevents any new work from being started.</p>
110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700112<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
113<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 <code><a href="#update">update(project, deployment, body=None, createPolicy=None, preview=None, deletePolicy=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700115<p class="firstline">Updates a deployment and all of the resources described by the deployment manifest.</p>
116<h3>Method Details</h3>
117<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code class="details" id="cancelPreview">cancelPreview(project, deployment, body=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700119 <pre>Cancels and removes the preview currently associated with the deployment.
120
121Args:
122 project: string, The project ID for this request. (required)
123 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700125 The object takes the form of:
126
127{
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700128 &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).
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700129 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700130 # 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.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700131 }
132
133
134Returns:
135 An object of the form:
136
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700137 { # Represents an Operation resource.
138 #
139 # Google Compute Engine has three Operation resources:
140 #
141 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
142 #
143 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
144 #
145 # Operations can be global, regional or zonal.
146 # - For global operations, use the `globalOperations` resource.
147 # - For regional operations, use the `regionOperations` resource.
148 # - For zonal operations, use the `zonalOperations` resource.
149 #
150 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700151 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
152 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
153 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
154 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
155 {
156 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
157 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
158 {
159 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
160 &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).
161 },
162 ],
163 &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.
164 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
165 },
166 ],
167 &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.
168 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
169 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700173 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
174 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700175 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
176 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700177 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700181 },
182 ],
183 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700184 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700185 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
186 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700188 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700189 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 &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.
191 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
192 &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`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700193 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700194 }</pre>
195</div>
196
197<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700198 <code class="details" id="close">close()</code>
199 <pre>Close httplib2 connections.</pre>
200</div>
201
202<div class="method">
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700203 <code class="details" id="delete">delete(project, deployment, deletePolicy=None)</code>
204 <pre>Deletes a deployment and all of the resources in the deployment.
205
206Args:
207 project: string, The project ID for this request. (required)
208 deployment: string, The name of the deployment for this request. (required)
209 deletePolicy: string, Sets the policy to use for deleting resources.
210 Allowed values
211 ABANDON -
212 DELETE -
213
214Returns:
215 An object of the form:
216
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700217 { # Represents an Operation resource.
218 #
219 # Google Compute Engine has three Operation resources:
220 #
221 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
222 #
223 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
224 #
225 # Operations can be global, regional or zonal.
226 # - For global operations, use the `globalOperations` resource.
227 # - For regional operations, use the `regionOperations` resource.
228 # - For zonal operations, use the `zonalOperations` resource.
229 #
230 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700231 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
232 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
233 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
234 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
235 {
236 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
237 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
238 {
239 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
240 &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).
241 },
242 ],
243 &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.
244 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
245 },
246 ],
247 &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.
248 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
249 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700251 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700252 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700253 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
254 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
256 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700257 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700259 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700260 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700261 },
262 ],
263 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700264 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700265 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
266 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700268 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700269 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 &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.
271 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
272 &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`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700273 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700274 }</pre>
275</div>
276
277<div class="method">
278 <code class="details" id="get">get(project, deployment)</code>
279 <pre>Gets information about a specific deployment.
280
281Args:
282 project: string, The project ID for this request. (required)
283 deployment: string, The name of the deployment for this request. (required)
284
285Returns:
286 An object of the form:
287
288 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700289 &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.
290 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
291 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
292 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
293 &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])?)?`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700294 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700295 &quot;value&quot;: &quot;A String&quot;,
296 &quot;key&quot;: &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700297 },
298 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700299 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700300 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
301 &quot;id&quot;: &quot;A String&quot;,
302 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
303 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
304 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
305 &quot;config&quot;: { # The configuration to use for this deployment.
306 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
307 },
308 &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.
309 {
310 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
311 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
312 },
313 ],
314 },
315 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent.
316 &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.
317 #
318 # 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.
319 &quot;operation&quot;: { # Represents an Operation resource. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
320 #
321 # Google Compute Engine has three Operation resources:
322 #
323 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
324 #
325 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
326 #
327 # Operations can be global, regional or zonal.
328 # - For global operations, use the `globalOperations` resource.
329 # - For regional operations, use the `regionOperations` resource.
330 # - For zonal operations, use the `zonalOperations` resource.
331 #
332 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
333 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
334 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
335 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
336 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
337 {
338 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
339 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
340 {
341 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
342 &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).
343 },
344 ],
345 &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.
346 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
347 },
348 ],
349 &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.
350 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
351 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
352 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
353 &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.
354 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
355 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
356 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
357 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
358 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700359 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700360 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
361 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
362 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700363 },
364 ],
365 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700366 &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.
367 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
368 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
369 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
370 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
371 &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`.
372 &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.
373 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
374 &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`.
375 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700376 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700377 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
378 &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])?)?`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 {
380 &quot;key&quot;: &quot;A String&quot;,
381 &quot;value&quot;: &quot;A String&quot;,
382 },
383 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700384 }</pre>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700385</div>
386
387<div class="method">
388 <code class="details" id="getIamPolicy">getIamPolicy(project, resource)</code>
389 <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists.
390
391Args:
392 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 resource: string, Name or id of the resource for this request. (required)
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700394
395Returns:
396 An object of the form:
397
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700398 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700399 #
400 #
401 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700402 # A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700403 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700404 # For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700405 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700406 # **JSON example:**
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700407 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700408 # { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700409 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700412 # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700414 # For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700415 &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.
416 { # A rule to be applied in a Policy.
417 &quot;logConfigs&quot;: [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
418 { # Specifies what kind of log the caller must write
419 &quot;counter&quot;: { # Increment a streamz counter with the specified metric and field names. # Counter options.
420 #
421 # 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.
422 #
423 # Field names correspond to IAM request parameters and field values are their respective values.
424 #
425 # 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.
426 #
427 # Examples: counter { metric: &quot;/debug_access_count&quot; field: &quot;iam_principal&quot; } ==&gt; increment counter /iam/policy/debug_access_count {iam_principal=[value of IAMContext.principal]}
428 &quot;customFields&quot;: [ # Custom fields.
429 { # Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.
430 &quot;value&quot;: &quot;A String&quot;, # Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext.
431 &quot;name&quot;: &quot;A String&quot;, # Name is the field name.
432 },
433 ],
434 &quot;metric&quot;: &quot;A String&quot;, # The metric to update.
435 &quot;field&quot;: &quot;A String&quot;, # The field value to attribute.
436 },
437 &quot;cloudAudit&quot;: { # Write a Cloud Audit log # Cloud audit options.
438 &quot;logName&quot;: &quot;A String&quot;, # The log_name to populate in the Cloud Audit Record.
439 &quot;authorizationLoggingOptions&quot;: { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
440 &quot;permissionType&quot;: &quot;A String&quot;, # The type of the permission that was checked.
441 },
442 },
443 &quot;dataAccess&quot;: { # Write a Data Access (Gin) log # Data access options.
444 &quot;logMode&quot;: &quot;A String&quot;,
445 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700446 },
447 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700448 &quot;action&quot;: &quot;A String&quot;, # Required
449 &quot;conditions&quot;: [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
450 { # A condition to be met.
451 &quot;op&quot;: &quot;A String&quot;, # An operator to apply the subject with.
452 &quot;svc&quot;: &quot;A String&quot;, # Trusted attributes discharged by the service.
453 &quot;sys&quot;: &quot;A String&quot;, # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
454 &quot;iam&quot;: &quot;A String&quot;, # Trusted attributes supplied by the IAM system.
455 &quot;values&quot;: [ # The objects of the condition.
456 &quot;A String&quot;,
457 ],
458 },
459 ],
460 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &quot;A String&quot;,
462 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700463 &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.
464 &quot;A String&quot;,
465 ],
466 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of the rule.
467 &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.
468 &quot;A String&quot;,
469 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700470 },
471 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700472 &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.
473 #
474 # **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700475 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700476 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700477 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. # The condition that is associated with this binding.
Bu Sun Kim65020912020-05-20 12:08:20 -0700478 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700479 # If the condition evaluates to `true`, then this binding applies to the current request.
480 #
481 # If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.
482 #
483 # To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
484 #
485 # Example (Comparison):
486 #
487 # title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot;
488 #
489 # Example (Equality):
490 #
491 # title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot;
492 #
493 # Example (Logic):
494 #
495 # title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
496 #
497 # Example (Data Manipulation):
498 #
499 # title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
500 #
501 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700502 &quot;title&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700503 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700505 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700506 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700507 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700508 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700509 #
510 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
511 #
512 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
513 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700514 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` .
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700515 #
516 #
517 #
518 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
519 #
520 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
521 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700522 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding.
523 #
524 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding.
525 #
526 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700527 #
528 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700529 #
530 # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700531 &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700532 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 },
534 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700535 &quot;version&quot;: 42, # Specifies the format of the policy.
536 #
537 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected.
538 #
539 # Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations:
540 #
541 # * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions
542 #
543 # **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
544 #
545 # If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.
546 #
547 # To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700548 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
549 { # 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.
550 #
551 # 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.
552 #
553 # Example Policy with multiple AuditConfigs:
554 #
555 # { &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:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot;, } ] }, { &quot;service&quot;: &quot;sampleservice.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:aliya@example.com&quot; ] } ] } ] }
556 #
557 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
558 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
559 { # Provides the configuration for logging a type of permissions. Example:
560 #
561 # { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, } ] }
562 #
563 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
564 &quot;ignoreChildExemptions&quot;: True or False,
565 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
566 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
567 &quot;A String&quot;,
568 ],
569 },
570 ],
571 &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.
572 &quot;exemptedMembers&quot;: [
573 &quot;A String&quot;,
574 ],
575 },
576 ],
577 &quot;iamOwned&quot;: True or False,
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700578 }</pre>
579</div>
580
581<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700582 <code class="details" id="insert">insert(project, body=None, createPolicy=None, preview=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700583 <pre>Creates a deployment and all of the resources described by the deployment manifest.
584
585Args:
586 project: string, The project ID for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700587 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700588 The object takes the form of:
589
590{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700591 &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.
592 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
593 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
594 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
595 &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])?)?`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700596 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700597 &quot;value&quot;: &quot;A String&quot;,
598 &quot;key&quot;: &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700599 },
600 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700602 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
603 &quot;id&quot;: &quot;A String&quot;,
604 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
605 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
606 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
607 &quot;config&quot;: { # The configuration to use for this deployment.
608 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
609 },
610 &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.
611 {
612 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
613 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
614 },
615 ],
616 },
617 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent.
618 &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.
619 #
620 # 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.
621 &quot;operation&quot;: { # Represents an Operation resource. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
622 #
623 # Google Compute Engine has three Operation resources:
624 #
625 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
626 #
627 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
628 #
629 # Operations can be global, regional or zonal.
630 # - For global operations, use the `globalOperations` resource.
631 # - For regional operations, use the `regionOperations` resource.
632 # - For zonal operations, use the `zonalOperations` resource.
633 #
634 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
635 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
636 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
637 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
638 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
639 {
640 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
641 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
642 {
643 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
644 &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).
645 },
646 ],
647 &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.
648 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
649 },
650 ],
651 &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.
652 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
653 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
654 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
655 &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.
656 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
657 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
658 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
659 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
660 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700661 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700662 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
663 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
664 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700665 },
666 ],
667 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700668 &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.
669 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
670 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
671 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
672 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
673 &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`.
674 &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.
675 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
676 &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`.
677 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700678 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700679 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
680 &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])?)?`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700681 {
682 &quot;key&quot;: &quot;A String&quot;,
683 &quot;value&quot;: &quot;A String&quot;,
684 },
685 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700686 }
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700687
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700688 createPolicy: string, Sets the policy to use for creating new resources.
689 Allowed values
690 ACQUIRE -
691 CREATE -
692 CREATE_OR_ACQUIRE -
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700693 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.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700694
695Returns:
696 An object of the form:
697
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700698 { # Represents an Operation resource.
699 #
700 # Google Compute Engine has three Operation resources:
701 #
702 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
703 #
704 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
705 #
706 # Operations can be global, regional or zonal.
707 # - For global operations, use the `globalOperations` resource.
708 # - For regional operations, use the `regionOperations` resource.
709 # - For zonal operations, use the `zonalOperations` resource.
710 #
711 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700712 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
713 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
714 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
715 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
716 {
717 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
718 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
719 {
720 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
721 &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 },
723 ],
724 &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.
725 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
726 },
727 ],
728 &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.
729 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
730 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700732 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700733 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700734 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
735 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700736 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
737 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700738 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700739 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim65020912020-05-20 12:08:20 -0700740 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700741 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700742 },
743 ],
744 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700745 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700746 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
747 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700749 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700750 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700751 &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.
752 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
753 &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`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700754 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700755 }</pre>
756</div>
757
758<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700759 <code class="details" id="list">list(project, pageToken=None, filter=None, maxResults=None, orderBy=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700760 <pre>Lists all deployments for a given project.
761
762Args:
763 project: string, The project ID for this request. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700764 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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700765 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;`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700766
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700767For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700768
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700769You 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.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700770
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700771To 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) ```
772 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`)
Bu Sun Kim65020912020-05-20 12:08:20 -0700773 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
774
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700775You 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700776
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700777Currently, only sorting by `name` or `creationTimestamp desc` is supported.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700778
779Returns:
780 An object of the form:
781
782 { # 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 -0700783 &quot;deployments&quot;: [ # Output only. The deployments contained in this response.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700784 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700785 &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.
786 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
787 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
788 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
789 &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])?)?`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700790 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700791 &quot;value&quot;: &quot;A String&quot;,
792 &quot;key&quot;: &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700793 },
794 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700796 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
797 &quot;id&quot;: &quot;A String&quot;,
798 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
799 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
800 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
801 &quot;config&quot;: { # The configuration to use for this deployment.
802 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
803 },
804 &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.
805 {
806 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
807 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
808 },
809 ],
810 },
811 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent.
812 &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.
813 #
814 # 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.
815 &quot;operation&quot;: { # Represents an Operation resource. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
816 #
817 # Google Compute Engine has three Operation resources:
818 #
819 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
820 #
821 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
822 #
823 # Operations can be global, regional or zonal.
824 # - For global operations, use the `globalOperations` resource.
825 # - For regional operations, use the `regionOperations` resource.
826 # - For zonal operations, use the `zonalOperations` resource.
827 #
828 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
829 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
830 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
831 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
832 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
833 {
834 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
835 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
836 {
837 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
838 &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).
839 },
840 ],
841 &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.
842 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
843 },
844 ],
845 &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.
846 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
847 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
848 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
849 &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.
850 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
851 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
852 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
853 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
854 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700855 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700856 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
857 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
858 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700859 },
860 ],
861 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700862 &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.
863 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
864 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
865 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
866 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
867 &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`.
868 &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.
869 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
870 &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`.
871 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700873 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
874 &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])?)?`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700875 {
876 &quot;key&quot;: &quot;A String&quot;,
877 &quot;value&quot;: &quot;A String&quot;,
878 },
879 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700880 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700881 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700882 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. A token used to continue a truncated list request.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700883 }</pre>
884</div>
885
886<div class="method">
887 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
888 <pre>Retrieves the next page of results.
889
890Args:
891 previous_request: The request for the previous page. (required)
892 previous_response: The response from the request for the previous page. (required)
893
894Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700895 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700896 page. Returns None if there are no more items in the collection.
897 </pre>
898</div>
899
900<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700901 <code class="details" id="patch">patch(project, deployment, body=None, deletePolicy=None, preview=None, createPolicy=None)</code>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700902 <pre>Patches a deployment and all of the resources described by the deployment manifest.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700903
904Args:
905 project: string, The project ID for this request. (required)
906 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700907 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700908 The object takes the form of:
909
910{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700911 &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.
912 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
913 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
914 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
915 &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])?)?`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700916 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700917 &quot;value&quot;: &quot;A String&quot;,
918 &quot;key&quot;: &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700919 },
920 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700921 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700922 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
923 &quot;id&quot;: &quot;A String&quot;,
924 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
925 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
926 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
927 &quot;config&quot;: { # The configuration to use for this deployment.
928 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
929 },
930 &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.
931 {
932 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
933 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
934 },
935 ],
936 },
937 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent.
938 &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.
939 #
940 # 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.
941 &quot;operation&quot;: { # Represents an Operation resource. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
942 #
943 # Google Compute Engine has three Operation resources:
944 #
945 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
946 #
947 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
948 #
949 # Operations can be global, regional or zonal.
950 # - For global operations, use the `globalOperations` resource.
951 # - For regional operations, use the `regionOperations` resource.
952 # - For zonal operations, use the `zonalOperations` resource.
953 #
954 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
955 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
956 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
957 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
958 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
959 {
960 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
961 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
962 {
963 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
964 &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).
965 },
966 ],
967 &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.
968 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
969 },
970 ],
971 &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.
972 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
973 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
974 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
975 &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.
976 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
977 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
978 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
979 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
980 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700981 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700982 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
983 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
984 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700985 },
986 ],
987 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700988 &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.
989 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
990 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
991 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
992 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
993 &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`.
994 &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.
995 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
996 &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`.
997 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700998 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700999 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
1000 &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])?)?`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001001 {
1002 &quot;key&quot;: &quot;A String&quot;,
1003 &quot;value&quot;: &quot;A String&quot;,
1004 },
1005 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001006 }
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001007
Bu Sun Kim65020912020-05-20 12:08:20 -07001008 deletePolicy: string, Sets the policy to use for deleting resources.
1009 Allowed values
1010 ABANDON -
1011 DELETE -
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001012 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001013 createPolicy: string, Sets the policy to use for creating new resources.
1014 Allowed values
1015 ACQUIRE -
1016 CREATE -
1017 CREATE_OR_ACQUIRE -
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001018
1019Returns:
1020 An object of the form:
1021
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001022 { # Represents an Operation resource.
1023 #
1024 # Google Compute Engine has three Operation resources:
1025 #
1026 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
1027 #
1028 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1029 #
1030 # Operations can be global, regional or zonal.
1031 # - For global operations, use the `globalOperations` resource.
1032 # - For regional operations, use the `regionOperations` resource.
1033 # - For zonal operations, use the `zonalOperations` resource.
1034 #
1035 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001036 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1037 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1038 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
1039 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1040 {
1041 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1042 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1043 {
1044 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1045 &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).
1046 },
1047 ],
1048 &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.
1049 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1050 },
1051 ],
1052 &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.
1053 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
1054 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001055 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001056 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001057 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001058 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1059 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001060 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1061 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001062 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001063 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001064 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001065 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001066 },
1067 ],
1068 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001069 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001070 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1071 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001073 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001074 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001075 &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.
1076 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
1077 &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`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001078 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001079 }</pre>
1080</div>
1081
1082<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001083 <code class="details" id="setIamPolicy">setIamPolicy(project, resource, body=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001084 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.
1085
1086Args:
1087 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001088 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001089 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001090 The object takes the form of:
1091
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001092{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001093 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001094 &quot;bindings&quot;: [ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use &#x27;policy&#x27; to specify bindings.
1095 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001096 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. # The condition that is associated with this binding.
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001098 # If the condition evaluates to `true`, then this binding applies to the current request.
1099 #
1100 # If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.
1101 #
1102 # To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1103 #
1104 # Example (Comparison):
1105 #
1106 # title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot;
1107 #
1108 # Example (Equality):
1109 #
1110 # title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot;
1111 #
1112 # Example (Logic):
1113 #
1114 # title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1115 #
1116 # Example (Data Manipulation):
1117 #
1118 # title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1119 #
1120 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001121 &quot;title&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001122 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001123 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001124 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001125 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001126 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001127 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
1128 #
1129 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1130 #
1131 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1132 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001133 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` .
Bu Sun Kim65020912020-05-20 12:08:20 -07001134 #
1135 #
1136 #
1137 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1138 #
1139 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1140 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001141 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding.
1142 #
1143 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding.
1144 #
1145 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 #
1147 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001148 #
1149 # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 &quot;A String&quot;,
1151 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001152 },
1153 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001154 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud 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 Cheemalapatie833b792017-03-24 15:06:46 -07001155 #
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001156 #
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001157 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001158 # A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001159 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001160 # For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001161 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001162 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001163 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001164 # { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001165 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001166 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001167 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001168 # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001169 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001170 # For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001171 &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.
1172 { # A rule to be applied in a Policy.
1173 &quot;logConfigs&quot;: [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1174 { # Specifies what kind of log the caller must write
1175 &quot;counter&quot;: { # Increment a streamz counter with the specified metric and field names. # Counter options.
1176 #
1177 # 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.
1178 #
1179 # Field names correspond to IAM request parameters and field values are their respective values.
1180 #
1181 # 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.
1182 #
1183 # Examples: counter { metric: &quot;/debug_access_count&quot; field: &quot;iam_principal&quot; } ==&gt; increment counter /iam/policy/debug_access_count {iam_principal=[value of IAMContext.principal]}
1184 &quot;customFields&quot;: [ # Custom fields.
1185 { # Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.
1186 &quot;value&quot;: &quot;A String&quot;, # Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext.
1187 &quot;name&quot;: &quot;A String&quot;, # Name is the field name.
1188 },
1189 ],
1190 &quot;metric&quot;: &quot;A String&quot;, # The metric to update.
1191 &quot;field&quot;: &quot;A String&quot;, # The field value to attribute.
1192 },
1193 &quot;cloudAudit&quot;: { # Write a Cloud Audit log # Cloud audit options.
1194 &quot;logName&quot;: &quot;A String&quot;, # The log_name to populate in the Cloud Audit Record.
1195 &quot;authorizationLoggingOptions&quot;: { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
1196 &quot;permissionType&quot;: &quot;A String&quot;, # The type of the permission that was checked.
1197 },
1198 },
1199 &quot;dataAccess&quot;: { # Write a Data Access (Gin) log # Data access options.
1200 &quot;logMode&quot;: &quot;A String&quot;,
1201 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001202 },
1203 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001204 &quot;action&quot;: &quot;A String&quot;, # Required
1205 &quot;conditions&quot;: [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
1206 { # A condition to be met.
1207 &quot;op&quot;: &quot;A String&quot;, # An operator to apply the subject with.
1208 &quot;svc&quot;: &quot;A String&quot;, # Trusted attributes discharged by the service.
1209 &quot;sys&quot;: &quot;A String&quot;, # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1210 &quot;iam&quot;: &quot;A String&quot;, # Trusted attributes supplied by the IAM system.
1211 &quot;values&quot;: [ # The objects of the condition.
1212 &quot;A String&quot;,
1213 ],
1214 },
1215 ],
1216 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001217 &quot;A String&quot;,
1218 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001219 &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.
1220 &quot;A String&quot;,
1221 ],
1222 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of the rule.
1223 &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.
1224 &quot;A String&quot;,
1225 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001226 },
1227 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001228 &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.
1229 #
1230 # **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001231 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001232 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001233 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. # The condition that is associated with this binding.
Bu Sun Kim65020912020-05-20 12:08:20 -07001234 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001235 # If the condition evaluates to `true`, then this binding applies to the current request.
1236 #
1237 # If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.
1238 #
1239 # To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1240 #
1241 # Example (Comparison):
1242 #
1243 # title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot;
1244 #
1245 # Example (Equality):
1246 #
1247 # title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot;
1248 #
1249 # Example (Logic):
1250 #
1251 # title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1252 #
1253 # Example (Data Manipulation):
1254 #
1255 # title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1256 #
1257 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001258 &quot;title&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001259 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001260 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001261 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001262 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001263 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001264 &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 -07001265 #
1266 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1267 #
1268 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1269 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001270 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001271 #
1272 #
1273 #
1274 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1275 #
1276 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1277 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001278 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding.
1279 #
1280 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding.
1281 #
1282 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001283 #
1284 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001285 #
1286 # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001287 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001288 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001289 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001290 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001291 &quot;version&quot;: 42, # Specifies the format of the policy.
1292 #
1293 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected.
1294 #
1295 # Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations:
1296 #
1297 # * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions
1298 #
1299 # **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1300 #
1301 # If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.
1302 #
1303 # To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001304 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1305 { # 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.
1306 #
1307 # 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.
1308 #
1309 # Example Policy with multiple AuditConfigs:
1310 #
1311 # { &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:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot;, } ] }, { &quot;service&quot;: &quot;sampleservice.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:aliya@example.com&quot; ] } ] } ] }
1312 #
1313 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
1314 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1315 { # Provides the configuration for logging a type of permissions. Example:
1316 #
1317 # { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, } ] }
1318 #
1319 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
1320 &quot;ignoreChildExemptions&quot;: True or False,
1321 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1322 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1323 &quot;A String&quot;,
1324 ],
1325 },
1326 ],
1327 &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.
1328 &quot;exemptedMembers&quot;: [
1329 &quot;A String&quot;,
1330 ],
1331 },
1332 ],
1333 &quot;iamOwned&quot;: True or False,
Bu Sun Kim65020912020-05-20 12:08:20 -07001334 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001335 }
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001336
1337
1338Returns:
1339 An object of the form:
1340
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001341 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001342 #
1343 #
1344 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001345 # A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001346 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001347 # For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001348 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001349 # **JSON example:**
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001350 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001351 # { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001352 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001353 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001354 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001355 # bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001356 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001357 # For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001358 &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.
1359 { # A rule to be applied in a Policy.
1360 &quot;logConfigs&quot;: [ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
1361 { # Specifies what kind of log the caller must write
1362 &quot;counter&quot;: { # Increment a streamz counter with the specified metric and field names. # Counter options.
1363 #
1364 # 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.
1365 #
1366 # Field names correspond to IAM request parameters and field values are their respective values.
1367 #
1368 # 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.
1369 #
1370 # Examples: counter { metric: &quot;/debug_access_count&quot; field: &quot;iam_principal&quot; } ==&gt; increment counter /iam/policy/debug_access_count {iam_principal=[value of IAMContext.principal]}
1371 &quot;customFields&quot;: [ # Custom fields.
1372 { # Custom fields. These can be used to create a counter with arbitrary field/value pairs. See: go/rpcsp-custom-fields.
1373 &quot;value&quot;: &quot;A String&quot;, # Value is the field value. It is important that in contrast to the CounterOptions.field, the value here is a constant that is not derived from the IAMContext.
1374 &quot;name&quot;: &quot;A String&quot;, # Name is the field name.
1375 },
1376 ],
1377 &quot;metric&quot;: &quot;A String&quot;, # The metric to update.
1378 &quot;field&quot;: &quot;A String&quot;, # The field value to attribute.
1379 },
1380 &quot;cloudAudit&quot;: { # Write a Cloud Audit log # Cloud audit options.
1381 &quot;logName&quot;: &quot;A String&quot;, # The log_name to populate in the Cloud Audit Record.
1382 &quot;authorizationLoggingOptions&quot;: { # Authorization-related information used by Cloud Audit Logging. # Information used by the Cloud Audit Logging pipeline.
1383 &quot;permissionType&quot;: &quot;A String&quot;, # The type of the permission that was checked.
1384 },
1385 },
1386 &quot;dataAccess&quot;: { # Write a Data Access (Gin) log # Data access options.
1387 &quot;logMode&quot;: &quot;A String&quot;,
1388 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001389 },
1390 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001391 &quot;action&quot;: &quot;A String&quot;, # Required
1392 &quot;conditions&quot;: [ # Additional restrictions that must be met. All conditions must pass for the rule to match.
1393 { # A condition to be met.
1394 &quot;op&quot;: &quot;A String&quot;, # An operator to apply the subject with.
1395 &quot;svc&quot;: &quot;A String&quot;, # Trusted attributes discharged by the service.
1396 &quot;sys&quot;: &quot;A String&quot;, # Trusted attributes supplied by any service that owns resources and uses the IAM system for access control.
1397 &quot;iam&quot;: &quot;A String&quot;, # Trusted attributes supplied by the IAM system.
1398 &quot;values&quot;: [ # The objects of the condition.
1399 &quot;A String&quot;,
1400 ],
1401 },
1402 ],
1403 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001404 &quot;A String&quot;,
1405 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001406 &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.
1407 &quot;A String&quot;,
1408 ],
1409 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of the rule.
1410 &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.
1411 &quot;A String&quot;,
1412 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001413 },
1414 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001415 &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.
1416 #
1417 # **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001418 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001419 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001420 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. # The condition that is associated with this binding.
Bu Sun Kim65020912020-05-20 12:08:20 -07001421 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001422 # If the condition evaluates to `true`, then this binding applies to the current request.
1423 #
1424 # If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.
1425 #
1426 # To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1427 #
1428 # Example (Comparison):
1429 #
1430 # title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot;
1431 #
1432 # Example (Equality):
1433 #
1434 # title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot;
1435 #
1436 # Example (Logic):
1437 #
1438 # title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1439 #
1440 # Example (Data Manipulation):
1441 #
1442 # title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1443 #
1444 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001445 &quot;title&quot;: &quot;A String&quot;, # 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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001446 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim65020912020-05-20 12:08:20 -07001447 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001448 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001450 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001451 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001452 #
1453 # * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.
1454 #
1455 # * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.
1456 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001457 # * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` .
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001458 #
1459 #
1460 #
1461 # * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.
1462 #
1463 # * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.
1464 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001465 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding.
1466 #
1467 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding.
1468 #
1469 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001470 #
1471 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001472 #
1473 # * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001474 &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001475 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 },
1477 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001478 &quot;version&quot;: 42, # Specifies the format of the policy.
1479 #
1480 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected.
1481 #
1482 # Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations:
1483 #
1484 # * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions
1485 #
1486 # **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1487 #
1488 # If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.
1489 #
1490 # To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001491 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1492 { # 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.
1493 #
1494 # 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.
1495 #
1496 # Example Policy with multiple AuditConfigs:
1497 #
1498 # { &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:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot;, } ] }, { &quot;service&quot;: &quot;sampleservice.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:aliya@example.com&quot; ] } ] } ] }
1499 #
1500 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
1501 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1502 { # Provides the configuration for logging a type of permissions. Example:
1503 #
1504 # { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:jose@example.com&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, } ] }
1505 #
1506 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
1507 &quot;ignoreChildExemptions&quot;: True or False,
1508 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1509 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of [Binding.members][].
1510 &quot;A String&quot;,
1511 ],
1512 },
1513 ],
1514 &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.
1515 &quot;exemptedMembers&quot;: [
1516 &quot;A String&quot;,
1517 ],
1518 },
1519 ],
1520 &quot;iamOwned&quot;: True or False,
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001521 }</pre>
1522</div>
1523
1524<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001525 <code class="details" id="stop">stop(project, deployment, body=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001526 <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.
1527
1528Args:
1529 project: string, The project ID for this request. (required)
1530 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001531 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001532 The object takes the form of:
1533
1534{
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001535 &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).
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001536 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001537 # 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.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001538 }
1539
1540
1541Returns:
1542 An object of the form:
1543
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001544 { # Represents an Operation resource.
1545 #
1546 # Google Compute Engine has three Operation resources:
1547 #
1548 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
1549 #
1550 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1551 #
1552 # Operations can be global, regional or zonal.
1553 # - For global operations, use the `globalOperations` resource.
1554 # - For regional operations, use the `regionOperations` resource.
1555 # - For zonal operations, use the `zonalOperations` resource.
1556 #
1557 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001558 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1559 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1560 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
1561 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1562 {
1563 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1564 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1565 {
1566 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1567 &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).
1568 },
1569 ],
1570 &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.
1571 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1572 },
1573 ],
1574 &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.
1575 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
1576 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001577 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001578 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001580 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1581 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001582 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1583 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001584 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001585 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001586 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001587 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001588 },
1589 ],
1590 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001591 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001592 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1593 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07001594 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001595 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001596 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001597 &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.
1598 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
1599 &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`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001600 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001601 }</pre>
1602</div>
1603
1604<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001605 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001606 <pre>Returns permissions that a caller has on the specified resource.
1607
1608Args:
1609 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001610 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001611 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001612 The object takes the form of:
1613
1614{
Bu Sun Kim65020912020-05-20 12:08:20 -07001615 &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.
1616 &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001617 ],
1618 }
1619
1620
1621Returns:
1622 An object of the form:
1623
1624 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001625 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1626 &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001627 ],
1628 }</pre>
1629</div>
1630
1631<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001632 <code class="details" id="update">update(project, deployment, body=None, createPolicy=None, preview=None, deletePolicy=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001633 <pre>Updates a deployment and all of the resources described by the deployment manifest.
1634
1635Args:
1636 project: string, The project ID for this request. (required)
1637 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001638 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001639 The object takes the form of:
1640
1641{
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001642 &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.
1643 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
1644 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
1645 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
1646 &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])?)?`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001647 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001648 &quot;value&quot;: &quot;A String&quot;,
1649 &quot;key&quot;: &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001650 },
1651 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001652 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001653 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
1654 &quot;id&quot;: &quot;A String&quot;,
1655 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
1656 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
1657 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
1658 &quot;config&quot;: { # The configuration to use for this deployment.
1659 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
1660 },
1661 &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.
1662 {
1663 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
1664 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
1665 },
1666 ],
1667 },
1668 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the last manifest that was successfully deployed. If no manifest has been successfully deployed, this field will be absent.
1669 &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.
1670 #
1671 # 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.
1672 &quot;operation&quot;: { # Represents an Operation resource. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
1673 #
1674 # Google Compute Engine has three Operation resources:
1675 #
1676 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
1677 #
1678 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1679 #
1680 # Operations can be global, regional or zonal.
1681 # - For global operations, use the `globalOperations` resource.
1682 # - For regional operations, use the `regionOperations` resource.
1683 # - For zonal operations, use the `zonalOperations` resource.
1684 #
1685 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
1686 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1687 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1688 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
1689 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1690 {
1691 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1692 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1693 {
1694 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1695 &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).
1696 },
1697 ],
1698 &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.
1699 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1700 },
1701 ],
1702 &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.
1703 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
1704 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
1705 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1706 &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.
1707 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1708 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1709 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1710 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1711 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001712 {
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001713 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
1714 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
1715 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001716 },
1717 ],
1718 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001719 &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.
1720 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1721 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
1722 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1723 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
1724 &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`.
1725 &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.
1726 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
1727 &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`.
1728 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001729 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001730 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
1731 &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])?)?`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001732 {
1733 &quot;key&quot;: &quot;A String&quot;,
1734 &quot;value&quot;: &quot;A String&quot;,
1735 },
1736 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001737 }
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001738
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001739 createPolicy: string, Sets the policy to use for creating new resources.
1740 Allowed values
1741 ACQUIRE -
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001742 CREATE -
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001743 CREATE_OR_ACQUIRE -
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001744 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001745 deletePolicy: string, Sets the policy to use for deleting resources.
1746 Allowed values
1747 ABANDON -
1748 DELETE -
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001749
1750Returns:
1751 An object of the form:
1752
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001753 { # Represents an Operation resource.
1754 #
1755 # Google Compute Engine has three Operation resources:
1756 #
1757 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
1758 #
1759 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
1760 #
1761 # Operations can be global, regional or zonal.
1762 # - For global operations, use the `globalOperations` resource.
1763 # - For regional operations, use the `regionOperations` resource.
1764 # - For zonal operations, use the `zonalOperations` resource.
1765 #
1766 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001767 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1768 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1769 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
1770 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1771 {
1772 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
1773 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1774 {
1775 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
1776 &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).
1777 },
1778 ],
1779 &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.
1780 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
1781 },
1782 ],
1783 &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.
1784 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
1785 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001786 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001787 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001788 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001789 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1790 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001791 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1792 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001793 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001794 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim65020912020-05-20 12:08:20 -07001795 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001796 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001797 },
1798 ],
1799 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001800 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001801 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1802 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Bu Sun Kim65020912020-05-20 12:08:20 -07001803 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001804 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001805 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001806 &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.
1807 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
1808 &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`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001809 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001810 }</pre>
1811</div>
1812
1813</body></html>