Google Cloud Key Management Service v1 API - Class GenerateRandomBytesRequest (3.8.0)

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

Reference documentation and code samples for the Google Cloud Key Management Service v1 API class GenerateRandomBytesRequest.

Request message for [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].

Inheritance

object > GenerateRandomBytesRequest

Namespace

Google.Cloud.Kms.V1

Assembly

Google.Cloud.Kms.V1.dll

Constructors

GenerateRandomBytesRequest()

public GenerateRandomBytesRequest()

GenerateRandomBytesRequest(GenerateRandomBytesRequest)

public GenerateRandomBytesRequest(GenerateRandomBytesRequest other)
Parameter
NameDescription
otherGenerateRandomBytesRequest

Properties

LengthBytes

public int LengthBytes { get; set; }

The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.

Property Value
TypeDescription
int

Location

public string Location { get; set; }

The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".

Property Value
TypeDescription
string

ProtectionLevel

public ProtectionLevel ProtectionLevel { get; set; }

The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when generating the random data. Currently, only [HSM][google.cloud.kms.v1.ProtectionLevel.HSM] protection level is supported.

Property Value
TypeDescription
ProtectionLevel