Secret Manager V1beta2 Client - Class UpdateSecretRequest (1.15.4)

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

Request message for SecretManagerService.UpdateSecret.

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

Namespace

Google \ Cloud \ SecretManager \ V1beta2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ secret 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.

Returns
Type Description
Secret|null

hasSecret

clearSecret

setSecret

Required. Secret with updated field values.

Parameter
Name Description
var Secret
Returns
Type Description
$this

getUpdateMask

Required. Specifies the fields to be updated.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. Specifies the fields to be updated.

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
secret Secret

Required. Secret with updated field values.

updateMask Google\Protobuf\FieldMask

Required. Specifies the fields to be updated.

Returns
Type Description
UpdateSecretRequest