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.
1260 1261 1262 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1260 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
1252 1253 1254 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1252 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
1258 1259 1260 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1258 def protection_level @protection_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1265 1266 1267 1268 |
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1265 def update!(**args) @length_bytes = args[:length_bytes] if args.key?(:length_bytes) @protection_level = args[:protection_level] if args.key?(:protection_level) end |