Class: Google::Apis::ContaineranalysisV1alpha1::Command

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1alpha1/classes.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

Command describes a step performed as part of the build pipeline.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Command

Returns a new instance of Command.



516
517
518
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 516

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#argsArray<String>

Command-line arguments used when executing this Command. Corresponds to the JSON property args

Returns:

  • (Array<String>)


486
487
488
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 486

def args
  @args
end

#dirString

Working directory (relative to project source root) used when running this Command. Corresponds to the JSON property dir

Returns:

  • (String)


492
493
494
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 492

def dir
  @dir
end

#envArray<String>

Environment variables set before running this Command. Corresponds to the JSON property env

Returns:

  • (Array<String>)


497
498
499
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 497

def env
  @env
end

#idString

Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency. Corresponds to the JSON property id

Returns:

  • (String)


503
504
505
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 503

def id
  @id
end

#nameString

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

Returns:

  • (String)


509
510
511
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 509

def name
  @name
end

#wait_forArray<String>

The ID(s) of the Command(s) that this Command depends on. Corresponds to the JSON property waitFor

Returns:

  • (Array<String>)


514
515
516
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 514

def wait_for
  @wait_for
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



521
522
523
524
525
526
527
528
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 521

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