pulumi-gcp 9.3.0a1759387993__py3-none-any.whl → 9.3.0a1759868184__py3-none-any.whl

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.
Files changed (76) hide show
  1. pulumi_gcp/__init__.py +32 -0
  2. pulumi_gcp/apigee/__init__.py +1 -0
  3. pulumi_gcp/apigee/api_deployment.py +372 -0
  4. pulumi_gcp/apihub/plugin.py +1 -1
  5. pulumi_gcp/artifactregistry/__init__.py +2 -0
  6. pulumi_gcp/artifactregistry/get_maven_artifacts.py +164 -0
  7. pulumi_gcp/artifactregistry/get_npm_packages.py +164 -0
  8. pulumi_gcp/artifactregistry/outputs.py +165 -0
  9. pulumi_gcp/cloudrunv2/_inputs.py +823 -15
  10. pulumi_gcp/cloudrunv2/outputs.py +1749 -743
  11. pulumi_gcp/cloudrunv2/worker_pool.py +110 -0
  12. pulumi_gcp/compute/_inputs.py +28 -0
  13. pulumi_gcp/compute/outputs.py +20 -1
  14. pulumi_gcp/compute/vpn_tunnel.py +97 -23
  15. pulumi_gcp/compute/wire_group.py +2 -0
  16. pulumi_gcp/dataloss/_inputs.py +970 -30
  17. pulumi_gcp/dataloss/outputs.py +850 -20
  18. pulumi_gcp/dataloss/prevention_discovery_config.py +54 -0
  19. pulumi_gcp/diagflow/_inputs.py +66 -0
  20. pulumi_gcp/diagflow/conversation_profile.py +84 -0
  21. pulumi_gcp/diagflow/outputs.py +57 -0
  22. pulumi_gcp/discoveryengine/__init__.py +1 -0
  23. pulumi_gcp/discoveryengine/_inputs.py +187 -0
  24. pulumi_gcp/discoveryengine/data_connector.py +1368 -0
  25. pulumi_gcp/discoveryengine/outputs.py +135 -0
  26. pulumi_gcp/discoveryengine/search_engine.py +47 -0
  27. pulumi_gcp/gkebackup/_inputs.py +111 -0
  28. pulumi_gcp/gkebackup/backup_plan.py +72 -0
  29. pulumi_gcp/gkebackup/outputs.py +84 -0
  30. pulumi_gcp/kms/__init__.py +1 -0
  31. pulumi_gcp/kms/_inputs.py +43 -0
  32. pulumi_gcp/kms/organization_kaj_policy_config.py +290 -0
  33. pulumi_gcp/kms/outputs.py +43 -0
  34. pulumi_gcp/logging/metric.py +2 -2
  35. pulumi_gcp/looker/instance.py +51 -0
  36. pulumi_gcp/managedkafka/connect_cluster.py +20 -82
  37. pulumi_gcp/managedkafka/connector.py +24 -94
  38. pulumi_gcp/netapp/_inputs.py +28 -5
  39. pulumi_gcp/netapp/outputs.py +19 -3
  40. pulumi_gcp/netapp/storage_pool.py +56 -0
  41. pulumi_gcp/netapp/volume.py +28 -0
  42. pulumi_gcp/networkconnectivity/spoke.py +14 -14
  43. pulumi_gcp/networksecurity/mirroring_endpoint_group.py +211 -23
  44. pulumi_gcp/oracledatabase/odb_network.py +101 -2
  45. pulumi_gcp/orgpolicy/policy.py +2 -2
  46. pulumi_gcp/privilegedaccessmanager/_inputs.py +27 -4
  47. pulumi_gcp/privilegedaccessmanager/outputs.py +31 -6
  48. pulumi_gcp/pubsub/get_subscription.py +12 -1
  49. pulumi_gcp/pubsub/get_topic.py +15 -4
  50. pulumi_gcp/pubsub/subscription.py +153 -7
  51. pulumi_gcp/pubsub/topic.py +145 -3
  52. pulumi_gcp/pulumi-plugin.json +1 -1
  53. pulumi_gcp/saasruntime/__init__.py +1 -0
  54. pulumi_gcp/saasruntime/_inputs.py +60 -0
  55. pulumi_gcp/saasruntime/outputs.py +55 -0
  56. pulumi_gcp/saasruntime/rollout_kind.py +1086 -0
  57. pulumi_gcp/sql/_inputs.py +122 -3
  58. pulumi_gcp/sql/database_instance.py +47 -0
  59. pulumi_gcp/sql/get_database_instance.py +12 -1
  60. pulumi_gcp/sql/outputs.py +233 -2
  61. pulumi_gcp/storage/bucket.py +52 -24
  62. pulumi_gcp/storage/get_insights_dataset_config.py +12 -1
  63. pulumi_gcp/storage/insights_dataset_config.py +49 -0
  64. pulumi_gcp/storage/insights_report_config.py +47 -0
  65. pulumi_gcp/vertex/_inputs.py +339 -1
  66. pulumi_gcp/vertex/ai_endpoint.py +4 -4
  67. pulumi_gcp/vertex/ai_endpoint_with_model_garden_deployment.py +102 -0
  68. pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
  69. pulumi_gcp/vertex/ai_index.py +74 -2
  70. pulumi_gcp/vertex/ai_index_endpoint.py +54 -0
  71. pulumi_gcp/vertex/get_ai_index.py +12 -1
  72. pulumi_gcp/vertex/outputs.py +303 -1
  73. {pulumi_gcp-9.3.0a1759387993.dist-info → pulumi_gcp-9.3.0a1759868184.dist-info}/METADATA +1 -1
  74. {pulumi_gcp-9.3.0a1759387993.dist-info → pulumi_gcp-9.3.0a1759868184.dist-info}/RECORD +76 -70
  75. {pulumi_gcp-9.3.0a1759387993.dist-info → pulumi_gcp-9.3.0a1759868184.dist-info}/WHEEL +0 -0
  76. {pulumi_gcp-9.3.0a1759387993.dist-info → pulumi_gcp-9.3.0a1759868184.dist-info}/top_level.txt +0 -0
