Google Cloud Datastream V1 Client - Class Secret (2.7.0)

Reference documentation and code samples for the Google Cloud Datastream V1 Client class Secret.

A confidential piece of information where the actual value is either directly specified in the message as a raw string or stored in GCP secret manager.

Generated from protobuf message google.cloud.datastream.v1.Secret

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ raw_value string

Optional. Input only. The actual raw value of the secret as plain text.

↳ secret_version string

Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats: * * projects/{project}/locations/{location}/secrets/{secret}/versions/{version} * * projects/{project}/secrets/{secret}/versions/{version}

getRawValue

Optional. Input only. The actual raw value of the secret as plain text.

Returns
Type Description
string

hasRawValue

setRawValue

Optional. Input only. The actual raw value of the secret as plain text.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecretVersion

Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:

  • projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
  • projects/{project}/secrets/{secret}/versions/{version}
Returns
Type Description
string

hasSecretVersion

setSecretVersion

Optional. A Secret Manager resource name storing the actual value of the secret. Supported formats:

  • projects/{project}/locations/{location}/secrets/{secret}/versions/{version}
  • projects/{project}/secrets/{secret}/versions/{version}
Parameter
Name Description
var string
Returns
Type Description
$this

getValue

Returns
Type Description
string