Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class SecretEnvVar.
Represents an environment variable where the value is a secret in Cloud Secret Manager.
Generated from protobuf message google.cloud.aiplatform.v1.SecretEnvVar
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Name of the secret environment variable. |
↳ secret_ref |
SecretRef
Required. Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable. |
getName
Required. Name of the secret environment variable.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. Name of the secret environment variable.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSecretRef
Required. Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable.
| Returns | |
|---|---|
| Type | Description |
SecretRef|null |
|
hasSecretRef
clearSecretRef
setSecretRef
Required. Reference to a secret stored in the Cloud Secret Manager that will provide the value for this environment variable.
| Parameter | |
|---|---|
| Name | Description |
var |
SecretRef
|
| Returns | |
|---|---|
| Type | Description |
$this |
|