@@ -99,7 +99,17 @@ __all__ = [
99
99
  'WorkerPoolTemplateContainerEnv',
100
100
  'WorkerPoolTemplateContainerEnvValueSource',
101
101
  'WorkerPoolTemplateContainerEnvValueSourceSecretKeyRef',
102
+ 'WorkerPoolTemplateContainerLivenessProbe',
103
+ 'WorkerPoolTemplateContainerLivenessProbeGrpc',
104
+ 'WorkerPoolTemplateContainerLivenessProbeHttpGet',
105
+ 'WorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaders',
106
+ 'WorkerPoolTemplateContainerLivenessProbeTcpSocket',
102
107
  'WorkerPoolTemplateContainerResources',
108
+ 'WorkerPoolTemplateContainerStartupProbe',
109
+ 'WorkerPoolTemplateContainerStartupProbeGrpc',
110
+ 'WorkerPoolTemplateContainerStartupProbeHttpGet',
111
+ 'WorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaders',
112
+ 'WorkerPoolTemplateContainerStartupProbeTcpSocket',
103
113
  'WorkerPoolTemplateContainerVolumeMount',
104
114
  'WorkerPoolTemplateNodeSelector',
105
115
  'WorkerPoolTemplateVolume',
@@ -189,7 +199,17 @@ __all__ = [
189
199
  'GetWorkerPoolTemplateContainerEnvResult',
190
200
  'GetWorkerPoolTemplateContainerEnvValueSourceResult',
191
201
  'GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefResult',
202
+ 'GetWorkerPoolTemplateContainerLivenessProbeResult',
203
+ 'GetWorkerPoolTemplateContainerLivenessProbeGrpcResult',
204
+ 'GetWorkerPoolTemplateContainerLivenessProbeHttpGetResult',
205
+ 'GetWorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaderResult',
206
+ 'GetWorkerPoolTemplateContainerLivenessProbeTcpSocketResult',
192
207
  'GetWorkerPoolTemplateContainerResourceResult',
208
+ 'GetWorkerPoolTemplateContainerStartupProbeResult',
209
+ 'GetWorkerPoolTemplateContainerStartupProbeGrpcResult',
210
+ 'GetWorkerPoolTemplateContainerStartupProbeHttpGetResult',
211
+ 'GetWorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaderResult',
212
+ 'GetWorkerPoolTemplateContainerStartupProbeTcpSocketResult',
193
213
  'GetWorkerPoolTemplateContainerVolumeMountResult',
194
214
  'GetWorkerPoolTemplateNodeSelectorResult',
195
215
  'GetWorkerPoolTemplateVolumeResult',
@@ -5646,7 +5666,11 @@ class WorkerPoolTemplateContainer(dict):
5646
5666
  @staticmethod
5647
5667
  def __key_warning(key: str):
5648
5668
  suggest = None
5649
- if key == "volumeMounts":
5669
+ if key == "livenessProbe":
5670
+ suggest = "liveness_probe"
5671
+ elif key == "startupProbe":
5672
+ suggest = "startup_probe"
5673
+ elif key == "volumeMounts":
5650
5674
  suggest = "volume_mounts"
5651
5675
  elif key == "workingDir":
5652
5676
  suggest = "working_dir"
@@ -5667,8 +5691,10 @@ class WorkerPoolTemplateContainer(dict):
5667
5691
  args: Optional[Sequence[_builtins.str]] = None,
5668
5692
  commands: Optional[Sequence[_builtins.str]] = None,
5669
5693
  envs: Optional[Sequence['outputs.WorkerPoolTemplateContainerEnv']] = None,
5694
+ liveness_probe: Optional['outputs.WorkerPoolTemplateContainerLivenessProbe'] = None,
5670
5695
  name: Optional[_builtins.str] = None,
5671
5696
  resources: Optional['outputs.WorkerPoolTemplateContainerResources'] = None,
5697
+ startup_probe: Optional['outputs.WorkerPoolTemplateContainerStartupProbe'] = None,
5672
5698
  volume_mounts: Optional[Sequence['outputs.WorkerPoolTemplateContainerVolumeMount']] = None,
5673
5699
  working_dir: Optional[_builtins.str] = None):
5674
5700
  """
@@ -5677,9 +5703,13 @@ class WorkerPoolTemplateContainer(dict):
5677
5703
  :param Sequence[_builtins.str] commands: 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
5678
5704
  :param Sequence['WorkerPoolTemplateContainerEnvArgs'] envs: List of environment variables to set in the container.
5679
5705
  Structure is documented below.
5706
+ :param 'WorkerPoolTemplateContainerLivenessProbeArgs' liveness_probe: Periodic probe of container liveness. Container will be restarted if the probe fails.
5707
+ Structure is documented below.
5680
5708
  :param _builtins.str name: Name of the container specified as a DNS_LABEL.
5681
5709
  :param 'WorkerPoolTemplateContainerResourcesArgs' resources: Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
5682
5710
  Structure is documented below.
5711
+ :param 'WorkerPoolTemplateContainerStartupProbeArgs' startup_probe: 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.
5712
+ Structure is documented below.
5683
5713
  :param Sequence['WorkerPoolTemplateContainerVolumeMountArgs'] volume_mounts: Volume to mount into the container's filesystem.
5684
5714
  Structure is documented below.
5685
5715
  :param _builtins.str working_dir: Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
@@ -5691,10 +5721,14 @@ class WorkerPoolTemplateContainer(dict):
5691
5721
  pulumi.set(__self__, "commands", commands)
5692
5722
  if envs is not None:
5693
5723
  pulumi.set(__self__, "envs", envs)
5724
+ if liveness_probe is not None:
5725
+ pulumi.set(__self__, "liveness_probe", liveness_probe)
5694
5726
  if name is not None:
5695
5727
  pulumi.set(__self__, "name", name)
5696
5728
  if resources is not None:
5697
5729
  pulumi.set(__self__, "resources", resources)
5730
+ if startup_probe is not None:
5731
+ pulumi.set(__self__, "startup_probe", startup_probe)
5698
5732
  if volume_mounts is not None:
5699
5733
  pulumi.set(__self__, "volume_mounts", volume_mounts)
5700
5734
  if working_dir is not None:
@@ -5733,6 +5767,15 @@ class WorkerPoolTemplateContainer(dict):
5733
5767
  """
5734
5768
  return pulumi.get(self, "envs")
5735
5769
 
5770
+ @_builtins.property
5771
+ @pulumi.getter(name="livenessProbe")
5772
+ def liveness_probe(self) -> Optional['outputs.WorkerPoolTemplateContainerLivenessProbe']:
5773
+ """
5774
+ Periodic probe of container liveness. Container will be restarted if the probe fails.
5775
+ Structure is documented below.
5776
+ """
5777
+ return pulumi.get(self, "liveness_probe")
5778
+
5736
5779
  @_builtins.property
5737
5780
  @pulumi.getter
5738
5781
  def name(self) -> Optional[_builtins.str]:
@@ -5750,6 +5793,15 @@ class WorkerPoolTemplateContainer(dict):
5750
5793
  """
5751
5794
  return pulumi.get(self, "resources")
5752
5795
 
5796
+ @_builtins.property
5797
+ @pulumi.getter(name="startupProbe")
5798
+ def startup_probe(self) -> Optional['outputs.WorkerPoolTemplateContainerStartupProbe']:
5799
+ """
5800
+ 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.
5801
+ Structure is documented below.
5802
+ """
5803
+ return pulumi.get(self, "startup_probe")
5804
+
5753
5805
  @_builtins.property
5754
5806
  @pulumi.getter(name="volumeMounts")
5755
5807
  def volume_mounts(self) -> Optional[Sequence['outputs.WorkerPoolTemplateContainerVolumeMount']]:
@@ -5898,457 +5950,989 @@ class WorkerPoolTemplateContainerEnvValueSourceSecretKeyRef(dict):
5898
5950
 
5899
5951
 
5900
5952
  @pulumi.output_type
5901
- class WorkerPoolTemplateContainerResources(dict):
5902
- def __init__(__self__, *,
5903
- limits: Optional[Mapping[str, _builtins.str]] = None):
5904
- """
5905
- :param Mapping[str, _builtins.str] limits: 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', and '8'. Setting 4 CPU requires at least 2Gi 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
5906
- """
5907
- if limits is not None:
5908
- pulumi.set(__self__, "limits", limits)
5909
-
5910
- @_builtins.property
5911
- @pulumi.getter
5912
- def limits(self) -> Optional[Mapping[str, _builtins.str]]:
5913
- """
5914
- 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', and '8'. Setting 4 CPU requires at least 2Gi 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
5915
- """
5916
- return pulumi.get(self, "limits")
5917
-
5918
-
5919
- @pulumi.output_type
5920
- class WorkerPoolTemplateContainerVolumeMount(dict):
5953
+ class WorkerPoolTemplateContainerLivenessProbe(dict):
5921
5954
  @staticmethod
5922
5955
  def __key_warning(key: str):
5923
5956
  suggest = None
5924
- if key == "mountPath":
5925
- suggest = "mount_path"
5926
- elif key == "subPath":
5927
- suggest = "sub_path"
5957
+ if key == "failureThreshold":
5958
+ suggest = "failure_threshold"
5959
+ elif key == "httpGet":
5960
+ suggest = "http_get"
5961
+ elif key == "initialDelaySeconds":
5962
+ suggest = "initial_delay_seconds"
5963
+ elif key == "periodSeconds":
5964
+ suggest = "period_seconds"
5965
+ elif key == "tcpSocket":
5966
+ suggest = "tcp_socket"
5967
+ elif key == "timeoutSeconds":
5968
+ suggest = "timeout_seconds"
5928
5969
 
5929
5970
  if suggest:
5930
- pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateContainerVolumeMount. Access the value via the '{suggest}' property getter instead.")
5971
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateContainerLivenessProbe. Access the value via the '{suggest}' property getter instead.")
5931
5972
 
5932
5973
  def __getitem__(self, key: str) -> Any:
5933
- WorkerPoolTemplateContainerVolumeMount.__key_warning(key)
5974
+ WorkerPoolTemplateContainerLivenessProbe.__key_warning(key)
5934
5975
  return super().__getitem__(key)
5935
5976
 
5936
5977
  def get(self, key: str, default = None) -> Any:
5937
- WorkerPoolTemplateContainerVolumeMount.__key_warning(key)
5978
+ WorkerPoolTemplateContainerLivenessProbe.__key_warning(key)
5938
5979
  return super().get(key, default)
5939
5980
 
5940
5981
  def __init__(__self__, *,
5941
- mount_path: _builtins.str,
5942
- name: _builtins.str,
5943
- sub_path: Optional[_builtins.str] = None):
5982
+ failure_threshold: Optional[_builtins.int] = None,
5983
+ grpc: Optional['outputs.WorkerPoolTemplateContainerLivenessProbeGrpc'] = None,
5984
+ http_get: Optional['outputs.WorkerPoolTemplateContainerLivenessProbeHttpGet'] = None,
5985
+ initial_delay_seconds: Optional[_builtins.int] = None,
5986
+ period_seconds: Optional[_builtins.int] = None,
5987
+ tcp_socket: Optional['outputs.WorkerPoolTemplateContainerLivenessProbeTcpSocket'] = None,
5988
+ timeout_seconds: Optional[_builtins.int] = None):
5944
5989
  """
5945
- :param _builtins.str mount_path: 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
5946
- :param _builtins.str name: This must match the Name of a Volume.
5947
- :param _builtins.str sub_path: Path within the volume from which the container's volume should be mounted.
5990
+ :param _builtins.int failure_threshold: Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
5991
+ :param 'WorkerPoolTemplateContainerLivenessProbeGrpcArgs' grpc: Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
5992
+ Structure is documented below.
5993
+ :param 'WorkerPoolTemplateContainerLivenessProbeHttpGetArgs' http_get: Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
5994
+ Structure is documented below.
5995
+ :param _builtins.int initial_delay_seconds: Optional. 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.
5996
+ :param _builtins.int period_seconds: Optional. 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 timeout_seconds.
5997
+ :param 'WorkerPoolTemplateContainerLivenessProbeTcpSocketArgs' tcp_socket: Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
5998
+ Structure is documented below.
5999
+ :param _builtins.int timeout_seconds: Optional. 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 period_seconds.
5948
6000
  """
5949
- pulumi.set(__self__, "mount_path", mount_path)
5950
- pulumi.set(__self__, "name", name)
5951
- if sub_path is not None:
5952
- pulumi.set(__self__, "sub_path", sub_path)
6001
+ if failure_threshold is not None:
6002
+ pulumi.set(__self__, "failure_threshold", failure_threshold)
6003
+ if grpc is not None:
6004
+ pulumi.set(__self__, "grpc", grpc)
6005
+ if http_get is not None:
6006
+ pulumi.set(__self__, "http_get", http_get)
6007
+ if initial_delay_seconds is not None:
6008
+ pulumi.set(__self__, "initial_delay_seconds", initial_delay_seconds)
6009
+ if period_seconds is not None:
6010
+ pulumi.set(__self__, "period_seconds", period_seconds)
6011
+ if tcp_socket is not None:
6012
+ pulumi.set(__self__, "tcp_socket", tcp_socket)
6013
+ if timeout_seconds is not None:
6014
+ pulumi.set(__self__, "timeout_seconds", timeout_seconds)
5953
6015
 
5954
6016
  @_builtins.property
5955
- @pulumi.getter(name="mountPath")
5956
- def mount_path(self) -> _builtins.str:
6017
+ @pulumi.getter(name="failureThreshold")
6018
+ def failure_threshold(self) -> Optional[_builtins.int]:
5957
6019
  """
5958
- 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
6020
+ Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
5959
6021
  """
5960
- return pulumi.get(self, "mount_path")
6022
+ return pulumi.get(self, "failure_threshold")
5961
6023
 
5962
6024
  @_builtins.property
5963
6025
  @pulumi.getter
5964
- def name(self) -> _builtins.str:
6026
+ def grpc(self) -> Optional['outputs.WorkerPoolTemplateContainerLivenessProbeGrpc']:
5965
6027
  """
5966
- This must match the Name of a Volume.
6028
+ Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6029
+ Structure is documented below.
5967
6030
  """
5968
- return pulumi.get(self, "name")
6031
+ return pulumi.get(self, "grpc")
5969
6032
 
5970
6033
  @_builtins.property
5971
- @pulumi.getter(name="subPath")
5972
- def sub_path(self) -> Optional[_builtins.str]:
6034
+ @pulumi.getter(name="httpGet")
6035
+ def http_get(self) -> Optional['outputs.WorkerPoolTemplateContainerLivenessProbeHttpGet']:
5973
6036
  """
5974
- Path within the volume from which the container's volume should be mounted.
6037
+ Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6038
+ Structure is documented below.
5975
6039
  """
5976
- return pulumi.get(self, "sub_path")
6040
+ return pulumi.get(self, "http_get")
6041
+
6042
+ @_builtins.property
6043
+ @pulumi.getter(name="initialDelaySeconds")
6044
+ def initial_delay_seconds(self) -> Optional[_builtins.int]:
6045
+ """
6046
+ Optional. 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.
6047
+ """
6048
+ return pulumi.get(self, "initial_delay_seconds")
6049
+
6050
+ @_builtins.property
6051
+ @pulumi.getter(name="periodSeconds")
6052
+ def period_seconds(self) -> Optional[_builtins.int]:
6053
+ """
6054
+ Optional. 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 timeout_seconds.
6055
+ """
6056
+ return pulumi.get(self, "period_seconds")
6057
+
6058
+ @_builtins.property
6059
+ @pulumi.getter(name="tcpSocket")
6060
+ def tcp_socket(self) -> Optional['outputs.WorkerPoolTemplateContainerLivenessProbeTcpSocket']:
6061
+ """
6062
+ Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6063
+ Structure is documented below.
6064
+ """
6065
+ return pulumi.get(self, "tcp_socket")
6066
+
6067
+ @_builtins.property
6068
+ @pulumi.getter(name="timeoutSeconds")
6069
+ def timeout_seconds(self) -> Optional[_builtins.int]:
6070
+ """
6071
+ Optional. 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 period_seconds.
6072
+ """
6073
+ return pulumi.get(self, "timeout_seconds")
5977
6074
 
5978
6075
 
5979
6076
  @pulumi.output_type
5980
- class WorkerPoolTemplateNodeSelector(dict):
6077
+ class WorkerPoolTemplateContainerLivenessProbeGrpc(dict):
5981
6078
  def __init__(__self__, *,
5982
- accelerator: _builtins.str):
6079
+ port: Optional[_builtins.int] = None,
6080
+ service: Optional[_builtins.str] = None):
5983
6081
  """
5984
- :param _builtins.str accelerator: The GPU to attach to an instance. See https://cloud.google.com/run/docs/configuring/services/gpu for configuring GPU.
6082
+ :param _builtins.int port: Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6083
+ :param _builtins.str service: Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC
5985
6084
  """
5986
- pulumi.set(__self__, "accelerator", accelerator)
6085
+ if port is not None:
6086
+ pulumi.set(__self__, "port", port)
6087
+ if service is not None:
6088
+ pulumi.set(__self__, "service", service)
5987
6089
 
5988
6090
  @_builtins.property
5989
6091
  @pulumi.getter
5990
- def accelerator(self) -> _builtins.str:
6092
+ def port(self) -> Optional[_builtins.int]:
5991
6093
  """
5992
- The GPU to attach to an instance. See https://cloud.google.com/run/docs/configuring/services/gpu for configuring GPU.
6094
+ Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
5993
6095
  """
5994
- return pulumi.get(self, "accelerator")
6096
+ return pulumi.get(self, "port")
6097
+
6098
+ @_builtins.property
6099
+ @pulumi.getter
6100
+ def service(self) -> Optional[_builtins.str]:
6101
+ """
6102
+ Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC
6103
+ """
6104
+ return pulumi.get(self, "service")
5995
6105
 
5996
6106
 
5997
6107
  @pulumi.output_type
5998
- class WorkerPoolTemplateVolume(dict):
6108
+ class WorkerPoolTemplateContainerLivenessProbeHttpGet(dict):
5999
6109
  @staticmethod
6000
6110
  def __key_warning(key: str):
6001
6111
  suggest = None
6002
- if key == "cloudSqlInstance":
6003
- suggest = "cloud_sql_instance"
6004
- elif key == "emptyDir":
6005
- suggest = "empty_dir"
6112
+ if key == "httpHeaders":
6113
+ suggest = "http_headers"
6006
6114
 
6007
6115
  if suggest:
6008
- pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolume. Access the value via the '{suggest}' property getter instead.")
6116
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateContainerLivenessProbeHttpGet. Access the value via the '{suggest}' property getter instead.")
6009
6117
 
6010
6118
  def __getitem__(self, key: str) -> Any:
6011
- WorkerPoolTemplateVolume.__key_warning(key)
6119
+ WorkerPoolTemplateContainerLivenessProbeHttpGet.__key_warning(key)
6012
6120
  return super().__getitem__(key)
6013
6121
 
6014
6122
  def get(self, key: str, default = None) -> Any:
6015
- WorkerPoolTemplateVolume.__key_warning(key)
6123
+ WorkerPoolTemplateContainerLivenessProbeHttpGet.__key_warning(key)
6016
6124
  return super().get(key, default)
6017
6125
 
6018
6126
  def __init__(__self__, *,
6019
- name: _builtins.str,
6020
- cloud_sql_instance: Optional['outputs.WorkerPoolTemplateVolumeCloudSqlInstance'] = None,
6021
- empty_dir: Optional['outputs.WorkerPoolTemplateVolumeEmptyDir'] = None,
6022
- gcs: Optional['outputs.WorkerPoolTemplateVolumeGcs'] = None,
6023
- nfs: Optional['outputs.WorkerPoolTemplateVolumeNfs'] = None,
6024
- secret: Optional['outputs.WorkerPoolTemplateVolumeSecret'] = None):
6127
+ http_headers: Optional['outputs.WorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaders'] = None,
6128
+ path: Optional[_builtins.str] = None,
6129
+ port: Optional[_builtins.int] = None):
6025
6130
  """
6026
- :param _builtins.str name: Volume's name.
6027
- :param 'WorkerPoolTemplateVolumeCloudSqlInstanceArgs' cloud_sql_instance: 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.
6028
- Structure is documented below.
6029
- :param 'WorkerPoolTemplateVolumeEmptyDirArgs' empty_dir: Ephemeral storage used as a shared volume.
6030
- Structure is documented below.
6031
- :param 'WorkerPoolTemplateVolumeGcsArgs' gcs: Cloud Storage bucket mounted as a volume using GCSFuse. This feature is only supported in the gen2 execution environment.
6032
- Structure is documented below.
6033
- :param 'WorkerPoolTemplateVolumeNfsArgs' nfs: Represents an NFS mount.
6034
- Structure is documented below.
6035
- :param 'WorkerPoolTemplateVolumeSecretArgs' secret: Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
6131
+ :param 'WorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeadersArgs' http_headers: Optional. Custom headers to set in the request. HTTP allows repeated headers.
6036
6132
  Structure is documented below.
6133
+ :param _builtins.str path: Optional. Path to access on the HTTP server. Defaults to '/'.
6134
+ :param _builtins.int port: Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6037
6135
  """
6038
- pulumi.set(__self__, "name", name)
6039
- if cloud_sql_instance is not None:
6040
- pulumi.set(__self__, "cloud_sql_instance", cloud_sql_instance)
6041
- if empty_dir is not None:
6042
- pulumi.set(__self__, "empty_dir", empty_dir)
6043
- if gcs is not None:
6044
- pulumi.set(__self__, "gcs", gcs)
6045
- if nfs is not None:
6046
- pulumi.set(__self__, "nfs", nfs)
6047
- if secret is not None:
6048
- pulumi.set(__self__, "secret", secret)
6136
+ if http_headers is not None:
6137
+ pulumi.set(__self__, "http_headers", http_headers)
6138
+ if path is not None:
6139
+ pulumi.set(__self__, "path", path)
6140
+ if port is not None:
6141
+ pulumi.set(__self__, "port", port)
6049
6142
 
6050
6143
  @_builtins.property
6051
- @pulumi.getter
6052
- def name(self) -> _builtins.str:
6144
+ @pulumi.getter(name="httpHeaders")
6145
+ def http_headers(self) -> Optional['outputs.WorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaders']:
6053
6146
  """
6054
- Volume's name.
6147
+ Optional. Custom headers to set in the request. HTTP allows repeated headers.
6148
+ Structure is documented below.
6055
6149
  """
6056
- return pulumi.get(self, "name")
6150
+ return pulumi.get(self, "http_headers")
6057
6151
 
6058
6152
  @_builtins.property
6059
- @pulumi.getter(name="cloudSqlInstance")
6060
- def cloud_sql_instance(self) -> Optional['outputs.WorkerPoolTemplateVolumeCloudSqlInstance']:
6153
+ @pulumi.getter
6154
+ def path(self) -> Optional[_builtins.str]:
6061
6155
  """
6062
- 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.
6063
- Structure is documented below.
6156
+ Optional. Path to access on the HTTP server. Defaults to '/'.
6064
6157
  """
6065
- return pulumi.get(self, "cloud_sql_instance")
6158
+ return pulumi.get(self, "path")
6066
6159
 
6067
6160
  @_builtins.property
6068
- @pulumi.getter(name="emptyDir")
6069
- def empty_dir(self) -> Optional['outputs.WorkerPoolTemplateVolumeEmptyDir']:
6161
+ @pulumi.getter
6162
+ def port(self) -> Optional[_builtins.int]:
6070
6163
  """
6071
- Ephemeral storage used as a shared volume.
6072
- Structure is documented below.
6164
+ Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6073
6165
  """
6074
- return pulumi.get(self, "empty_dir")
6166
+ return pulumi.get(self, "port")
6075
6167
 
6076
- @_builtins.property
6077
- @pulumi.getter
6078
- def gcs(self) -> Optional['outputs.WorkerPoolTemplateVolumeGcs']:
6168
+
6169
+ @pulumi.output_type
6170
+ class WorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaders(dict):
6171
+ def __init__(__self__, *,
6172
+ port: _builtins.int,
6173
+ value: Optional[_builtins.str] = None):
6079
6174
  """
6080
- Cloud Storage bucket mounted as a volume using GCSFuse. This feature is only supported in the gen2 execution environment.
6081
- Structure is documented below.
6175
+ :param _builtins.int port: Required. The header field name
6176
+ :param _builtins.str value: Optional. The header field value
6082
6177
  """
6083
- return pulumi.get(self, "gcs")
6178
+ pulumi.set(__self__, "port", port)
6179
+ if value is not None:
6180
+ pulumi.set(__self__, "value", value)
6084
6181
 
6085
6182
  @_builtins.property
6086
6183
  @pulumi.getter
6087
- def nfs(self) -> Optional['outputs.WorkerPoolTemplateVolumeNfs']:
6184
+ def port(self) -> _builtins.int:
6088
6185
  """
6089
- Represents an NFS mount.
6090
- Structure is documented below.
6186
+ Required. The header field name
6091
6187
  """
6092
- return pulumi.get(self, "nfs")
6188
+ return pulumi.get(self, "port")
6093
6189
 
6094
6190
  @_builtins.property
6095
6191
  @pulumi.getter
6096
- def secret(self) -> Optional['outputs.WorkerPoolTemplateVolumeSecret']:
6192
+ def value(self) -> Optional[_builtins.str]:
6097
6193
  """
6098
- Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
6099
- Structure is documented below.
6194
+ Optional. The header field value
6100
6195
  """
6101
- return pulumi.get(self, "secret")
6196
+ return pulumi.get(self, "value")
6102
6197
 
6103
6198
 
6104
6199
  @pulumi.output_type
6105
- class WorkerPoolTemplateVolumeCloudSqlInstance(dict):
6200
+ class WorkerPoolTemplateContainerLivenessProbeTcpSocket(dict):
6106
6201
  def __init__(__self__, *,
6107
- instances: Optional[Sequence[_builtins.str]] = None):
6202
+ port: Optional[_builtins.int] = None):
6108
6203
  """
6109
- :param Sequence[_builtins.str] instances: 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}
6204
+ :param _builtins.int port: Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6110
6205
  """
6111
- if instances is not None:
6112
- pulumi.set(__self__, "instances", instances)
6206
+ if port is not None:
6207
+ pulumi.set(__self__, "port", port)
6113
6208
 
6114
6209
  @_builtins.property
6115
6210
  @pulumi.getter
6116
- def instances(self) -> Optional[Sequence[_builtins.str]]:
6211
+ def port(self) -> Optional[_builtins.int]:
6117
6212
  """
6118
- 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}
6213
+ Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6119
6214
  """
6120
- return pulumi.get(self, "instances")
6215
+ return pulumi.get(self, "port")
6121
6216
 
6122
6217
 
6123
6218
  @pulumi.output_type
6124
- class WorkerPoolTemplateVolumeEmptyDir(dict):
6125
- @staticmethod
6126
- def __key_warning(key: str):
6127
- suggest = None
6128
- if key == "sizeLimit":
6129
- suggest = "size_limit"
6130
-
6131
- if suggest:
6132
- pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolumeEmptyDir. Access the value via the '{suggest}' property getter instead.")
6133
-
6134
- def __getitem__(self, key: str) -> Any:
6135
- WorkerPoolTemplateVolumeEmptyDir.__key_warning(key)
6136
- return super().__getitem__(key)
6137
-
6138
- def get(self, key: str, default = None) -> Any:
6139
- WorkerPoolTemplateVolumeEmptyDir.__key_warning(key)
6140
- return super().get(key, default)
6141
-
6219
+ class WorkerPoolTemplateContainerResources(dict):
6142
6220
  def __init__(__self__, *,
6143
- medium: Optional[_builtins.str] = None,
6144
- size_limit: Optional[_builtins.str] = None):
6221
+ limits: Optional[Mapping[str, _builtins.str]] = None):
6145
6222
  """
6146
- :param _builtins.str medium: The different types of medium supported for EmptyDir.
6147
- Default value is `MEMORY`.
6148
- Possible values are: `MEMORY`.
6149
- :param _builtins.str size_limit: 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.
6223
+ :param Mapping[str, _builtins.str] limits: 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', and '8'. Setting 4 CPU requires at least 2Gi 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
6150
6224
  """
6151
- if medium is not None:
6152
- pulumi.set(__self__, "medium", medium)
6153
- if size_limit is not None:
6154
- pulumi.set(__self__, "size_limit", size_limit)
6225
+ if limits is not None:
6226
+ pulumi.set(__self__, "limits", limits)
6155
6227
 
6156
6228
  @_builtins.property
6157
6229
  @pulumi.getter
6158
- def medium(self) -> Optional[_builtins.str]:
6159
- """
6160
- The different types of medium supported for EmptyDir.
6161
- Default value is `MEMORY`.
6162
- Possible values are: `MEMORY`.
6163
- """
6164
- return pulumi.get(self, "medium")
6165
-
6166
- @_builtins.property
6167
- @pulumi.getter(name="sizeLimit")
6168
- def size_limit(self) -> Optional[_builtins.str]:
6230
+ def limits(self) -> Optional[Mapping[str, _builtins.str]]:
6169
6231
  """
6170
- 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.
6232
+ 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', and '8'. Setting 4 CPU requires at least 2Gi 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
6171
6233
  """
6172
- return pulumi.get(self, "size_limit")
6234
+ return pulumi.get(self, "limits")
6173
6235
 
6174
6236
 
6175
6237
  @pulumi.output_type
6176
- class WorkerPoolTemplateVolumeGcs(dict):
6238
+ class WorkerPoolTemplateContainerStartupProbe(dict):
6177
6239
  @staticmethod
6178
6240
  def __key_warning(key: str):
6179
6241
  suggest = None
6180
- if key == "mountOptions":
6181
- suggest = "mount_options"
6182
- elif key == "readOnly":
6183
- suggest = "read_only"
6242
+ if key == "failureThreshold":
6243
+ suggest = "failure_threshold"
6244
+ elif key == "httpGet":
6245
+ suggest = "http_get"
6246
+ elif key == "initialDelaySeconds":
6247
+ suggest = "initial_delay_seconds"
6248
+ elif key == "periodSeconds":
6249
+ suggest = "period_seconds"
6250
+ elif key == "tcpSocket":
6251
+ suggest = "tcp_socket"
6252
+ elif key == "timeoutSeconds":
6253
+ suggest = "timeout_seconds"
6184
6254
 
6185
6255
  if suggest:
6186
- pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolumeGcs. Access the value via the '{suggest}' property getter instead.")
6256
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateContainerStartupProbe. Access the value via the '{suggest}' property getter instead.")
6187
6257
 
6188
6258
  def __getitem__(self, key: str) -> Any:
6189
- WorkerPoolTemplateVolumeGcs.__key_warning(key)
6259
+ WorkerPoolTemplateContainerStartupProbe.__key_warning(key)
6190
6260
  return super().__getitem__(key)
6191
6261
 
6192
6262
  def get(self, key: str, default = None) -> Any:
6193
- WorkerPoolTemplateVolumeGcs.__key_warning(key)
6263
+ WorkerPoolTemplateContainerStartupProbe.__key_warning(key)
6194
6264
  return super().get(key, default)
6195
6265
 
6196
6266
  def __init__(__self__, *,
6197
- bucket: _builtins.str,
6198
- mount_options: Optional[Sequence[_builtins.str]] = None,
6199
- read_only: Optional[_builtins.bool] = None):
6267
+ failure_threshold: Optional[_builtins.int] = None,
6268
+ grpc: Optional['outputs.WorkerPoolTemplateContainerStartupProbeGrpc'] = None,
6269
+ http_get: Optional['outputs.WorkerPoolTemplateContainerStartupProbeHttpGet'] = None,
6270
+ initial_delay_seconds: Optional[_builtins.int] = None,
6271
+ period_seconds: Optional[_builtins.int] = None,
6272
+ tcp_socket: Optional['outputs.WorkerPoolTemplateContainerStartupProbeTcpSocket'] = None,
6273
+ timeout_seconds: Optional[_builtins.int] = None):
6200
6274
  """
