Debian Codegraph @

docs/dyn/config_v1.projects.locations.deploymentGroups.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="config_v1.html">Infrastructure Manager API</a> . <a href="config_v1.projects.html">projects</a> . <a href="config_v1.projects.locations.html">locations</a> . <a href="config_v1.projects.locations.deploymentGroups.html">deploymentGroups</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="config_v1.projects.locations.deploymentGroups.revisions.html">revisions()</a></code>
79 </p>
80 <p class="firstline">Returns the revisions Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, deploymentGroupId=None, requestId=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a DeploymentGroup The newly created DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, deploymentReferencePolicy=None, force=None, requestId=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes a DeploymentGroup</p>
91 <p class="toc_element">
92 <code><a href="#deprovision">deprovision(name, body=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Deprovisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* DeploymentGroupRevision but are *no longer* included in the *current* DeploymentGroup definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.</p>
94 <p class="toc_element">
95 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
96 <p class="firstline">Get a DeploymentGroup for a given project and location.</p>
97 <p class="toc_element">
98 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">List DeploymentGroups for a given project and location.</p>
100 <p class="toc_element">
101 <code><a href="#list_next">list_next()</a></code></p>
102 <p class="firstline">Retrieves the next page of results.</p>
103 <p class="toc_element">
104 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Updates a DeploymentGroup</p>
106 <p class="toc_element">
107 <code><a href="#provision">provision(name, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Provisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* DeploymentGroupRevision but are *no longer* included in the *current* DeploymentGroup definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.</p>
109 <h3>Method Details</h3>
110 <div class="method">
111 <code class="details" id="close">close()</code>
112 <pre>Close httplib2 connections.</pre>
113 </div>
114
115 <div class="method">
116 <code class="details" id="create">create(parent, body=None, deploymentGroupId=None, requestId=None, x__xgafv=None)</code>
117 <pre>Creates a DeploymentGroup The newly created DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls.
118
119 Args:
120 parent: string, Required. The parent in whose context the Deployment Group is created. The parent value is in the format: &#x27;projects/{project_id}/locations/{location}&#x27; (required)
121 body: object, The request body.
122 The object takes the form of:
123
124 { # A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure.
125 &quot;annotations&quot;: { # Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.
126 &quot;a_key&quot;: &quot;A String&quot;,
127 },
128 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment group was created.
129 &quot;deploymentUnits&quot;: [ # The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.
130 { # A DeploymentUnit is a container for a deployment and its dependencies. An existing deployment can be provided directly in the unit, or the unit can act as a placeholder to define the DAG, with the deployment specs supplied in a `provisionDeploymentRequest`.
131 &quot;dependencies&quot;: [ # Required. The IDs of the deployment units within the deployment group that this unit depends on.
132 &quot;A String&quot;,
133 ],
134 &quot;deployment&quot;: &quot;A String&quot;, # Optional. The name of the deployment to be provisioned. Format: &#x27;projects/{project_id}/locations/{location}/deployments/{deployment}&#x27;.
135 &quot;id&quot;: &quot;A String&quot;, # The id of the deployment unit. Must be unique within the deployment group.
136 },
137 ],
138 &quot;labels&quot;: { # Optional. User-defined metadata for the deployment group.
139 &quot;a_key&quot;: &quot;A String&quot;,
140 },
141 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the deployment group. Format: &#x27;projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}&#x27;.
142 &quot;provisioningError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. The error status of the deployment group provisioning or deprovisioning.
143 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
144 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
145 {
146 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
147 },
148 ],
149 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
150 },
151 &quot;provisioningState&quot;: &quot;A String&quot;, # Output only. The provisioning state of the deployment group.
152 &quot;provisioningStateDescription&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current provisioning state.
153 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the deployment group.
154 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current state.
155 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment group was last updated.
156 }
157
158 deploymentGroupId: string, Required. The deployment group ID.
159 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
160 x__xgafv: string, V1 error format.
161 Allowed values
162 1 - v1 error format
163 2 - v2 error format
164
165 Returns:
166 An object of the form:
167
168 { # This resource represents a long-running operation that is the result of a network API call.
169 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
170 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
171 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
172 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
173 {
174 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
175 },
176 ],
177 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
178 },
179 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181 },
182 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
183 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185 },
186 }</pre>
187 </div>
188
189 <div class="method">
190 <code class="details" id="delete">delete(name, deploymentReferencePolicy=None, force=None, requestId=None, x__xgafv=None)</code>
191 <pre>Deletes a DeploymentGroup
192
193 Args:
194 name: string, Required. The name of DeploymentGroup in the format projects/{project_id}/locations/{location_id}/deploymentGroups/{deploymentGroup} (required)
195 deploymentReferencePolicy: string, Optional. Policy on how to handle referenced deployments when deleting the DeploymentGroup. If unspecified, the default behavior is to fail the deletion if any deployments currently referenced in the `deployment_units` of the DeploymentGroup or in the latest revision are not deleted.
196 Allowed values
197 DEPLOYMENT_REFERENCE_POLICY_UNSPECIFIED - The default behavior. If unspecified, the system will act as if `FAIL_IF_ANY_REFERENCES_EXIST` is specified.
198 FAIL_IF_ANY_REFERENCES_EXIST - Fail the deletion if any deployments currently referenced in the `deployment_units` of the DeploymentGroup or in the latest revision are not deleted.
199 FAIL_IF_METADATA_REFERENCES_EXIST - Fail the deletion only if any deployments currently referenced in the `deployment_units` of the DeploymentGroup are not deleted. The deletion will proceed even if the deployments in the latest revision of the DeploymentGroup are not deleted.
200 IGNORE_DEPLOYMENT_REFERENCES - Ignore any deployments currently referenced in the `deployment_units` of the DeploymentGroup or in the latest revision.
201 force: boolean, Optional. If set to true, any revisions for this deployment group will also be deleted. (Otherwise, the request will only work if the deployment group has no revisions.)
202 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208 Returns:
209 An object of the form:
210
211 { # This resource represents a long-running operation that is the result of a network API call.
212 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
213 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
214 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
215 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
216 {
217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
218 },
219 ],
220 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
221 },
222 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
225 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
226 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
227 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
228 },
229 }</pre>
230 </div>
231
232 <div class="method">
233 <code class="details" id="deprovision">deprovision(name, body=None, x__xgafv=None)</code>
234 <pre>Deprovisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* DeploymentGroupRevision but are *no longer* included in the *current* DeploymentGroup definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.
235
236 Args:
237 name: string, Required. The name of the deployment group to deprovision. Format: &#x27;projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}&#x27;. (required)
238 body: object, The request body.
239 The object takes the form of:
240
241 { # The request message for the DeprovisionDeploymentGroup method.
242 &quot;deletePolicy&quot;: &quot;A String&quot;, # Optional. Policy on how resources within each deployment should be handled during deletion. This policy is applied globally to the deletion of all deployments in this group. This corresponds to the &#x27;delete_policy&#x27; field in DeleteDeploymentRequest.
243 &quot;force&quot;: True or False, # Optional. If set to true, this option is propagated to the deletion of each deployment in the group. This corresponds to the &#x27;force&#x27; field in DeleteDeploymentRequest.
244 }
245
246 x__xgafv: string, V1 error format.
247 Allowed values
248 1 - v1 error format
249 2 - v2 error format
250
251 Returns:
252 An object of the form:
253
254 { # This resource represents a long-running operation that is the result of a network API call.
255 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
256 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
257 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
258 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
259 {
260 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
261 },
262 ],
263 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
264 },
265 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
266 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
267 },
268 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
269 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
270 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
271 },
272 }</pre>
273 </div>
274
275 <div class="method">
276 <code class="details" id="get">get(name, x__xgafv=None)</code>
277 <pre>Get a DeploymentGroup for a given project and location.
278
279 Args:
280 name: string, Required. The name of the deployment group to retrieve. Format: &#x27;projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}&#x27;. (required)
281 x__xgafv: string, V1 error format.
282 Allowed values
283 1 - v1 error format
284 2 - v2 error format
285
286 Returns:
287 An object of the form:
288
289 { # A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure.
290 &quot;annotations&quot;: { # Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.
291 &quot;a_key&quot;: &quot;A String&quot;,
292 },
293 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment group was created.
294 &quot;deploymentUnits&quot;: [ # The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.
295 { # A DeploymentUnit is a container for a deployment and its dependencies. An existing deployment can be provided directly in the unit, or the unit can act as a placeholder to define the DAG, with the deployment specs supplied in a `provisionDeploymentRequest`.
296 &quot;dependencies&quot;: [ # Required. The IDs of the deployment units within the deployment group that this unit depends on.
297 &quot;A String&quot;,
298 ],
299 &quot;deployment&quot;: &quot;A String&quot;, # Optional. The name of the deployment to be provisioned. Format: &#x27;projects/{project_id}/locations/{location}/deployments/{deployment}&#x27;.
300 &quot;id&quot;: &quot;A String&quot;, # The id of the deployment unit. Must be unique within the deployment group.
301 },
302 ],
303 &quot;labels&quot;: { # Optional. User-defined metadata for the deployment group.
304 &quot;a_key&quot;: &quot;A String&quot;,
305 },
306 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the deployment group. Format: &#x27;projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}&#x27;.
307 &quot;provisioningError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. The error status of the deployment group provisioning or deprovisioning.
308 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
309 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
310 {
311 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
312 },
313 ],
314 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
315 },
316 &quot;provisioningState&quot;: &quot;A String&quot;, # Output only. The provisioning state of the deployment group.
317 &quot;provisioningStateDescription&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current provisioning state.
318 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the deployment group.
319 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current state.
320 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment group was last updated.
321 }</pre>
322 </div>
323
324 <div class="method">
325 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
326 <pre>List DeploymentGroups for a given project and location.
327
328 Args:
329 parent: string, Required. The parent, which owns this collection of deployment groups. Format: &#x27;projects/{project_id}/locations/{location}&#x27;. (required)
330 filter: string, Optional. Lists the DeploymentGroups that match the filter expression. A filter expression filters the deployment groups listed in the response. The expression must be of the form &#x27;{field} {operator} {value}&#x27; where operators: &#x27;&lt;&#x27;, &#x27;&gt;&#x27;, &#x27;&lt;=&#x27;, &#x27;&gt;=&#x27;, &#x27;!=&#x27;, &#x27;=&#x27;, &#x27;:&#x27; are supported (colon &#x27;:&#x27; represents a HAS operator which is roughly synonymous with equality). {field} can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = &quot;projects/foo/locations/us-central1/deploymentGroups/bar&quot; - Filter by labels: - Resources that have a key called &#x27;foo&#x27; labels.foo:* - Resources that have a key called &#x27;foo&#x27; whose value is &#x27;bar&#x27; labels.foo = bar - Filter by state: - DeploymentGroups in CREATING state. state=CREATING
331 orderBy: string, Optional. Field to use to sort the list.
332 pageSize: integer, Optional. When requesting a page of resources, &#x27;page_size&#x27; specifies number of resources to return. If unspecified, at most 500 will be returned. The maximum value is 1000.
333 pageToken: string, Optional. Token returned by previous call to &#x27;ListDeploymentGroups&#x27; which specifies the position in the list from where to continue listing the deployment groups.
334 x__xgafv: string, V1 error format.
335 Allowed values
336 1 - v1 error format
337 2 - v2 error format
338
339 Returns:
340 An object of the form:
341
342 { # The response message for the ListDeploymentGroups method.
343 &quot;deploymentGroups&quot;: [ # The deployment groups from the specified collection.
344 { # A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure.
345 &quot;annotations&quot;: { # Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.
346 &quot;a_key&quot;: &quot;A String&quot;,
347 },
348 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment group was created.
349 &quot;deploymentUnits&quot;: [ # The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.
350 { # A DeploymentUnit is a container for a deployment and its dependencies. An existing deployment can be provided directly in the unit, or the unit can act as a placeholder to define the DAG, with the deployment specs supplied in a `provisionDeploymentRequest`.
351 &quot;dependencies&quot;: [ # Required. The IDs of the deployment units within the deployment group that this unit depends on.
352 &quot;A String&quot;,
353 ],
354 &quot;deployment&quot;: &quot;A String&quot;, # Optional. The name of the deployment to be provisioned. Format: &#x27;projects/{project_id}/locations/{location}/deployments/{deployment}&#x27;.
355 &quot;id&quot;: &quot;A String&quot;, # The id of the deployment unit. Must be unique within the deployment group.
356 },
357 ],
358 &quot;labels&quot;: { # Optional. User-defined metadata for the deployment group.
359 &quot;a_key&quot;: &quot;A String&quot;,
360 },
361 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the deployment group. Format: &#x27;projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}&#x27;.
362 &quot;provisioningError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. The error status of the deployment group provisioning or deprovisioning.
363 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
364 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
365 {
366 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
367 },
368 ],
369 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
370 },
371 &quot;provisioningState&quot;: &quot;A String&quot;, # Output only. The provisioning state of the deployment group.
372 &quot;provisioningStateDescription&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current provisioning state.
373 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the deployment group.
374 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current state.
375 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment group was last updated.
376 },
377 ],
378 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to be supplied to the next ListDeploymentGroups request via `page_token` to obtain the next set of results.
379 &quot;unreachable&quot;: [ # Locations that could not be reached.
380 &quot;A String&quot;,
381 ],
382 }</pre>
383 </div>
384
385 <div class="method">
386 <code class="details" id="list_next">list_next()</code>
387 <pre>Retrieves the next page of results.
388
389 Args:
390 previous_request: The request for the previous page. (required)
391 previous_response: The response from the request for the previous page. (required)
392
393 Returns:
394 A request object that you can call &#x27;execute()&#x27; on to request the next
395 page. Returns None if there are no more items in the collection.
396 </pre>
397 </div>
398
399 <div class="method">
400 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
401 <pre>Updates a DeploymentGroup
402
403 Args:
404 name: string, Identifier. The name of the deployment group. Format: &#x27;projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}&#x27;. (required)
405 body: object, The request body.
406 The object takes the form of:
407
408 { # A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure.
409 &quot;annotations&quot;: { # Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.
410 &quot;a_key&quot;: &quot;A String&quot;,
411 },
412 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment group was created.
413 &quot;deploymentUnits&quot;: [ # The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.
414 { # A DeploymentUnit is a container for a deployment and its dependencies. An existing deployment can be provided directly in the unit, or the unit can act as a placeholder to define the DAG, with the deployment specs supplied in a `provisionDeploymentRequest`.
415 &quot;dependencies&quot;: [ # Required. The IDs of the deployment units within the deployment group that this unit depends on.
416 &quot;A String&quot;,
417 ],
418 &quot;deployment&quot;: &quot;A String&quot;, # Optional. The name of the deployment to be provisioned. Format: &#x27;projects/{project_id}/locations/{location}/deployments/{deployment}&#x27;.
419 &quot;id&quot;: &quot;A String&quot;, # The id of the deployment unit. Must be unique within the deployment group.
420 },
421 ],
422 &quot;labels&quot;: { # Optional. User-defined metadata for the deployment group.
423 &quot;a_key&quot;: &quot;A String&quot;,
424 },
425 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the deployment group. Format: &#x27;projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}&#x27;.
426 &quot;provisioningError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. The error status of the deployment group provisioning or deprovisioning.
427 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
428 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
429 {
430 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
431 },
432 ],
433 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
434 },
435 &quot;provisioningState&quot;: &quot;A String&quot;, # Output only. The provisioning state of the deployment group.
436 &quot;provisioningStateDescription&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current provisioning state.
437 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the deployment group.
438 &quot;stateDescription&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current state.
439 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment group was last updated.
440 }
441
442 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
443 updateMask: string, Optional. Field mask used to specify the fields to be overwritten in the Deployment Group resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
444 x__xgafv: string, V1 error format.
445 Allowed values
446 1 - v1 error format
447 2 - v2 error format
448
449 Returns:
450 An object of the form:
451
452 { # This resource represents a long-running operation that is the result of a network API call.
453 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
454 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
455 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
456 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
457 {
458 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
459 },
460 ],
461 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
462 },
463 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
465 },
466 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
467 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
468 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
469 },
470 }</pre>
471 </div>
472
473 <div class="method">
474 <code class="details" id="provision">provision(name, body=None, x__xgafv=None)</code>
475 <pre>Provisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* DeploymentGroupRevision but are *no longer* included in the *current* DeploymentGroup definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.
476
477 Args:
478 name: string, Required. The name of the deployment group to provision. Format: &#x27;projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}&#x27;. (required)
479 body: object, The request body.
480 The object takes the form of:
481
482 { # The request message for the ProvisionDeploymentGroup method.
483 &quot;deploymentSpecs&quot;: { # Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the `DeploymentSpec`. Provisioning will fail if a `deployment_spec` has a `deployment_id` that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup&#x27;s `deployment_units`, it will be recreated if included in `deployment_specs`.
484 &quot;a_key&quot;: { # Spec for a deployment to be created.
485 &quot;deployment&quot;: { # A Deployment is a group of resources and configs managed and provisioned by Infra Manager. # Required. The deployment to be created.
486 &quot;annotations&quot;: { # Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployments during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.
487 &quot;a_key&quot;: &quot;A String&quot;,
488 },
489 &quot;artifactsGcsBucket&quot;: &quot;A String&quot;, # User-defined location of Cloud Build logs and artifacts in Google Cloud Storage. Format: `gs://{bucket}/{folder}` A default bucket will be bootstrapped if the field is not set or empty. Default bucket format: `gs://--blueprint-config` Constraints: - The bucket needs to be in the same project as the deployment - The path cannot be within the path of `gcs_source` - The field cannot be updated, including changing its presence
490 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment was created.
491 &quot;deleteBuild&quot;: &quot;A String&quot;, # Output only. Cloud Build instance UUID associated with deleting this deployment.
492 &quot;deleteLogs&quot;: &quot;A String&quot;, # Output only. Location of Cloud Build logs in Google Cloud Storage, populated when deleting this deployment. Format: `gs://{bucket}/{object}`.
493 &quot;deleteResults&quot;: { # Outputs and artifacts from applying a deployment. # Output only. Location of artifacts from a DeleteDeployment operation.
494 &quot;artifacts&quot;: &quot;A String&quot;, # Location of artifacts (e.g. logs) in Google Cloud Storage. Format: `gs://{bucket}/{object}`
495 &quot;content&quot;: &quot;A String&quot;, # Location of a blueprint copy and other manifests in Google Cloud Storage. Format: `gs://{bucket}/{object}`
496 &quot;outputs&quot;: { # Map of output name to output info.
497 &quot;a_key&quot;: { # Describes a Terraform output.
498 &quot;sensitive&quot;: True or False, # Identifies whether Terraform has set this output as a potential sensitive value.
499 &quot;value&quot;: &quot;&quot;, # Value of output.
500 },
501 },
502 },
503 &quot;errorCode&quot;: &quot;A String&quot;, # Output only. Error code describing errors that may have occurred.
504 &quot;errorLogs&quot;: &quot;A String&quot;, # Output only. Location of Terraform error logs in Google Cloud Storage. Format: `gs://{bucket}/{object}`.
505 &quot;importExistingResources&quot;: True or False, # By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation. If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation. Not all resource types are supported, refer to documentation.
506 &quot;labels&quot;: { # Optional. User-defined metadata for the deployment.
507 &quot;a_key&quot;: &quot;A String&quot;,
508 },
509 &quot;latestRevision&quot;: &quot;A String&quot;, # Output only. Revision name that was most recently applied. Format: `projects/{project}/locations/{location}/deployments/{deployment}/ revisions/{revision}`
510 &quot;lockState&quot;: &quot;A String&quot;, # Output only. Current lock state of the deployment.
511 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the deployment. Format: `projects/{project}/locations/{location}/deployments/{deployment}`
512 &quot;providerConfig&quot;: { # ProviderConfig contains the provider configurations. # Optional. This field specifies the provider configurations.
513 &quot;sourceType&quot;: &quot;A String&quot;, # Optional. ProviderSource specifies the source type of the provider.
514 },
515 &quot;quotaValidation&quot;: &quot;A String&quot;, # Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies.
516 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. User-specified Service Account (SA) credentials to be used when actuating resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
517 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the deployment.
518 &quot;stateDetail&quot;: &quot;A String&quot;, # Output only. Additional information regarding the current state.
519 &quot;terraformBlueprint&quot;: { # TerraformBlueprint describes the source of a Terraform root module which describes the resources and configs to be deployed. # A blueprint described using Terraform&#x27;s HashiCorp Configuration Language as a root module.
520 &quot;externalValues&quot;: { # Optional. Map of input variable names in this blueprint to configurations for importing values from external sources.
521 &quot;a_key&quot;: { # Configuration for a source of an external value.
522 &quot;deploymentSource&quot;: { # Configuration for a value sourced from a Deployment. # A source from a Deployment.
523 &quot;deployment&quot;: &quot;A String&quot;, # Required. The resource name of the source Deployment to import the output from. Format: projects/{project}/locations/{location}/deployments/{deployment} The source deployment must be in the same project and location.
524 &quot;outputName&quot;: &quot;A String&quot;, # Required. The name of the output variable in the source deployment&#x27;s latest successfully applied revision.
525 },
526 },
527 },
528 &quot;gcsSource&quot;: &quot;A String&quot;, # URI of an object in Google Cloud Storage. Format: `gs://{bucket}/{object}` URI may also specify an object version for zipped objects. Format: `gs://{bucket}/{object}#{version}`
529 &quot;gitSource&quot;: { # A set of files in a Git repository. # URI of a public Git repo.
530 &quot;directory&quot;: &quot;A String&quot;, # Subdirectory inside the repository. Example: &#x27;staging/my-package&#x27;
531 &quot;ref&quot;: &quot;A String&quot;, # Git reference (e.g. branch or tag).
532 &quot;repo&quot;: &quot;A String&quot;, # Repository URL. Example: &#x27;https://github.com/kubernetes/examples.git&#x27;
533 },
534 &quot;inputValues&quot;: { # Optional. Input variable values for the Terraform blueprint.
535 &quot;a_key&quot;: { # A Terraform input variable.
536 &quot;inputValue&quot;: &quot;&quot;, # Optional. Input variable value.
537 },
538 },
539 },
540 &quot;tfErrors&quot;: [ # Output only. Errors encountered when deleting this deployment. Errors are truncated to 10 entries, see `delete_results` and `error_logs` for full details.
541 { # Errors encountered during actuation using Terraform
542 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Output only. Original error response from underlying Google API, if available.
543 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
544 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
545 {
546 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
547 },
548 ],
549 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
550 },
551 &quot;errorDescription&quot;: &quot;A String&quot;, # A human-readable error description.
552 &quot;httpResponseCode&quot;: 42, # HTTP response code returned from Google Cloud Platform APIs when Terraform fails to provision the resource. If unset or 0, no HTTP response code was returned by Terraform.
553 &quot;resourceAddress&quot;: &quot;A String&quot;, # Address of the resource associated with the error, e.g. `google_compute_network.vpc_network`.
554 },
555 ],
556 &quot;tfVersion&quot;: &quot;A String&quot;, # Output only. The current Terraform version set on the deployment. It is in the format of &quot;Major.Minor.Patch&quot;, for example, &quot;1.3.10&quot;.
557 &quot;tfVersionConstraint&quot;: &quot;A String&quot;, # The user-specified Terraform version constraint. Example: &quot;=1.3.10&quot;.
558 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the deployment was last modified.
559 &quot;workerPool&quot;: &quot;A String&quot;, # The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: `projects/{project}/locations/{location}/workerPools/{workerPoolId}`. If this field is unspecified, the default Cloud Build worker pool will be used.
560 },
561 &quot;deploymentId&quot;: &quot;A String&quot;, # Required. The id of the deployment to be created which doesn&#x27;t include the project id and location.
562 },
563 },
564 }
565
566 x__xgafv: string, V1 error format.
567 Allowed values
568 1 - v1 error format
569 2 - v2 error format
570
571 Returns:
572 An object of the form:
573
574 { # This resource represents a long-running operation that is the result of a network API call.
575 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
576 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
577 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
578 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
579 {
580 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
581 },
582 ],
583 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
584 },
585 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
586 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
587 },
588 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
589 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
590 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
591 },
592 }</pre>
593 </div>
594
595 </body></html>