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.
1331 1332 1333 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1331 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
1323 1324 1325 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1323 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
1329 1330 1331 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1329 def protection_level @protection_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1336 1337 1338 1339 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1336 def update!(**args) @length_bytes = args[:length_bytes] if args.key?(:length_bytes) @protection_level = args[:protection_level] if args.key?(:protection_level) end |