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.
-
#sub_path ⇒ String
Optional.
-
#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.
3125 3126 3127 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3125 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
3111 3112 3113 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3111 def name @name end |
#sub_path ⇒ String
Optional. SubPath is optionally a directory on the volume which should be used
for this binding (i.e. the volume will be mounted at this sub directory). +
optional
Corresponds to the JSON property subPath
3118 3119 3120 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3118 def sub_path @sub_path end |
#workspace ⇒ String
Name of the workspace declared by the pipeline.
Corresponds to the JSON property workspace
3123 3124 3125 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3123 def workspace @workspace end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3130 3131 3132 3133 3134 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3130 def update!(**args) @name = args[:name] if args.key?(:name) @sub_path = args[:sub_path] if args.key?(:sub_path) @workspace = args[:workspace] if args.key?(:workspace) end |