Class GenerateRandomBytesRequest (2.6.0)

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

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. Defaults to [SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].

Property Value
TypeDescription
ProtectionLevel