Class: Google::Apis::CloudbuildV2::WorkspaceBinding

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

WorkspaceBinding maps a workspace to a Volume. PipelineRef can be used to refer to a specific instance of a Pipeline.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkspaceBinding

Returns a new instance of WorkspaceBinding.



2847
2848
2849
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2847

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

Instance Attribute Details

#nameString

Name of the workspace. Corresponds to the JSON property name

Returns:

  • (String)


2828
2829
2830
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2828

def name
  @name
end

#secretGoogle::Apis::CloudbuildV2::SecretVolumeSource

Secret Volume Source. Corresponds to the JSON property secret



2833
2834
2835
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2833

def secret
  @secret
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)


2840
2841
2842
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2840

def sub_path
  @sub_path
end

#volume_claimGoogle::Apis::CloudbuildV2::VolumeClaim

VolumeClaim is a user's request for a volume. Corresponds to the JSON property volumeClaim



2845
2846
2847
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2845

def volume_claim
  @volume_claim
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2852
2853
2854
2855
2856
2857
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2852

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