@sanoma-ai/connector-gcp 0.1.3 → 0.11.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,1243 @@ export const provider = {
6
6
  protocol: 5,
7
7
  sha256: "6cdda89470cd3dbcb6d60ec54134ae608d3775fd47bd80d7762ce5428da56a3d",
8
8
  };
9
+ export const google_cloud_run_v2_service = {
10
+ typeName: "google_cloud_run_v2_service",
11
+ schemaVersion: 0,
12
+ schema: z.object({
13
+ annotations: z
14
+ .record(z.string(), z.string())
15
+ .nullish()
16
+ .describe("Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.\n\nCloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected in new resources.\nAll system annotations in v1 now have a corresponding field in v2 Service.\n\nThis field follows Kubernetes annotations' namespacing, limits, and rules.\n\n**Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.\nPlease refer to the field 'effective_annotations' for all of the annotations present on the resource."),
17
+ client: z.string().nullish().describe("Arbitrary identifier for the API client."),
18
+ client_version: z.string().nullish().describe("Arbitrary version identifier for the API client."),
19
+ conditions: z
20
+ .array(z.object({
21
+ execution_reason: z.string().nullish(),
22
+ last_transition_time: z.string().nullish(),
23
+ message: z.string().nullish(),
24
+ reason: z.string().nullish(),
25
+ revision_reason: z.string().nullish(),
26
+ severity: z.string().nullish(),
27
+ state: z.string().nullish(),
28
+ type: z.string().nullish(),
29
+ }))
30
+ .nullish()
31
+ .describe("The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Service does not reach its Serving state. See comments in reconciling for additional information on reconciliation process in Cloud Run."),
32
+ create_time: z.string().nullish().describe("The creation time."),
33
+ creator: z.string().nullish().describe("Email address of the authenticated creator."),
34
+ custom_audiences: z
35
+ .array(z.string())
36
+ .nullish()
37
+ .describe("One or more custom audiences that you want this service to support. Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests.\nFor more information, see https://cloud.google.com/run/docs/configuring/custom-audiences."),
38
+ default_uri_disabled: z
39
+ .boolean()
40
+ .nullish()
41
+ .describe("Disables public resolution of the default URI of this service."),
42
+ delete_time: z.string().nullish().describe("The deletion time."),
43
+ deletion_policy: z
44
+ .string()
45
+ .nullish()
46
+ .describe('Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE".\nWhen a \'terraform destroy\' or \'terraform apply\' would delete the instance,\nthe command will fail if this field is set to "PREVENT" in Terraform state.\nWhen set to "ABANDON", the command will remove the resource from Terraform\nmanagement without updating or deleting the resource in the API.\nWhen set to "DELETE", deleting the resource is allowed.'),
47
+ deletion_protection: z
48
+ .boolean()
49
+ .nullish()
50
+ .describe("Whether Terraform will be prevented from destroying the service. Defaults to true.\nWhen a'terraform destroy' or 'terraform apply' would delete the service,\nthe command will fail if this field is not set to false in Terraform state.\nWhen the field is set to true or unset in Terraform state, a 'terraform apply'\nor 'terraform destroy' that would delete the service will fail.\nWhen the field is set to false, deleting the service is allowed."),
51
+ description: z
52
+ .string()
53
+ .nullish()
54
+ .describe("User-provided description of the Service. This field currently has a 512-character limit."),
55
+ effective_annotations: z
56
+ .record(z.string(), z.string())
57
+ .nullish()
58
+ .describe("All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services."),
59
+ effective_labels: z
60
+ .record(z.string(), z.string())
61
+ .nullish()
62
+ .describe("All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services."),
63
+ etag: z
64
+ .string()
65
+ .nullish()
66
+ .describe("A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates."),
67
+ expire_time: z
68
+ .string()
69
+ .nullish()
70
+ .describe("For a deleted resource, the time after which it will be permanently deleted."),
71
+ generation: z
72
+ .string()
73
+ .nullish()
74
+ .describe("A number that monotonically increases every time the user modifies the desired state. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a string instead of an integer."),
75
+ iap_enabled: z.boolean().nullish().describe("Used to enable/disable IAP for the cloud-run service."),
76
+ id: z.string().nullish(),
77
+ ingress: z
78
+ .string()
79
+ .nullish()
80
+ .describe('Provides the ingress settings for this Service. On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. Possible values: ["INGRESS_TRAFFIC_ALL", "INGRESS_TRAFFIC_INTERNAL_ONLY", "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"]'),
81
+ invoker_iam_disabled: z
82
+ .boolean()
83
+ .nullish()
84
+ .describe("Disables IAM permission check for run.routes.invoke for callers of this service. For more information, visit https://cloud.google.com/run/docs/securing/managing-access#invoker_check."),
85
+ labels: z
86
+ .record(z.string(), z.string())
87
+ .nullish()
88
+ .describe("Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component,\nenvironment, state, etc. For more information, visit https://docs.cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.\n\nCloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected.\nAll system labels in v1 now have a corresponding field in v2 Service.\n\n**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.\nPlease refer to the field 'effective_labels' for all of the labels present on the resource."),
89
+ last_modifier: z.string().nullish().describe("Email address of the last authenticated modifier."),
90
+ latest_created_revision: z
91
+ .string()
92
+ .nullish()
93
+ .describe("Name of the last created revision. See comments in reconciling for additional information on reconciliation process in Cloud Run."),
94
+ latest_ready_revision: z
95
+ .string()
96
+ .nullish()
97
+ .describe("Name of the latest revision that is serving traffic. See comments in reconciling for additional information on reconciliation process in Cloud Run."),
98
+ launch_stage: z
99
+ .string()
100
+ .nullish()
101
+ .describe('The launch stage as defined by [Google Cloud Platform Launch Stages](https://cloud.google.com/products#product-launch-stages). Cloud Run supports ALPHA, BETA, and GA.\nIf no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features.\n\nFor example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"]'),
102
+ location: z.string().describe("The location of the cloud run service"),
103
+ name: z.string().describe("Name of the Service."),
104
+ observed_generation: z
105
+ .string()
106
+ .nullish()
107
+ .describe("The generation of this Service currently serving traffic. See comments in reconciling for additional information on reconciliation process in Cloud Run. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will be a string instead of an integer."),
108
+ project: z.string().nullish(),
109
+ reconciling: z
110
+ .boolean()
111
+ .nullish()
112
+ .describe("Returns true if the Service is currently being acted upon by the system to bring it into the desired state.\n\nWhen a new Service is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Service to the desired serving state. This process is called reconciliation. While reconciliation is in process, observedGeneration, latest_ready_revison, trafficStatuses, and uri will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the serving state matches the Service, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state.\n\nIf reconciliation succeeded, the following fields will match: traffic and trafficStatuses, observedGeneration and generation, latestReadyRevision and latestCreatedRevision.\n\nIf reconciliation failed, trafficStatuses, observedGeneration, and latestReadyRevision will have the state of the last serving revision, or empty for newly created Services. Additional information on the failure can be found in terminalCondition and conditions."),
113
+ ssh_enabled: z.boolean().nullish().describe("Enables SSH access to the Service."),
114
+ tags: z
115
+ .record(z.string(), z.string())
116
+ .nullish()
117
+ .describe("A map of resource manager tags.\nResource manager tag keys and values have the same definition as resource manager tags.\nKeys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/{tag_value_id}."),
118
+ terminal_condition: z
119
+ .array(z.object({
120
+ execution_reason: z.string().nullish(),
121
+ last_transition_time: z.string().nullish(),
122
+ message: z.string().nullish(),
123
+ reason: z.string().nullish(),
124
+ revision_reason: z.string().nullish(),
125
+ severity: z.string().nullish(),
126
+ state: z.string().nullish(),
127
+ type: z.string().nullish(),
128
+ }))
129
+ .nullish()
130
+ .describe("The Condition of this Service, containing its readiness status, and detailed error information in case it did not reach a serving state. See comments in reconciling for additional information on reconciliation process in Cloud Run."),
131
+ terraform_labels: z
132
+ .record(z.string(), z.string())
133
+ .nullish()
134
+ .describe("The combination of labels configured directly on the resource\n and default labels configured on the provider."),
135
+ traffic_statuses: z
136
+ .array(z.object({
137
+ percent: z.number().nullish(),
138
+ revision: z.string().nullish(),
139
+ tag: z.string().nullish(),
140
+ type: z.string().nullish(),
141
+ uri: z.string().nullish(),
142
+ }))
143
+ .nullish()
144
+ .describe("Detailed status information for corresponding traffic targets. See comments in reconciling for additional information on reconciliation process in Cloud Run."),
145
+ uid: z
146
+ .string()
147
+ .nullish()
148
+ .describe("Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted."),
149
+ update_time: z.string().nullish().describe("The last-modified time."),
150
+ uri: z.string().nullish().describe("The main URI in which this Service is serving traffic."),
151
+ urls: z.array(z.string()).nullish().describe("All URLs serving traffic for this Service."),
152
+ binary_authorization: z
153
+ .object({
154
+ breakglass_justification: z
155
+ .string()
156
+ .nullish()
157
+ .describe("If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass"),
158
+ policy: z
159
+ .string()
160
+ .nullish()
161
+ .describe("The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}"),
162
+ use_default: z
163
+ .boolean()
164
+ .nullish()
165
+ .describe("If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled."),
166
+ })
167
+ .nullish()
168
+ .describe("Settings for the Binary Authorization feature."),
169
+ build_config: z
170
+ .object({
171
+ base_image: z.string().nullish().describe("The base image used to build the function."),
172
+ enable_automatic_updates: z
173
+ .boolean()
174
+ .nullish()
175
+ .describe("Sets whether the function will receive automatic base image updates."),
176
+ environment_variables: z
177
+ .record(z.string(), z.string())
178
+ .nullish()
179
+ .describe("User-provided build-time environment variables for the function."),
180
+ function_target: z
181
+ .string()
182
+ .nullish()
183
+ .describe('The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function".'),
184
+ image_uri: z.string().nullish().describe("Artifact Registry URI to store the built image."),
185
+ name: z
186
+ .string()
187
+ .nullish()
188
+ .describe("The Cloud Build name of the latest successful deployment of the function."),
189
+ service_account: z
190
+ .string()
191
+ .nullish()
192
+ .describe("Service account to be used for building the container. The format of this field is 'projects/{projectId}/serviceAccounts/{serviceAccountEmail}'."),
193
+ source_location: z
194
+ .string()
195
+ .nullish()
196
+ .describe("The Cloud Storage bucket URI where the function source code is located."),
197
+ worker_pool: z
198
+ .string()
199
+ .nullish()
200
+ .describe("Name of the Cloud Build Custom Worker Pool that should be used to build the Cloud Run function. The format of this field is 'projects/{project}/locations/{region}/workerPools/{workerPool}' where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool."),
201
+ })
202
+ .nullish()
203
+ .describe("Configuration for building a Cloud Run function."),
204
+ multi_region_settings: z
205
+ .object({
206
+ multi_region_id: z.string().nullish().describe("System-generated unique id for the multi-region Service."),
207
+ regions: z.array(z.string()).nullish().describe("The list of regions to deploy the multi-region Service."),
208
+ })
209
+ .nullish()
210
+ .describe("Settings for creating a Multi-Region Service. Make sure to use region = 'global' when using them. For more information, visit https://cloud.google.com/run/docs/multiple-regions#deploy"),
211
+ scaling: z
212
+ .object({
213
+ manual_instance_count: z
214
+ .number()
215
+ .nullish()
216
+ .describe("Total instance count for the service in manual scaling mode. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving."),
217
+ max_instance_count: z
218
+ .number()
219
+ .nullish()
220
+ .describe("Combined maximum number of instances for all revisions receiving traffic."),
221
+ min_instance_count: z
222
+ .number()
223
+ .nullish()
224
+ .describe("Minimum number of instances for the service, to be divided among all revisions receiving traffic."),
225
+ scaling_mode: z
226
+ .string()
227
+ .nullish()
228
+ .describe('The [scaling mode](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#scalingmode) for the service. Possible values: ["AUTOMATIC", "MANUAL"]'),
229
+ })
230
+ .nullish()
231
+ .describe("Scaling settings that apply to the whole service"),
232
+ template: z
233
+ .object({
234
+ annotations: z
235
+ .record(z.string(), z.string())
236
+ .nullish()
237
+ .describe("Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.\n\nCloud Run API v2 does not support annotations with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected.\nAll system annotations in v1 now have a corresponding field in v2 RevisionTemplate.\n\nThis field follows Kubernetes annotations' namespacing, limits, and rules."),
238
+ encryption_key: z
239
+ .string()
240
+ .nullish()
241
+ .describe("A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek"),
242
+ execution_environment: z
243
+ .string()
244
+ .nullish()
245
+ .describe('The sandbox environment to host this Revision. Possible values: ["EXECUTION_ENVIRONMENT_GEN1", "EXECUTION_ENVIRONMENT_GEN2"]'),
246
+ gpu_zonal_redundancy_disabled: z
247
+ .boolean()
248
+ .nullish()
249
+ .describe("True if GPU zonal redundancy is disabled on this revision."),
250
+ health_check_disabled: z.boolean().nullish().describe("Disables health checking containers during deployment."),
251
+ labels: z
252
+ .record(z.string(), z.string())
253
+ .nullish()
254
+ .describe("Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc.\nFor more information, visit https://docs.cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.\n\nCloud Run API v2 does not support labels with 'run.googleapis.com', 'cloud.googleapis.com', 'serving.knative.dev', or 'autoscaling.knative.dev' namespaces, and they will be rejected.\nAll system labels in v1 now have a corresponding field in v2 RevisionTemplate."),
255
+ max_instance_request_concurrency: z
256
+ .number()
257
+ .nullish()
258
+ .describe("Sets the maximum number of requests that each serving instance can receive.\nIf not specified or 0, defaults to 80 when requested CPU >= 1 and defaults to 1 when requested CPU < 1."),
259
+ revision: z
260
+ .string()
261
+ .nullish()
262
+ .describe("The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name."),
263
+ service_account: z
264
+ .string()
265
+ .nullish()
266
+ .describe("Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account."),
267
+ session_affinity: z
268
+ .boolean()
269
+ .nullish()
270
+ .describe("Enables session affinity. For more information, go to https://cloud.google.com/run/docs/configuring/session-affinity"),
271
+ timeout: z
272
+ .string()
273
+ .nullish()
274
+ .describe("Max allowed time for an instance to respond to a request.\n\nA duration in seconds with up to nine fractional digits, ending with 's'. Example: \"3.5s\"."),
275
+ containers: z
276
+ .array(z.object({
277
+ args: z
278
+ .array(z.string())
279
+ .nullish()
280
+ .describe("Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run."),
281
+ base_image_uri: z
282
+ .string()
283
+ .nullish()
284
+ .describe("Base image for this container. If set, it indicates that the service is enrolled into automatic base image update."),
285
+ build_info: z
286
+ .array(z.object({ function_target: z.string().nullish(), source_location: z.string().nullish() }))
287
+ .nullish()
288
+ .describe("The build info of the container image."),
289
+ command: z
290
+ .array(z.string())
291
+ .nullish()
292
+ .describe("Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell"),
293
+ depends_on: z
294
+ .array(z.string())
295
+ .nullish()
296
+ .describe("Containers which should be started before this container. If specified the container will wait to start until all containers with the listed names are healthy."),
297
+ image: z
298
+ .string()
299
+ .describe("URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images"),
300
+ name: z.string().nullish().describe("Name of the container specified as a DNS_LABEL."),
301
+ sandbox_launcher: z
302
+ .boolean()
303
+ .nullish()
304
+ .describe("Indicates that this container can act as a sandbox supervisor and launch sandboxes."),
305
+ working_dir: z
306
+ .string()
307
+ .nullish()
308
+ .describe("Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image."),
309
+ env: z
310
+ .array(z.object({
311
+ name: z
312
+ .string()
313
+ .describe("Name of the environment variable. Must be a C_IDENTIFIER, and may not exceed 32768 characters."),
314
+ value: z
315
+ .string()
316
+ .nullish()
317
+ .describe('Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.'),
318
+ value_source: z
319
+ .object({
320
+ secret_key_ref: z
321
+ .object({
322
+ secret: z
323
+ .string()
324
+ .describe("The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project."),
325
+ version: z
326
+ .string()
327
+ .nullish()
328
+ .describe("The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version."),
329
+ })
330
+ .nullish()
331
+ .describe("Selects a secret and a specific version from Cloud Secret Manager."),
332
+ })
333
+ .nullish()
334
+ .describe("Source for the environment variable's value."),
335
+ }))
336
+ .nullish()
337
+ .describe("List of environment variables to set in the container."),
338
+ liveness_probe: z
339
+ .object({
340
+ failure_threshold: z
341
+ .number()
342
+ .nullish()
343
+ .describe("Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."),
344
+ initial_delay_seconds: z
345
+ .number()
346
+ .nullish()
347
+ .describe("Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"),
348
+ period_seconds: z
349
+ .number()
350
+ .nullish()
351
+ .describe("How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds"),
352
+ timeout_seconds: z
353
+ .number()
354
+ .nullish()
355
+ .describe("Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"),
356
+ grpc: z
357
+ .object({
358
+ port: z
359
+ .number()
360
+ .nullish()
361
+ .describe("Port number to access on the container. Number must be in the range 1 to 65535.\nIf not specified, defaults to the same value as container.ports[0].containerPort."),
362
+ service: z
363
+ .string()
364
+ .nullish()
365
+ .describe("The name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\nIf this is not specified, the default behavior is defined by gRPC."),
366
+ })
367
+ .nullish()
368
+ .describe("GRPC specifies an action involving a GRPC port."),
369
+ http_get: z
370
+ .object({
371
+ path: z.string().nullish().describe("Path to access on the HTTP server. Defaults to '/'."),
372
+ port: z
373
+ .number()
374
+ .nullish()
375
+ .describe("Port number to access on the container. Number must be in the range 1 to 65535.\nIf not specified, defaults to the same value as container.ports[0].containerPort."),
376
+ http_headers: z
377
+ .array(z.object({
378
+ name: z.string().describe("The header field name"),
379
+ value: z.string().nullish().describe("The header field value"),
380
+ }))
381
+ .nullish()
382
+ .describe("Custom headers to set in the request. HTTP allows repeated headers."),
383
+ })
384
+ .nullish()
385
+ .describe("HTTPGet specifies the http request to perform."),
386
+ tcp_socket: z
387
+ .object({
388
+ port: z
389
+ .number()
390
+ .describe("Port number to access on the container. Must be in the range 1 to 65535.\nIf not specified, defaults to the exposed port of the container, which\nis the value of container.ports[0].containerPort."),
391
+ })
392
+ .nullish()
393
+ .describe("TCPSocketAction describes an action based on opening a socket"),
394
+ })
395
+ .nullish()
396
+ .describe("Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"),
397
+ ports: z
398
+ .object({
399
+ container_port: z
400
+ .number()
401
+ .nullish()
402
+ .describe("Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536."),
403
+ name: z
404
+ .string()
405
+ .nullish()
406
+ .describe('If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".'),
407
+ })
408
+ .nullish()
409
+ .describe("List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible.\n\nIf omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on"),
410
+ readiness_probe: z
411
+ .object({
412
+ failure_threshold: z
413
+ .number()
414
+ .nullish()
415
+ .describe("Minimum consecutive failures for the probe to be considered failed after\nhaving succeeded. Defaults to 3."),
416
+ period_seconds: z
417
+ .number()
418
+ .nullish()
419
+ .describe("How often (in seconds) to perform the probe.\nDefault to 10 seconds."),
420
+ success_threshold: z
421
+ .number()
422
+ .nullish()
423
+ .describe("Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 2."),
424
+ timeout_seconds: z
425
+ .number()
426
+ .nullish()
427
+ .describe("Number of seconds after which the probe times out.\nDefaults to 1 second. Must be smaller than period_seconds."),
428
+ grpc: z
429
+ .object({
430
+ port: z
431
+ .number()
432
+ .nullish()
433
+ .describe("Port number to access on the container. Number must be in the range 1 to 65535.\nIf not specified, defaults to the same value as container.ports[0].containerPort."),
434
+ service: z
435
+ .string()
436
+ .nullish()
437
+ .describe("The name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\nIf this is not specified, the default behavior is defined by gRPC."),
438
+ })
439
+ .nullish()
440
+ .describe("GRPC specifies an action involving a GRPC port."),
441
+ http_get: z
442
+ .object({
443
+ path: z
444
+ .string()
445
+ .nullish()
446
+ .describe("Path to access on the HTTP server. If set, it should not be empty string."),
447
+ port: z
448
+ .number()
449
+ .nullish()
450
+ .describe("Port number to access on the container. Number must be in the range 1 to 65535.\nIf not specified, defaults to the same value as container.ports[0].containerPort."),
451
+ })
452
+ .nullish()
453
+ .describe("HttpGet specifies the http request to perform."),
454
+ })
455
+ .nullish()
456
+ .describe("Periodic probe of container readiness."),
457
+ resources: z
458
+ .object({
459
+ cpu_idle: z
460
+ .boolean()
461
+ .nullish()
462
+ .describe("Determines whether CPU is only allocated during requests. True by default if the parent 'resources' field is not set. However, if\n'resources' is set, this field must be explicitly set to true to preserve the default behavior."),
463
+ limits: z
464
+ .record(z.string(), z.string())
465
+ .nullish()
466
+ .describe("Only memory, CPU, and nvidia.com/gpu are supported. Use key 'cpu' for CPU limit, 'memory' for memory limit, 'nvidia.com/gpu' for gpu limit. Note: The only supported values for CPU are '1', '2', '4', '6' and '8'. Setting 4 CPU requires at least 2Gi of memory, setting 6 or more CPU requires at least 4Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"),
467
+ startup_cpu_boost: z
468
+ .boolean()
469
+ .nullish()
470
+ .describe("Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency."),
471
+ })
472
+ .nullish()
473
+ .describe("Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources"),
474
+ startup_probe: z
475
+ .object({
476
+ failure_threshold: z
477
+ .number()
478
+ .nullish()
479
+ .describe("Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."),
480
+ initial_delay_seconds: z
481
+ .number()
482
+ .nullish()
483
+ .describe("Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"),
484
+ period_seconds: z
485
+ .number()
486
+ .nullish()
487
+ .describe("How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds"),
488
+ timeout_seconds: z
489
+ .number()
490
+ .nullish()
491
+ .describe("Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"),
492
+ grpc: z
493
+ .object({
494
+ port: z
495
+ .number()
496
+ .nullish()
497
+ .describe("Port number to access on the container. Number must be in the range 1 to 65535.\nIf not specified, defaults to the same value as container.ports[0].containerPort."),
498
+ service: z
499
+ .string()
500
+ .nullish()
501
+ .describe("The name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\nIf this is not specified, the default behavior is defined by gRPC."),
502
+ })
503
+ .nullish()
504
+ .describe("GRPC specifies an action involving a GRPC port."),
505
+ http_get: z
506
+ .object({
507
+ path: z.string().nullish().describe("Path to access on the HTTP server. Defaults to '/'."),
508
+ port: z
509
+ .number()
510
+ .nullish()
511
+ .describe("Port number to access on the container. Must be in the range 1 to 65535.\nIf not specified, defaults to the same value as container.ports[0].containerPort."),
512
+ http_headers: z
513
+ .array(z.object({
514
+ name: z.string().describe("The header field name"),
515
+ value: z.string().nullish().describe("The header field value"),
516
+ }))
517
+ .nullish()
518
+ .describe("Custom headers to set in the request. HTTP allows repeated headers."),
519
+ })
520
+ .nullish()
521
+ .describe("HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified."),
522
+ tcp_socket: z
523
+ .object({
524
+ port: z
525
+ .number()
526
+ .nullish()
527
+ .describe("Port number to access on the container. Must be in the range 1 to 65535.\nIf not specified, defaults to the same value as container.ports[0].containerPort."),
528
+ })
529
+ .nullish()
530
+ .describe("TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified."),
531
+ })
532
+ .nullish()
533
+ .describe("Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes"),
534
+ volume_mounts: z
535
+ .array(z.object({
536
+ mount_path: z
537
+ .string()
538
+ .describe("Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run"),
539
+ name: z.string().describe("This must match the Name of a Volume."),
540
+ sub_path: z
541
+ .string()
542
+ .nullish()
543
+ .describe("Path within the volume from which the container's volume should be mounted."),
544
+ }))
545
+ .nullish()
546
+ .describe("Volume to mount into the container's filesystem."),
547
+ }))
548
+ .nullish()
549
+ .describe("Holds the containers that define the unit of execution for this Service."),
550
+ node_selector: z
551
+ .object({
552
+ accelerator: z
553
+ .string()
554
+ .describe("The GPU to attach to an instance. See https://cloud.google.com/run/docs/configuring/services/gpu for configuring GPU."),
555
+ })
556
+ .nullish()
557
+ .describe("Node Selector describes the hardware requirements of the resources."),
558
+ sandboxes: z
559
+ .object({
560
+ templates: z
561
+ .array(z.object({
562
+ args: z
563
+ .array(z.string())
564
+ .nullish()
565
+ .describe("Arguments to the entrypoint. The docker image's CMD is used if this is not provided."),
566
+ command: z
567
+ .array(z.string())
568
+ .nullish()
569
+ .describe("Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided."),
570
+ image: z
571
+ .string()
572
+ .describe("Name of the container image in Dockerhub or Artifact Registry. If the host is not provided, Dockerhub is assumed."),
573
+ name: z.string().describe("Name of the sandbox specified as a DNS_LABEL (RFC 1123)."),
574
+ working_dir: z
575
+ .string()
576
+ .nullish()
577
+ .describe("Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image."),
578
+ env: z
579
+ .array(z.object({
580
+ name: z
581
+ .string()
582
+ .describe("Name of the environment variable. Must be a C_IDENTIFIER, and may not exceed 32768 characters."),
583
+ value: z
584
+ .string()
585
+ .nullish()
586
+ .describe('Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.'),
587
+ }))
588
+ .nullish()
589
+ .describe("List of environment variables to set in the sandbox."),
590
+ volume_mounts: z
591
+ .array(z.object({
592
+ mount_path: z
593
+ .string()
594
+ .describe("Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run"),
595
+ name: z.string().describe("This must match the Name of a Volume."),
596
+ sub_path: z
597
+ .string()
598
+ .nullish()
599
+ .describe("Path within the volume from which the container's volume should be mounted."),
600
+ }))
601
+ .nullish()
602
+ .describe("Volume to mount into the container's filesystem."),
603
+ }))
604
+ .nullish()
605
+ .describe("Sandbox templates that can be launched through the 'sandbox' CLI."),
606
+ })
607
+ .nullish()
608
+ .describe("Configuration for sandboxes."),
609
+ scaling: z
610
+ .object({
611
+ concurrency_utilization: z
612
+ .number()
613
+ .nullish()
614
+ .describe("Determines a threshold for concurrency utilization before scaling begins. Accepted values are between 0.1 and 0.95 (inclusive) or 0.0 to disable concurrency utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled."),
615
+ cpu_utilization: z
616
+ .number()
617
+ .nullish()
618
+ .describe("Determines a threshold for CPU utilization before scaling begins. Accepted values are between 0.1 and 0.95 (inclusive) or 0.0 to disable CPU utilization as threshold for scaling. CPU and concurrency scaling cannot both be disabled."),
619
+ max_instance_count: z
620
+ .number()
621
+ .nullish()
622
+ .describe("Maximum number of serving instances that this resource should have. Must not be less than minimum instance count. If absent, Cloud Run will calculate\na default value based on the project's available container instances quota in the region and specified instance size."),
623
+ min_instance_count: z
624
+ .number()
625
+ .nullish()
626
+ .describe("Minimum number of serving instances that this resource should have. Defaults to 0. Must not be greater than maximum instance count."),
627
+ })
628
+ .nullish()
629
+ .describe("Scaling settings for this Revision."),
630
+ volumes: z
631
+ .array(z.object({
632
+ name: z.string().describe("Volume's name."),
633
+ cloud_sql_instance: z
634
+ .object({
635
+ instances: z
636
+ .array(z.string())
637
+ .nullish()
638
+ .describe("The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}"),
639
+ })
640
+ .nullish()
641
+ .describe("For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run."),
642
+ empty_dir: z
643
+ .object({
644
+ medium: z
645
+ .string()
646
+ .nullish()
647
+ .describe('The different types of medium supported for EmptyDir. Default value: "MEMORY" Possible values: ["MEMORY", "DISK"]'),
648
+ size_limit: z
649
+ .string()
650
+ .nullish()
651
+ .describe("Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir."),
652
+ })
653
+ .nullish()
654
+ .describe("Ephemeral storage used as a shared volume."),
655
+ gcs: z
656
+ .object({
657
+ bucket: z.string().describe("GCS Bucket name"),
658
+ mount_options: z
659
+ .array(z.string())
660
+ .nullish()
661
+ .describe("A list of flags to pass to the gcsfuse command for configuring this volume.\nFlags should be passed without leading dashes."),
662
+ read_only: z.boolean().nullish().describe("If true, mount the GCS bucket as read-only"),
663
+ })
664
+ .nullish()
665
+ .describe("Cloud Storage bucket mounted as a volume using GCSFuse. This feature is only supported in the gen2 execution environment."),
666
+ nfs: z
667
+ .object({
668
+ path: z.string().describe("Path that is exported by the NFS server."),
669
+ read_only: z.boolean().nullish().describe("If true, mount the NFS volume as read only"),
670
+ server: z.string().describe("Hostname or IP address of the NFS server"),
671
+ })
672
+ .nullish()
673
+ .describe("Represents an NFS mount."),
674
+ secret: z
675
+ .object({
676
+ default_mode: z
677
+ .number()
678
+ .nullish()
679
+ .describe("Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting."),
680
+ secret: z
681
+ .string()
682
+ .describe("The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project."),
683
+ items: z
684
+ .array(z.object({
685
+ mode: z
686
+ .number()
687
+ .nullish()
688
+ .describe("Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used."),
689
+ path: z.string().describe("The relative path of the secret in the container."),
690
+ version: z
691
+ .string()
692
+ .nullish()
693
+ .describe("The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version"),
694
+ }))
695
+ .nullish()
696
+ .describe("If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version."),
697
+ })
698
+ .nullish()
699
+ .describe("Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret"),
700
+ }))
701
+ .nullish()
702
+ .describe("A list of Volumes to make available to containers."),
703
+ vpc_access: z
704
+ .object({
705
+ connector: z
706
+ .string()
707
+ .nullish()
708
+ .describe("VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number."),
709
+ egress: z
710
+ .string()
711
+ .nullish()
712
+ .describe('Traffic VPC egress settings. Possible values: ["ALL_TRAFFIC", "PRIVATE_RANGES_ONLY"]'),
713
+ network_interfaces: z
714
+ .array(z.object({
715
+ network: z
716
+ .string()
717
+ .nullish()
718
+ .describe("The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both\nnetwork and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be\nlooked up from the subnetwork."),
719
+ subnetwork: z
720
+ .string()
721
+ .nullish()
722
+ .describe("The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both\nnetwork and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the\nsubnetwork with the same name with the network will be used."),
723
+ tags: z.array(z.string()).nullish().describe("Network tags applied to this Cloud Run service."),
724
+ }))
725
+ .nullish()
726
+ .describe("Direct VPC egress settings. Currently only single network interface is supported."),
727
+ })
728
+ .nullish()
729
+ .describe("VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc."),
730
+ workload_identity_config: z
731
+ .object({
732
+ identity: z
733
+ .string()
734
+ .nullish()
735
+ .describe("The Revision's SPIFFE workload identity. Enables provisioning of SPIFFE workload certificates."),
736
+ identity_certificate_enabled: z
737
+ .boolean()
738
+ .nullish()
739
+ .describe("Controls whether an instance receives a managed workload identity (MWLID) certificate.\nDefaults to true when 'identity_type' is 'IDENTITY_TYPE_AGENT_IDENTITY'."),
740
+ identity_type: z
741
+ .string()
742
+ .nullish()
743
+ .describe("The type of identity to use. 'IDENTITY_TYPE_AGENT_IDENTITY' assigns a system-managed agent identity and\nis required when the Service's 'functional_type' is 'FUNCTIONAL_TYPE_AGENT'. Once set, this field\ncannot be changed or unset. Possible values: [\"IDENTITY_TYPE_SERVICE_ACCOUNT\", \"IDENTITY_TYPE_WORKLOAD_IDENTITY\", \"IDENTITY_TYPE_AGENT_IDENTITY\"]"),
744
+ })
745
+ .nullish()
746
+ .describe("The Revision's workload identity settings. Used to assign an\n[Agent Platform](https://cloud.google.com/run/docs/ai/agent-platform-features) identity to the workload."),
747
+ })
748
+ .describe("The template used to create revisions for this Service."),
749
+ timeouts: z
750
+ .object({
751
+ create: z.string().nullish(),
752
+ delete: z.string().nullish(),
753
+ update: z.string().nullish(),
754
+ })
755
+ .nullish(),
756
+ traffic: z
757
+ .array(z.object({
758
+ percent: z
759
+ .number()
760
+ .nullish()
761
+ .describe("Specifies percent of the traffic to this Revision. This defaults to zero if unspecified."),
762
+ revision: z
763
+ .string()
764
+ .nullish()
765
+ .describe("Revision to which to send this portion of traffic, if traffic allocation is by revision."),
766
+ tag: z
767
+ .string()
768
+ .nullish()
769
+ .describe("Indicates a string to be part of the URI to exclusively reference this target."),
770
+ type: z
771
+ .string()
772
+ .nullish()
773
+ .describe('The allocation type for this traffic target. Possible values: ["TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST", "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"]'),
774
+ }))
775
+ .nullish()
776
+ .describe("Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest Ready Revision."),
777
+ }),
778
+ fields: {
779
+ immutable: ["location", "name", "project"],
780
+ vendorOwned: [
781
+ "conditions",
782
+ "create_time",
783
+ "creator",
784
+ "delete_time",
785
+ "effective_annotations",
786
+ "effective_labels",
787
+ "etag",
788
+ "expire_time",
789
+ "generation",
790
+ "last_modifier",
791
+ "latest_created_revision",
792
+ "latest_ready_revision",
793
+ "observed_generation",
794
+ "reconciling",
795
+ "terminal_condition",
796
+ "terraform_labels",
797
+ "traffic_statuses",
798
+ "uid",
799
+ "update_time",
800
+ "uri",
801
+ "urls",
802
+ "build_config.name",
803
+ "multi_region_settings.multi_region_id",
804
+ "template.containers.build_info",
805
+ ],
806
+ writeOnly: [],
807
+ unordered: [
808
+ "template.containers.env",
809
+ "template.sandboxes.templates.env",
810
+ "template.volumes.cloud_sql_instance.instances",
811
+ ],
812
+ },
813
+ shape: {
814
+ attributes: [
815
+ "annotations",
816
+ "client",
817
+ "client_version",
818
+ "conditions",
819
+ "create_time",
820
+ "creator",
821
+ "custom_audiences",
822
+ "default_uri_disabled",
823
+ "delete_time",
824
+ "deletion_policy",
825
+ "deletion_protection",
826
+ "description",
827
+ "effective_annotations",
828
+ "effective_labels",
829
+ "etag",
830
+ "expire_time",
831
+ "generation",
832
+ "iap_enabled",
833
+ "id",
834
+ "ingress",
835
+ "invoker_iam_disabled",
836
+ "labels",
837
+ "last_modifier",
838
+ "latest_created_revision",
839
+ "latest_ready_revision",
840
+ "launch_stage",
841
+ "location",
842
+ "name",
843
+ "observed_generation",
844
+ "project",
845
+ "reconciling",
846
+ "ssh_enabled",
847
+ "tags",
848
+ "terminal_condition",
849
+ "terraform_labels",
850
+ "traffic_statuses",
851
+ "uid",
852
+ "update_time",
853
+ "uri",
854
+ "urls",
855
+ ],
856
+ blocks: {
857
+ binary_authorization: {
858
+ nesting: "list",
859
+ one: true,
860
+ shape: {
861
+ attributes: ["breakglass_justification", "policy", "use_default"],
862
+ },
863
+ },
864
+ build_config: {
865
+ nesting: "list",
866
+ one: true,
867
+ shape: {
868
+ attributes: [
869
+ "base_image",
870
+ "enable_automatic_updates",
871
+ "environment_variables",
872
+ "function_target",
873
+ "image_uri",
874
+ "name",
875
+ "service_account",
876
+ "source_location",
877
+ "worker_pool",
878
+ ],
879
+ },
880
+ },
881
+ multi_region_settings: {
882
+ nesting: "list",
883
+ one: true,
884
+ shape: {
885
+ attributes: ["multi_region_id", "regions"],
886
+ },
887
+ },
888
+ scaling: {
889
+ nesting: "list",
890
+ one: true,
891
+ shape: {
892
+ attributes: ["manual_instance_count", "max_instance_count", "min_instance_count", "scaling_mode"],
893
+ },
894
+ },
895
+ template: {
896
+ nesting: "list",
897
+ one: true,
898
+ shape: {
899
+ attributes: [
900
+ "annotations",
901
+ "encryption_key",
902
+ "execution_environment",
903
+ "gpu_zonal_redundancy_disabled",
904
+ "health_check_disabled",
905
+ "labels",
906
+ "max_instance_request_concurrency",
907
+ "revision",
908
+ "service_account",
909
+ "session_affinity",
910
+ "timeout",
911
+ ],
912
+ blocks: {
913
+ containers: {
914
+ nesting: "list",
915
+ shape: {
916
+ attributes: [
917
+ "args",
918
+ "base_image_uri",
919
+ "build_info",
920
+ "command",
921
+ "depends_on",
922
+ "image",
923
+ "name",
924
+ "sandbox_launcher",
925
+ "working_dir",
926
+ ],
927
+ blocks: {
928
+ env: {
929
+ nesting: "set",
930
+ shape: {
931
+ attributes: ["name", "value"],
932
+ blocks: {
933
+ value_source: {
934
+ nesting: "list",
935
+ one: true,
936
+ shape: {
937
+ attributes: [],
938
+ blocks: {
939
+ secret_key_ref: {
940
+ nesting: "list",
941
+ one: true,
942
+ shape: {
943
+ attributes: ["secret", "version"],
944
+ },
945
+ },
946
+ },
947
+ },
948
+ },
949
+ },
950
+ },
951
+ },
952
+ liveness_probe: {
953
+ nesting: "list",
954
+ one: true,
955
+ shape: {
956
+ attributes: ["failure_threshold", "initial_delay_seconds", "period_seconds", "timeout_seconds"],
957
+ blocks: {
958
+ grpc: {
959
+ nesting: "list",
960
+ one: true,
961
+ shape: {
962
+ attributes: ["port", "service"],
963
+ },
964
+ },
965
+ http_get: {
966
+ nesting: "list",
967
+ one: true,
968
+ shape: {
969
+ attributes: ["path", "port"],
970
+ blocks: {
971
+ http_headers: {
972
+ nesting: "list",
973
+ shape: {
974
+ attributes: ["name", "value"],
975
+ },
976
+ },
977
+ },
978
+ },
979
+ },
980
+ tcp_socket: {
981
+ nesting: "list",
982
+ one: true,
983
+ shape: {
984
+ attributes: ["port"],
985
+ },
986
+ },
987
+ },
988
+ },
989
+ },
990
+ ports: {
991
+ nesting: "list",
992
+ one: true,
993
+ shape: {
994
+ attributes: ["container_port", "name"],
995
+ },
996
+ },
997
+ readiness_probe: {
998
+ nesting: "list",
999
+ one: true,
1000
+ shape: {
1001
+ attributes: ["failure_threshold", "period_seconds", "success_threshold", "timeout_seconds"],
1002
+ blocks: {
1003
+ grpc: {
1004
+ nesting: "list",
1005
+ one: true,
1006
+ shape: {
1007
+ attributes: ["port", "service"],
1008
+ },
1009
+ },
1010
+ http_get: {
1011
+ nesting: "list",
1012
+ one: true,
1013
+ shape: {
1014
+ attributes: ["path", "port"],
1015
+ },
1016
+ },
1017
+ },
1018
+ },
1019
+ },
1020
+ resources: {
1021
+ nesting: "list",
1022
+ one: true,
1023
+ shape: {
1024
+ attributes: ["cpu_idle", "limits", "startup_cpu_boost"],
1025
+ },
1026
+ },
1027
+ startup_probe: {
1028
+ nesting: "list",
1029
+ one: true,
1030
+ shape: {
1031
+ attributes: ["failure_threshold", "initial_delay_seconds", "period_seconds", "timeout_seconds"],
1032
+ blocks: {
1033
+ grpc: {
1034
+ nesting: "list",
1035
+ one: true,
1036
+ shape: {
1037
+ attributes: ["port", "service"],
1038
+ },
1039
+ },
1040
+ http_get: {
1041
+ nesting: "list",
1042
+ one: true,
1043
+ shape: {
1044
+ attributes: ["path", "port"],
1045
+ blocks: {
1046
+ http_headers: {
1047
+ nesting: "list",
1048
+ shape: {
1049
+ attributes: ["name", "value"],
1050
+ },
1051
+ },
1052
+ },
1053
+ },
1054
+ },
1055
+ tcp_socket: {
1056
+ nesting: "list",
1057
+ one: true,
1058
+ shape: {
1059
+ attributes: ["port"],
1060
+ },
1061
+ },
1062
+ },
1063
+ },
1064
+ },
1065
+ volume_mounts: {
1066
+ nesting: "list",
1067
+ shape: {
1068
+ attributes: ["mount_path", "name", "sub_path"],
1069
+ },
1070
+ },
1071
+ },
1072
+ },
1073
+ },
1074
+ node_selector: {
1075
+ nesting: "list",
1076
+ one: true,
1077
+ shape: {
1078
+ attributes: ["accelerator"],
1079
+ },
1080
+ },
1081
+ sandboxes: {
1082
+ nesting: "list",
1083
+ one: true,
1084
+ shape: {
1085
+ attributes: [],
1086
+ blocks: {
1087
+ templates: {
1088
+ nesting: "list",
1089
+ shape: {
1090
+ attributes: ["args", "command", "image", "name", "working_dir"],
1091
+ blocks: {
1092
+ env: {
1093
+ nesting: "set",
1094
+ shape: {
1095
+ attributes: ["name", "value"],
1096
+ },
1097
+ },
1098
+ volume_mounts: {
1099
+ nesting: "list",
1100
+ shape: {
1101
+ attributes: ["mount_path", "name", "sub_path"],
1102
+ },
1103
+ },
1104
+ },
1105
+ },
1106
+ },
1107
+ },
1108
+ },
1109
+ },
1110
+ scaling: {
1111
+ nesting: "list",
1112
+ one: true,
1113
+ shape: {
1114
+ attributes: ["concurrency_utilization", "cpu_utilization", "max_instance_count", "min_instance_count"],
1115
+ },
1116
+ },
1117
+ volumes: {
1118
+ nesting: "list",
1119
+ shape: {
1120
+ attributes: ["name"],
1121
+ blocks: {
1122
+ cloud_sql_instance: {
1123
+ nesting: "list",
1124
+ one: true,
1125
+ shape: {
1126
+ attributes: ["instances"],
1127
+ },
1128
+ },
1129
+ empty_dir: {
1130
+ nesting: "list",
1131
+ one: true,
1132
+ shape: {
1133
+ attributes: ["medium", "size_limit"],
1134
+ },
1135
+ },
1136
+ gcs: {
1137
+ nesting: "list",
1138
+ one: true,
1139
+ shape: {
1140
+ attributes: ["bucket", "mount_options", "read_only"],
1141
+ },
1142
+ },
1143
+ nfs: {
1144
+ nesting: "list",
1145
+ one: true,
1146
+ shape: {
1147
+ attributes: ["path", "read_only", "server"],
1148
+ },
1149
+ },
1150
+ secret: {
1151
+ nesting: "list",
1152
+ one: true,
1153
+ shape: {
1154
+ attributes: ["default_mode", "secret"],
1155
+ blocks: {
1156
+ items: {
1157
+ nesting: "list",
1158
+ shape: {
1159
+ attributes: ["mode", "path", "version"],
1160
+ },
1161
+ },
1162
+ },
1163
+ },
1164
+ },
1165
+ },
1166
+ },
1167
+ },
1168
+ vpc_access: {
1169
+ nesting: "list",
1170
+ one: true,
1171
+ shape: {
1172
+ attributes: ["connector", "egress"],
1173
+ blocks: {
1174
+ network_interfaces: {
1175
+ nesting: "list",
1176
+ shape: {
1177
+ attributes: ["network", "subnetwork", "tags"],
1178
+ },
1179
+ },
1180
+ },
1181
+ },
1182
+ },
1183
+ workload_identity_config: {
1184
+ nesting: "list",
1185
+ one: true,
1186
+ shape: {
1187
+ attributes: ["identity", "identity_certificate_enabled", "identity_type"],
1188
+ },
1189
+ },
1190
+ },
1191
+ },
1192
+ },
1193
+ timeouts: {
1194
+ nesting: "single",
1195
+ shape: {
1196
+ attributes: ["create", "delete", "update"],
1197
+ },
1198
+ },
1199
+ traffic: {
1200
+ nesting: "list",
1201
+ shape: {
1202
+ attributes: ["percent", "revision", "tag", "type"],
1203
+ },
1204
+ },
1205
+ },
1206
+ },
1207
+ };
1208
+ export const google_cloud_run_v2_service_iam_member = {
1209
+ typeName: "google_cloud_run_v2_service_iam_member",
1210
+ schemaVersion: 0,
1211
+ schema: z.object({
1212
+ etag: z.string().nullish(),
1213
+ id: z.string().nullish(),
1214
+ location: z.string().nullish(),
1215
+ member: z.string(),
1216
+ name: z.string(),
1217
+ project: z.string().nullish(),
1218
+ role: z.string(),
1219
+ condition: z
1220
+ .object({
1221
+ description: z.string().nullish(),
1222
+ expression: z.string(),
1223
+ title: z.string(),
1224
+ })
1225
+ .nullish(),
1226
+ }),
1227
+ fields: {
1228
+ immutable: ["location", "member", "name", "project", "role"],
1229
+ vendorOwned: ["etag"],
1230
+ writeOnly: [],
1231
+ unordered: [],
1232
+ },
1233
+ shape: {
1234
+ attributes: ["etag", "id", "location", "member", "name", "project", "role"],
1235
+ blocks: {
1236
+ condition: {
1237
+ nesting: "list",
1238
+ one: true,
1239
+ shape: {
1240
+ attributes: ["description", "expression", "title"],
1241
+ },
1242
+ },
1243
+ },
1244
+ },
1245
+ };
9
1246
  export const google_iam_workload_identity_pool = {
10
1247
  typeName: "google_iam_workload_identity_pool",
11
1248
  schemaVersion: 0,
@@ -536,6 +1773,94 @@ export const google_kms_key_ring = {
536
1773
  },
537
1774
  },