6201
- :param _builtins.str bucket: GCS Bucket name
6202
- :param Sequence[_builtins.str] mount_options: A list of flags to pass to the gcsfuse command for configuring this volume.
6203
- Flags should be passed without leading dashes.
6204
- :param _builtins.bool read_only: If true, mount the GCS bucket as read-only
6275
+ :param _builtins.int failure_threshold: Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
6276
+ :param 'WorkerPoolTemplateContainerStartupProbeGrpcArgs' grpc: Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6277
+ Structure is documented below.
6278
+ :param 'WorkerPoolTemplateContainerStartupProbeHttpGetArgs' http_get: Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6279
+ Structure is documented below.
6280
+ :param _builtins.int initial_delay_seconds: Optional. 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.
6281
+ :param _builtins.int period_seconds: Optional. 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 timeout_seconds.
6282
+ :param 'WorkerPoolTemplateContainerStartupProbeTcpSocketArgs' tcp_socket: Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6283
+ Structure is documented below.
6284
+ :param _builtins.int timeout_seconds: Optional. 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 period_seconds.
6205
6285
  """
6206
- pulumi.set(__self__, "bucket", bucket)
6207
- if mount_options is not None:
6208
- pulumi.set(__self__, "mount_options", mount_options)
6209
- if read_only is not None:
6210
- pulumi.set(__self__, "read_only", read_only)
6286
+ if failure_threshold is not None:
6287
+ pulumi.set(__self__, "failure_threshold", failure_threshold)
6288
+ if grpc is not None:
6289
+ pulumi.set(__self__, "grpc", grpc)
6290
+ if http_get is not None:
6291
+ pulumi.set(__self__, "http_get", http_get)
6292
+ if initial_delay_seconds is not None:
6293
+ pulumi.set(__self__, "initial_delay_seconds", initial_delay_seconds)
6294
+ if period_seconds is not None:
6295
+ pulumi.set(__self__, "period_seconds", period_seconds)
6296
+ if tcp_socket is not None:
6297
+ pulumi.set(__self__, "tcp_socket", tcp_socket)
6298
+ if timeout_seconds is not None:
6299
+ pulumi.set(__self__, "timeout_seconds", timeout_seconds)
6211
6300
 
6212
6301
  @_builtins.property
6213
- @pulumi.getter
6214
- def bucket(self) -> _builtins.str:
6302
+ @pulumi.getter(name="failureThreshold")
6303
+ def failure_threshold(self) -> Optional[_builtins.int]:
6215
6304
  """
6216
- GCS Bucket name
6305
+ Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
6217
6306
  """
6218
- return pulumi.get(self, "bucket")
6307
+ return pulumi.get(self, "failure_threshold")
6219
6308
 
6220
6309
  @_builtins.property
6221
- @pulumi.getter(name="mountOptions")
6222
- def mount_options(self) -> Optional[Sequence[_builtins.str]]:
6310
+ @pulumi.getter
6311
+ def grpc(self) -> Optional['outputs.WorkerPoolTemplateContainerStartupProbeGrpc']:
6223
6312
  """
6224
- A list of flags to pass to the gcsfuse command for configuring this volume.
6225
- Flags should be passed without leading dashes.
6313
+ Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6314
+ Structure is documented below.
6226
6315
  """
6227
- return pulumi.get(self, "mount_options")
6316
+ return pulumi.get(self, "grpc")
6228
6317
 
6229
6318
  @_builtins.property
6230
- @pulumi.getter(name="readOnly")
6231
- def read_only(self) -> Optional[_builtins.bool]:
6319
+ @pulumi.getter(name="httpGet")
6320
+ def http_get(self) -> Optional['outputs.WorkerPoolTemplateContainerStartupProbeHttpGet']:
6232
6321
  """
6233
- If true, mount the GCS bucket as read-only
6322
+ Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6323
+ Structure is documented below.
6234
6324
  """
6235
- return pulumi.get(self, "read_only")
6325
+ return pulumi.get(self, "http_get")
6236
6326
 
6327
+ @_builtins.property
6328
+ @pulumi.getter(name="initialDelaySeconds")
6329
+ def initial_delay_seconds(self) -> Optional[_builtins.int]:
6330
+ """
6331
+ Optional. 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.
6332
+ """
6333
+ return pulumi.get(self, "initial_delay_seconds")
6237
6334
 
6238
- @pulumi.output_type
6239
- class WorkerPoolTemplateVolumeNfs(dict):
6240
- @staticmethod
6241
- def __key_warning(key: str):
6242
- suggest = None
6243
- if key == "readOnly":
6244
- suggest = "read_only"
6335
+ @_builtins.property
6336
+ @pulumi.getter(name="periodSeconds")
6337
+ def period_seconds(self) -> Optional[_builtins.int]:
6338
+ """
6339
+ Optional. 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 timeout_seconds.
6340
+ """
6341
+ return pulumi.get(self, "period_seconds")
6245
6342
 
6246
- if suggest:
6247
- pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolumeNfs. Access the value via the '{suggest}' property getter instead.")
6343
+ @_builtins.property
6344
+ @pulumi.getter(name="tcpSocket")
6345
+ def tcp_socket(self) -> Optional['outputs.WorkerPoolTemplateContainerStartupProbeTcpSocket']:
6346
+ """
6347
+ Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
6348
+ Structure is documented below.
6349
+ """
6350
+ return pulumi.get(self, "tcp_socket")
6248
6351
 
6249
- def __getitem__(self, key: str) -> Any:
6250
- WorkerPoolTemplateVolumeNfs.__key_warning(key)
6251
- return super().__getitem__(key)
6352
+ @_builtins.property
6353
+ @pulumi.getter(name="timeoutSeconds")
6354
+ def timeout_seconds(self) -> Optional[_builtins.int]:
6355
+ """
6356
+ Optional. 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 period_seconds.
6357
+ """
6358
+ return pulumi.get(self, "timeout_seconds")
6252
6359
 
6253
- def get(self, key: str, default = None) -> Any:
6254
- WorkerPoolTemplateVolumeNfs.__key_warning(key)
6255
- return super().get(key, default)
6256
6360
 
6361
+ @pulumi.output_type
6362
+ class WorkerPoolTemplateContainerStartupProbeGrpc(dict):
6257
6363
  def __init__(__self__, *,
6258
- path: _builtins.str,
6259
- server: _builtins.str,
6260
- read_only: Optional[_builtins.bool] = None):
6364
+ port: Optional[_builtins.int] = None,
6365
+ service: Optional[_builtins.str] = None):
6261
6366
  """
6262
- :param _builtins.str path: Path that is exported by the NFS server.
6263
- :param _builtins.str server: Hostname or IP address of the NFS server
6264
- :param _builtins.bool read_only: If true, mount the NFS volume as read only
6367
+ :param _builtins.int port: Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6368
+ :param _builtins.str service: Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC
6265
6369
  """
6266
- pulumi.set(__self__, "path", path)
6267
- pulumi.set(__self__, "server", server)
6268
- if read_only is not None:
6269
- pulumi.set(__self__, "read_only", read_only)
6370
+ if port is not None:
6371
+ pulumi.set(__self__, "port", port)
6372
+ if service is not None:
6373
+ pulumi.set(__self__, "service", service)
6270
6374
 
6271
6375
  @_builtins.property
6272
6376
  @pulumi.getter
6273
- def path(self) -> _builtins.str:
6377
+ def port(self) -> Optional[_builtins.int]:
6274
6378
  """
6275
- Path that is exported by the NFS server.
6379
+ Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6276
6380
  """
6277
- return pulumi.get(self, "path")
6381
+ return pulumi.get(self, "port")
6278
6382
 
6279
6383
  @_builtins.property
6280
6384
  @pulumi.getter
6281
- def server(self) -> _builtins.str:
6282
- """
6283
- Hostname or IP address of the NFS server
6284
- """
6285
- return pulumi.get(self, "server")
6286
-
6287
- @_builtins.property
6288
- @pulumi.getter(name="readOnly")
6289
- def read_only(self) -> Optional[_builtins.bool]:
6385
+ def service(self) -> Optional[_builtins.str]:
6290
6386
  """
6291
- If true, mount the NFS volume as read only
6387
+ Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC
6292
6388
  """
6293
- return pulumi.get(self, "read_only")
6389
+ return pulumi.get(self, "service")
6294
6390
 
6295
6391
 
6296
6392
  @pulumi.output_type
6297
- class WorkerPoolTemplateVolumeSecret(dict):
6393
+ class WorkerPoolTemplateContainerStartupProbeHttpGet(dict):
6298
6394
  @staticmethod
6299
6395
  def __key_warning(key: str):
6300
6396
  suggest = None
6301
- if key == "defaultMode":
6302
- suggest = "default_mode"
6397
+ if key == "httpHeaders":
6398
+ suggest = "http_headers"
6303
6399
 
6304
6400
  if suggest:
6305
- pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolumeSecret. Access the value via the '{suggest}' property getter instead.")
6401
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateContainerStartupProbeHttpGet. Access the value via the '{suggest}' property getter instead.")
6306
6402
 
6307
6403
  def __getitem__(self, key: str) -> Any:
6308
- WorkerPoolTemplateVolumeSecret.__key_warning(key)
6404
+ WorkerPoolTemplateContainerStartupProbeHttpGet.__key_warning(key)
6309
6405
  return super().__getitem__(key)
6310
6406
 
6311
6407
  def get(self, key: str, default = None) -> Any:
6312
- WorkerPoolTemplateVolumeSecret.__key_warning(key)
6408
+ WorkerPoolTemplateContainerStartupProbeHttpGet.__key_warning(key)
6313
6409
  return super().get(key, default)
6314
6410
 
6315
6411
  def __init__(__self__, *,
6316
- secret: _builtins.str,
6317
- default_mode: Optional[_builtins.int] = None,
6318
- items: Optional[Sequence['outputs.WorkerPoolTemplateVolumeSecretItem']] = None):
6412
+ http_headers: Optional['outputs.WorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaders'] = None,
6413
+ path: Optional[_builtins.str] = None,
6414
+ port: Optional[_builtins.int] = None):
6319
6415
  """
6320
- :param _builtins.str secret: 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.
6321
- :param _builtins.int default_mode: 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.
6322
- :param Sequence['WorkerPoolTemplateVolumeSecretItemArgs'] items: 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.
6416
+ :param 'WorkerPoolTemplateContainerStartupProbeHttpGetHttpHeadersArgs' http_headers: Optional. Custom headers to set in the request. HTTP allows repeated headers.
6323
6417
  Structure is documented below.
6418
+ :param _builtins.str path: Optional. Path to access on the HTTP server. Defaults to '/'.
6419
+ :param _builtins.int port: Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6324
6420
  """
6325
- pulumi.set(__self__, "secret", secret)
6326
- if default_mode is not None:
6327
- pulumi.set(__self__, "default_mode", default_mode)
6328
- if items is not None:
6329
- pulumi.set(__self__, "items", items)
6421
+ if http_headers is not None:
6422
+ pulumi.set(__self__, "http_headers", http_headers)
6423
+ if path is not None:
6424
+ pulumi.set(__self__, "path", path)
6425
+ if port is not None:
6426
+ pulumi.set(__self__, "port", port)
6330
6427
 
6331
6428
  @_builtins.property
6332
- @pulumi.getter
6333
- def secret(self) -> _builtins.str:
6429
+ @pulumi.getter(name="httpHeaders")
6430
+ def http_headers(self) -> Optional['outputs.WorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaders']:
6334
6431
  """
6335
- 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.
6432
+ Optional. Custom headers to set in the request. HTTP allows repeated headers.
6433
+ Structure is documented below.
6336
6434
  """
6337
- return pulumi.get(self, "secret")
6435
+ return pulumi.get(self, "http_headers")
6338
6436
 
6339
6437
  @_builtins.property
6340
- @pulumi.getter(name="defaultMode")
6341
- def default_mode(self) -> Optional[_builtins.int]:
6438
+ @pulumi.getter
6439
+ def path(self) -> Optional[_builtins.str]:
6342
6440
  """
6343
- 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.
6441
+ Optional. Path to access on the HTTP server. Defaults to '/'.
6344
6442
  """
6345
- return pulumi.get(self, "default_mode")
6443
+ return pulumi.get(self, "path")
6346
6444
 
6347
6445
  @_builtins.property
6348
6446
  @pulumi.getter
6349
- def items(self) -> Optional[Sequence['outputs.WorkerPoolTemplateVolumeSecretItem']]:
6447
+ def port(self) -> Optional[_builtins.int]:
6350
6448
  """
