Debian Codegraph @

docs/dyn/config_v1.projects.locations.previews.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.previews.html">previews</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="config_v1.projects.locations.previews.resourceChanges.html">resourceChanges()</a></code>
79 </p>
80 <p class="firstline">Returns the resourceChanges Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="config_v1.projects.locations.previews.resourceDrifts.html">resourceDrifts()</a></code>
84 </p>
85 <p class="firstline">Returns the resourceDrifts Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#create">create(parent, body=None, previewId=None, requestId=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Creates a Preview.</p>
93 <p class="toc_element">
94 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
95 <p class="firstline">Deletes a Preview.</p>
96 <p class="toc_element">
97 <code><a href="#export">export(parent, body=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">Export Preview results.</p>
99 <p class="toc_element">
100 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
101 <p class="firstline">Gets details about a Preview.</p>
102 <p class="toc_element">
103 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
104 <p class="firstline">Lists Previews in a given project and location.</p>
105 <p class="toc_element">
106 <code><a href="#list_next">list_next()</a></code></p>
107 <p class="firstline">Retrieves the next page of results.</p>
108 <h3>Method Details</h3>
109 <div class="method">
110 <code class="details" id="close">close()</code>
111 <pre>Close httplib2 connections.</pre>
112 </div>
113
114 <div class="method">
115 <code class="details" id="create">create(parent, body=None, previewId=None, requestId=None, x__xgafv=None)</code>
116 <pre>Creates a Preview.
117
118 Args:
119 parent: string, Required. The parent in whose context the Preview is created. The parent value is in the format: &#x27;projects/{project_id}/locations/{location}&#x27;. (required)
120 body: object, The request body.
121 The object takes the form of:
122
123 { # A preview represents a set of actions Infra Manager would perform to move the resources towards the desired state as specified in the configuration.
124 &quot;annotations&quot;: { # Optional. Arbitrary key-value metadata storage e.g. to help client tools identify preview during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.
125 &quot;a_key&quot;: &quot;A String&quot;,
126 },
127 &quot;artifactsGcsBucket&quot;: &quot;A String&quot;, # User-defined location of Cloud Build logs, artifacts, and 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` If omitted and deployment resource ref provided has artifacts_gcs_bucket defined, that artifact bucket is used.
128 &quot;build&quot;: &quot;A String&quot;, # Output only. Cloud Build instance UUID associated with this preview.
129 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the preview was created.
130 &quot;deployment&quot;: &quot;A String&quot;, # Optional. Optional deployment reference. If specified, the preview will be performed using the provided deployment&#x27;s current state and use any relevant fields from the deployment unless explicitly specified in the preview create request.
131 &quot;errorCode&quot;: &quot;A String&quot;, # Output only. Code describing any errors that may have occurred.
132 &quot;errorLogs&quot;: &quot;A String&quot;, # Output only. Link to tf-error.ndjson file, which contains the full list of the errors encountered during a Terraform preview. Format: `gs://{bucket}/{object}`.
133 &quot;errorStatus&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. Additional information regarding the current state.
134 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
135 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
136 {
137 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
138 },
139 ],
140 &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.
141 },
142 &quot;labels&quot;: { # Optional. User-defined labels for the preview.
143 &quot;a_key&quot;: &quot;A String&quot;,
144 },
145 &quot;logs&quot;: &quot;A String&quot;, # Output only. Location of preview logs in `gs://{bucket}/{object}` format.
146 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the preview. Resource name can be user provided or server generated ID if unspecified. Format: `projects/{project}/locations/{location}/previews/{preview}`
147 &quot;previewArtifacts&quot;: { # Artifacts created by preview. # Output only. Artifacts from preview.
148 &quot;artifacts&quot;: &quot;A String&quot;, # Output only. Location of artifacts in Google Cloud Storage. Format: `gs://{bucket}/{object}`
149 &quot;content&quot;: &quot;A String&quot;, # Output only. Location of a blueprint copy and other content in Google Cloud Storage. Format: `gs://{bucket}/{object}`
150 },
151 &quot;previewMode&quot;: &quot;A String&quot;, # Optional. Current mode of preview.
152 &quot;providerConfig&quot;: { # ProviderConfig contains the provider configurations. # Optional. This field specifies the provider configurations.
153 &quot;sourceType&quot;: &quot;A String&quot;, # Optional. ProviderSource specifies the source type of the provider.
154 },
155 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
156 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the preview.
157 &quot;terraformBlueprint&quot;: { # TerraformBlueprint describes the source of a Terraform root module which describes the resources and configs to be deployed. # The terraform blueprint to preview.
158 &quot;externalValues&quot;: { # Optional. Map of input variable names in this blueprint to configurations for importing values from external sources.
159 &quot;a_key&quot;: { # Configuration for a source of an external value.
160 &quot;deploymentSource&quot;: { # Configuration for a value sourced from a Deployment. # A source from a Deployment.
161 &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.
162 &quot;outputName&quot;: &quot;A String&quot;, # Required. The name of the output variable in the source deployment&#x27;s latest successfully applied revision.
163 },
164 },
165 },
166 &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}`
167 &quot;gitSource&quot;: { # A set of files in a Git repository. # URI of a public Git repo.
168 &quot;directory&quot;: &quot;A String&quot;, # Subdirectory inside the repository. Example: &#x27;staging/my-package&#x27;
169 &quot;ref&quot;: &quot;A String&quot;, # Git reference (e.g. branch or tag).
170 &quot;repo&quot;: &quot;A String&quot;, # Repository URL. Example: &#x27;https://github.com/kubernetes/examples.git&#x27;
171 },
172 &quot;inputValues&quot;: { # Optional. Input variable values for the Terraform blueprint.
173 &quot;a_key&quot;: { # A Terraform input variable.
174 &quot;inputValue&quot;: &quot;&quot;, # Optional. Input variable value.
175 },
176 },
177 },
178 &quot;tfErrors&quot;: [ # Output only. Summary of errors encountered during Terraform preview. It has a size limit of 10, i.e. only top 10 errors will be summarized here.
179 { # Errors encountered during actuation using Terraform
180 &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.
181 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
182 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
183 {
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185 },
186 ],
187 &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.
188 },
189 &quot;errorDescription&quot;: &quot;A String&quot;, # A human-readable error description.
190 &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.
191 &quot;resourceAddress&quot;: &quot;A String&quot;, # Address of the resource associated with the error, e.g. `google_compute_network.vpc_network`.
192 },
193 ],
194 &quot;tfVersion&quot;: &quot;A String&quot;, # Output only. The current Terraform version set on the preview. It is in the format of &quot;Major.Minor.Patch&quot;, for example, &quot;1.3.10&quot;.
195 &quot;tfVersionConstraint&quot;: &quot;A String&quot;, # The user-specified Terraform version constraint. Example: &quot;=1.3.10&quot;.
196 &quot;workerPool&quot;: &quot;A String&quot;, # The user-specified 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. If omitted and deployment resource ref provided has worker_pool defined, that worker pool is used.
197 }
198
199 previewId: string, Optional. The preview ID.
200 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).
201 x__xgafv: string, V1 error format.
202 Allowed values
203 1 - v1 error format
204 2 - v2 error format
205
206 Returns:
207 An object of the form:
208
209 { # This resource represents a long-running operation that is the result of a network API call.
210 &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.
211 &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.
212 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
213 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
214 {
215 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
216 },
217 ],
218 &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.
219 },
220 &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.
221 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
222 },
223 &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}`.
224 &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`.
225 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
226 },
227 }</pre>
228 </div>
229
230 <div class="method">
231 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
232 <pre>Deletes a Preview.
233
234 Args:
235 name: string, Required. The name of the Preview in the format: &#x27;projects/{project_id}/locations/{location}/previews/{preview}&#x27;. (required)
236 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).
237 x__xgafv: string, V1 error format.
238 Allowed values
239 1 - v1 error format
240 2 - v2 error format
241
242 Returns:
243 An object of the form:
244
245 { # This resource represents a long-running operation that is the result of a network API call.
246 &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.
247 &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.
248 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
249 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
250 {
251 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
252 },
253 ],
254 &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.
255 },
256 &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.
257 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
258 },
259 &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}`.
260 &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`.
261 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
262 },
263 }</pre>
264 </div>
265
266 <div class="method">
267 <code class="details" id="export">export(parent, body=None, x__xgafv=None)</code>
268 <pre>Export Preview results.
269
270 Args:
271 parent: string, Required. The preview whose results should be exported. The preview value is in the format: &#x27;projects/{project_id}/locations/{location}/previews/{preview}&#x27;. (required)
272 body: object, The request body.
273 The object takes the form of:
274
275 { # A request to export preview results.
276 }
277
278 x__xgafv: string, V1 error format.
279 Allowed values
280 1 - v1 error format
281 2 - v2 error format
282
283 Returns:
284 An object of the form:
285
286 { # A response to `ExportPreviewResult` call. Contains preview results.
287 &quot;result&quot;: { # Contains a signed Cloud Storage URLs. # Output only. Signed URLs for accessing the plan files.
288 &quot;binarySignedUri&quot;: &quot;A String&quot;, # Output only. Plan binary signed URL
289 &quot;jsonSignedUri&quot;: &quot;A String&quot;, # Output only. Plan JSON signed URL
290 },
291 }</pre>
292 </div>
293
294 <div class="method">
295 <code class="details" id="get">get(name, x__xgafv=None)</code>
296 <pre>Gets details about a Preview.
297
298 Args:
299 name: string, Required. The name of the preview. Format: &#x27;projects/{project_id}/locations/{location}/previews/{preview}&#x27;. (required)
300 x__xgafv: string, V1 error format.
301 Allowed values
302 1 - v1 error format
303 2 - v2 error format
304
305 Returns:
306 An object of the form:
307
308 { # A preview represents a set of actions Infra Manager would perform to move the resources towards the desired state as specified in the configuration.
309 &quot;annotations&quot;: { # Optional. Arbitrary key-value metadata storage e.g. to help client tools identify preview during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.
310 &quot;a_key&quot;: &quot;A String&quot;,
311 },
312 &quot;artifactsGcsBucket&quot;: &quot;A String&quot;, # User-defined location of Cloud Build logs, artifacts, and 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` If omitted and deployment resource ref provided has artifacts_gcs_bucket defined, that artifact bucket is used.
313 &quot;build&quot;: &quot;A String&quot;, # Output only. Cloud Build instance UUID associated with this preview.
314 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the preview was created.
315 &quot;deployment&quot;: &quot;A String&quot;, # Optional. Optional deployment reference. If specified, the preview will be performed using the provided deployment&#x27;s current state and use any relevant fields from the deployment unless explicitly specified in the preview create request.
316 &quot;errorCode&quot;: &quot;A String&quot;, # Output only. Code describing any errors that may have occurred.
317 &quot;errorLogs&quot;: &quot;A String&quot;, # Output only. Link to tf-error.ndjson file, which contains the full list of the errors encountered during a Terraform preview. Format: `gs://{bucket}/{object}`.
318 &quot;errorStatus&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. Additional information regarding the current state.
319 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
320 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
321 {
322 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
323 },
324 ],
325 &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.
326 },
327 &quot;labels&quot;: { # Optional. User-defined labels for the preview.
328 &quot;a_key&quot;: &quot;A String&quot;,
329 },
330 &quot;logs&quot;: &quot;A String&quot;, # Output only. Location of preview logs in `gs://{bucket}/{object}` format.
331 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the preview. Resource name can be user provided or server generated ID if unspecified. Format: `projects/{project}/locations/{location}/previews/{preview}`
332 &quot;previewArtifacts&quot;: { # Artifacts created by preview. # Output only. Artifacts from preview.
333 &quot;artifacts&quot;: &quot;A String&quot;, # Output only. Location of artifacts in Google Cloud Storage. Format: `gs://{bucket}/{object}`
334 &quot;content&quot;: &quot;A String&quot;, # Output only. Location of a blueprint copy and other content in Google Cloud Storage. Format: `gs://{bucket}/{object}`
335 },
336 &quot;previewMode&quot;: &quot;A String&quot;, # Optional. Current mode of preview.
337 &quot;providerConfig&quot;: { # ProviderConfig contains the provider configurations. # Optional. This field specifies the provider configurations.
338 &quot;sourceType&quot;: &quot;A String&quot;, # Optional. ProviderSource specifies the source type of the provider.
339 },
340 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
341 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the preview.
342 &quot;terraformBlueprint&quot;: { # TerraformBlueprint describes the source of a Terraform root module which describes the resources and configs to be deployed. # The terraform blueprint to preview.
343 &quot;externalValues&quot;: { # Optional. Map of input variable names in this blueprint to configurations for importing values from external sources.
344 &quot;a_key&quot;: { # Configuration for a source of an external value.
345 &quot;deploymentSource&quot;: { # Configuration for a value sourced from a Deployment. # A source from a Deployment.
346 &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.
347 &quot;outputName&quot;: &quot;A String&quot;, # Required. The name of the output variable in the source deployment&#x27;s latest successfully applied revision.
348 },
349 },
350 },
351 &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}`
352 &quot;gitSource&quot;: { # A set of files in a Git repository. # URI of a public Git repo.
353 &quot;directory&quot;: &quot;A String&quot;, # Subdirectory inside the repository. Example: &#x27;staging/my-package&#x27;
354 &quot;ref&quot;: &quot;A String&quot;, # Git reference (e.g. branch or tag).
355 &quot;repo&quot;: &quot;A String&quot;, # Repository URL. Example: &#x27;https://github.com/kubernetes/examples.git&#x27;
356 },
357 &quot;inputValues&quot;: { # Optional. Input variable values for the Terraform blueprint.
358 &quot;a_key&quot;: { # A Terraform input variable.
359 &quot;inputValue&quot;: &quot;&quot;, # Optional. Input variable value.
360 },
361 },
362 },
363 &quot;tfErrors&quot;: [ # Output only. Summary of errors encountered during Terraform preview. It has a size limit of 10, i.e. only top 10 errors will be summarized here.
364 { # Errors encountered during actuation using Terraform
365 &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.
366 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
367 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
368 {
369 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
370 },
371 ],
372 &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.
373 },
374 &quot;errorDescription&quot;: &quot;A String&quot;, # A human-readable error description.
375 &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.
376 &quot;resourceAddress&quot;: &quot;A String&quot;, # Address of the resource associated with the error, e.g. `google_compute_network.vpc_network`.
377 },
378 ],
379 &quot;tfVersion&quot;: &quot;A String&quot;, # Output only. The current Terraform version set on the preview. It is in the format of &quot;Major.Minor.Patch&quot;, for example, &quot;1.3.10&quot;.
380 &quot;tfVersionConstraint&quot;: &quot;A String&quot;, # The user-specified Terraform version constraint. Example: &quot;=1.3.10&quot;.
381 &quot;workerPool&quot;: &quot;A String&quot;, # The user-specified 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. If omitted and deployment resource ref provided has worker_pool defined, that worker pool is used.
382 }</pre>
383 </div>
384
385 <div class="method">
386 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
387 <pre>Lists Previews in a given project and location.
388
389 Args:
390 parent: string, Required. The parent in whose context the Previews are listed. The parent value is in the format: &#x27;projects/{project_id}/locations/{location}&#x27;. (required)
391 filter: string, Optional. Lists the Deployments that match the filter expression. A filter expression filters the resources 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/deployments/bar - 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: - Deployments in CREATING state. state=CREATING
392 orderBy: string, Optional. Field to use to sort the list.
393 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.
394 pageToken: string, Optional. Token returned by previous call to &#x27;ListDeployments&#x27; which specifies the position in the list from where to continue listing the resources.
395 x__xgafv: string, V1 error format.
396 Allowed values
397 1 - v1 error format
398 2 - v2 error format
399
400 Returns:
401 An object of the form:
402
403 { # A response to a `ListPreviews` call. Contains a list of Previews.
404 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to be supplied to the next ListPreviews request via `page_token` to obtain the next set of results.
405 &quot;previews&quot;: [ # List of Previews.
406 { # A preview represents a set of actions Infra Manager would perform to move the resources towards the desired state as specified in the configuration.
407 &quot;annotations&quot;: { # Optional. Arbitrary key-value metadata storage e.g. to help client tools identify preview during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.
408 &quot;a_key&quot;: &quot;A String&quot;,
409 },
410 &quot;artifactsGcsBucket&quot;: &quot;A String&quot;, # User-defined location of Cloud Build logs, artifacts, and 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` If omitted and deployment resource ref provided has artifacts_gcs_bucket defined, that artifact bucket is used.
411 &quot;build&quot;: &quot;A String&quot;, # Output only. Cloud Build instance UUID associated with this preview.
412 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the preview was created.
413 &quot;deployment&quot;: &quot;A String&quot;, # Optional. Optional deployment reference. If specified, the preview will be performed using the provided deployment&#x27;s current state and use any relevant fields from the deployment unless explicitly specified in the preview create request.
414 &quot;errorCode&quot;: &quot;A String&quot;, # Output only. Code describing any errors that may have occurred.
415 &quot;errorLogs&quot;: &quot;A String&quot;, # Output only. Link to tf-error.ndjson file, which contains the full list of the errors encountered during a Terraform preview. Format: `gs://{bucket}/{object}`.
416 &quot;errorStatus&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. Additional information regarding the current state.
417 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
418 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
419 {
420 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
421 },
422 ],
423 &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.
424 },
425 &quot;labels&quot;: { # Optional. User-defined labels for the preview.
426 &quot;a_key&quot;: &quot;A String&quot;,
427 },
428 &quot;logs&quot;: &quot;A String&quot;, # Output only. Location of preview logs in `gs://{bucket}/{object}` format.
429 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the preview. Resource name can be user provided or server generated ID if unspecified. Format: `projects/{project}/locations/{location}/previews/{preview}`
430 &quot;previewArtifacts&quot;: { # Artifacts created by preview. # Output only. Artifacts from preview.
431 &quot;artifacts&quot;: &quot;A String&quot;, # Output only. Location of artifacts in Google Cloud Storage. Format: `gs://{bucket}/{object}`
432 &quot;content&quot;: &quot;A String&quot;, # Output only. Location of a blueprint copy and other content in Google Cloud Storage. Format: `gs://{bucket}/{object}`
433 },
434 &quot;previewMode&quot;: &quot;A String&quot;, # Optional. Current mode of preview.
435 &quot;providerConfig&quot;: { # ProviderConfig contains the provider configurations. # Optional. This field specifies the provider configurations.
436 &quot;sourceType&quot;: &quot;A String&quot;, # Optional. ProviderSource specifies the source type of the provider.
437 },
438 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. User-specified Service Account (SA) credentials to be used when previewing resources. Format: `projects/{projectID}/serviceAccounts/{serviceAccount}`
439 &quot;state&quot;: &quot;A String&quot;, # Output only. Current state of the preview.
440 &quot;terraformBlueprint&quot;: { # TerraformBlueprint describes the source of a Terraform root module which describes the resources and configs to be deployed. # The terraform blueprint to preview.
441 &quot;externalValues&quot;: { # Optional. Map of input variable names in this blueprint to configurations for importing values from external sources.
442 &quot;a_key&quot;: { # Configuration for a source of an external value.
443 &quot;deploymentSource&quot;: { # Configuration for a value sourced from a Deployment. # A source from a Deployment.
444 &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.
445 &quot;outputName&quot;: &quot;A String&quot;, # Required. The name of the output variable in the source deployment&#x27;s latest successfully applied revision.
446 },
447 },
448 },
449 &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}`
450 &quot;gitSource&quot;: { # A set of files in a Git repository. # URI of a public Git repo.
451 &quot;directory&quot;: &quot;A String&quot;, # Subdirectory inside the repository. Example: &#x27;staging/my-package&#x27;
452 &quot;ref&quot;: &quot;A String&quot;, # Git reference (e.g. branch or tag).
453 &quot;repo&quot;: &quot;A String&quot;, # Repository URL. Example: &#x27;https://github.com/kubernetes/examples.git&#x27;
454 },
455 &quot;inputValues&quot;: { # Optional. Input variable values for the Terraform blueprint.
456 &quot;a_key&quot;: { # A Terraform input variable.
457 &quot;inputValue&quot;: &quot;&quot;, # Optional. Input variable value.
458 },
459 },
460 },
461 &quot;tfErrors&quot;: [ # Output only. Summary of errors encountered during Terraform preview. It has a size limit of 10, i.e. only top 10 errors will be summarized here.
462 { # Errors encountered during actuation using Terraform
463 &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.
464 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
465 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
466 {
467 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
468 },
469 ],
470 &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.
471 },
472 &quot;errorDescription&quot;: &quot;A String&quot;, # A human-readable error description.
473 &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.
474 &quot;resourceAddress&quot;: &quot;A String&quot;, # Address of the resource associated with the error, e.g. `google_compute_network.vpc_network`.
475 },
476 ],
477 &quot;tfVersion&quot;: &quot;A String&quot;, # Output only. The current Terraform version set on the preview. It is in the format of &quot;Major.Minor.Patch&quot;, for example, &quot;1.3.10&quot;.
478 &quot;tfVersionConstraint&quot;: &quot;A String&quot;, # The user-specified Terraform version constraint. Example: &quot;=1.3.10&quot;.
479 &quot;workerPool&quot;: &quot;A String&quot;, # The user-specified 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. If omitted and deployment resource ref provided has worker_pool defined, that worker pool is used.
480 },
481 ],
482 &quot;unreachable&quot;: [ # Locations that could not be reached.
483 &quot;A String&quot;,
484 ],
485 }</pre>
486 </div>
487
488 <div class="method">
489 <code class="details" id="list_next">list_next()</code>
490 <pre>Retrieves the next page of results.
491
492 Args:
493 previous_request: The request for the previous page. (required)
494 previous_response: The response from the request for the previous page. (required)
495
496 Returns:
497 A request object that you can call &#x27;execute()&#x27; on to request the next
498 page. Returns None if there are no more items in the collection.
499 </pre>
500 </div>
501
502 </body></html>