Class: Google::Apis::ContaineranalysisV1::Command
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::Command
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_v1/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.
Constructor Details
#initialize(**args) ⇒ Command
Returns a new instance of Command.
1165 1166 1167 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1165 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
1135 1136 1137 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1135 def args @args end |
#dir ⇒ String
Working directory (relative to project source root) used when running this
command.
Corresponds to the JSON property dir
1141 1142 1143 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1141 def dir @dir end |
#env ⇒ Array<String>
Environment variables set before running this command.
Corresponds to the JSON property env
1146 1147 1148 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1146 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
1152 1153 1154 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1152 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
1158 1159 1160 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1158 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
1163 1164 1165 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1163 def wait_for @wait_for end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1170 1171 1172 1173 1174 1175 1176 1177 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1170 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 |