Class: Google::Apis::CloudkmsV1::GenerateRandomBytesRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::GenerateRandomBytesRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudkms_v1/classes.rb,
lib/google/apis/cloudkms_v1/representations.rb,
lib/google/apis/cloudkms_v1/representations.rb
Overview
Request message for KeyManagementService.GenerateRandomBytes.
Instance Attribute Summary collapse
-
#length_bytes ⇒ Fixnum
The length in bytes of the amount of randomness to retrieve.
-
#protection_level ⇒ String
The ProtectionLevel to use when generating the random data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenerateRandomBytesRequest
constructor
A new instance of GenerateRandomBytesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GenerateRandomBytesRequest
Returns a new instance of GenerateRandomBytesRequest.
1317 1318 1319 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1317 def initialize(**args) update!(**args) end |
Instance Attribute Details
#length_bytes ⇒ Fixnum
The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes,
maximum 1024 bytes.
Corresponds to the JSON property lengthBytes
1309 1310 1311 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1309 def length_bytes @length_bytes end |
#protection_level ⇒ String
The ProtectionLevel to use when generating the random data. Currently, only
HSM protection level is supported.
Corresponds to the JSON property protectionLevel
1315 1316 1317 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1315 def protection_level @protection_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1322 1323 1324 1325 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1322 def update!(**args) @length_bytes = args[:length_bytes] if args.key?(:length_bytes) @protection_level = args[:protection_level] if args.key?(:protection_level) end |