6351
- 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.
6449
+ Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6450
+ """
6451
+ return pulumi.get(self, "port")
6452
+
6453
+
6454
+ @pulumi.output_type
6455
+ class WorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaders(dict):
6456
+ def __init__(__self__, *,
6457
+ port: _builtins.int,
6458
+ value: Optional[_builtins.str] = None):
6459
+ """
6460
+ :param _builtins.int port: Required. The header field name
6461
+ :param _builtins.str value: Optional. The header field value
6462
+ """
6463
+ pulumi.set(__self__, "port", port)
6464
+ if value is not None:
6465
+ pulumi.set(__self__, "value", value)
6466
+
6467
+ @_builtins.property
6468
+ @pulumi.getter
6469
+ def port(self) -> _builtins.int:
6470
+ """
6471
+ Required. The header field name
6472
+ """
6473
+ return pulumi.get(self, "port")
6474
+
6475
+ @_builtins.property
6476
+ @pulumi.getter
6477
+ def value(self) -> Optional[_builtins.str]:
6478
+ """
6479
+ Optional. The header field value
6480
+ """
6481
+ return pulumi.get(self, "value")
6482
+
6483
+
6484
+ @pulumi.output_type
6485
+ class WorkerPoolTemplateContainerStartupProbeTcpSocket(dict):
6486
+ def __init__(__self__, *,
6487
+ port: Optional[_builtins.int] = None):
6488
+ """
6489
+ :param _builtins.int port: Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6490
+ """
6491
+ if port is not None:
6492
+ pulumi.set(__self__, "port", port)
6493
+
6494
+ @_builtins.property
6495
+ @pulumi.getter
6496
+ def port(self) -> Optional[_builtins.int]:
6497
+ """
6498
+ Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
6499
+ """
6500
+ return pulumi.get(self, "port")
6501
+
6502
+
6503
+ @pulumi.output_type
6504
+ class WorkerPoolTemplateContainerVolumeMount(dict):
6505
+ @staticmethod
6506
+ def __key_warning(key: str):
6507
+ suggest = None
6508
+ if key == "mountPath":
6509
+ suggest = "mount_path"
6510
+ elif key == "subPath":
6511
+ suggest = "sub_path"
6512
+
6513
+ if suggest:
6514
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateContainerVolumeMount. Access the value via the '{suggest}' property getter instead.")
6515
+
6516
+ def __getitem__(self, key: str) -> Any:
6517
+ WorkerPoolTemplateContainerVolumeMount.__key_warning(key)
6518
+ return super().__getitem__(key)
6519
+
6520
+ def get(self, key: str, default = None) -> Any:
6521
+ WorkerPoolTemplateContainerVolumeMount.__key_warning(key)
6522
+ return super().get(key, default)
6523
+
6524
+ def __init__(__self__, *,
6525
+ mount_path: _builtins.str,
6526
+ name: _builtins.str,
6527
+ sub_path: Optional[_builtins.str] = None):
6528
+ """
6529
+ :param _builtins.str mount_path: 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
6530
+ :param _builtins.str name: This must match the Name of a Volume.
6531
+ :param _builtins.str sub_path: Path within the volume from which the container's volume should be mounted.
6532
+ """
6533
+ pulumi.set(__self__, "mount_path", mount_path)
6534
+ pulumi.set(__self__, "name", name)
6535
+ if sub_path is not None:
6536
+ pulumi.set(__self__, "sub_path", sub_path)
6537
+
6538
+ @_builtins.property
6539
+ @pulumi.getter(name="mountPath")
6540
+ def mount_path(self) -> _builtins.str:
6541
+ """
6542
+ 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
6543
+ """
6544
+ return pulumi.get(self, "mount_path")
6545
+
6546
+ @_builtins.property
6547
+ @pulumi.getter
6548
+ def name(self) -> _builtins.str:
6549
+ """
6550
+ This must match the Name of a Volume.
6551
+ """
6552
+ return pulumi.get(self, "name")
6553
+
6554
+ @_builtins.property
6555
+ @pulumi.getter(name="subPath")
6556
+ def sub_path(self) -> Optional[_builtins.str]:
6557
+ """
6558
+ Path within the volume from which the container's volume should be mounted.
6559
+ """
6560
+ return pulumi.get(self, "sub_path")
6561
+
6562
+
6563
+ @pulumi.output_type
6564
+ class WorkerPoolTemplateNodeSelector(dict):
6565
+ def __init__(__self__, *,
6566
+ accelerator: _builtins.str):
6567
+ """
6568
+ :param _builtins.str accelerator: The GPU to attach to an instance. See https://cloud.google.com/run/docs/configuring/services/gpu for configuring GPU.
6569
+ """
6570
+ pulumi.set(__self__, "accelerator", accelerator)
6571
+
6572
+ @_builtins.property
6573
+ @pulumi.getter
6574
+ def accelerator(self) -> _builtins.str:
6575
+ """
6576
+ The GPU to attach to an instance. See https://cloud.google.com/run/docs/configuring/services/gpu for configuring GPU.
6577
+ """
6578
+ return pulumi.get(self, "accelerator")
6579
+
6580
+
6581
+ @pulumi.output_type
6582
+ class WorkerPoolTemplateVolume(dict):
6583
+ @staticmethod
6584
+ def __key_warning(key: str):
6585
+ suggest = None
6586
+ if key == "cloudSqlInstance":
6587
+ suggest = "cloud_sql_instance"
6588
+ elif key == "emptyDir":
6589
+ suggest = "empty_dir"
6590
+
6591
+ if suggest:
6592
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolume. Access the value via the '{suggest}' property getter instead.")
6593
+
6594
+ def __getitem__(self, key: str) -> Any:
6595
+ WorkerPoolTemplateVolume.__key_warning(key)
6596
+ return super().__getitem__(key)
6597
+
6598
+ def get(self, key: str, default = None) -> Any:
6599
+ WorkerPoolTemplateVolume.__key_warning(key)
6600
+ return super().get(key, default)
6601
+
6602
+ def __init__(__self__, *,
6603
+ name: _builtins.str,
6604
+ cloud_sql_instance: Optional['outputs.WorkerPoolTemplateVolumeCloudSqlInstance'] = None,
6605
+ empty_dir: Optional['outputs.WorkerPoolTemplateVolumeEmptyDir'] = None,
6606
+ gcs: Optional['outputs.WorkerPoolTemplateVolumeGcs'] = None,
6607
+ nfs: Optional['outputs.WorkerPoolTemplateVolumeNfs'] = None,
6608
+ secret: Optional['outputs.WorkerPoolTemplateVolumeSecret'] = None):
6609
+ """
6610
+ :param _builtins.str name: Volume's name.
6611
+ :param 'WorkerPoolTemplateVolumeCloudSqlInstanceArgs' cloud_sql_instance: 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.
6612
+ Structure is documented below.
6613
+ :param 'WorkerPoolTemplateVolumeEmptyDirArgs' empty_dir: Ephemeral storage used as a shared volume.
6614
+ Structure is documented below.
6615
+ :param 'WorkerPoolTemplateVolumeGcsArgs' gcs: Cloud Storage bucket mounted as a volume using GCSFuse. This feature is only supported in the gen2 execution environment.
6616
+ Structure is documented below.
6617
+ :param 'WorkerPoolTemplateVolumeNfsArgs' nfs: Represents an NFS mount.
6618
+ Structure is documented below.
6619
+ :param 'WorkerPoolTemplateVolumeSecretArgs' secret: Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
6620
+ Structure is documented below.
6621
+ """
6622
+ pulumi.set(__self__, "name", name)
6623
+ if cloud_sql_instance is not None:
6624
+ pulumi.set(__self__, "cloud_sql_instance", cloud_sql_instance)
6625
+ if empty_dir is not None:
6626
+ pulumi.set(__self__, "empty_dir", empty_dir)
6627
+ if gcs is not None:
6628
+ pulumi.set(__self__, "gcs", gcs)
6629
+ if nfs is not None:
6630
+ pulumi.set(__self__, "nfs", nfs)
6631
+ if secret is not None:
6632
+ pulumi.set(__self__, "secret", secret)
6633
+
6634
+ @_builtins.property
6635
+ @pulumi.getter
6636
+ def name(self) -> _builtins.str:
6637
+ """
6638
+ Volume's name.
6639
+ """
6640
+ return pulumi.get(self, "name")
6641
+
6642
+ @_builtins.property
6643
+ @pulumi.getter(name="cloudSqlInstance")
6644
+ def cloud_sql_instance(self) -> Optional['outputs.WorkerPoolTemplateVolumeCloudSqlInstance']:
6645
+ """
6646
+ 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.
6647
+ Structure is documented below.
6648
+ """
6649
+ return pulumi.get(self, "cloud_sql_instance")
6650
+
6651
+ @_builtins.property
6652
+ @pulumi.getter(name="emptyDir")
6653
+ def empty_dir(self) -> Optional['outputs.WorkerPoolTemplateVolumeEmptyDir']:
6654
+ """
6655
+ Ephemeral storage used as a shared volume.
6656
+ Structure is documented below.
6657
+ """
6658
+ return pulumi.get(self, "empty_dir")
6659
+
6660
+ @_builtins.property
6661
+ @pulumi.getter
6662
+ def gcs(self) -> Optional['outputs.WorkerPoolTemplateVolumeGcs']:
6663
+ """
6664
+ Cloud Storage bucket mounted as a volume using GCSFuse. This feature is only supported in the gen2 execution environment.
6665
+ Structure is documented below.
6666
+ """
6667
+ return pulumi.get(self, "gcs")
6668
+
6669
+ @_builtins.property
6670
+ @pulumi.getter
6671
+ def nfs(self) -> Optional['outputs.WorkerPoolTemplateVolumeNfs']:
6672
+ """
6673
+ Represents an NFS mount.
6674
+ Structure is documented below.
6675
+ """
6676
+ return pulumi.get(self, "nfs")
6677
+
6678
+ @_builtins.property
6679
+ @pulumi.getter
6680
+ def secret(self) -> Optional['outputs.WorkerPoolTemplateVolumeSecret']:
6681
+ """
6682
+ Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
6683
+ Structure is documented below.
6684
+ """
6685
+ return pulumi.get(self, "secret")
6686
+
6687
+
6688
+ @pulumi.output_type
6689
+ class WorkerPoolTemplateVolumeCloudSqlInstance(dict):
6690
+ def __init__(__self__, *,
6691
+ instances: Optional[Sequence[_builtins.str]] = None):
6692
+ """
6693
+ :param Sequence[_builtins.str] instances: 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}
6694
+ """
6695
+ if instances is not None:
6696
+ pulumi.set(__self__, "instances", instances)
6697
+
6698
+ @_builtins.property
6699
+ @pulumi.getter
6700
+ def instances(self) -> Optional[Sequence[_builtins.str]]:
6701
+ """
6702
+ 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}
6703
+ """
6704
+ return pulumi.get(self, "instances")
6705
+
6706
+
6707
+ @pulumi.output_type
6708
+ class WorkerPoolTemplateVolumeEmptyDir(dict):
6709
+ @staticmethod
6710
+ def __key_warning(key: str):
6711
+ suggest = None
6712
+ if key == "sizeLimit":
6713
+ suggest = "size_limit"
6714
+
6715
+ if suggest:
6716
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolumeEmptyDir. Access the value via the '{suggest}' property getter instead.")
6717
+
6718
+ def __getitem__(self, key: str) -> Any:
6719
+ WorkerPoolTemplateVolumeEmptyDir.__key_warning(key)
6720
+ return super().__getitem__(key)
6721
+
6722
+ def get(self, key: str, default = None) -> Any:
6723
+ WorkerPoolTemplateVolumeEmptyDir.__key_warning(key)
6724
+ return super().get(key, default)
6725
+
6726
+ def __init__(__self__, *,
6727
+ medium: Optional[_builtins.str] = None,
6728
+ size_limit: Optional[_builtins.str] = None):
6729
+ """
6730
+ :param _builtins.str medium: The different types of medium supported for EmptyDir.
6731
+ Default value is `MEMORY`.
6732
+ Possible values are: `MEMORY`.
6733
+ :param _builtins.str size_limit: 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.
6734
+ """
6735
+ if medium is not None:
6736
+ pulumi.set(__self__, "medium", medium)
6737
+ if size_limit is not None:
6738
+ pulumi.set(__self__, "size_limit", size_limit)
6739
+
6740
+ @_builtins.property
6741
+ @pulumi.getter
6742
+ def medium(self) -> Optional[_builtins.str]:
6743
+ """
6744
+ The different types of medium supported for EmptyDir.
6745
+ Default value is `MEMORY`.
6746
+ Possible values are: `MEMORY`.
6747
+ """
6748
+ return pulumi.get(self, "medium")
6749
+
6750
+ @_builtins.property
6751
+ @pulumi.getter(name="sizeLimit")
6752
+ def size_limit(self) -> Optional[_builtins.str]:
6753
+ """
6754
+ 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.
6755
+ """
6756
+ return pulumi.get(self, "size_limit")
6757
+
6758
+
6759
+ @pulumi.output_type
6760
+ class WorkerPoolTemplateVolumeGcs(dict):
6761
+ @staticmethod
6762
+ def __key_warning(key: str):
6763
+ suggest = None
6764
+ if key == "mountOptions":
6765
+ suggest = "mount_options"
6766
+ elif key == "readOnly":
6767
+ suggest = "read_only"
6768
+
6769
+ if suggest:
6770
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolumeGcs. Access the value via the '{suggest}' property getter instead.")
6771
+
6772
+ def __getitem__(self, key: str) -> Any:
6773
+ WorkerPoolTemplateVolumeGcs.__key_warning(key)
6774
+ return super().__getitem__(key)
6775
+
6776
+ def get(self, key: str, default = None) -> Any:
6777
+ WorkerPoolTemplateVolumeGcs.__key_warning(key)
6778
+ return super().get(key, default)
6779
+
6780
+ def __init__(__self__, *,
6781
+ bucket: _builtins.str,
6782
+ mount_options: Optional[Sequence[_builtins.str]] = None,
6783
+ read_only: Optional[_builtins.bool] = None):
6784
+ """
6785
+ :param _builtins.str bucket: GCS Bucket name
6786
+ :param Sequence[_builtins.str] mount_options: A list of flags to pass to the gcsfuse command for configuring this volume.
6787
+ Flags should be passed without leading dashes.
6788
+ :param _builtins.bool read_only: If true, mount the GCS bucket as read-only
6789
+ """
6790
+ pulumi.set(__self__, "bucket", bucket)
6791
+ if mount_options is not None:
6792
+ pulumi.set(__self__, "mount_options", mount_options)
6793
+ if read_only is not None:
6794
+ pulumi.set(__self__, "read_only", read_only)
6795
+
6796
+ @_builtins.property
6797
+ @pulumi.getter
6798
+ def bucket(self) -> _builtins.str:
6799
+ """
6800
+ GCS Bucket name
6801
+ """
6802
+ return pulumi.get(self, "bucket")
6803
+
6804
+ @_builtins.property
6805
+ @pulumi.getter(name="mountOptions")
6806
+ def mount_options(self) -> Optional[Sequence[_builtins.str]]:
6807
+ """
6808
+ A list of flags to pass to the gcsfuse command for configuring this volume.
6809
+ Flags should be passed without leading dashes.
6810
+ """
6811
+ return pulumi.get(self, "mount_options")
6812
+
6813
+ @_builtins.property
6814
+ @pulumi.getter(name="readOnly")
6815
+ def read_only(self) -> Optional[_builtins.bool]:
6816
+ """
6817
+ If true, mount the GCS bucket as read-only
6818
+ """
6819
+ return pulumi.get(self, "read_only")
6820
+
6821
+
6822
+ @pulumi.output_type
6823
+ class WorkerPoolTemplateVolumeNfs(dict):
6824
+ @staticmethod
6825
+ def __key_warning(key: str):
6826
+ suggest = None
6827
+ if key == "readOnly":
6828
+ suggest = "read_only"
6829
+
6830
+ if suggest:
6831
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolumeNfs. Access the value via the '{suggest}' property getter instead.")
6832
+
6833
+ def __getitem__(self, key: str) -> Any:
6834
+ WorkerPoolTemplateVolumeNfs.__key_warning(key)
6835
+ return super().__getitem__(key)
6836
+
6837
+ def get(self, key: str, default = None) -> Any:
6838
+ WorkerPoolTemplateVolumeNfs.__key_warning(key)
6839
+ return super().get(key, default)
6840
+
6841
+ def __init__(__self__, *,
6842
+ path: _builtins.str,
6843
+ server: _builtins.str,
6844
+ read_only: Optional[_builtins.bool] = None):
6845
+ """
6846
+ :param _builtins.str path: Path that is exported by the NFS server.
6847
+ :param _builtins.str server: Hostname or IP address of the NFS server
6848
+ :param _builtins.bool read_only: If true, mount the NFS volume as read only
6849
+ """
6850
+ pulumi.set(__self__, "path", path)
6851
+ pulumi.set(__self__, "server", server)
6852
+ if read_only is not None:
6853
+ pulumi.set(__self__, "read_only", read_only)
6854
+
6855
+ @_builtins.property
6856
+ @pulumi.getter
6857
+ def path(self) -> _builtins.str:
6858
+ """
6859
+ Path that is exported by the NFS server.
6860
+ """
6861
+ return pulumi.get(self, "path")
6862
+
6863
+ @_builtins.property
6864
+ @pulumi.getter
6865
+ def server(self) -> _builtins.str:
6866
+ """
6867
+ Hostname or IP address of the NFS server
6868
+ """
6869
+ return pulumi.get(self, "server")
6870
+
6871
+ @_builtins.property
6872
+ @pulumi.getter(name="readOnly")
6873
+ def read_only(self) -> Optional[_builtins.bool]:
6874
+ """
6875
+ If true, mount the NFS volume as read only
6876
+ """
6877
+ return pulumi.get(self, "read_only")
6878
+
6879
+
6880
+ @pulumi.output_type
6881
+ class WorkerPoolTemplateVolumeSecret(dict):
6882
+ @staticmethod
6883
+ def __key_warning(key: str):
6884
+ suggest = None
6885
+ if key == "defaultMode":
6886
+ suggest = "default_mode"
6887
+
6888
+ if suggest:
6889
+ pulumi.log.warn(f"Key '{key}' not found in WorkerPoolTemplateVolumeSecret. Access the value via the '{suggest}' property getter instead.")
6890
+
6891
+ def __getitem__(self, key: str) -> Any:
6892
+ WorkerPoolTemplateVolumeSecret.__key_warning(key)
6893
+ return super().__getitem__(key)
6894
+
6895
+ def get(self, key: str, default = None) -> Any:
6896
+ WorkerPoolTemplateVolumeSecret.__key_warning(key)
6897
+ return super().get(key, default)
6898
+
6899
+ def __init__(__self__, *,
6900
+ secret: _builtins.str,
6901
+ default_mode: Optional[_builtins.int] = None,
6902
+ items: Optional[Sequence['outputs.WorkerPoolTemplateVolumeSecretItem']] = None):
6903
+ """
6904
+ :param _builtins.str secret: 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.
6905
+ :param _builtins.int default_mode: 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.
6906
+ :param Sequence['WorkerPoolTemplateVolumeSecretItemArgs'] items: 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.
6907
+ Structure is documented below.
6908
+ """
6909
+ pulumi.set(__self__, "secret", secret)
6910
+ if default_mode is not None:
6911
+ pulumi.set(__self__, "default_mode", default_mode)
6912
+ if items is not None:
6913
+ pulumi.set(__self__, "items", items)
6914
+
6915
+ @_builtins.property
6916
+ @pulumi.getter
6917
+ def secret(self) -> _builtins.str:
6918
+ """
6919
+ 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.
6920
+ """
6921
+ return pulumi.get(self, "secret")
6922
+
6923
+ @_builtins.property
6924
+ @pulumi.getter(name="defaultMode")
6925
+ def default_mode(self) -> Optional[_builtins.int]:
6926
+ """
6927
+ 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.
6928
+ """
6929
+ return pulumi.get(self, "default_mode")
6930
+
6931
+ @_builtins.property
6932
+ @pulumi.getter
6933
+ def items(self) -> Optional[Sequence['outputs.WorkerPoolTemplateVolumeSecretItem']]:
6934
+ """
6935
+ 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.
6352
6936
  Structure is documented below.
6353
6937
  """
6354
6938
  return pulumi.get(self, "items")
@@ -9792,61 +10376,309 @@ class GetServiceTemplateVpcAccessResult(dict):
9792
10376
  @pulumi.getter(name="networkInterfaces")
9793
10377
  def network_interfaces(self) -> Sequence['outputs.GetServiceTemplateVpcAccessNetworkInterfaceResult']:
9794
10378
  """
