Class: Google::Apis::CloudbuildV2::TaskRef

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

TaskRef can be used to refer to a specific instance of a task. PipelineRef can be used to refer to a specific instance of a Pipeline.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskRef

Returns a new instance of TaskRef.



2205
2206
2207
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2205

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

Instance Attribute Details

#custom_taskString

Optional. The CustomTask definition to use. Corresponds to the JSON property customTask

Returns:

  • (String)


2185
2186
2187
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2185

def custom_task
  @custom_task
end

#nameString

Name of the task. Corresponds to the JSON property name

Returns:

  • (String)


2190
2191
2192
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2190

def name
  @name
end

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

Params contains the parameters used to identify the referenced Tekton resource. Example entries might include "repo" or "path" but the set of params ultimately depends on the chosen resolver. Corresponds to the JSON property params



2197
2198
2199
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2197

def params
  @params
end

#resolverString

Resolver is the name of the resolver that should perform resolution of the referenced Tekton resource. Corresponds to the JSON property resolver

Returns:

  • (String)


2203
2204
2205
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2203

def resolver
  @resolver
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2210
2211
2212
2213
2214
2215
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2210

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