Secret Manager V1beta2 Client - Class AddSecretVersionRequest (2.0.1)

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

Request message for SecretManagerService.AddSecretVersion.

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

Namespace

Google \ Cloud \ SecretManager \ V1beta2

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

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

↳ payloadSecretPayload

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/* or projects/*/locations/*/secrets/*.

Returns
TypeDescription
string

setParent

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPayload

Required. The secret payload of the SecretVersion.

Returns
TypeDescription
SecretPayload|null

hasPayload

clearPayload

setPayload

Required. The secret payload of the SecretVersion.

Parameter
NameDescription
varSecretPayload
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parentstring

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

payloadSecretPayload

Required. The secret payload of the SecretVersion.

Returns
TypeDescription
AddSecretVersionRequest