Class: Google::Cloud::Run::V2::TaskTemplate

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#containers::Array<::Google::Cloud::Run::V2::Container>

Returns Holds the single container that defines the unit of execution for this task.

Returns:



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.

Returns:



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.

Returns:



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.

Returns:

  • (::Integer)

    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.

Returns:

  • (::String)

    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.

Returns:

  • (::Google::Protobuf::Duration)

    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.

Returns:



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.

Returns:



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