9795
- Direct VPC egress settings. Currently only single network interface is supported.
10379
+ Direct VPC egress settings. Currently only single network interface is supported.
10380
+ """
10381
+ return pulumi.get(self, "network_interfaces")
10382
+
10383
+
10384
+ @pulumi.output_type
10385
+ class GetServiceTemplateVpcAccessNetworkInterfaceResult(dict):
10386
+ def __init__(__self__, *,
10387
+ network: _builtins.str,
10388
+ subnetwork: _builtins.str,
10389
+ tags: Sequence[_builtins.str]):
10390
+ """
10391
+ :param _builtins.str network: 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
10392
+ network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be
10393
+ looked up from the subnetwork.
10394
+ :param _builtins.str subnetwork: The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both
10395
+ network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
10396
+ subnetwork with the same name with the network will be used.
10397
+ :param Sequence[_builtins.str] tags: Network tags applied to this Cloud Run service.
10398
+ """
10399
+ pulumi.set(__self__, "network", network)
10400
+ pulumi.set(__self__, "subnetwork", subnetwork)
10401
+ pulumi.set(__self__, "tags", tags)
10402
+
10403
+ @_builtins.property
10404
+ @pulumi.getter
10405
+ def network(self) -> _builtins.str:
10406
+ """
10407
+ 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
10408
+ network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be
10409
+ looked up from the subnetwork.
10410
+ """
10411
+ return pulumi.get(self, "network")
10412
+
10413
+ @_builtins.property
10414
+ @pulumi.getter
10415
+ def subnetwork(self) -> _builtins.str:
10416
+ """
10417
+ The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both
10418
+ network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
10419
+ subnetwork with the same name with the network will be used.
10420
+ """
10421
+ return pulumi.get(self, "subnetwork")
10422
+
10423
+ @_builtins.property
10424
+ @pulumi.getter
10425
+ def tags(self) -> Sequence[_builtins.str]:
10426
+ """
10427
+ Network tags applied to this Cloud Run service.
10428
+ """
10429
+ return pulumi.get(self, "tags")
10430
+
10431
+
10432
+ @pulumi.output_type
10433
+ class GetServiceTerminalConditionResult(dict):
10434
+ def __init__(__self__, *,
10435
+ execution_reason: _builtins.str,
10436
+ last_transition_time: _builtins.str,
10437
+ message: _builtins.str,
10438
+ reason: _builtins.str,
10439
+ revision_reason: _builtins.str,
10440
+ severity: _builtins.str,
10441
+ state: _builtins.str,
10442
+ type: _builtins.str):
10443
+ """
10444
+ :param _builtins.str execution_reason: A reason for the execution condition.
10445
+ :param _builtins.str last_transition_time: Last time the condition transitioned from one status to another.
10446
+ :param _builtins.str message: Human readable message indicating details about the current status.
10447
+ :param _builtins.str reason: A common (service-level) reason for this condition.
10448
+ :param _builtins.str revision_reason: A reason for the revision condition.
10449
+ :param _builtins.str severity: How to interpret failures of this condition, one of Error, Warning, Info
10450
+ :param _builtins.str state: State of the condition.
10451
+ :param _builtins.str type: type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
10452
+ """
10453
+ pulumi.set(__self__, "execution_reason", execution_reason)
10454
+ pulumi.set(__self__, "last_transition_time", last_transition_time)
10455
+ pulumi.set(__self__, "message", message)
10456
+ pulumi.set(__self__, "reason", reason)
10457
+ pulumi.set(__self__, "revision_reason", revision_reason)
10458
+ pulumi.set(__self__, "severity", severity)
10459
+ pulumi.set(__self__, "state", state)
10460
+ pulumi.set(__self__, "type", type)
10461
+
10462
+ @_builtins.property
10463
+ @pulumi.getter(name="executionReason")
10464
+ def execution_reason(self) -> _builtins.str:
10465
+ """
10466
+ A reason for the execution condition.
10467
+ """
10468
+ return pulumi.get(self, "execution_reason")
10469
+
10470
+ @_builtins.property
10471
+ @pulumi.getter(name="lastTransitionTime")
10472
+ def last_transition_time(self) -> _builtins.str:
10473
+ """
10474
+ Last time the condition transitioned from one status to another.
10475
+ """
10476
+ return pulumi.get(self, "last_transition_time")
10477
+
10478
+ @_builtins.property
10479
+ @pulumi.getter
10480
+ def message(self) -> _builtins.str:
10481
+ """
10482
+ Human readable message indicating details about the current status.
10483
+ """
10484
+ return pulumi.get(self, "message")
10485
+
10486
+ @_builtins.property
10487
+ @pulumi.getter
10488
+ def reason(self) -> _builtins.str:
10489
+ """
10490
+ A common (service-level) reason for this condition.
10491
+ """
10492
+ return pulumi.get(self, "reason")
10493
+
10494
+ @_builtins.property
10495
+ @pulumi.getter(name="revisionReason")
10496
+ def revision_reason(self) -> _builtins.str:
10497
+ """
10498
+ A reason for the revision condition.
10499
+ """
10500
+ return pulumi.get(self, "revision_reason")
10501
+
10502
+ @_builtins.property
10503
+ @pulumi.getter
10504
+ def severity(self) -> _builtins.str:
10505
+ """
10506
+ How to interpret failures of this condition, one of Error, Warning, Info
10507
+ """
10508
+ return pulumi.get(self, "severity")
10509
+
10510
+ @_builtins.property
10511
+ @pulumi.getter
10512
+ def state(self) -> _builtins.str:
10513
+ """
10514
+ State of the condition.
10515
+ """
10516
+ return pulumi.get(self, "state")
10517
+
10518
+ @_builtins.property
10519
+ @pulumi.getter
10520
+ def type(self) -> _builtins.str:
10521
+ """
10522
+ type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
10523
+ """
10524
+ return pulumi.get(self, "type")
10525
+
10526
+
10527
+ @pulumi.output_type
10528
+ class GetServiceTrafficResult(dict):
10529
+ def __init__(__self__, *,
10530
+ percent: _builtins.int,
10531
+ revision: _builtins.str,
10532
+ tag: _builtins.str,
10533
+ type: _builtins.str):
10534
+ """
10535
+ :param _builtins.int percent: Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
10536
+ :param _builtins.str revision: Revision to which to send this portion of traffic, if traffic allocation is by revision.
10537
+ :param _builtins.str tag: Indicates a string to be part of the URI to exclusively reference this target.
10538
+ :param _builtins.str type: The allocation type for this traffic target. Possible values: ["TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST", "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"]
10539
+ """
10540
+ pulumi.set(__self__, "percent", percent)
10541
+ pulumi.set(__self__, "revision", revision)
10542
+ pulumi.set(__self__, "tag", tag)
10543
+ pulumi.set(__self__, "type", type)
10544
+
10545
+ @_builtins.property
10546
+ @pulumi.getter
10547
+ def percent(self) -> _builtins.int:
10548
+ """
10549
+ Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
10550
+ """
10551
+ return pulumi.get(self, "percent")
10552
+
10553
+ @_builtins.property
10554
+ @pulumi.getter
10555
+ def revision(self) -> _builtins.str:
10556
+ """
10557
+ Revision to which to send this portion of traffic, if traffic allocation is by revision.
10558
+ """
10559
+ return pulumi.get(self, "revision")
10560
+
10561
+ @_builtins.property
10562
+ @pulumi.getter
10563
+ def tag(self) -> _builtins.str:
10564
+ """
10565
+ Indicates a string to be part of the URI to exclusively reference this target.
10566
+ """
10567
+ return pulumi.get(self, "tag")
10568
+
10569
+ @_builtins.property
10570
+ @pulumi.getter
10571
+ def type(self) -> _builtins.str:
10572
+ """
10573
+ The allocation type for this traffic target. Possible values: ["TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST", "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"]
10574
+ """
10575
+ return pulumi.get(self, "type")
10576
+
10577
+
10578
+ @pulumi.output_type
10579
+ class GetServiceTrafficStatusResult(dict):
10580
+ def __init__(__self__, *,
10581
+ percent: _builtins.int,
10582
+ revision: _builtins.str,
10583
+ tag: _builtins.str,
10584
+ type: _builtins.str,
10585
+ uri: _builtins.str):
10586
+ """
10587
+ :param _builtins.int percent: Specifies percent of the traffic to this Revision.
10588
+ :param _builtins.str revision: Revision to which this traffic is sent.
10589
+ :param _builtins.str tag: Indicates the string used in the URI to exclusively reference this target.
10590
+ :param _builtins.str type: The allocation type for this traffic target.
10591
+ :param _builtins.str uri: Displays the target URI.
10592
+ """
10593
+ pulumi.set(__self__, "percent", percent)
10594
+ pulumi.set(__self__, "revision", revision)
10595
+ pulumi.set(__self__, "tag", tag)
10596
+ pulumi.set(__self__, "type", type)
10597
+ pulumi.set(__self__, "uri", uri)
10598
+
10599
+ @_builtins.property
10600
+ @pulumi.getter
10601
+ def percent(self) -> _builtins.int:
10602
+ """
10603
+ Specifies percent of the traffic to this Revision.
10604
+ """
10605
+ return pulumi.get(self, "percent")
10606
+
10607
+ @_builtins.property
10608
+ @pulumi.getter
10609
+ def revision(self) -> _builtins.str:
10610
+ """
10611
+ Revision to which this traffic is sent.
10612
+ """
10613
+ return pulumi.get(self, "revision")
10614
+
10615
+ @_builtins.property
10616
+ @pulumi.getter
10617
+ def tag(self) -> _builtins.str:
10618
+ """
10619
+ Indicates the string used in the URI to exclusively reference this target.
10620
+ """
10621
+ return pulumi.get(self, "tag")
10622
+
10623
+ @_builtins.property
10624
+ @pulumi.getter
10625
+ def type(self) -> _builtins.str:
10626
+ """
10627
+ The allocation type for this traffic target.
10628
+ """
10629
+ return pulumi.get(self, "type")
10630
+
10631
+ @_builtins.property
10632
+ @pulumi.getter
10633
+ def uri(self) -> _builtins.str:
10634
+ """
10635
+ Displays the target URI.
9796
10636
  """
9797
- return pulumi.get(self, "network_interfaces")
10637
+ return pulumi.get(self, "uri")
9798
10638
 
9799
10639
 
9800
10640
  @pulumi.output_type
9801
- class GetServiceTemplateVpcAccessNetworkInterfaceResult(dict):
10641
+ class GetWorkerPoolBinaryAuthorizationResult(dict):
9802
10642
  def __init__(__self__, *,
9803
- network: _builtins.str,
9804
- subnetwork: _builtins.str,
9805
- tags: Sequence[_builtins.str]):
10643
+ breakglass_justification: _builtins.str,
10644
+ policy: _builtins.str,
10645
+ use_default: _builtins.bool):
9806
10646
  """
9807
- :param _builtins.str network: 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
9808
- network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be
9809
- looked up from the subnetwork.
9810
- :param _builtins.str subnetwork: The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both
9811
- network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
9812
- subnetwork with the same name with the network will be used.
9813
- :param Sequence[_builtins.str] tags: Network tags applied to this Cloud Run service.
10647
+ :param _builtins.str breakglass_justification: 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
10648
+ :param _builtins.str policy: The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
10649
+ :param _builtins.bool use_default: If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
9814
10650
  """
9815
- pulumi.set(__self__, "network", network)
9816
- pulumi.set(__self__, "subnetwork", subnetwork)
9817
- pulumi.set(__self__, "tags", tags)
10651
+ pulumi.set(__self__, "breakglass_justification", breakglass_justification)
10652
+ pulumi.set(__self__, "policy", policy)
10653
+ pulumi.set(__self__, "use_default", use_default)
9818
10654
 
9819
10655
  @_builtins.property
9820
- @pulumi.getter
9821
- def network(self) -> _builtins.str:
10656
+ @pulumi.getter(name="breakglassJustification")
10657
+ def breakglass_justification(self) -> _builtins.str:
9822
10658
  """
9823
- 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
9824
- network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be
9825
- looked up from the subnetwork.
10659
+ 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
9826
10660
  """
9827
- return pulumi.get(self, "network")
10661
+ return pulumi.get(self, "breakglass_justification")
9828
10662
 
9829
10663
  @_builtins.property
9830
10664
  @pulumi.getter
9831
- def subnetwork(self) -> _builtins.str:
10665
+ def policy(self) -> _builtins.str:
9832
10666
  """
9833
- The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both
9834
- network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the
9835
- subnetwork with the same name with the network will be used.
10667
+ The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
9836
10668
  """
9837
- return pulumi.get(self, "subnetwork")
10669
+ return pulumi.get(self, "policy")
9838
10670
 
9839
10671
  @_builtins.property
9840
- @pulumi.getter
9841
- def tags(self) -> Sequence[_builtins.str]:
10672
+ @pulumi.getter(name="useDefault")
10673
+ def use_default(self) -> _builtins.bool:
9842
10674
  """
9843
- Network tags applied to this Cloud Run service.
10675
+ If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
9844
10676
  """
9845
- return pulumi.get(self, "tags")
10677
+ return pulumi.get(self, "use_default")
9846
10678
 
9847
10679
 
9848
10680
  @pulumi.output_type
9849
- class GetServiceTerminalConditionResult(dict):
10681
+ class GetWorkerPoolConditionResult(dict):
9850
10682
  def __init__(__self__, *,
9851
10683
  execution_reason: _builtins.str,
9852
10684
  last_transition_time: _builtins.str,
@@ -9859,8 +10691,10 @@ class GetServiceTerminalConditionResult(dict):
9859
10691
  """
9860
10692
  :param _builtins.str execution_reason: A reason for the execution condition.
9861
10693
  :param _builtins.str last_transition_time: Last time the condition transitioned from one status to another.
10694
+
10695
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
9862
10696
  :param _builtins.str message: Human readable message indicating details about the current status.
9863
- :param _builtins.str reason: A common (service-level) reason for this condition.
10697
+ :param _builtins.str reason: A common (workerPool-level) reason for this condition.
9864
10698
  :param _builtins.str revision_reason: A reason for the revision condition.
9865
10699
  :param _builtins.str severity: How to interpret failures of this condition, one of Error, Warning, Info
9866
10700
  :param _builtins.str state: State of the condition.
@@ -9888,6 +10722,8 @@ class GetServiceTerminalConditionResult(dict):
9888
10722
  def last_transition_time(self) -> _builtins.str:
9889
10723
  """
9890
10724
  Last time the condition transitioned from one status to another.
10725
+
10726
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
9891
10727
  """
9892
10728
  return pulumi.get(self, "last_transition_time")
9893
10729
 
@@ -9903,7 +10739,7 @@ class GetServiceTerminalConditionResult(dict):
9903
10739
  @pulumi.getter
9904
10740
  def reason(self) -> _builtins.str:
9905
10741
  """
9906
- A common (service-level) reason for this condition.
10742
+ A common (workerPool-level) reason for this condition.
9907
10743
  """
9908
10744
  return pulumi.get(self, "reason")
9909
10745
 
@@ -9933,755 +10769,925 @@ class GetServiceTerminalConditionResult(dict):
9933
10769
 
9934
10770
  @_builtins.property
9935
10771
  @pulumi.getter
9936
- def type(self) -> _builtins.str:
9937
- """
9938
- type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
10772
+ def type(self) -> _builtins.str:
10773
+ """
10774
+ type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
10775
+ """
10776
+ return pulumi.get(self, "type")
10777
+
10778
+
10779
+ @pulumi.output_type
10780
+ class GetWorkerPoolInstanceSplitResult(dict):
10781
+ def __init__(__self__, *,
10782
+ percent: _builtins.int,
10783
+ revision: _builtins.str,
10784
+ type: _builtins.str):
10785
+ """
10786
+ :param _builtins.int percent: Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
10787
+ :param _builtins.str revision: Revision to which to assign this portion of instances, if split allocation is by revision.
10788
+ :param _builtins.str type: The allocation type for this instance split. Possible values: ["INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST", "INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION"]
10789
+ """
10790
+ pulumi.set(__self__, "percent", percent)
10791
+ pulumi.set(__self__, "revision", revision)
10792
+ pulumi.set(__self__, "type", type)
10793
+
10794
+ @_builtins.property
10795
+ @pulumi.getter
10796
+ def percent(self) -> _builtins.int:
10797
+ """
10798
+ Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
10799
+ """
10800
+ return pulumi.get(self, "percent")
10801
+
10802
+ @_builtins.property
10803
+ @pulumi.getter
10804
+ def revision(self) -> _builtins.str:
10805
+ """
10806
+ Revision to which to assign this portion of instances, if split allocation is by revision.
10807
+ """
10808
+ return pulumi.get(self, "revision")
10809
+
10810
+ @_builtins.property
10811
+ @pulumi.getter
10812
+ def type(self) -> _builtins.str:
10813
+ """
10814
+ The allocation type for this instance split. Possible values: ["INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST", "INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION"]
10815
+ """
10816
+ return pulumi.get(self, "type")
10817
+
10818
+
10819
+ @pulumi.output_type
10820
+ class GetWorkerPoolInstanceSplitStatusResult(dict):
10821
+ def __init__(__self__, *,
10822
+ percent: _builtins.int,
10823
+ revision: _builtins.str,
10824
+ type: _builtins.str):
10825
+ """
10826
+ :param _builtins.int percent: Specifies percent of the instance split to this Revision.
10827
+ :param _builtins.str revision: Revision to which this instance split is assigned.
10828
+ :param _builtins.str type: The allocation type for this instance split.
10829
+ """
10830
+ pulumi.set(__self__, "percent", percent)
10831
+ pulumi.set(__self__, "revision", revision)
10832
+ pulumi.set(__self__, "type", type)
10833
+
10834
+ @_builtins.property
10835
+ @pulumi.getter
10836
+ def percent(self) -> _builtins.int:
10837
+ """
10838
+ Specifies percent of the instance split to this Revision.
10839
+ """
10840
+ return pulumi.get(self, "percent")
10841
+
10842
+ @_builtins.property
10843
+ @pulumi.getter
10844
+ def revision(self) -> _builtins.str:
10845
+ """
10846
+ Revision to which this instance split is assigned.
10847
+ """
10848
+ return pulumi.get(self, "revision")
10849
+
10850
+ @_builtins.property
10851
+ @pulumi.getter
10852
+ def type(self) -> _builtins.str:
10853
+ """
10854
+ The allocation type for this instance split.
10855
+ """
10856
+ return pulumi.get(self, "type")
10857
+
10858
+
10859
+ @pulumi.output_type
10860
+ class GetWorkerPoolScalingResult(dict):
10861
+ def __init__(__self__, *,
10862
+ manual_instance_count: _builtins.int,
10863
+ max_instance_count: _builtins.int,
10864
+ min_instance_count: _builtins.int,
10865
+ scaling_mode: _builtins.str):
10866
+ """
10867
+ :param _builtins.int manual_instance_count: The total number of instances in manual scaling mode.
10868
+ :param _builtins.int max_instance_count: The maximum count of instances distributed among revisions based on the specified instance split percentages.
10869
+ :param _builtins.int min_instance_count: The minimum count of instances distributed among revisions based on the specified instance split percentages.
10870
+ :param _builtins.str scaling_mode: The scaling mode for the worker pool. It defaults to MANUAL. Possible values: ["AUTOMATIC", "MANUAL"]
10871
+ """
10872
+ pulumi.set(__self__, "manual_instance_count", manual_instance_count)
10873
+ pulumi.set(__self__, "max_instance_count", max_instance_count)
10874
+ pulumi.set(__self__, "min_instance_count", min_instance_count)
10875
+ pulumi.set(__self__, "scaling_mode", scaling_mode)
10876
+
10877
+ @_builtins.property
10878
+ @pulumi.getter(name="manualInstanceCount")
10879
+ def manual_instance_count(self) -> _builtins.int:
10880
+ """
10881
+ The total number of instances in manual scaling mode.
10882
+ """
10883
+ return pulumi.get(self, "manual_instance_count")
10884
+
10885
+ @_builtins.property
10886
+ @pulumi.getter(name="maxInstanceCount")
10887
+ def max_instance_count(self) -> _builtins.int:
10888
+ """
10889
+ The maximum count of instances distributed among revisions based on the specified instance split percentages.
10890
+ """
10891
+ return pulumi.get(self, "max_instance_count")
10892
+
10893
+ @_builtins.property
10894
+ @pulumi.getter(name="minInstanceCount")
10895
+ def min_instance_count(self) -> _builtins.int:
10896
+ """
10897
+ The minimum count of instances distributed among revisions based on the specified instance split percentages.
10898
+ """
10899
+ return pulumi.get(self, "min_instance_count")
10900
+
10901
+ @_builtins.property
10902
+ @pulumi.getter(name="scalingMode")
10903
+ def scaling_mode(self) -> _builtins.str:
10904
+ """
10905
+ The scaling mode for the worker pool. It defaults to MANUAL. Possible values: ["AUTOMATIC", "MANUAL"]
10906
+ """
10907
+ return pulumi.get(self, "scaling_mode")
10908
+
10909
+
10910
+ @pulumi.output_type
10911
+ class GetWorkerPoolTemplateResult(dict):
10912
+ def __init__(__self__, *,
10913
+ annotations: Mapping[str, _builtins.str],
10914
+ containers: Sequence['outputs.GetWorkerPoolTemplateContainerResult'],
10915
+ encryption_key: _builtins.str,
10916
+ encryption_key_revocation_action: _builtins.str,
10917
+ encryption_key_shutdown_duration: _builtins.str,
10918
+ gpu_zonal_redundancy_disabled: _builtins.bool,
10919
+ labels: Mapping[str, _builtins.str],
10920
+ node_selectors: Sequence['outputs.GetWorkerPoolTemplateNodeSelectorResult'],
10921
+ revision: _builtins.str,
10922
+ service_account: _builtins.str,
10923
+ volumes: Sequence['outputs.GetWorkerPoolTemplateVolumeResult'],
10924
+ vpc_accesses: Sequence['outputs.GetWorkerPoolTemplateVpcAccessResult']):
10925
+ """
10926
+ :param Mapping[str, _builtins.str] annotations: 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.
10927
+
10928
+ Cloud 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.
10929
+ All system annotations in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
10930
+
10931
+ This field follows Kubernetes annotations' namespacing, limits, and rules.
10932
+ :param Sequence['GetWorkerPoolTemplateContainerArgs'] containers: Holds the containers that define the unit of execution for this WorkerPool.
10933
+ :param _builtins.str encryption_key: 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
10934
+ :param _builtins.str encryption_key_revocation_action: The action to take if the encryption key is revoked. Possible values: ["PREVENT_NEW", "SHUTDOWN"]
10935
+ :param _builtins.str encryption_key_shutdown_duration: If encryptionKeyRevocationAction is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
10936
+
10937
+ A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
10938
+ :param _builtins.bool gpu_zonal_redundancy_disabled: True if GPU zonal redundancy is disabled on this revision.
10939
+ :param Mapping[str, _builtins.str] labels: 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.
10940
+ For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
10941
+
10942
+ Cloud 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.
10943
+ All system labels in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
10944
+ :param Sequence['GetWorkerPoolTemplateNodeSelectorArgs'] node_selectors: Node Selector describes the hardware requirements of the resources.
10945
+ :param _builtins.str revision: The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
10946
+ :param _builtins.str service_account: Email address of the IAM service account associated with the revision of the WorkerPool. 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.
10947
+ :param Sequence['GetWorkerPoolTemplateVolumeArgs'] volumes: A list of Volumes to make available to containers.
10948
+ :param Sequence['GetWorkerPoolTemplateVpcAccessArgs'] vpc_accesses: VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
10949
+ """
10950
+ pulumi.set(__self__, "annotations", annotations)
10951
+ pulumi.set(__self__, "containers", containers)
10952
+ pulumi.set(__self__, "encryption_key", encryption_key)
10953
+ pulumi.set(__self__, "encryption_key_revocation_action", encryption_key_revocation_action)
10954
+ pulumi.set(__self__, "encryption_key_shutdown_duration", encryption_key_shutdown_duration)
10955
+ pulumi.set(__self__, "gpu_zonal_redundancy_disabled", gpu_zonal_redundancy_disabled)
10956
+ pulumi.set(__self__, "labels", labels)
10957
+ pulumi.set(__self__, "node_selectors", node_selectors)
10958
+ pulumi.set(__self__, "revision", revision)
10959
+ pulumi.set(__self__, "service_account", service_account)
10960
+ pulumi.set(__self__, "volumes", volumes)
10961
+ pulumi.set(__self__, "vpc_accesses", vpc_accesses)
10962
+
10963
+ @_builtins.property
10964
+ @pulumi.getter
10965
+ def annotations(self) -> Mapping[str, _builtins.str]:
9939
10966
  """
