Class: Google::Cloud::Functions::V2::SecretVolume
- Inherits:
-
Object
- Object
- Google::Cloud::Functions::V2::SecretVolume
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/functions/v2/functions.rb
Overview
Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
Defined Under Namespace
Classes: SecretVersion
Instance Attribute Summary collapse
-
#mount_path ⇒ ::String
The path within the container to mount the secret volume.
-
#project_id ⇒ ::String
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.
-
#secret ⇒ ::String
Name of the secret in secret manager (not the full resource name).
-
#versions ⇒ ::Array<::Google::Cloud::Functions::V2::SecretVolume::SecretVersion>
List of secret versions to mount for this secret.
Instance Attribute Details
#mount_path ⇒ ::String
Returns The path within the container to mount the secret volume. For example,
setting the mount_path as /etc/secrets
would mount the secret value files
under the /etc/secrets
directory. This directory will also be completely
shadowed and unavailable to mount any other secrets.
Recommended mount path: /etc/secrets.
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'proto_docs/google/cloud/functions/v2/functions.rb', line 573 class SecretVolume include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Configuration for a single version. # @!attribute [rw] version # @return [::String] # 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. # @!attribute [rw] path # @return [::String] # 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`. class SecretVersion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#project_id ⇒ ::String
Returns Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'proto_docs/google/cloud/functions/v2/functions.rb', line 573 class SecretVolume include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Configuration for a single version. # @!attribute [rw] version # @return [::String] # 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. # @!attribute [rw] path # @return [::String] # 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`. class SecretVersion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#secret ⇒ ::String
Returns Name of the secret in secret manager (not the full resource name).
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'proto_docs/google/cloud/functions/v2/functions.rb', line 573 class SecretVolume include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Configuration for a single version. # @!attribute [rw] version # @return [::String] # 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. # @!attribute [rw] path # @return [::String] # 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`. class SecretVersion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#versions ⇒ ::Array<::Google::Cloud::Functions::V2::SecretVolume::SecretVersion>
Returns List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'proto_docs/google/cloud/functions/v2/functions.rb', line 573 class SecretVolume include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Configuration for a single version. # @!attribute [rw] version # @return [::String] # 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. # @!attribute [rw] path # @return [::String] # 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`. class SecretVersion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |