Secret Manager V1 Client - Class SecretPayload (1.9.7)

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

A secret payload resource in the Secret Manager API. This contains the sensitive secret payload that is associated with a SecretVersion.

Generated from protobuf message google.cloud.secretmanager.v1.SecretPayload

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ data string

The secret data. Must be no larger than 64KiB.

↳ data_crc32c int|string

Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the SecretManagerService will generate and store one for you. The CRC32C value is encoded as a Int64 for compatibility, and can be safely downconverted to uint32 in languages that support this type. https://cloud.google.com/apis/design/design_patterns#integer_types

getData

The secret data. Must be no larger than 64KiB.

Generated from protobuf field bytes data = 1;

Returns
TypeDescription
string

setData

The secret data. Must be no larger than 64KiB.

Generated from protobuf field bytes data = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDataCrc32C

Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the SecretManagerService will generate and store one for you.

The CRC32C value is encoded as a Int64 for compatibility, and can be safely downconverted to uint32 in languages that support this type. https://cloud.google.com/apis/design/design_patterns#integer_types

Generated from protobuf field optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int|string

hasDataCrc32C

clearDataCrc32C

setDataCrc32C

Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the SecretManagerService will generate and store one for you.

The CRC32C value is encoded as a Int64 for compatibility, and can be safely downconverted to uint32 in languages that support this type. https://cloud.google.com/apis/design/design_patterns#integer_types

Generated from protobuf field optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this