Secret Manager V1 Client - Class AccessSecretVersionResponse (1.10.4)

Reference documentation and code samples for the Secret Manager V1 Client class AccessSecretVersionResponse.

Response message for SecretManagerService.AccessSecretVersion.

Generated from protobuf message google.cloud.secretmanager.v1.AccessSecretVersionResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

↳ payload Google\Cloud\SecretManager\V1\SecretPayload

Secret payload

getName

The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

Returns
TypeDescription
string

setName

The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPayload

Secret payload

Returns
TypeDescription
Google\Cloud\SecretManager\V1\SecretPayload|null

hasPayload

clearPayload

setPayload

Secret payload

Parameter
NameDescription
var Google\Cloud\SecretManager\V1\SecretPayload
Returns
TypeDescription
$this