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.



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

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2766
2767
2768
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2766

def name
  @name
end

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

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



2771
2772
2773
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2771

def params
  @params
end

#resolverString

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

Returns:

  • (String)


2776
2777
2778
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2776

def resolver
  @resolver
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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