Class: Google::Apis::ClouddeployV1::ContainerTask
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::ContainerTask
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
This task is represented by a container that is executed in the Cloud Build execution environment.
Instance Attribute Summary collapse
-
#args ⇒ Array<String>
Optional.
-
#command ⇒ Array<String>
Optional.
-
#env ⇒ Hash<String,String>
Optional.
-
#image ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContainerTask
constructor
A new instance of ContainerTask.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContainerTask
Returns a new instance of ContainerTask.
1573 1574 1575 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1573 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Optional. Args is the container arguments to use. This overrides the default
arguments defined in the container image.
Corresponds to the JSON property args
1555 1556 1557 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1555 def args @args end |
#command ⇒ Array<String>
Optional. Command is the container entrypoint to use. This overrides the
default entrypoint defined in the container image.
Corresponds to the JSON property command
1561 1562 1563 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1561 def command @command end |
#env ⇒ Hash<String,String>
Optional. Environment variables that are set in the container.
Corresponds to the JSON property env
1566 1567 1568 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1566 def env @env end |
#image ⇒ String
Required. Image is the container image to use.
Corresponds to the JSON property image
1571 1572 1573 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1571 def image @image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1578 1579 1580 1581 1582 1583 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1578 def update!(**args) @args = args[:args] if args.key?(:args) @command = args[:command] if args.key?(:command) @env = args[:env] if args.key?(:env) @image = args[:image] if args.key?(:image) end |