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
Output only.
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.
2048 2049 2050 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2048 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
2040 2041 2042 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2040 def secret_name @secret_name end |
#secret_version ⇒ String
Output only. Resource name of the SecretVersion. In format: projects//secrets/
*/versions/
Corresponds to the JSON property secretVersion
2046 2047 2048 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2046 def secret_version @secret_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2053 2054 2055 2056 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2053 def update!(**args) @secret_name = args[:secret_name] if args.key?(:secret_name) @secret_version = args[:secret_version] if args.key?(:secret_version) end |