blob: 98f0ad40ff12a821d15ee1f2e36143f324cb4568 [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
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070075<h1><a href="deploymentmanager_v2beta.html">Cloud Deployment Manager V2 API</a> . <a href="deploymentmanager_v2beta.deployments.html">deployments</a></h1>
Sai Cheemalapatie833b792017-03-24 15:06:46 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070078 <code><a href="#cancelPreview">cancelPreview(project, deployment, body=None, x__xgafv=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070084 <code><a href="#delete">delete(project, deployment, deletePolicy=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -070085<p class="firstline">Deletes a deployment and all of the resources in the deployment.</p>
86<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070087 <code><a href="#get">get(project, deployment, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -070088<p class="firstline">Gets information about a specific deployment.</p>
89<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070090 <code><a href="#getIamPolicy">getIamPolicy(project, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatie833b792017-03-24 15:06:46 -070091<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">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080093 <code><a href="#insert">insert(project, body=None, preview=None, createPolicy=None, x__xgafv=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">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080096 <code><a href="#list">list(project, orderBy=None, maxResults=None, filter=None, returnPartialSuccess=None, pageToken=None, x__xgafv=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">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800102 <code><a href="#patch">patch(project, deployment, body=None, deletePolicy=None, preview=None, createPolicy=None, x__xgafv=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700105 <code><a href="#setIamPolicy">setIamPolicy(project, resource, body=None, x__xgafv=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700108 <code><a href="#stop">stop(project, deployment, body=None, x__xgafv=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700111 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body=None, x__xgafv=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">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800114 <code><a href="#update">update(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None, x__xgafv=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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700118 <code class="details" id="cancelPreview">cancelPreview(project, deployment, body=None, x__xgafv=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 Kim673ec5c2020-11-16 11:05:03 -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). 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 -0700129 }
130
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700135
136Returns:
137 An object of the form:
138
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700139 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800140 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
141 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800142 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
143 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800144 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800145 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800146 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
147 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800148 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800149 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800150 },
151 ],
152 },
153 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800154 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800155 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800156 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
157 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800158 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800159 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800160 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800161 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
162 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
163 &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.
164 &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 -0700165 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
166 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700167 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800168 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800170 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700171 },
172 ],
173 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800174 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
175 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
176 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
177 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800178 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800179 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
180 &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.
181 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700182 }</pre>
183</div>
184
185<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700186 <code class="details" id="close">close()</code>
187 <pre>Close httplib2 connections.</pre>
188</div>
189
190<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700191 <code class="details" id="delete">delete(project, deployment, deletePolicy=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700192 <pre>Deletes a deployment and all of the resources in the deployment.
193
194Args:
195 project: string, The project ID for this request. (required)
196 deployment: string, The name of the deployment for this request. (required)
197 deletePolicy: string, Sets the policy to use for deleting resources.
198 Allowed values
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700199 DELETE -
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700200 ABANDON -
201 x__xgafv: string, V1 error format.
202 Allowed values
203 1 - v1 error format
204 2 - v2 error format
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700205
206Returns:
207 An object of the form:
208
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700209 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800210 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
211 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800212 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
213 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800214 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800215 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800216 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
217 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800218 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800219 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800220 },
221 ],
222 },
223 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800224 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800225 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800226 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
227 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800228 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800229 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800230 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800231 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
232 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
233 &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.
234 &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 -0700235 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
236 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700237 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800238 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700239 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800240 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700241 },
242 ],
243 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800244 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
245 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
246 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
247 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800248 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800249 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
250 &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.
251 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700252 }</pre>
253</div>
254
255<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700256 <code class="details" id="get">get(project, deployment, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700257 <pre>Gets information about a specific deployment.
258
259Args:
260 project: string, The project ID for this request. (required)
261 deployment: string, The name of the deployment for this request. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700262 x__xgafv: string, V1 error format.
263 Allowed values
264 1 - v1 error format
265 2 - v2 error format
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700266
267Returns:
268 An object of the form:
269
270 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800271 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
272 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
273 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
274 { # Label object for DeploymentUpdate
275 &quot;key&quot;: &quot;A String&quot;, # Key of the label
276 &quot;value&quot;: &quot;A String&quot;, # Value of the label
277 },
278 ],
279 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
280 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800281 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800282 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
283 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
284 &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. 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.
285 &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.
286 &quot;id&quot;: &quot;A String&quot;,
287 &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.
288 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
289 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
290 &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.
291 {
292 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
293 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
294 },
295 ],
296 &quot;config&quot;: { # The configuration to use for this deployment.
297 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
298 },
299 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700300 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800301 { # Label object for Deployments
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700302 &quot;value&quot;: &quot;A String&quot;, # Value of the label
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800303 &quot;key&quot;: &quot;A String&quot;, # Key of the label
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700304 },
305 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800306 &quot;operation&quot;: { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800307 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
308 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800309 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
310 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800311 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800312 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800313 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
314 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800315 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800316 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800317 },
318 ],
319 },
320 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800321 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800322 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800323 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
324 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800325 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800326 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800327 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800328 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
329 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
330 &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.
331 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800332 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
333 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700334 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800335 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800336 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
337 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700338 },
339 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700340 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800341 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
342 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
343 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
344 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800345 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800346 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
347 &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.
348 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800349 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800350 }</pre>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700351</div>
352
353<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700354 <code class="details" id="getIamPolicy">getIamPolicy(project, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700355 <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists.
356
357Args:
358 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359 resource: string, Name or id of the resource for this request. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700360 optionsRequestedPolicyVersion: integer, Requested IAM Policy version.
361 x__xgafv: string, V1 error format.
362 Allowed values
363 1 - v1 error format
364 2 - v2 error format
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700365
366Returns:
367 An object of the form:
368
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700369 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` 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. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &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 } **YAML example:** 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 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800370 &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.
371 { # Associates `members` with a `role`.
372 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
373 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `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. * `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. * `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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
374 &quot;A String&quot;,
375 ],
376 &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. Example (Comparison): 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; Example (Equality): 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; Example (Logic): 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; Example (Data Manipulation): 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; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
377 &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.
378 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
379 &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.
380 &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.
381 },
382 },
383 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800384 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700385 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700386 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &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; ] } ] } ] } 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.
387 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700388 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700389 { # Provides the configuration for logging a type of permissions. Example: { &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; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700390 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700391 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700392 &quot;A String&quot;,
393 ],
394 },
395 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700396 },
397 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800398 &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. **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.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700399 }</pre>
400</div>
401
402<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800403 <code class="details" id="insert">insert(project, body=None, preview=None, createPolicy=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700404 <pre>Creates a deployment and all of the resources described by the deployment manifest.
405
406Args:
407 project: string, The project ID for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700408 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700409 The object takes the form of:
410
411{
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800412 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
413 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
414 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
415 { # Label object for DeploymentUpdate
416 &quot;key&quot;: &quot;A String&quot;, # Key of the label
417 &quot;value&quot;: &quot;A String&quot;, # Value of the label
418 },
419 ],
420 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
421 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800422 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800423 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
424 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
425 &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. 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.
426 &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.
427 &quot;id&quot;: &quot;A String&quot;,
428 &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.
429 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
430 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
431 &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.
432 {
433 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
434 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
435 },
436 ],
437 &quot;config&quot;: { # The configuration to use for this deployment.
438 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
439 },
440 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700441 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800442 { # Label object for Deployments
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700443 &quot;value&quot;: &quot;A String&quot;, # Value of the label
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800444 &quot;key&quot;: &quot;A String&quot;, # Key of the label
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700445 },
446 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800447 &quot;operation&quot;: { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800448 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
449 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800450 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
451 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800452 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800453 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800454 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
455 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800456 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800457 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800458 },
459 ],
460 },
461 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800462 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800463 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800464 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
465 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800466 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800467 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800468 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800469 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
470 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
471 &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.
472 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800473 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
474 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800476 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800477 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
478 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700479 },
480 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700481 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800482 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
483 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
484 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
485 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800486 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800487 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
488 &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.
489 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800490 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800491 }
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700492
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800493 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700494 createPolicy: string, Sets the policy to use for creating new resources.
495 Allowed values
496 CREATE_OR_ACQUIRE -
497 ACQUIRE -
498 CREATE -
499 x__xgafv: string, V1 error format.
500 Allowed values
501 1 - v1 error format
502 2 - v2 error format
503
504Returns:
505 An object of the form:
506
507 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800508 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
509 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800510 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
511 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800512 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800513 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800514 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
515 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800516 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800517 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800518 },
519 ],
520 },
521 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800522 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800523 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800524 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
525 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800526 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800527 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800528 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800529 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
530 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
531 &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.
532 &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 Kim673ec5c2020-11-16 11:05:03 -0700533 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
534 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
535 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800536 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700537 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800538 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700539 },
540 ],
541 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800542 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
543 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
544 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
545 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800546 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800547 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
548 &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.
549 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700550 }</pre>
551</div>
552
553<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800554 <code class="details" id="list">list(project, orderBy=None, maxResults=None, filter=None, returnPartialSuccess=None, pageToken=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700555 <pre>Lists all deployments for a given project.
556
557Args:
558 project: string, The project ID for this request. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800559 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=&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. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800560 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`)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800561 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;`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &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) ```
562 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
563 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 Kim673ec5c2020-11-16 11:05:03 -0700564 x__xgafv: string, V1 error format.
565 Allowed values
566 1 - v1 error format
567 2 - v2 error format
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700568
569Returns:
570 An object of the form:
571
572 { # A response containing a partial list of deployments and a page token used to build the next request if the request has been truncated.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800573 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. A token used to continue a truncated list request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700574 &quot;deployments&quot;: [ # Output only. The deployments contained in this response.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700575 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800576 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
577 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
578 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
579 { # Label object for DeploymentUpdate
580 &quot;key&quot;: &quot;A String&quot;, # Key of the label
581 &quot;value&quot;: &quot;A String&quot;, # Value of the label
582 },
583 ],
584 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
585 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800586 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800587 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
588 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
589 &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. 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.
590 &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.
591 &quot;id&quot;: &quot;A String&quot;,
592 &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.
593 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
594 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
595 &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.
596 {
597 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
598 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
599 },
600 ],
601 &quot;config&quot;: { # The configuration to use for this deployment.
602 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
603 },
604 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700605 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800606 { # Label object for Deployments
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700607 &quot;value&quot;: &quot;A String&quot;, # Value of the label
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800608 &quot;key&quot;: &quot;A String&quot;, # Key of the label
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700609 },
610 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800611 &quot;operation&quot;: { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800612 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
613 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800614 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
615 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800616 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800617 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800618 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
619 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800620 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800621 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800622 },
623 ],
624 },
625 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800626 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800627 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800628 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
629 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800630 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800631 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800632 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800633 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
634 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
635 &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.
636 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800637 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
638 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700639 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800640 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800641 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
642 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700643 },
644 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700645 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800646 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
647 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
648 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
649 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800650 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800651 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
652 &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.
653 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800654 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700655 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700656 ],
657 }</pre>
658</div>
659
660<div class="method">
661 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
662 <pre>Retrieves the next page of results.
663
664Args:
665 previous_request: The request for the previous page. (required)
666 previous_response: The response from the request for the previous page. (required)
667
668Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700670 page. Returns None if there are no more items in the collection.
671 </pre>
672</div>
673
674<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800675 <code class="details" id="patch">patch(project, deployment, body=None, deletePolicy=None, preview=None, createPolicy=None, x__xgafv=None)</code>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700676 <pre>Patches a deployment and all of the resources described by the deployment manifest.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700677
678Args:
679 project: string, The project ID for this request. (required)
680 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700681 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700682 The object takes the form of:
683
684{
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800685 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
686 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
687 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
688 { # Label object for DeploymentUpdate
689 &quot;key&quot;: &quot;A String&quot;, # Key of the label
690 &quot;value&quot;: &quot;A String&quot;, # Value of the label
691 },
692 ],
693 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
694 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800695 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800696 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
697 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
698 &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. 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.
699 &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.
700 &quot;id&quot;: &quot;A String&quot;,
701 &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.
702 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
703 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
704 &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.
705 {
706 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
707 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
708 },
709 ],
710 &quot;config&quot;: { # The configuration to use for this deployment.
711 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
712 },
713 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700714 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800715 { # Label object for Deployments
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700716 &quot;value&quot;: &quot;A String&quot;, # Value of the label
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800717 &quot;key&quot;: &quot;A String&quot;, # Key of the label
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700718 },
719 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800720 &quot;operation&quot;: { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800721 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
722 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800723 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
724 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800725 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800726 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800727 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
728 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800729 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800730 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800731 },
732 ],
733 },
734 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800735 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800736 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800737 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
738 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800739 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800740 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800741 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800742 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
743 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
744 &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.
745 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800746 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
747 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700748 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800749 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800750 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
751 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700752 },
753 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700754 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800755 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
756 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
757 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
758 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800759 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800760 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
761 &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.
762 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800763 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800764 }
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700765
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800766 deletePolicy: string, Sets the policy to use for deleting resources.
767 Allowed values
768 DELETE -
769 ABANDON -
770 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800771 createPolicy: string, Sets the policy to use for creating new resources.
772 Allowed values
773 CREATE_OR_ACQUIRE -
774 ACQUIRE -
775 CREATE -
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700776 x__xgafv: string, V1 error format.
777 Allowed values
778 1 - v1 error format
779 2 - v2 error format
780
781Returns:
782 An object of the form:
783
784 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800785 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
786 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800787 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
788 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800789 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800790 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800791 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
792 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800793 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800794 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800795 },
796 ],
797 },
798 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800799 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800800 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800801 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
802 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800803 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800804 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800805 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800806 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
807 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
808 &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.
809 &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 Kim673ec5c2020-11-16 11:05:03 -0700810 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
811 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
812 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800813 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700814 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800815 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700816 },
817 ],
818 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800819 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
820 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
821 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
822 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800823 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800824 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
825 &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.
826 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700827 }</pre>
828</div>
829
830<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700831 <code class="details" id="setIamPolicy">setIamPolicy(project, resource, body=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700832 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.
833
834Args:
835 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700836 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700837 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700838 The object takes the form of:
839
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840{
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700841 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` 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. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &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 } **YAML example:** 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 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the &#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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800842 &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.
843 { # Associates `members` with a `role`.
844 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
845 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `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. * `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. * `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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
846 &quot;A String&quot;,
847 ],
848 &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. Example (Comparison): 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; Example (Equality): 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; Example (Logic): 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; Example (Data Manipulation): 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; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
849 &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.
850 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
851 &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.
852 &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.
853 },
854 },
855 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800856 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700857 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700858 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &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; ] } ] } ] } 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.
859 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700860 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700861 { # Provides the configuration for logging a type of permissions. Example: { &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; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700862 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700863 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700864 &quot;A String&quot;,
865 ],
866 },
867 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700868 },
869 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800870 &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. **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 Kim65020912020-05-20 12:08:20 -0700871 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800872 &quot;bindings&quot;: [ # Flatten Policy to create a backward compatible wire-format. Deprecated. Use &#x27;policy&#x27; to specify bindings.
873 { # Associates `members` with a `role`.
874 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800875 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `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. * `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. * `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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
876 &quot;A String&quot;,
877 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800878 &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. Example (Comparison): 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; Example (Equality): 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; Example (Logic): 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; Example (Data Manipulation): 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; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
879 &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.
880 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
881 &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.
882 &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.
883 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800884 },
885 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800886 &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 Kim715bd7f2019-06-14 16:50:42 -0700887 }
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700888
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700889 x__xgafv: string, V1 error format.
890 Allowed values
891 1 - v1 error format
892 2 - v2 error format
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700893
894Returns:
895 An object of the form:
896
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700897 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` 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. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &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 } **YAML example:** 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 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800898 &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.
899 { # Associates `members` with a `role`.
900 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
901 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `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. * `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. * `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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
902 &quot;A String&quot;,
903 ],
904 &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. Example (Comparison): 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; Example (Equality): 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; Example (Logic): 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; Example (Data Manipulation): 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; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
905 &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.
906 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
907 &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.
908 &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.
909 },
910 },
911 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800912 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700913 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700914 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &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; ] } ] } ] } 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.
915 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700916 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700917 { # Provides the configuration for logging a type of permissions. Example: { &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; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting jose@example.com from DATA_READ logging.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700918 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700919 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700920 &quot;A String&quot;,
921 ],
922 },
923 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700924 },
925 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800926 &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. **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.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700927 }</pre>
928</div>
929
930<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700931 <code class="details" id="stop">stop(project, deployment, body=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700932 <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.
933
934Args:
935 project: string, The project ID for this request. (required)
936 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700937 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700938 The object takes the form of:
939
940{
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700941 &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). 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 -0700942 }
943
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700944 x__xgafv: string, V1 error format.
945 Allowed values
946 1 - v1 error format
947 2 - v2 error format
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700948
949Returns:
950 An object of the form:
951
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700952 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800953 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
954 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800955 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
956 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800957 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800958 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800959 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
960 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800961 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800962 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800963 },
964 ],
965 },
966 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800967 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800968 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800969 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
970 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800971 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800972 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800973 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800974 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
975 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
976 &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.
977 &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 -0700978 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
979 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700980 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800981 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700982 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800983 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700984 },
985 ],
986 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800987 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
988 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
989 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
990 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800991 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800992 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
993 &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.
994 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700995 }</pre>
996</div>
997
998<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700999 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001000 <pre>Returns permissions that a caller has on the specified resource.
1001
1002Args:
1003 project: string, Project ID for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001004 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001005 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001006 The object takes the form of:
1007
1008{
Bu Sun Kim65020912020-05-20 12:08:20 -07001009 &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.
1010 &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001011 ],
1012 }
1013
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001014 x__xgafv: string, V1 error format.
1015 Allowed values
1016 1 - v1 error format
1017 2 - v2 error format
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001018
1019Returns:
1020 An object of the form:
1021
1022 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1024 &quot;A String&quot;,
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001025 ],
1026 }</pre>
1027</div>
1028
1029<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001030 <code class="details" id="update">update(project, deployment, body=None, createPolicy=None, deletePolicy=None, preview=None, x__xgafv=None)</code>
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001031 <pre>Updates a deployment and all of the resources described by the deployment manifest.
1032
1033Args:
1034 project: string, The project ID for this request. (required)
1035 deployment: string, The name of the deployment for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001036 body: object, The request body.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001037 The object takes the form of:
1038
1039{
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001040 &quot;update&quot;: { # Output only. If Deployment Manager is currently updating or previewing an update to this deployment, the updated configuration appears here.
1041 &quot;description&quot;: &quot;A String&quot;, # Output only. An optional user-provided description of the deployment after the current update has been applied.
1042 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
1043 { # Label object for DeploymentUpdate
1044 &quot;key&quot;: &quot;A String&quot;, # Key of the label
1045 &quot;value&quot;: &quot;A String&quot;, # Value of the label
1046 },
1047 ],
1048 &quot;manifest&quot;: &quot;A String&quot;, # Output only. URL of the manifest representing the update configuration of this deployment.
1049 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001050 &quot;insertTime&quot;: &quot;A String&quot;, # Output only. Creation timestamp in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001051 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update timestamp in RFC3339 text format.
1052 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. Server defined URL for the resource.
1053 &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. 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.
1054 &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.
1055 &quot;id&quot;: &quot;A String&quot;,
1056 &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.
1057 &quot;description&quot;: &quot;A String&quot;, # An optional user-provided description of the deployment.
1058 &quot;target&quot;: { # [Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
1059 &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.
1060 {
1061 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
1062 &quot;name&quot;: &quot;A String&quot;, # The name of the file.
1063 },
1064 ],
1065 &quot;config&quot;: { # The configuration to use for this deployment.
1066 &quot;content&quot;: &quot;A String&quot;, # The contents of the file.
1067 },
1068 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001069 &quot;labels&quot;: [ # Map of One Platform labels; provided by the client when the resource is created or updated. Specifically: Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001070 { # Label object for Deployments
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001071 &quot;value&quot;: &quot;A String&quot;, # Value of the label
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001072 &quot;key&quot;: &quot;A String&quot;, # Key of the label
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001073 },
1074 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001075 &quot;operation&quot;: { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. # Output only. The Operation that most recently ran, or is currently running, on this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001076 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1077 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001078 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1079 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001080 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001081 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001082 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1083 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001084 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001085 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001086 },
1087 ],
1088 },
1089 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001090 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001091 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001092 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
1093 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001094 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001095 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001096 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001097 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1098 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
1099 &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.
1100 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001101 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1102 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001103 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001104 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001105 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1106 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001107 },
1108 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001109 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001110 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1111 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1112 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1113 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001114 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001115 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1116 &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.
1117 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001118 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001119 }
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001120
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001121 createPolicy: string, Sets the policy to use for creating new resources.
1122 Allowed values
1123 CREATE_OR_ACQUIRE -
1124 ACQUIRE -
1125 CREATE -
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001126 deletePolicy: string, Sets the policy to use for deleting resources.
1127 Allowed values
1128 DELETE -
1129 ABANDON -
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001130 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 Kim673ec5c2020-11-16 11:05:03 -07001131 x__xgafv: string, V1 error format.
1132 Allowed values
1133 1 - v1 error format
1134 2 - v2 error format
1135
1136Returns:
1137 An object of the form:
1138
1139 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001140 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
1141 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001142 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1143 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001144 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001145 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001146 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example: &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
1147 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001148 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001149 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001150 },
1151 ],
1152 },
1153 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001154 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001155 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001156 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
1157 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001158 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001159 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001160 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001161 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1162 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
1163 &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.
1164 &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 Kim673ec5c2020-11-16 11:05:03 -07001165 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1166 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
1167 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001168 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001169 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001170 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001171 },
1172 ],
1173 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001174 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
1175 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
1176 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
1177 &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`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001178 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001179 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
1180 &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.
1181 &quot;kind&quot;: &quot;deploymentmanager#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
Sai Cheemalapatie833b792017-03-24 15:06:46 -07001182 }</pre>
1183</div>
1184
1185</body></html>