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.



2639
2640
2641
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2639

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

Instance Attribute Details

#nameString

Name of the workspace. Corresponds to the JSON property name

Returns:

  • (String)


2627
2628
2629
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2627

def name
  @name
end

#secretGoogle::Apis::CloudbuildV2::SecretVolumeSource

Secret Volume Source. Corresponds to the JSON property secret



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

def secret
  @secret
end

#volume_claimGoogle::Apis::CloudbuildV2::VolumeClaim

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



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

def volume_claim
  @volume_claim
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2644
2645
2646
2647
2648
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2644

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