Class: Google::Apis::CloudbuildV2::PipelineRef

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

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

Returns a new instance of PipelineRef.



1482
1483
1484
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1482

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

Instance Attribute Details

#nameString

Name of the Pipeline. Corresponds to the JSON property name

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1467

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



1474
1475
1476
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1474

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)


1480
1481
1482
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1480

def resolver
  @resolver
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1487
1488
1489
1490
1491
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1487

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