WorkerPoolTemplate class

Constructors

WorkerPoolTemplate({Input<Map<String, String>?>? annotations, Input<String?>? client, Input<String?>? clientVersion, Input<List<WorkerPoolTemplateContainer>?>? containers, Input<String?>? encryptionKey, Input<String?>? encryptionKeyRevocationAction, Input<String?>? encryptionKeyShutdownDuration, Input<bool?>? gpuZonalRedundancyDisabled, Input<Map<String, String>?>? labels, Input<WorkerPoolTemplateNodeSelector?>? nodeSelector, Input<String?>? revision, Input<String?>? serviceAccount, Input<List<WorkerPoolTemplateVolume>?>? volumes, Input<WorkerPoolTemplateVpcAccess?>? vpcAccess})
Creates a new WorkerPoolTemplate. 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. client Arbitrary identifier for the API client. clientVersion Arbitrary version identifier for the API client. containers Holds the containers that define the unit of execution for this WorkerPool. encryptionKey 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 encryptionKeyRevocationAction The action to take if the encryption key is revoked. encryptionKeyShutdownDuration If encryptionKeyRevocationAction is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour. gpuZonalRedundancyDisabled True if GPU zonal redundancy is disabled on this revision. 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. nodeSelector Node Selector describes the hardware requirements of the resources. revision The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name. serviceAccount 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. volumes A list of Volumes to make available to containers. vpcAccess VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
const
WorkerPoolTemplate.fromMap(Map<String, dynamic> map)
factory

Properties

annotations → Input<Map<String, String>?>?
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. 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. All system annotations in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.
final
client → Input<String?>?
Arbitrary identifier for the API client.
final
clientVersion → Input<String?>?
Arbitrary version identifier for the API client.
final
containers → Input<List<WorkerPoolTemplateContainer>?>?
Holds the containers that define the unit of execution for this WorkerPool. Structure is documented below.
final
encryptionKey → Input<String?>?
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
final
encryptionKeyRevocationAction → Input<String?>?
The action to take if the encryption key is revoked. Possible values are: PREVENT_NEW, SHUTDOWN.
final
encryptionKeyShutdownDuration → Input<String?>?
If encryptionKeyRevocationAction is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
final
gpuZonalRedundancyDisabled → Input<bool?>?
True if GPU zonal redundancy is disabled on this revision.
final
hashCode → int
The hash code for this object.
no setterinherited
labels → Input<Map<String, String>?>?
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. For more information, visit https://docs.cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. 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. All system labels in v1 now have a corresponding field in v2 WorkerPoolRevisionTemplate.
final
nodeSelector → Input<WorkerPoolTemplateNodeSelector?>?
Node Selector describes the hardware requirements of the resources. Structure is documented below.
final
revision → Input<String?>?
The unique name for the revision. If this field is omitted, it will be automatically generated based on the WorkerPool name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serviceAccount → Input<String?>?
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.
final
volumes → Input<List<WorkerPoolTemplateVolume>?>?
A list of Volumes to make available to containers. Structure is documented below.
final
vpcAccess → Input<WorkerPoolTemplateVpcAccess?>?
VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited