Class: Google::Apis::CloudbuildV2::WorkspacePipelineTaskBinding
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::WorkspacePipelineTaskBinding
- 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
WorkspacePipelineTaskBinding maps workspaces from the PipelineSpec to the workspaces declared in the Task.
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the workspace as declared by the task.
-
#workspace ⇒ String
Name of the workspace declared by the pipeline.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkspacePipelineTaskBinding
constructor
A new instance of WorkspacePipelineTaskBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkspacePipelineTaskBinding
Returns a new instance of WorkspacePipelineTaskBinding.
2704 2705 2706 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2704 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the workspace as declared by the task.
Corresponds to the JSON property name
2697 2698 2699 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2697 def name @name end |
#workspace ⇒ String
Name of the workspace declared by the pipeline.
Corresponds to the JSON property workspace
2702 2703 2704 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2702 def workspace @workspace end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2709 2710 2711 2712 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2709 def update!(**args) @name = args[:name] if args.key?(:name) @workspace = args[:workspace] if args.key?(:workspace) end |