538
1775
  };
1776
+ export const google_project_iam_audit_config = {
1777
+ typeName: "google_project_iam_audit_config",
1778
+ schemaVersion: 0,
1779
+ schema: z.object({
1780
+ etag: z.string().nullish().describe("The etag of iam policy"),
1781
+ id: z.string().nullish(),
1782
+ project: z.string(),
1783
+ service: z
1784
+ .string()
1785
+ .describe("Service which will be enabled for audit logging. The special value allServices covers all services."),
1786
+ audit_log_config: z
1787
+ .array(z.object({
1788
+ exempted_members: z
1789
+ .array(z.string())
1790
+ .nullish()
1791
+ .describe("Identities that do not cause logging for this type of permission. Each entry can have one of the following values:user:{emailid}: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com."),
1792
+ log_type: z
1793
+ .string()
1794
+ .describe("Permission type for which logging is to be configured. Must be one of DATA_READ, DATA_WRITE, or ADMIN_READ."),
1795
+ }))
1796
+ .min(1)
1797
+ .describe("The configuration for logging of each type of permission. This can be specified multiple times."),
1798
+ }),
1799
+ fields: {
1800
+ immutable: ["project"],
1801
+ vendorOwned: ["etag"],
1802
+ writeOnly: [],
1803
+ unordered: ["audit_log_config", "audit_log_config.exempted_members"],
1804
+ },
1805
+ shape: {
1806
+ attributes: ["etag", "id", "project", "service"],
1807
+ blocks: {
1808
+ audit_log_config: {
1809
+ nesting: "set",
1810
+ shape: {
1811
+ attributes: ["exempted_members", "log_type"],
1812
+ },
1813
+ },
1814
+ },
1815
+ },
1816
+ };
1817
+ export const google_project_iam_custom_role = {
1818
+ typeName: "google_project_iam_custom_role",
1819
+ schemaVersion: 0,
1820
+ schema: z.object({
1821
+ deleted: z.boolean().nullish().describe("The current deleted state of the role."),
1822
+ deletion_policy: z
1823
+ .string()
1824
+ .nullish()
1825
+ .describe('Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE".\nWhen a \'terraform destroy\' or \'terraform apply\' would delete the instance,\nthe command will fail if this field is set to "PREVENT" in Terraform state.\nWhen set to "ABANDON", the command will remove the resource from Terraform\nmanagement without updating or deleting the resource in the API.\nWhen set to "DELETE", deleting the resource is allowed.'),
1826
+ description: z.string().nullish().describe("A human-readable description for the role."),
1827
+ id: z.string().nullish(),
1828
+ name: z
1829
+ .string()
1830
+ .nullish()
1831
+ .describe("The name of the role in the format projects/{{project}}/roles/{{role_id}}. Like id, this field can be used as a reference in other resources such as IAM role bindings."),
1832
+ permissions: z
1833
+ .array(z.string())
1834
+ .describe("The names of the permissions this role grants when bound in an IAM policy. At least one permission must be specified."),
1835
+ project: z
1836
+ .string()
1837
+ .nullish()
1838
+ .describe("The project that the service account will be created in. Defaults to the provider project configuration."),
1839
+ role_id: z.string().describe("The camel case role id to use for this role. Cannot contain - characters."),
1840
+ stage: z.string().nullish().describe("The current launch stage of the role. Defaults to GA."),
1841
+ title: z.string().describe("A human-readable title for the role."),
1842
+ }),
1843
+ fields: {
1844
+ immutable: ["project", "role_id"],
1845
+ vendorOwned: ["deleted", "name"],
1846
+ writeOnly: [],
1847
+ unordered: ["permissions"],
1848
+ },
1849
+ shape: {
1850
+ attributes: [
1851
+ "deleted",
1852
+ "deletion_policy",
1853
+ "description",
1854
+ "id",
1855
+ "name",
1856
+ "permissions",
1857
+ "project",
1858
+ "role_id",
1859
+ "stage",
1860
+ "title",
1861
+ ],
1862
+ },
1863
+ };
539
1864
  export const google_service_account = {
540
1865
  typeName: "google_service_account",
541
1866
  schemaVersion: 0,