Class: Google::Apis::CloudbuildV2::WorkspaceBinding
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::WorkspaceBinding
- 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
-
#name ⇒ String
Name of the workspace.
-
#secret ⇒ Google::Apis::CloudbuildV2::SecretVolumeSource
Secret Volume Source.
-
#sub_path ⇒ String
Optional.
-
#volume_claim ⇒ Google::Apis::CloudbuildV2::VolumeClaim
VolumeClaim is a user's request for a volume.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkspaceBinding
constructor
A new instance of WorkspaceBinding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkspaceBinding
Returns a new instance of WorkspaceBinding.
2949 2950 2951 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2949 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the workspace.
Corresponds to the JSON property name
2930 2931 2932 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2930 def name @name end |
#secret ⇒ Google::Apis::CloudbuildV2::SecretVolumeSource
Secret Volume Source.
Corresponds to the JSON property secret
2935 2936 2937 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2935 def secret @secret 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
2942 2943 2944 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2942 def sub_path @sub_path end |
#volume_claim ⇒ Google::Apis::CloudbuildV2::VolumeClaim
VolumeClaim is a user's request for a volume.
Corresponds to the JSON property volumeClaim
2947 2948 2949 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2947 def volume_claim @volume_claim end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2954 2955 2956 2957 2958 2959 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2954 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 |