Google Cloud Ai Platform V1 Client - Class SecretRef (1.22.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class SecretRef.

Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable.

Generated from protobuf message google.cloud.aiplatform.v1.SecretRef

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ secret string

Required. The name of the secret in Cloud Secret Manager. Format: {secret_name}.

↳ version string

The Cloud Secret Manager secret version. Can be 'latest' for the latest version, an integer for a specific version, or a version alias.

getSecret

Required. The name of the secret in Cloud Secret Manager.

Format: {secret_name}.

Returns
Type Description
string

setSecret

Required. The name of the secret in Cloud Secret Manager.

Format: {secret_name}.

Parameter
Name Description
var string
Returns
Type Description
$this

getVersion

The Cloud Secret Manager secret version.

Can be 'latest' for the latest version, an integer for a specific version, or a version alias.

Returns
Type Description
string

setVersion

The Cloud Secret Manager secret version.

Can be 'latest' for the latest version, an integer for a specific version, or a version alias.

Parameter
Name Description
var string
Returns
Type Description
$this