9940
- return pulumi.get(self, "type")
10967
+ 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.
9941
10968
 
10969
+ Cloud 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.
10970
+ All system annotations in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
9942
10971
 
9943
- @pulumi.output_type
9944
- class GetServiceTrafficResult(dict):
9945
- def __init__(__self__, *,
9946
- percent: _builtins.int,
9947
- revision: _builtins.str,
9948
- tag: _builtins.str,
9949
- type: _builtins.str):
9950
- """
9951
- :param _builtins.int percent: Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
9952
- :param _builtins.str revision: Revision to which to send this portion of traffic, if traffic allocation is by revision.
9953
- :param _builtins.str tag: Indicates a string to be part of the URI to exclusively reference this target.
9954
- :param _builtins.str type: The allocation type for this traffic target. Possible values: ["TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST", "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"]
10972
+ This field follows Kubernetes annotations' namespacing, limits, and rules.
9955
10973
  """
9956
- pulumi.set(__self__, "percent", percent)
9957
- pulumi.set(__self__, "revision", revision)
9958
- pulumi.set(__self__, "tag", tag)
9959
- pulumi.set(__self__, "type", type)
10974
+ return pulumi.get(self, "annotations")
9960
10975
 
9961
10976
  @_builtins.property
9962
10977
  @pulumi.getter
9963
- def percent(self) -> _builtins.int:
10978
+ def containers(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerResult']:
9964
10979
  """
9965
- Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
10980
+ Holds the containers that define the unit of execution for this WorkerPool.
9966
10981
  """
9967
- return pulumi.get(self, "percent")
10982
+ return pulumi.get(self, "containers")
9968
10983
 
9969
10984
  @_builtins.property
9970
- @pulumi.getter
9971
- def revision(self) -> _builtins.str:
10985
+ @pulumi.getter(name="encryptionKey")
10986
+ def encryption_key(self) -> _builtins.str:
9972
10987
  """
9973
- Revision to which to send this portion of traffic, if traffic allocation is by revision.
10988
+ 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
9974
10989
  """
9975
- return pulumi.get(self, "revision")
10990
+ return pulumi.get(self, "encryption_key")
9976
10991
 
9977
10992
  @_builtins.property
9978
- @pulumi.getter
9979
- def tag(self) -> _builtins.str:
10993
+ @pulumi.getter(name="encryptionKeyRevocationAction")
10994
+ def encryption_key_revocation_action(self) -> _builtins.str:
9980
10995
  """
9981
- Indicates a string to be part of the URI to exclusively reference this target.
10996
+ The action to take if the encryption key is revoked. Possible values: ["PREVENT_NEW", "SHUTDOWN"]
9982
10997
  """
9983
- return pulumi.get(self, "tag")
10998
+ return pulumi.get(self, "encryption_key_revocation_action")
9984
10999
 
9985
11000
  @_builtins.property
9986
- @pulumi.getter
9987
- def type(self) -> _builtins.str:
9988
- """
9989
- The allocation type for this traffic target. Possible values: ["TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST", "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION"]
11001
+ @pulumi.getter(name="encryptionKeyShutdownDuration")
11002
+ def encryption_key_shutdown_duration(self) -> _builtins.str:
9990
11003
  """
9991
- return pulumi.get(self, "type")
11004
+ If encryptionKeyRevocationAction is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
9992
11005
 
11006
+ A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
11007
+ """
11008
+ return pulumi.get(self, "encryption_key_shutdown_duration")
9993
11009
 
9994
- @pulumi.output_type
9995
- class GetServiceTrafficStatusResult(dict):
9996
- def __init__(__self__, *,
9997
- percent: _builtins.int,
9998
- revision: _builtins.str,
9999
- tag: _builtins.str,
10000
- type: _builtins.str,
10001
- uri: _builtins.str):
11010
+ @_builtins.property
11011
+ @pulumi.getter(name="gpuZonalRedundancyDisabled")
11012
+ def gpu_zonal_redundancy_disabled(self) -> _builtins.bool:
10002
11013
  """
10003
- :param _builtins.int percent: Specifies percent of the traffic to this Revision.
10004
- :param _builtins.str revision: Revision to which this traffic is sent.
10005
- :param _builtins.str tag: Indicates the string used in the URI to exclusively reference this target.
10006
- :param _builtins.str type: The allocation type for this traffic target.
10007
- :param _builtins.str uri: Displays the target URI.
11014
+ True if GPU zonal redundancy is disabled on this revision.
10008
11015
  """
10009
- pulumi.set(__self__, "percent", percent)
10010
- pulumi.set(__self__, "revision", revision)
10011
- pulumi.set(__self__, "tag", tag)
10012
- pulumi.set(__self__, "type", type)
10013
- pulumi.set(__self__, "uri", uri)
11016
+ return pulumi.get(self, "gpu_zonal_redundancy_disabled")
10014
11017
 
10015
11018
  @_builtins.property
10016
11019
  @pulumi.getter
10017
- def percent(self) -> _builtins.int:
11020
+ def labels(self) -> Mapping[str, _builtins.str]:
10018
11021
  """
10019
- Specifies percent of the traffic to this Revision.
11022
+ 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.
11023
+ For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
11024
+
11025
+ Cloud 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.
11026
+ All system labels in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
10020
11027
  """
10021
- return pulumi.get(self, "percent")
11028
+ return pulumi.get(self, "labels")
11029
+
11030
+ @_builtins.property
11031
+ @pulumi.getter(name="nodeSelectors")
11032
+ def node_selectors(self) -> Sequence['outputs.GetWorkerPoolTemplateNodeSelectorResult']:
11033
+ """
11034
+ Node Selector describes the hardware requirements of the resources.
11035
+ """
11036
+ return pulumi.get(self, "node_selectors")
10022
11037
 
10023
11038
  @_builtins.property
10024
11039
  @pulumi.getter
10025
11040
  def revision(self) -> _builtins.str:
10026
11041
  """
10027
- Revision to which this traffic is sent.
11042
+ The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
10028
11043
  """
10029
11044
  return pulumi.get(self, "revision")
10030
11045
 
10031
11046
  @_builtins.property
10032
- @pulumi.getter
10033
- def tag(self) -> _builtins.str:
11047
+ @pulumi.getter(name="serviceAccount")
11048
+ def service_account(self) -> _builtins.str:
10034
11049
  """
10035
- Indicates the string used in the URI to exclusively reference this target.
11050
+ Email address of the IAM service account associated with the revision of the WorkerPool. 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.
10036
11051
  """
10037
- return pulumi.get(self, "tag")
11052
+ return pulumi.get(self, "service_account")
10038
11053
 
10039
11054
  @_builtins.property
10040
11055
  @pulumi.getter
10041
- def type(self) -> _builtins.str:
11056
+ def volumes(self) -> Sequence['outputs.GetWorkerPoolTemplateVolumeResult']:
10042
11057
  """
10043
- The allocation type for this traffic target.
11058
+ A list of Volumes to make available to containers.
10044
11059
  """
10045
- return pulumi.get(self, "type")
11060
+ return pulumi.get(self, "volumes")
10046
11061
 
10047
11062
  @_builtins.property
10048
- @pulumi.getter
10049
- def uri(self) -> _builtins.str:
11063
+ @pulumi.getter(name="vpcAccesses")
11064
+ def vpc_accesses(self) -> Sequence['outputs.GetWorkerPoolTemplateVpcAccessResult']:
10050
11065
  """
10051
- Displays the target URI.
11066
+ VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
10052
11067
  """
10053
- return pulumi.get(self, "uri")
11068
+ return pulumi.get(self, "vpc_accesses")
10054
11069
 
10055
11070
 
10056
11071
  @pulumi.output_type
10057
- class GetWorkerPoolBinaryAuthorizationResult(dict):
11072
+ class GetWorkerPoolTemplateContainerResult(dict):
10058
11073
  def __init__(__self__, *,
10059
- breakglass_justification: _builtins.str,
10060
- policy: _builtins.str,
10061
- use_default: _builtins.bool):
11074
+ args: Sequence[_builtins.str],
11075
+ commands: Sequence[_builtins.str],
11076
+ envs: Sequence['outputs.GetWorkerPoolTemplateContainerEnvResult'],
11077
+ image: _builtins.str,
11078
+ liveness_probes: Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeResult'],
11079
+ name: _builtins.str,
11080
+ resources: Sequence['outputs.GetWorkerPoolTemplateContainerResourceResult'],
11081
+ startup_probes: Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeResult'],
11082
+ volume_mounts: Sequence['outputs.GetWorkerPoolTemplateContainerVolumeMountResult'],
11083
+ working_dir: _builtins.str):
10062
11084
  """
10063
- :param _builtins.str breakglass_justification: 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
10064
- :param _builtins.str policy: The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
10065
- :param _builtins.bool use_default: If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
11085
+ :param Sequence[_builtins.str] args: Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
11086
+ :param Sequence[_builtins.str] commands: 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
11087
+ :param Sequence['GetWorkerPoolTemplateContainerEnvArgs'] envs: List of environment variables to set in the container.
11088
+ :param _builtins.str image: URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
11089
+ :param Sequence['GetWorkerPoolTemplateContainerLivenessProbeArgs'] liveness_probes: Periodic probe of container liveness. Container will be restarted if the probe fails.
11090
+ :param _builtins.str name: The name of the Cloud Run v2 Worker Pool.
11091
+ :param Sequence['GetWorkerPoolTemplateContainerResourceArgs'] resources: Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
11092
+ :param Sequence['GetWorkerPoolTemplateContainerStartupProbeArgs'] startup_probes: 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.
11093
+ :param Sequence['GetWorkerPoolTemplateContainerVolumeMountArgs'] volume_mounts: Volume to mount into the container's filesystem.
11094
+ :param _builtins.str working_dir: Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
10066
11095
  """
10067
- pulumi.set(__self__, "breakglass_justification", breakglass_justification)
10068
- pulumi.set(__self__, "policy", policy)
10069
- pulumi.set(__self__, "use_default", use_default)
11096
+ pulumi.set(__self__, "args", args)
11097
+ pulumi.set(__self__, "commands", commands)
11098
+ pulumi.set(__self__, "envs", envs)
11099
+ pulumi.set(__self__, "image", image)
11100
+ pulumi.set(__self__, "liveness_probes", liveness_probes)
11101
+ pulumi.set(__self__, "name", name)
11102
+ pulumi.set(__self__, "resources", resources)
11103
+ pulumi.set(__self__, "startup_probes", startup_probes)
11104
+ pulumi.set(__self__, "volume_mounts", volume_mounts)
11105
+ pulumi.set(__self__, "working_dir", working_dir)
10070
11106
 
10071
11107
  @_builtins.property
10072
- @pulumi.getter(name="breakglassJustification")
10073
- def breakglass_justification(self) -> _builtins.str:
11108
+ @pulumi.getter
11109
+ def args(self) -> Sequence[_builtins.str]:
10074
11110
  """
10075
- 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
11111
+ Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
10076
11112
  """
10077
- return pulumi.get(self, "breakglass_justification")
11113
+ return pulumi.get(self, "args")
10078
11114
 
10079
11115
  @_builtins.property
10080
11116
  @pulumi.getter
10081
- def policy(self) -> _builtins.str:
11117
+ def commands(self) -> Sequence[_builtins.str]:
10082
11118
  """
10083
- The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}
11119
+ 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
10084
11120
  """
10085
- return pulumi.get(self, "policy")
11121
+ return pulumi.get(self, "commands")
10086
11122
 
10087
11123
  @_builtins.property
10088
- @pulumi.getter(name="useDefault")
10089
- def use_default(self) -> _builtins.bool:
10090
- """
10091
- If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
10092
- """
10093
- return pulumi.get(self, "use_default")
10094
-
10095
-
10096
- @pulumi.output_type
10097
- class GetWorkerPoolConditionResult(dict):
10098
- def __init__(__self__, *,
10099
- execution_reason: _builtins.str,
10100
- last_transition_time: _builtins.str,
10101
- message: _builtins.str,
10102
- reason: _builtins.str,
10103
- revision_reason: _builtins.str,
10104
- severity: _builtins.str,
10105
- state: _builtins.str,
10106
- type: _builtins.str):
11124
+ @pulumi.getter
11125
+ def envs(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerEnvResult']:
10107
11126
  """
10108
- :param _builtins.str execution_reason: A reason for the execution condition.
10109
- :param _builtins.str last_transition_time: Last time the condition transitioned from one status to another.
10110
-
10111
- A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
10112
- :param _builtins.str message: Human readable message indicating details about the current status.
10113
- :param _builtins.str reason: A common (workerPool-level) reason for this condition.
10114
- :param _builtins.str revision_reason: A reason for the revision condition.
10115
- :param _builtins.str severity: How to interpret failures of this condition, one of Error, Warning, Info
10116
- :param _builtins.str state: State of the condition.
10117
- :param _builtins.str type: type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
11127
+ List of environment variables to set in the container.
10118
11128
  """
10119
- pulumi.set(__self__, "execution_reason", execution_reason)
10120
- pulumi.set(__self__, "last_transition_time", last_transition_time)
10121
- pulumi.set(__self__, "message", message)
10122
- pulumi.set(__self__, "reason", reason)
10123
- pulumi.set(__self__, "revision_reason", revision_reason)
10124
- pulumi.set(__self__, "severity", severity)
10125
- pulumi.set(__self__, "state", state)
10126
- pulumi.set(__self__, "type", type)
11129
+ return pulumi.get(self, "envs")
10127
11130
 
10128
11131
  @_builtins.property
10129
- @pulumi.getter(name="executionReason")
10130
- def execution_reason(self) -> _builtins.str:
11132
+ @pulumi.getter
11133
+ def image(self) -> _builtins.str:
10131
11134
  """
10132
- A reason for the execution condition.
11135
+ URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
10133
11136
  """
10134
- return pulumi.get(self, "execution_reason")
11137
+ return pulumi.get(self, "image")
10135
11138
 
10136
11139
  @_builtins.property
10137
- @pulumi.getter(name="lastTransitionTime")
10138
- def last_transition_time(self) -> _builtins.str:
11140
+ @pulumi.getter(name="livenessProbes")
11141
+ def liveness_probes(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeResult']:
10139
11142
  """
10140
- Last time the condition transitioned from one status to another.
10141
-
10142
- A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
11143
+ Periodic probe of container liveness. Container will be restarted if the probe fails.
10143
11144
  """
10144
- return pulumi.get(self, "last_transition_time")
11145
+ return pulumi.get(self, "liveness_probes")
10145
11146
 
10146
11147
  @_builtins.property
10147
11148
  @pulumi.getter
10148
- def message(self) -> _builtins.str:
11149
+ def name(self) -> _builtins.str:
10149
11150
  """
10150
- Human readable message indicating details about the current status.
11151
+ The name of the Cloud Run v2 Worker Pool.
10151
11152
  """
10152
- return pulumi.get(self, "message")
11153
+ return pulumi.get(self, "name")
10153
11154
 
10154
11155
  @_builtins.property
10155
11156
  @pulumi.getter
10156
- def reason(self) -> _builtins.str:
10157
- """
10158
- A common (workerPool-level) reason for this condition.
10159
- """
10160
- return pulumi.get(self, "reason")
10161
-
10162
- @_builtins.property
10163
- @pulumi.getter(name="revisionReason")
10164
- def revision_reason(self) -> _builtins.str:
11157
+ def resources(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerResourceResult']:
10165
11158
  """
10166
- A reason for the revision condition.
11159
+ Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
10167
11160
  """
10168
- return pulumi.get(self, "revision_reason")
11161
+ return pulumi.get(self, "resources")
10169
11162
 
10170
- @_builtins.property
10171
- @pulumi.getter
10172
- def severity(self) -> _builtins.str:
11163
+ @_builtins.property
11164
+ @pulumi.getter(name="startupProbes")
11165
+ def startup_probes(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeResult']:
10173
11166
  """
10174
- How to interpret failures of this condition, one of Error, Warning, Info
11167
+ 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.
10175
11168
  """
10176
- return pulumi.get(self, "severity")
11169
+ return pulumi.get(self, "startup_probes")
10177
11170
 
10178
11171
  @_builtins.property
10179
- @pulumi.getter
10180
- def state(self) -> _builtins.str:
11172
+ @pulumi.getter(name="volumeMounts")
11173
+ def volume_mounts(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerVolumeMountResult']:
10181
11174
  """
10182
- State of the condition.
11175
+ Volume to mount into the container's filesystem.
10183
11176
  """
10184
- return pulumi.get(self, "state")
11177
+ return pulumi.get(self, "volume_mounts")
10185
11178
 
10186
11179
  @_builtins.property
10187
- @pulumi.getter
10188
- def type(self) -> _builtins.str:
11180
+ @pulumi.getter(name="workingDir")
11181
+ def working_dir(self) -> _builtins.str:
10189
11182
  """
10190
- type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
11183
+ Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
10191
11184
  """
10192
- return pulumi.get(self, "type")
11185
+ return pulumi.get(self, "working_dir")
10193
11186
 
10194
11187
 
10195
11188
  @pulumi.output_type
10196
- class GetWorkerPoolInstanceSplitResult(dict):
11189
+ class GetWorkerPoolTemplateContainerEnvResult(dict):
10197
11190
  def __init__(__self__, *,
10198
- percent: _builtins.int,
10199
- revision: _builtins.str,
10200
- type: _builtins.str):
11191
+ name: _builtins.str,
11192
+ value: _builtins.str,
11193
+ value_sources: Sequence['outputs.GetWorkerPoolTemplateContainerEnvValueSourceResult']):
10201
11194
  """
