Class: Google::Cloud::Run::V2::TaskTemplate
- Inherits:
-
Object
- Object
- Google::Cloud::Run::V2::TaskTemplate
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/run/v2/task_template.rb
Overview
TaskTemplate describes the data a task should have when created from a template.
Instance Attribute Summary collapse
-
#containers ⇒ ::Array<::Google::Cloud::Run::V2::Container>
Holds the single container that defines the unit of execution for this task.
-
#encryption_key ⇒ ::String
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.
-
#execution_environment ⇒ ::Google::Cloud::Run::V2::ExecutionEnvironment
The execution environment being used to host this Task.
-
#max_retries ⇒ ::Integer
Number of retries allowed per Task, before marking this Task failed.
-
#service_account ⇒ ::String
Email address of the IAM service account associated with the Task of a Job.
-
#timeout ⇒ ::Google::Protobuf::Duration
Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers.
-
#volumes ⇒ ::Array<::Google::Cloud::Run::V2::Volume>
A list of Volumes to make available to containers.
-
#vpc_access ⇒ ::Google::Cloud::Run::V2::VpcAccess
VPC Access configuration to use for this Task.
Instance Attribute Details
#containers ⇒ ::Array<::Google::Cloud::Run::V2::Container>
Returns Holds the single container that defines the unit of execution for this task.
61 62 63 64 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 61 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#encryption_key ⇒ ::String
Returns 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.
61 62 63 64 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 61 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#execution_environment ⇒ ::Google::Cloud::Run::V2::ExecutionEnvironment
Returns The execution environment being used to host this Task.
61 62 63 64 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 61 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#max_retries ⇒ ::Integer
Returns Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
61 62 63 64 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 61 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#service_account ⇒ ::String
Returns Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
61 62 63 64 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 61 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#timeout ⇒ ::Google::Protobuf::Duration
Returns Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. Defaults to 600 seconds.
61 62 63 64 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 61 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#volumes ⇒ ::Array<::Google::Cloud::Run::V2::Volume>
Returns A list of Volumes to make available to containers.
61 62 63 64 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 61 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#vpc_access ⇒ ::Google::Cloud::Run::V2::VpcAccess
Returns VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
61 62 63 64 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 61 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |