Google Cloud Ai Platform V1 Client - Class SecretRef (1.33.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

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年11月08日 UTC.