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.



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

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2760
2761
2762
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2760

def name
  @name
end

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

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



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

def params
  @params
end

#resolverString

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

Returns:

  • (String)


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

def resolver
  @resolver
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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