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.



2900
2901
2902
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2900

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)


2886
2887
2888
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2886

def name
  @name
end

#sub_pathString

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

Returns:

  • (String)


2893
2894
2895
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2893

def sub_path
  @sub_path
end

#workspaceString

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

Returns:

  • (String)


2898
2899
2900
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2898

def workspace
  @workspace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2905
2906
2907
2908
2909
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2905

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