Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API class Google::Cloud::Kms::V1::GenerateRandomBytesRequest.
Request message for KeyManagementService.GenerateRandomBytes.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#length_bytes
def length_bytes() -> ::Integer
Returns
- (::Integer) — The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.
#length_bytes=
def length_bytes=(value) -> ::Integer
Parameter
- value (::Integer) — The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.
Returns
- (::Integer) — The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.
#location
def location() -> ::String
Returns
- (::String) — The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".
#location=
def location=(value) -> ::String
Parameter
- value (::String) — The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".
Returns
- (::String) — The project-specific location in which to generate random bytes. For example, "projects/my-project/locations/us-central1".
#protection_level
def protection_level() -> ::Google::Cloud::Kms::V1::ProtectionLevel
Returns
- (::Google::Cloud::Kms::V1::ProtectionLevel) — The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.
#protection_level=
def protection_level=(value) -> ::Google::Cloud::Kms::V1::ProtectionLevel
Parameter
- value (::Google::Cloud::Kms::V1::ProtectionLevel) — The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.
Returns
- (::Google::Cloud::Kms::V1::ProtectionLevel) — The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.