10202
- :param _builtins.int percent: Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
10203
- :param _builtins.str revision: Revision to which to assign this portion of instances, if split allocation is by revision.
10204
- :param _builtins.str type: The allocation type for this instance split. Possible values: ["INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST", "INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION"]
11195
+ :param _builtins.str name: The name of the Cloud Run v2 Worker Pool.
11196
+ :param _builtins.str value: Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
11197
+ :param Sequence['GetWorkerPoolTemplateContainerEnvValueSourceArgs'] value_sources: Source for the environment variable's value.
10205
11198
  """
10206
- pulumi.set(__self__, "percent", percent)
10207
- pulumi.set(__self__, "revision", revision)
10208
- pulumi.set(__self__, "type", type)
11199
+ pulumi.set(__self__, "name", name)
11200
+ pulumi.set(__self__, "value", value)
11201
+ pulumi.set(__self__, "value_sources", value_sources)
10209
11202
 
10210
11203
  @_builtins.property
10211
11204
  @pulumi.getter
10212
- def percent(self) -> _builtins.int:
11205
+ def name(self) -> _builtins.str:
10213
11206
  """
10214
- Specifies percent of the instance split to this Revision. This defaults to zero if unspecified.
11207
+ The name of the Cloud Run v2 Worker Pool.
10215
11208
  """
10216
- return pulumi.get(self, "percent")
11209
+ return pulumi.get(self, "name")
10217
11210
 
10218
11211
  @_builtins.property
10219
11212
  @pulumi.getter
10220
- def revision(self) -> _builtins.str:
11213
+ def value(self) -> _builtins.str:
10221
11214
  """
10222
- Revision to which to assign this portion of instances, if split allocation is by revision.
11215
+ Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
10223
11216
  """
10224
- return pulumi.get(self, "revision")
11217
+ return pulumi.get(self, "value")
10225
11218
 
10226
11219
  @_builtins.property
10227
- @pulumi.getter
10228
- def type(self) -> _builtins.str:
11220
+ @pulumi.getter(name="valueSources")
11221
+ def value_sources(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerEnvValueSourceResult']:
10229
11222
  """
10230
- The allocation type for this instance split. Possible values: ["INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST", "INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION"]
11223
+ Source for the environment variable's value.
10231
11224
  """
10232
- return pulumi.get(self, "type")
11225
+ return pulumi.get(self, "value_sources")
10233
11226
 
10234
11227
 
10235
11228
  @pulumi.output_type
10236
- class GetWorkerPoolInstanceSplitStatusResult(dict):
11229
+ class GetWorkerPoolTemplateContainerEnvValueSourceResult(dict):
10237
11230
  def __init__(__self__, *,
10238
- percent: _builtins.int,
10239
- revision: _builtins.str,
10240
- type: _builtins.str):
11231
+ secret_key_reves: Sequence['outputs.GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefResult']):
10241
11232
  """
10242
- :param _builtins.int percent: Specifies percent of the instance split to this Revision.
10243
- :param _builtins.str revision: Revision to which this instance split is assigned.
10244
- :param _builtins.str type: The allocation type for this instance split.
11233
+ :param Sequence['GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefArgs'] secret_key_reves: Selects a secret and a specific version from Cloud Secret Manager.
10245
11234
  """
10246
- pulumi.set(__self__, "percent", percent)
10247
- pulumi.set(__self__, "revision", revision)
10248
- pulumi.set(__self__, "type", type)
11235
+ pulumi.set(__self__, "secret_key_reves", secret_key_reves)
10249
11236
 
10250
11237
  @_builtins.property
10251
- @pulumi.getter
10252
- def percent(self) -> _builtins.int:
11238
+ @pulumi.getter(name="secretKeyReves")
11239
+ def secret_key_reves(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefResult']:
10253
11240
  """
10254
- Specifies percent of the instance split to this Revision.
11241
+ Selects a secret and a specific version from Cloud Secret Manager.
10255
11242
  """
10256
- return pulumi.get(self, "percent")
11243
+ return pulumi.get(self, "secret_key_reves")
11244
+
11245
+
11246
+ @pulumi.output_type
11247
+ class GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefResult(dict):
11248
+ def __init__(__self__, *,
11249
+ secret: _builtins.str,
11250
+ version: _builtins.str):
11251
+ """
11252
+ :param _builtins.str secret: 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.
11253
+ :param _builtins.str version: The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
11254
+ """
11255
+ pulumi.set(__self__, "secret", secret)
11256
+ pulumi.set(__self__, "version", version)
10257
11257
 
10258
11258
  @_builtins.property
10259
11259
  @pulumi.getter
10260
- def revision(self) -> _builtins.str:
11260
+ def secret(self) -> _builtins.str:
10261
11261
  """
10262
- Revision to which this instance split is assigned.
11262
+ 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.
10263
11263
  """
10264
- return pulumi.get(self, "revision")
11264
+ return pulumi.get(self, "secret")
10265
11265
 
10266
11266
  @_builtins.property
10267
11267
  @pulumi.getter
10268
- def type(self) -> _builtins.str:
11268
+ def version(self) -> _builtins.str:
10269
11269
  """
10270
- The allocation type for this instance split.
11270
+ The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
10271
11271
  """
10272
- return pulumi.get(self, "type")
11272
+ return pulumi.get(self, "version")
10273
11273
 
10274
11274
 
10275
11275
  @pulumi.output_type
10276
- class GetWorkerPoolScalingResult(dict):
11276
+ class GetWorkerPoolTemplateContainerLivenessProbeResult(dict):
10277
11277
  def __init__(__self__, *,
10278
- manual_instance_count: _builtins.int,
10279
- max_instance_count: _builtins.int,
10280
- min_instance_count: _builtins.int,
10281
- scaling_mode: _builtins.str):
11278
+ failure_threshold: _builtins.int,
11279
+ grpcs: Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeGrpcResult'],
11280
+ http_gets: Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeHttpGetResult'],
11281
+ initial_delay_seconds: _builtins.int,
11282
+ period_seconds: _builtins.int,
11283
+ tcp_sockets: Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeTcpSocketResult'],
11284
+ timeout_seconds: _builtins.int):
10282
11285
  """
10283
- :param _builtins.int manual_instance_count: The total number of instances in manual scaling mode.
10284
- :param _builtins.int max_instance_count: The maximum count of instances distributed among revisions based on the specified instance split percentages.
10285
- :param _builtins.int min_instance_count: The minimum count of instances distributed among revisions based on the specified instance split percentages.
10286
- :param _builtins.str scaling_mode: The scaling mode for the worker pool. It defaults to MANUAL. Possible values: ["AUTOMATIC", "MANUAL"]
11286
+ :param _builtins.int failure_threshold: Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
11287
+ :param Sequence['GetWorkerPoolTemplateContainerLivenessProbeGrpcArgs'] grpcs: Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
11288
+ :param Sequence['GetWorkerPoolTemplateContainerLivenessProbeHttpGetArgs'] http_gets: Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
11289
+ :param _builtins.int initial_delay_seconds: Optional. 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.
11290
+ :param _builtins.int period_seconds: Optional. 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 timeout_seconds.
11291
+ :param Sequence['GetWorkerPoolTemplateContainerLivenessProbeTcpSocketArgs'] tcp_sockets: Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
11292
+ :param _builtins.int timeout_seconds: Optional. 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 period_seconds.
10287
11293
  """
10288
- pulumi.set(__self__, "manual_instance_count", manual_instance_count)
10289
- pulumi.set(__self__, "max_instance_count", max_instance_count)
10290
- pulumi.set(__self__, "min_instance_count", min_instance_count)
10291
- pulumi.set(__self__, "scaling_mode", scaling_mode)
11294
+ pulumi.set(__self__, "failure_threshold", failure_threshold)
11295
+ pulumi.set(__self__, "grpcs", grpcs)
11296
+ pulumi.set(__self__, "http_gets", http_gets)
11297
+ pulumi.set(__self__, "initial_delay_seconds", initial_delay_seconds)
11298
+ pulumi.set(__self__, "period_seconds", period_seconds)
11299
+ pulumi.set(__self__, "tcp_sockets", tcp_sockets)
11300
+ pulumi.set(__self__, "timeout_seconds", timeout_seconds)
10292
11301
 
10293
11302
  @_builtins.property
10294
- @pulumi.getter(name="manualInstanceCount")
10295
- def manual_instance_count(self) -> _builtins.int:
11303
+ @pulumi.getter(name="failureThreshold")
11304
+ def failure_threshold(self) -> _builtins.int:
10296
11305
  """
10297
- The total number of instances in manual scaling mode.
11306
+ Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
10298
11307
  """
10299
- return pulumi.get(self, "manual_instance_count")
11308
+ return pulumi.get(self, "failure_threshold")
10300
11309
 
10301
11310
  @_builtins.property
10302
- @pulumi.getter(name="maxInstanceCount")
10303
- def max_instance_count(self) -> _builtins.int:
11311
+ @pulumi.getter
11312
+ def grpcs(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeGrpcResult']:
10304
11313
  """
10305
- The maximum count of instances distributed among revisions based on the specified instance split percentages.
11314
+ Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
10306
11315
  """
10307
- return pulumi.get(self, "max_instance_count")
11316
+ return pulumi.get(self, "grpcs")
10308
11317
 
10309
11318
  @_builtins.property
10310
- @pulumi.getter(name="minInstanceCount")
10311
- def min_instance_count(self) -> _builtins.int:
11319
+ @pulumi.getter(name="httpGets")
11320
+ def http_gets(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeHttpGetResult']:
10312
11321
  """
10313
- The minimum count of instances distributed among revisions based on the specified instance split percentages.
11322
+ Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
10314
11323
  """
10315
- return pulumi.get(self, "min_instance_count")
11324
+ return pulumi.get(self, "http_gets")
10316
11325
 
10317
11326
  @_builtins.property
10318
- @pulumi.getter(name="scalingMode")
10319
- def scaling_mode(self) -> _builtins.str:
11327
+ @pulumi.getter(name="initialDelaySeconds")
11328
+ def initial_delay_seconds(self) -> _builtins.int:
10320
11329
  """
10321
- The scaling mode for the worker pool. It defaults to MANUAL. Possible values: ["AUTOMATIC", "MANUAL"]
11330
+ Optional. 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.
10322
11331
  """
10323
- return pulumi.get(self, "scaling_mode")
11332
+ return pulumi.get(self, "initial_delay_seconds")
10324
11333
 
11334
+ @_builtins.property
11335
+ @pulumi.getter(name="periodSeconds")
11336
+ def period_seconds(self) -> _builtins.int:
11337
+ """
11338
+ Optional. 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 timeout_seconds.
11339
+ """
11340
+ return pulumi.get(self, "period_seconds")
10325
11341
 
10326
- @pulumi.output_type
10327
- class GetWorkerPoolTemplateResult(dict):
10328
- def __init__(__self__, *,
10329
- annotations: Mapping[str, _builtins.str],
10330
- containers: Sequence['outputs.GetWorkerPoolTemplateContainerResult'],
10331
- encryption_key: _builtins.str,
10332
- encryption_key_revocation_action: _builtins.str,
10333
- encryption_key_shutdown_duration: _builtins.str,
10334
- gpu_zonal_redundancy_disabled: _builtins.bool,
10335
- labels: Mapping[str, _builtins.str],
10336
- node_selectors: Sequence['outputs.GetWorkerPoolTemplateNodeSelectorResult'],
10337
- revision: _builtins.str,
10338
- service_account: _builtins.str,
10339
- volumes: Sequence['outputs.GetWorkerPoolTemplateVolumeResult'],
10340
- vpc_accesses: Sequence['outputs.GetWorkerPoolTemplateVpcAccessResult']):
11342
+ @_builtins.property
11343
+ @pulumi.getter(name="tcpSockets")
11344
+ def tcp_sockets(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeTcpSocketResult']:
10341
11345
  """
10342
- :param Mapping[str, _builtins.str] annotations: 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.
10343
-
10344
- Cloud 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.
10345
- All system annotations in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
10346
-
10347
- This field follows Kubernetes annotations' namespacing, limits, and rules.
10348
- :param Sequence['GetWorkerPoolTemplateContainerArgs'] containers: Holds the containers that define the unit of execution for this WorkerPool.
10349
- :param _builtins.str encryption_key: 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
10350
- :param _builtins.str encryption_key_revocation_action: The action to take if the encryption key is revoked. Possible values: ["PREVENT_NEW", "SHUTDOWN"]
10351
- :param _builtins.str encryption_key_shutdown_duration: If encryptionKeyRevocationAction is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
10352
-
10353
- A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
10354
- :param _builtins.bool gpu_zonal_redundancy_disabled: True if GPU zonal redundancy is disabled on this revision.
10355
- :param Mapping[str, _builtins.str] labels: 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.
10356
- For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
10357
-
10358
- Cloud 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.
10359
- All system labels in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
10360
- :param Sequence['GetWorkerPoolTemplateNodeSelectorArgs'] node_selectors: Node Selector describes the hardware requirements of the resources.
10361
- :param _builtins.str revision: The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
10362
- :param _builtins.str service_account: Email address of the IAM service account associated with the revision of the WorkerPool. 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.
10363
- :param Sequence['GetWorkerPoolTemplateVolumeArgs'] volumes: A list of Volumes to make available to containers.
10364
- :param Sequence['GetWorkerPoolTemplateVpcAccessArgs'] vpc_accesses: VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
11346
+ Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
10365
11347
  """
10366
- pulumi.set(__self__, "annotations", annotations)
10367
- pulumi.set(__self__, "containers", containers)
10368
- pulumi.set(__self__, "encryption_key", encryption_key)
10369
- pulumi.set(__self__, "encryption_key_revocation_action", encryption_key_revocation_action)
10370
- pulumi.set(__self__, "encryption_key_shutdown_duration", encryption_key_shutdown_duration)
10371
- pulumi.set(__self__, "gpu_zonal_redundancy_disabled", gpu_zonal_redundancy_disabled)
10372
- pulumi.set(__self__, "labels", labels)
10373
- pulumi.set(__self__, "node_selectors", node_selectors)
10374
- pulumi.set(__self__, "revision", revision)
10375
- pulumi.set(__self__, "service_account", service_account)
10376
- pulumi.set(__self__, "volumes", volumes)
10377
- pulumi.set(__self__, "vpc_accesses", vpc_accesses)
11348
+ return pulumi.get(self, "tcp_sockets")
10378
11349
 
10379
11350
  @_builtins.property
10380
- @pulumi.getter
10381
- def annotations(self) -> Mapping[str, _builtins.str]:
11351
+ @pulumi.getter(name="timeoutSeconds")
11352
+ def timeout_seconds(self) -> _builtins.int:
10382
11353
  """
10383
- 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.
11354
+ Optional. 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 period_seconds.
11355
+ """
11356
+ return pulumi.get(self, "timeout_seconds")
10384
11357
 
10385
- Cloud 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.
10386
- All system annotations in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
10387
11358
 
10388
- This field follows Kubernetes annotations' namespacing, limits, and rules.
11359
+ @pulumi.output_type
11360
+ class GetWorkerPoolTemplateContainerLivenessProbeGrpcResult(dict):
11361
+ def __init__(__self__, *,
11362
+ port: _builtins.int,
11363
+ service: _builtins.str):
10389
11364
  """
10390
- return pulumi.get(self, "annotations")
11365
+ :param _builtins.int port: Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
11366
+ :param _builtins.str service: Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC
11367
+ """
11368
+ pulumi.set(__self__, "port", port)
11369
+ pulumi.set(__self__, "service", service)
10391
11370
 
10392
11371
  @_builtins.property
10393
11372
  @pulumi.getter
10394
- def containers(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerResult']:
11373
+ def port(self) -> _builtins.int:
10395
11374
  """
10396
- Holds the containers that define the unit of execution for this WorkerPool.
11375
+ Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10397
11376
  """
10398
- return pulumi.get(self, "containers")
11377
+ return pulumi.get(self, "port")
10399
11378
 
10400
11379
  @_builtins.property
10401
- @pulumi.getter(name="encryptionKey")
10402
- def encryption_key(self) -> _builtins.str:
11380
+ @pulumi.getter
11381
+ def service(self) -> _builtins.str:
10403
11382
  """
10404
- 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
11383
+ Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC
10405
11384
  """
10406
- return pulumi.get(self, "encryption_key")
11385
+ return pulumi.get(self, "service")
10407
11386
 
10408
- @_builtins.property
10409
- @pulumi.getter(name="encryptionKeyRevocationAction")
10410
- def encryption_key_revocation_action(self) -> _builtins.str:
11387
+
11388
+ @pulumi.output_type
11389
+ class GetWorkerPoolTemplateContainerLivenessProbeHttpGetResult(dict):
11390
+ def __init__(__self__, *,
11391
+ http_headers: Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaderResult'],
11392
+ path: _builtins.str,
11393
+ port: _builtins.int):
10411
11394
  """
10412
- The action to take if the encryption key is revoked. Possible values: ["PREVENT_NEW", "SHUTDOWN"]
11395
+ :param Sequence['GetWorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaderArgs'] http_headers: Optional. Custom headers to set in the request. HTTP allows repeated headers.
11396
+ :param _builtins.str path: Optional. Path to access on the HTTP server. Defaults to '/'.
11397
+ :param _builtins.int port: Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10413
11398
  """
10414
- return pulumi.get(self, "encryption_key_revocation_action")
11399
+ pulumi.set(__self__, "http_headers", http_headers)
11400
+ pulumi.set(__self__, "path", path)
11401
+ pulumi.set(__self__, "port", port)
10415
11402
 
10416
11403
  @_builtins.property
10417
- @pulumi.getter(name="encryptionKeyShutdownDuration")
10418
- def encryption_key_shutdown_duration(self) -> _builtins.str:
11404
+ @pulumi.getter(name="httpHeaders")
11405
+ def http_headers(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaderResult']:
10419
11406
  """
10420
- If encryptionKeyRevocationAction is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
10421
-
10422
- A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
11407
+ Optional. Custom headers to set in the request. HTTP allows repeated headers.
10423
11408
  """
10424
- return pulumi.get(self, "encryption_key_shutdown_duration")
11409
+ return pulumi.get(self, "http_headers")
10425
11410
 
10426
11411
  @_builtins.property
10427
- @pulumi.getter(name="gpuZonalRedundancyDisabled")
10428
- def gpu_zonal_redundancy_disabled(self) -> _builtins.bool:
11412
+ @pulumi.getter
11413
+ def path(self) -> _builtins.str:
10429
11414
  """
10430
- True if GPU zonal redundancy is disabled on this revision.
11415
+ Optional. Path to access on the HTTP server. Defaults to '/'.
10431
11416
  """
10432
- return pulumi.get(self, "gpu_zonal_redundancy_disabled")
11417
+ return pulumi.get(self, "path")
10433
11418
 
10434
11419
  @_builtins.property
10435
11420
  @pulumi.getter
10436
- def labels(self) -> Mapping[str, _builtins.str]:
11421
+ def port(self) -> _builtins.int:
10437
11422
  """
