Class: Google::Apis::CloudfunctionsV2::SecretVersion

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudfunctions_v2/classes.rb,
lib/google/apis/cloudfunctions_v2/representations.rb,
lib/google/apis/cloudfunctions_v2/representations.rb

Overview

Configuration for a single version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecretVersion

Returns a new instance of SecretVersion.



1957
1958
1959
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1957

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

Instance Attribute Details

#pathString

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo. Corresponds to the JSON property path

Returns:

  • (String)


1948
1949
1950
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1948

def path
  @path
end

#versionString

Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately. Corresponds to the JSON property version

Returns:

  • (String)


1955
1956
1957
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1955

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1962
1963
1964
1965
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1962

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