Secret Manager V1beta1 Client - Class AddSecretVersionRequest (1.9.7)

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

Request message for SecretManagerService.AddSecretVersion.

Generated from protobuf message google.cloud.secrets.v1beta1.AddSecretVersionRequest

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\V1beta1\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/*.

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setParent

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

Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPayload

Required. The secret payload of the SecretVersion.

Generated from protobuf field .google.cloud.secrets.v1beta1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

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

hasPayload

clearPayload

setPayload

Required. The secret payload of the SecretVersion.

Generated from protobuf field .google.cloud.secrets.v1beta1.SecretPayload payload = 2 [(.google.api.field_behavior) = REQUIRED];

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