Secret Manager V1beta1 Client - Class UpdateSecretRequest (1.9.7)

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

Request message for SecretManagerService.UpdateSecret.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ secret Google\Cloud\SecretManager\V1beta1\Secret

Required. Secret with updated field values.

↳ update_mask Google\Protobuf\FieldMask

Required. Specifies the fields to be updated.

getSecret

Required. Secret with updated field values.

Generated from protobuf field .google.cloud.secrets.v1beta1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

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

hasSecret

clearSecret

setSecret

Required. Secret with updated field values.

Generated from protobuf field .google.cloud.secrets.v1beta1.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

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

getUpdateMask

Required. Specifies the fields to be updated.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. Specifies the fields to be updated.

Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this