Google Cloud Key Management Service v1 API - Class GenerateRandomBytesRequest (3.1.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
Int32

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