Interface SecretVolume.SecretVersionOrBuilder (2.51.0)

publicstaticinterface SecretVolume.SecretVersionOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getPath()

publicabstractStringgetPath()

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.

string path = 2;

Returns
Type Description
String

The path.

getPathBytes()

publicabstractByteStringgetPathBytes()

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.

string path = 2;

Returns
Type Description
ByteString

The bytes for path.

getVersion()

publicabstractStringgetVersion()

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.

string version = 1;

Returns
Type Description
String

The version.

getVersionBytes()

publicabstractByteStringgetVersionBytes()

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.

string version = 1;

Returns
Type Description
ByteString

The bytes for version.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.