Class: Google::Apis::CloudbuildV2::WorkspacePipelineTaskBinding

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

WorkspacePipelineTaskBinding maps workspaces from the PipelineSpec to the workspaces declared in the Task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkspacePipelineTaskBinding

Returns a new instance of WorkspacePipelineTaskBinding.



2631
2632
2633
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2631

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

Instance Attribute Details

#nameString

Name of the workspace as declared by the task. Corresponds to the JSON property name

Returns:

  • (String)


2624
2625
2626
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2624

def name
  @name
end

#workspaceString

Name of the workspace declared by the pipeline. Corresponds to the JSON property workspace

Returns:

  • (String)


2629
2630
2631
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2629

def workspace
  @workspace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2636
2637
2638
2639
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2636

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