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
Optional.
-
#max_retries ⇒ ::Integer
Number of retries allowed per Task, before marking this Task failed.
-
#service_account ⇒ ::String
Optional.
-
#timeout ⇒ ::Google::Protobuf::Duration
Optional.
-
#volumes ⇒ ::Array<::Google::Cloud::Run::V2::Volume>
Optional.
-
#vpc_access ⇒ ::Google::Cloud::Run::V2::VpcAccess
Optional.
Instance Attribute Details
#containers ⇒ ::Array<::Google::Cloud::Run::V2::Container>
Returns Holds the single container that defines the unit of execution for this task.
62 63 64 65 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 62 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.
62 63 64 65 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 62 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#execution_environment ⇒ ::Google::Cloud::Run::V2::ExecutionEnvironment
Returns Optional. The execution environment being used to host this Task.
62 63 64 65 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 62 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.
62 63 64 65 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 62 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#service_account ⇒ ::String
Returns Optional. 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.
62 63 64 65 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 62 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#timeout ⇒ ::Google::Protobuf::Duration
Returns Optional. 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.
62 63 64 65 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 62 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#volumes ⇒ ::Array<::Google::Cloud::Run::V2::Volume>
Returns Optional. A list of Volumes to make available to containers.
62 63 64 65 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 62 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#vpc_access ⇒ ::Google::Cloud::Run::V2::VpcAccess
Returns Optional. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
62 63 64 65 |
# File 'proto_docs/google/cloud/run/v2/task_template.rb', line 62 class TaskTemplate include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |