Class: Google::Apis::ContaineranalysisV1beta1::Command

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

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.


709
710
711
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 709

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>)

679
680
681
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 679

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)

685
686
687
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 685

def dir
  @dir
end

#envArray<String>

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

Returns:

  • (Array<String>)

690
691
692
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 690

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)

696
697
698
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 696

def id
  @id
end

#nameString

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

Returns:

  • (String)

702
703
704
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 702

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>)

707
708
709
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 707

def wait_for
  @wait_for
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


714
715
716
717
718
719
720
721
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 714

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