Class: Google::Apis::CloudbuildV2::PipelineRef
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::PipelineRef
- 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
-
#name ⇒ String
Name of the Pipeline.
-
#params ⇒ Array<Google::Apis::CloudbuildV2::Param>
Params contains the parameters used to identify the referenced Tekton resource.
-
#resolver ⇒ String
Resolver is the name of the resolver that should perform resolution of the referenced Tekton resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PipelineRef
constructor
A new instance of PipelineRef.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PipelineRef
Returns a new instance of PipelineRef.
1336 1337 1338 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the Pipeline.
Corresponds to the JSON property name
1321 1322 1323 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1321 def name @name end |
#params ⇒ Array<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
1328 1329 1330 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1328 def params @params end |
#resolver ⇒ String
Resolver is the name of the resolver that should perform resolution of the
referenced Tekton resource.
Corresponds to the JSON property resolver
1334 1335 1336 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1334 def resolver @resolver end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1341 1342 1343 1344 1345 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1341 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 |