Secret Manager V1 Client - Class SecretType (2.4.0)

Reference documentation and code samples for the Secret Manager V1 Client class SecretType.

This defines the various values of the type of secret can be.

Protobuf type google.cloud.secretmanager.v1.Secret.SecretType

Namespace

Google \ Cloud \ SecretManager \ V1 \ Secret

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

SECRET_TYPE_UNSPECIFIED

Value: 0

Applicable to all secrets which do not have any restriction on the SecretVersions.

Generated from protobuf enum SECRET_TYPE_UNSPECIFIED = 0;

CLOUD_SQL_DB_CREDENTIALS

Value: 1

Applicable to secrets which are used for the managed rotation feature for Cloud SQL Single User.

Generated from protobuf enum CLOUD_SQL_DB_CREDENTIALS = 1;

ACCESS_KEY

Value: 2

Applicable to secrets where the payload contains an access key.

Generated from protobuf enum ACCESS_KEY = 2;

CERTIFICATE

Value: 3

Applicable to secrets where the payload contains a certificate.

Generated from protobuf enum CERTIFICATE = 3;

OTHER_DB_CREDENTIALS

Value: 4

Applicable to secrets where the payload contains database credentials.

Generated from protobuf enum OTHER_DB_CREDENTIALS = 4;

OTHER

Value: 50

Applicable to secrets whose type doesn't belong to any of the above defined types.

Generated from protobuf enum OTHER = 50;