Secret Manager v1 API - Class SecretPayload (2.2.0)

public sealed class SecretPayload : IMessage<SecretPayload>, IEquatable<SecretPayload>, IDeepCloneable<SecretPayload>, IBufferMessage, IMessage

Reference documentation and code samples for the Secret Manager v1 API class SecretPayload.

A secret payload resource in the Secret Manager API. This contains the sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].

Inheritance

object > SecretPayload

Namespace

Google.Cloud.SecretManager.V1

Assembly

Google.Cloud.SecretManager.V1.dll

Constructors

SecretPayload()

public SecretPayload()

SecretPayload(SecretPayload)

public SecretPayload(SecretPayload other)
Parameter
NameDescription
otherSecretPayload

Properties

Data

public ByteString Data { get; set; }

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

Property Value
TypeDescription
ByteString

DataCrc32C

public long DataCrc32C { get; set; }

Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using the crc32c checksum and store it to include in future [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the [SecretManagerService][google.cloud.secretmanager.v1.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

Property Value
TypeDescription
long

HasDataCrc32C

public bool HasDataCrc32C { get; }

Gets whether the "data_crc32c" field is set

Property Value
TypeDescription
bool