Class: Google::Apis::CloudbuildV2::SecretVolumeSource
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::SecretVolumeSource
- 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
Secret Volume Source.
Instance Attribute Summary collapse
-
#secret_name ⇒ String
Name of the secret referenced by the WorkspaceBinding.
-
#secret_version ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecretVolumeSource
constructor
A new instance of SecretVolumeSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecretVolumeSource
Returns a new instance of SecretVolumeSource.
2374 2375 2376 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2374 def initialize(**args) update!(**args) end |
Instance Attribute Details
#secret_name ⇒ String
Name of the secret referenced by the WorkspaceBinding.
Corresponds to the JSON property secretName
2366 2367 2368 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2366 def secret_name @secret_name end |
#secret_version ⇒ String
Optional. Resource name of the SecretVersion. In format: projects//secrets//
versions/*
Corresponds to the JSON property secretVersion
2372 2373 2374 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2372 def secret_version @secret_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2379 2380 2381 2382 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2379 def update!(**args) @secret_name = args[:secret_name] if args.key?(:secret_name) @secret_version = args[:secret_version] if args.key?(:secret_version) end |