10438
- 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.
10439
- For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.
10440
-
10441
- Cloud 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.
10442
- All system labels in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
11423
+ Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10443
11424
  """
10444
- return pulumi.get(self, "labels")
11425
+ return pulumi.get(self, "port")
10445
11426
 
10446
- @_builtins.property
10447
- @pulumi.getter(name="nodeSelectors")
10448
- def node_selectors(self) -> Sequence['outputs.GetWorkerPoolTemplateNodeSelectorResult']:
11427
+
11428
+ @pulumi.output_type
11429
+ class GetWorkerPoolTemplateContainerLivenessProbeHttpGetHttpHeaderResult(dict):
11430
+ def __init__(__self__, *,
11431
+ port: _builtins.int,
11432
+ value: _builtins.str):
10449
11433
  """
10450
- Node Selector describes the hardware requirements of the resources.
11434
+ :param _builtins.int port: Required. The header field name
11435
+ :param _builtins.str value: Optional. The header field value
10451
11436
  """
10452
- return pulumi.get(self, "node_selectors")
11437
+ pulumi.set(__self__, "port", port)
11438
+ pulumi.set(__self__, "value", value)
10453
11439
 
10454
11440
  @_builtins.property
10455
11441
  @pulumi.getter
10456
- def revision(self) -> _builtins.str:
11442
+ def port(self) -> _builtins.int:
10457
11443
  """
10458
- The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
11444
+ Required. The header field name
10459
11445
  """
10460
- return pulumi.get(self, "revision")
11446
+ return pulumi.get(self, "port")
10461
11447
 
10462
11448
  @_builtins.property
10463
- @pulumi.getter(name="serviceAccount")
10464
- def service_account(self) -> _builtins.str:
11449
+ @pulumi.getter
11450
+ def value(self) -> _builtins.str:
10465
11451
  """
10466
- Email address of the IAM service account associated with the revision of the WorkerPool. 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.
11452
+ Optional. The header field value
10467
11453
  """
10468
- return pulumi.get(self, "service_account")
11454
+ return pulumi.get(self, "value")
10469
11455
 
10470
- @_builtins.property
10471
- @pulumi.getter
10472
- def volumes(self) -> Sequence['outputs.GetWorkerPoolTemplateVolumeResult']:
11456
+
11457
+ @pulumi.output_type
11458
+ class GetWorkerPoolTemplateContainerLivenessProbeTcpSocketResult(dict):
11459
+ def __init__(__self__, *,
11460
+ port: _builtins.int):
10473
11461
  """
10474
- A list of Volumes to make available to containers.
11462
+ :param _builtins.int port: Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10475
11463
  """
10476
- return pulumi.get(self, "volumes")
11464
+ pulumi.set(__self__, "port", port)
10477
11465
 
10478
11466
  @_builtins.property
10479
- @pulumi.getter(name="vpcAccesses")
10480
- def vpc_accesses(self) -> Sequence['outputs.GetWorkerPoolTemplateVpcAccessResult']:
11467
+ @pulumi.getter
11468
+ def port(self) -> _builtins.int:
10481
11469
  """
10482
- VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
11470
+ Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10483
11471
  """
10484
- return pulumi.get(self, "vpc_accesses")
11472
+ return pulumi.get(self, "port")
10485
11473
 
10486
11474
 
10487
11475
  @pulumi.output_type
10488
- class GetWorkerPoolTemplateContainerResult(dict):
11476
+ class GetWorkerPoolTemplateContainerResourceResult(dict):
10489
11477
  def __init__(__self__, *,
10490
- args: Sequence[_builtins.str],
10491
- commands: Sequence[_builtins.str],
10492
- envs: Sequence['outputs.GetWorkerPoolTemplateContainerEnvResult'],
10493
- image: _builtins.str,
10494
- name: _builtins.str,
10495
- resources: Sequence['outputs.GetWorkerPoolTemplateContainerResourceResult'],
10496
- volume_mounts: Sequence['outputs.GetWorkerPoolTemplateContainerVolumeMountResult'],
10497
- working_dir: _builtins.str):
11478
+ limits: Mapping[str, _builtins.str]):
10498
11479
  """
10499
- :param Sequence[_builtins.str] args: Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
10500
- :param Sequence[_builtins.str] commands: 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
10501
- :param Sequence['GetWorkerPoolTemplateContainerEnvArgs'] envs: List of environment variables to set in the container.
10502
- :param _builtins.str image: URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
10503
- :param _builtins.str name: The name of the Cloud Run v2 Worker Pool.
10504
- :param Sequence['GetWorkerPoolTemplateContainerResourceArgs'] resources: Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
10505
- :param Sequence['GetWorkerPoolTemplateContainerVolumeMountArgs'] volume_mounts: Volume to mount into the container's filesystem.
10506
- :param _builtins.str working_dir: Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
11480
+ :param Mapping[str, _builtins.str] limits: 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', and '8'. Setting 4 CPU requires at least 2Gi 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
10507
11481
  """
10508
- pulumi.set(__self__, "args", args)
10509
- pulumi.set(__self__, "commands", commands)
10510
- pulumi.set(__self__, "envs", envs)
10511
- pulumi.set(__self__, "image", image)
10512
- pulumi.set(__self__, "name", name)
10513
- pulumi.set(__self__, "resources", resources)
10514
- pulumi.set(__self__, "volume_mounts", volume_mounts)
10515
- pulumi.set(__self__, "working_dir", working_dir)
11482
+ pulumi.set(__self__, "limits", limits)
10516
11483
 
10517
11484
  @_builtins.property
10518
11485
  @pulumi.getter
10519
- def args(self) -> Sequence[_builtins.str]:
11486
+ def limits(self) -> Mapping[str, _builtins.str]:
10520
11487
  """
10521
- Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references are not supported in Cloud Run.
11488
+ 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', and '8'. Setting 4 CPU requires at least 2Gi 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
10522
11489
  """
10523
- return pulumi.get(self, "args")
11490
+ return pulumi.get(self, "limits")
11491
+
11492
+
11493
+ @pulumi.output_type
11494
+ class GetWorkerPoolTemplateContainerStartupProbeResult(dict):
11495
+ def __init__(__self__, *,
11496
+ failure_threshold: _builtins.int,
11497
+ grpcs: Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeGrpcResult'],
11498
+ http_gets: Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeHttpGetResult'],
11499
+ initial_delay_seconds: _builtins.int,
11500
+ period_seconds: _builtins.int,
11501
+ tcp_sockets: Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeTcpSocketResult'],
11502
+ timeout_seconds: _builtins.int):
11503
+ """
11504
+ :param _builtins.int failure_threshold: Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
11505
+ :param Sequence['GetWorkerPoolTemplateContainerStartupProbeGrpcArgs'] grpcs: Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
11506
+ :param Sequence['GetWorkerPoolTemplateContainerStartupProbeHttpGetArgs'] http_gets: Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
11507
+ :param _builtins.int initial_delay_seconds: Optional. 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.
11508
+ :param _builtins.int period_seconds: Optional. 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 timeout_seconds.
11509
+ :param Sequence['GetWorkerPoolTemplateContainerStartupProbeTcpSocketArgs'] tcp_sockets: Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
11510
+ :param _builtins.int timeout_seconds: Optional. 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 period_seconds.
11511
+ """
11512
+ pulumi.set(__self__, "failure_threshold", failure_threshold)
11513
+ pulumi.set(__self__, "grpcs", grpcs)
11514
+ pulumi.set(__self__, "http_gets", http_gets)
11515
+ pulumi.set(__self__, "initial_delay_seconds", initial_delay_seconds)
11516
+ pulumi.set(__self__, "period_seconds", period_seconds)
11517
+ pulumi.set(__self__, "tcp_sockets", tcp_sockets)
11518
+ pulumi.set(__self__, "timeout_seconds", timeout_seconds)
10524
11519
 
10525
11520
  @_builtins.property
10526
- @pulumi.getter
10527
- def commands(self) -> Sequence[_builtins.str]:
11521
+ @pulumi.getter(name="failureThreshold")
11522
+ def failure_threshold(self) -> _builtins.int:
10528
11523
  """
10529
- 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
11524
+ Optional. Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
10530
11525
  """
10531
- return pulumi.get(self, "commands")
11526
+ return pulumi.get(self, "failure_threshold")
10532
11527
 
10533
11528
  @_builtins.property
10534
11529
  @pulumi.getter
10535
- def envs(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerEnvResult']:
11530
+ def grpcs(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeGrpcResult']:
10536
11531
  """
10537
- List of environment variables to set in the container.
11532
+ Optional. GRPC specifies an action involving a gRPC port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
10538
11533
  """
10539
- return pulumi.get(self, "envs")
11534
+ return pulumi.get(self, "grpcs")
10540
11535
 
10541
11536
  @_builtins.property
10542
- @pulumi.getter
10543
- def image(self) -> _builtins.str:
11537
+ @pulumi.getter(name="httpGets")
11538
+ def http_gets(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeHttpGetResult']:
10544
11539
  """
10545
- URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
11540
+ Optional. HTTPGet specifies the http request to perform. Exactly one of httpGet, tcpSocket, or grpc must be specified.
10546
11541
  """
10547
- return pulumi.get(self, "image")
11542
+ return pulumi.get(self, "http_gets")
10548
11543
 
10549
11544
  @_builtins.property
10550
- @pulumi.getter
10551
- def name(self) -> _builtins.str:
11545
+ @pulumi.getter(name="initialDelaySeconds")
11546
+ def initial_delay_seconds(self) -> _builtins.int:
10552
11547
  """
10553
- The name of the Cloud Run v2 Worker Pool.
11548
+ Optional. 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.
10554
11549
  """
10555
- return pulumi.get(self, "name")
11550
+ return pulumi.get(self, "initial_delay_seconds")
10556
11551
 
10557
11552
  @_builtins.property
10558
- @pulumi.getter
10559
- def resources(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerResourceResult']:
11553
+ @pulumi.getter(name="periodSeconds")
11554
+ def period_seconds(self) -> _builtins.int:
10560
11555
  """
10561
- Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
11556
+ Optional. 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 timeout_seconds.
10562
11557
  """
10563
- return pulumi.get(self, "resources")
11558
+ return pulumi.get(self, "period_seconds")
10564
11559
 
10565
11560
  @_builtins.property
10566
- @pulumi.getter(name="volumeMounts")
10567
- def volume_mounts(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerVolumeMountResult']:
11561
+ @pulumi.getter(name="tcpSockets")
11562
+ def tcp_sockets(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeTcpSocketResult']:
10568
11563
  """
10569
- Volume to mount into the container's filesystem.
11564
+ Optional. TCPSocket specifies an action involving a TCP port. Exactly one of httpGet, tcpSocket, or grpc must be specified.
10570
11565
  """
10571
- return pulumi.get(self, "volume_mounts")
11566
+ return pulumi.get(self, "tcp_sockets")
10572
11567
 
10573
11568
  @_builtins.property
10574
- @pulumi.getter(name="workingDir")
10575
- def working_dir(self) -> _builtins.str:
11569
+ @pulumi.getter(name="timeoutSeconds")
11570
+ def timeout_seconds(self) -> _builtins.int:
10576
11571
  """
10577
- Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
11572
+ Optional. 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 period_seconds.
10578
11573
  """
10579
- return pulumi.get(self, "working_dir")
11574
+ return pulumi.get(self, "timeout_seconds")
10580
11575
 
10581
11576
 
10582
11577
  @pulumi.output_type
10583
- class GetWorkerPoolTemplateContainerEnvResult(dict):
11578
+ class GetWorkerPoolTemplateContainerStartupProbeGrpcResult(dict):
10584
11579
  def __init__(__self__, *,
10585
- name: _builtins.str,
10586
- value: _builtins.str,
10587
- value_sources: Sequence['outputs.GetWorkerPoolTemplateContainerEnvValueSourceResult']):
11580
+ port: _builtins.int,
11581
+ service: _builtins.str):
10588
11582
  """
10589
- :param _builtins.str name: The name of the Cloud Run v2 Worker Pool.
10590
- :param _builtins.str value: Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
10591
- :param Sequence['GetWorkerPoolTemplateContainerEnvValueSourceArgs'] value_sources: Source for the environment variable's value.
11583
+ :param _builtins.int port: Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
11584
+ :param _builtins.str service: Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC
10592
11585
  """
10593
- pulumi.set(__self__, "name", name)
10594
- pulumi.set(__self__, "value", value)
10595
- pulumi.set(__self__, "value_sources", value_sources)
11586
+ pulumi.set(__self__, "port", port)
11587
+ pulumi.set(__self__, "service", service)
10596
11588
 
10597
11589
  @_builtins.property
10598
11590
  @pulumi.getter
10599
- def name(self) -> _builtins.str:
11591
+ def port(self) -> _builtins.int:
10600
11592
  """
10601
- The name of the Cloud Run v2 Worker Pool.
11593
+ Optional. Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10602
11594
  """
10603
- return pulumi.get(self, "name")
11595
+ return pulumi.get(self, "port")
10604
11596
 
10605
11597
  @_builtins.property
10606
11598
  @pulumi.getter
10607
- def value(self) -> _builtins.str:
11599
+ def service(self) -> _builtins.str:
10608
11600
  """
10609
- Literal value of the environment variable. Defaults to "" and the maximum allowed length is 32768 characters. Variable references are not supported in Cloud Run.
11601
+ Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC
10610
11602
  """
10611
- return pulumi.get(self, "value")
11603
+ return pulumi.get(self, "service")
10612
11604
 
10613
- @_builtins.property
10614
- @pulumi.getter(name="valueSources")
10615
- def value_sources(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerEnvValueSourceResult']:
11605
+
11606
+ @pulumi.output_type
11607
+ class GetWorkerPoolTemplateContainerStartupProbeHttpGetResult(dict):
11608
+ def __init__(__self__, *,
11609
+ http_headers: Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaderResult'],
11610
+ path: _builtins.str,
11611
+ port: _builtins.int):
10616
11612
  """
10617
- Source for the environment variable's value.
11613
+ :param Sequence['GetWorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaderArgs'] http_headers: Optional. Custom headers to set in the request. HTTP allows repeated headers.
11614
+ :param _builtins.str path: Optional. Path to access on the HTTP server. Defaults to '/'.
11615
+ :param _builtins.int port: Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10618
11616
  """
10619
- return pulumi.get(self, "value_sources")
11617
+ pulumi.set(__self__, "http_headers", http_headers)
11618
+ pulumi.set(__self__, "path", path)
11619
+ pulumi.set(__self__, "port", port)
10620
11620
 
11621
+ @_builtins.property
11622
+ @pulumi.getter(name="httpHeaders")
11623
+ def http_headers(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaderResult']:
11624
+ """
11625
+ Optional. Custom headers to set in the request. HTTP allows repeated headers.
11626
+ """
11627
+ return pulumi.get(self, "http_headers")
10621
11628
 
10622
- @pulumi.output_type
10623
- class GetWorkerPoolTemplateContainerEnvValueSourceResult(dict):
10624
- def __init__(__self__, *,
10625
- secret_key_reves: Sequence['outputs.GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefResult']):
11629
+ @_builtins.property
11630
+ @pulumi.getter
11631
+ def path(self) -> _builtins.str:
10626
11632
  """
10627
- :param Sequence['GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefArgs'] secret_key_reves: Selects a secret and a specific version from Cloud Secret Manager.
11633
+ Optional. Path to access on the HTTP server. Defaults to '/'.
10628
11634
  """
10629
- pulumi.set(__self__, "secret_key_reves", secret_key_reves)
11635
+ return pulumi.get(self, "path")
10630
11636
 
10631
11637
  @_builtins.property
10632
- @pulumi.getter(name="secretKeyReves")
10633
- def secret_key_reves(self) -> Sequence['outputs.GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefResult']:
11638
+ @pulumi.getter
11639
+ def port(self) -> _builtins.int:
10634
11640
  """
10635
- Selects a secret and a specific version from Cloud Secret Manager.
11641
+ Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10636
11642
  """
10637
- return pulumi.get(self, "secret_key_reves")
11643
+ return pulumi.get(self, "port")
10638
11644
 
10639
11645
 
10640
11646
  @pulumi.output_type
10641
- class GetWorkerPoolTemplateContainerEnvValueSourceSecretKeyRefResult(dict):
11647
+ class GetWorkerPoolTemplateContainerStartupProbeHttpGetHttpHeaderResult(dict):
10642
11648
  def __init__(__self__, *,
10643
- secret: _builtins.str,
10644
- version: _builtins.str):
11649
+ port: _builtins.int,
11650
+ value: _builtins.str):
10645
11651
  """
10646
- :param _builtins.str secret: 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.
10647
- :param _builtins.str version: The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
11652
+ :param _builtins.int port: Required. The header field name
11653
+ :param _builtins.str value: Optional. The header field value
10648
11654
  """
10649
- pulumi.set(__self__, "secret", secret)
10650
- pulumi.set(__self__, "version", version)
11655
+ pulumi.set(__self__, "port", port)
11656
+ pulumi.set(__self__, "value", value)
10651
11657
 
10652
11658
  @_builtins.property
10653
11659
  @pulumi.getter
10654
- def secret(self) -> _builtins.str:
11660
+ def port(self) -> _builtins.int:
10655
11661
  """
10656
- 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.
11662
+ Required. The header field name
10657
11663
  """
10658
- return pulumi.get(self, "secret")
11664
+ return pulumi.get(self, "port")
10659
11665
 
10660
11666
  @_builtins.property
10661
11667
  @pulumi.getter
10662
- def version(self) -> _builtins.str:
11668
+ def value(self) -> _builtins.str:
10663
11669
  """
10664
- The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
11670
+ Optional. The header field value
10665
11671
  """
10666
- return pulumi.get(self, "version")
11672
+ return pulumi.get(self, "value")
10667
11673
 
10668
11674
 
10669
11675
  @pulumi.output_type
10670
- class GetWorkerPoolTemplateContainerResourceResult(dict):
11676
+ class GetWorkerPoolTemplateContainerStartupProbeTcpSocketResult(dict):
10671
11677
  def __init__(__self__, *,
10672
- limits: Mapping[str, _builtins.str]):
11678
+ port: _builtins.int):
10673
11679
  """
10674
- :param Mapping[str, _builtins.str] limits: 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', and '8'. Setting 4 CPU requires at least 2Gi 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
11680
+ :param _builtins.int port: Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10675
11681
  """
10676
- pulumi.set(__self__, "limits", limits)
11682
+ pulumi.set(__self__, "port", port)
10677
11683
 
10678
11684
  @_builtins.property
10679
11685
  @pulumi.getter
10680
- def limits(self) -> Mapping[str, _builtins.str]:
11686
+ def port(self) -> _builtins.int:
10681
11687
  """
10682
- 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', and '8'. Setting 4 CPU requires at least 2Gi 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
11688
+ Optional. Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
10683
11689
  """
10684
- return pulumi.get(self, "limits")
11690
+ return pulumi.get(self, "port")
10685
11691
 
10686
11692
 
10687
11693
  @pulumi.output_type