Secret Manager V1 Client - Class AddSecretVersionRequest (2.1.1)

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

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

Returns
Type
Description
string

setParent

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getPayload

Required. The secret payload of the SecretVersion .

Returns
Type
Description

hasPayload

clearPayload

setPayload

Required. The secret payload of the SecretVersion .

Parameter
Name
Description
Returns
Type
Description
$this

static::build

Parameters
Name
Description
parent
string

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.

payload
SecretPayload

Required. The secret payload of the SecretVersion .

Returns
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: