Class: Google::Apis::CloudbuildV2::SecretVolumeSource

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

Secret Volume Source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecretVolumeSource

Returns a new instance of SecretVolumeSource.



2070
2071
2072
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2070

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

Instance Attribute Details

#secret_nameString

Name of the secret referenced by the WorkspaceBinding. Corresponds to the JSON property secretName

Returns:

  • (String)


2062
2063
2064
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2062

def secret_name
  @secret_name
end

#secret_versionString

Output only. Resource name of the SecretVersion. In format: projects//secrets/ */versions/ Corresponds to the JSON property secretVersion

Returns:

  • (String)


2068
2069
2070
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2068

def secret_version
  @secret_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2075
2076
2077
2078
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2075

def update!(**args)
  @secret_name = args[:secret_name] if args.key?(:secret_name)
  @secret_version = args[:secret_version] if args.key?(:secret_version)
end