Class: Google::Apis::CloudbuildV2::StepRef

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

Overview

A reference to a remote Step, i.e. a StepAction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StepRef

Returns a new instance of StepRef.



2791
2792
2793
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2791

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

Instance Attribute Details

#nameString

Optional. Name of the step. Corresponds to the JSON property name

Returns:

  • (String)


2779
2780
2781
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2779

def name
  @name
end

#paramsArray<Google::Apis::CloudbuildV2::Param>

Optional. Parameters used to control the resolution. Corresponds to the JSON property params



2784
2785
2786
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2784

def params
  @params
end

#resolverString

Optional. Type of the resolver. Corresponds to the JSON property resolver

Returns:

  • (String)


2789
2790
2791
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2789

def resolver
  @resolver
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2796
2797
2798
2799
2800
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2796

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @params = args[:params] if args.key?(:params)
  @resolver = args[:resolver] if args.key?(:resolver)
end