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].
Implements
IMessageGenerateRandomBytesRequest, IEquatableGenerateRandomBytesRequest, IDeepCloneableGenerateRandomBytesRequest, IBufferMessage, IMessageNamespace
GoogleGoogle.CloudGoogle.Cloud.KmsV1Assembly
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 |
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 | |
---|---|
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 |