Secret Manager V1 Client - Class AddSecretVersionRequest (1.13.0)

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

Request message for SecretManagerService.AddSecretVersion.

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

Namespace

Google \ Cloud \ SecretManager \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/*.

↳ payload Google\Cloud\SecretManager\V1\SecretPayload

Required. The secret payload of the SecretVersion.

getParent

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/*.

Returns
TypeDescription
string

setParent

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPayload

Required. The secret payload of the SecretVersion.

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

hasPayload

clearPayload

setPayload

Required. The secret payload of the SecretVersion.

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

static::build

Parameters
NameDescription
parent string

Required. The resource name of the Secret to associate with the SecretVersion in the format projects/*/secrets/*. Please see Google\Cloud\SecretManager\V1\SecretManagerServiceClient::secretName() for help formatting this field.

payload Google\Cloud\SecretManager\V1\SecretPayload

Required. The secret payload of the SecretVersion.

Returns
TypeDescription
Google\Cloud\SecretManager\V1\AddSecretVersionRequest