Secret Manager V1beta2 Client - Class Replica (2.0.2)

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

Represents a Replica for this Secret.

Generated from protobuf message google.cloud.secretmanager.v1beta2.Replication.UserManaged.Replica

Namespace

Google \ Cloud \ SecretManager \ V1beta2 \ Replication \ UserManaged

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ locationstring

The canonical IDs of the location to replicate data. For example: "us-east1".

↳ customer_managed_encryptionGoogle\Cloud\SecretManager\V1beta2\CustomerManagedEncryption

Optional. The customer-managed encryption configuration of the User-Managed Replica. If no configuration is provided, Google-managed default encryption is used. Updates to the Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.

getLocation

The canonical IDs of the location to replicate data.

For example: "us-east1".

Returns
TypeDescription
string

setLocation

The canonical IDs of the location to replicate data.

For example: "us-east1".

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCustomerManagedEncryption

Optional. The customer-managed encryption configuration of the User-Managed Replica. If no configuration is provided, Google-managed default encryption is used.

Updates to the Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.

Returns
TypeDescription
Google\Cloud\SecretManager\V1beta2\CustomerManagedEncryption|null

hasCustomerManagedEncryption

clearCustomerManagedEncryption

setCustomerManagedEncryption

Optional. The customer-managed encryption configuration of the User-Managed Replica. If no configuration is provided, Google-managed default encryption is used.

Updates to the Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions.

Parameter
NameDescription
varGoogle\Cloud\SecretManager\V1beta2\CustomerManagedEncryption
Returns
TypeDescription
$this