public sealed class GenerateRandomBytesRequest : IMessage<GenerateRandomBytesRequest>, IEquatable<GenerateRandomBytesRequest>, IDeepCloneable<GenerateRandomBytesRequest>, IBufferMessage, IMessage
Request message for [KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].
Implements
IMessage<GenerateRandomBytesRequest>, IEquatable<GenerateRandomBytesRequest>, IDeepCloneable<GenerateRandomBytesRequest>, IBufferMessage, IMessageNamespace
Google.Cloud.Kms.V1Assembly
Google.Cloud.Kms.V1.dll
Constructors
GenerateRandomBytesRequest()
public GenerateRandomBytesRequest()
GenerateRandomBytesRequest(GenerateRandomBytesRequest)
public GenerateRandomBytesRequest(GenerateRandomBytesRequest other)
Parameter | |
---|---|
Name | Description |
other | GenerateRandomBytesRequest |
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 | |
---|---|
Type | Description |
System.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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ProtectionLevel |