Class: Google::Apis::ContaineranalysisV1beta1::Command
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1beta1::Command
- Defined in:
- generated/google/apis/containeranalysis_v1beta1/classes.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb
Overview
Command describes a step performed as part of the build pipeline.
Instance Attribute Summary collapse
-
#args ⇒ Array<String>
Command-line arguments used when executing this command.
-
#dir ⇒ String
Working directory (relative to project source root) used when running this command.
-
#env ⇒ Array<String>
Environment variables set before running this command.
-
#id ⇒ String
Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
-
#name ⇒ String
Required.
-
#wait_for ⇒ Array<String>
The ID(s) of the command(s) that this command depends on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Command
constructor
A new instance of Command.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Command
Returns a new instance of Command
751 752 753 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 751 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Command-line arguments used when executing this command.
Corresponds to the JSON property args
721 722 723 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 721 def args @args end |
#dir ⇒ String
Working directory (relative to project source root) used when running this
command.
Corresponds to the JSON property dir
727 728 729 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 727 def dir @dir end |
#env ⇒ Array<String>
Environment variables set before running this command.
Corresponds to the JSON property env
732 733 734 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 732 def env @env end |
#id ⇒ String
Optional unique identifier for this command, used in wait_for to reference
this command as a dependency.
Corresponds to the JSON property id
738 739 740 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 738 def id @id end |
#name ⇒ String
Required. Name of the command, as presented on the command line, or if the
command is packaged as a Docker container, as presented to docker pull
.
Corresponds to the JSON property name
744 745 746 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 744 def name @name end |
#wait_for ⇒ Array<String>
The ID(s) of the command(s) that this command depends on.
Corresponds to the JSON property waitFor
749 750 751 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 749 def wait_for @wait_for end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
756 757 758 759 760 761 762 763 |
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 756 def update!(**args) @args = args[:args] if args.key?(:args) @dir = args[:dir] if args.key?(:dir) @env = args[:env] if args.key?(:env) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @wait_for = args[:wait_for] if args.key?(:wait_for) end |