Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/assuredworkloads_v1/classes.rb,
generated/google/apis/assuredworkloads_v1/representations.rb,
generated/google/apis/assuredworkloads_v1/representations.rb
Overview
Settings specific to the Key Management Service.
Instance Attribute Summary collapse
-
#next_rotation_time ⇒ String
Required.
-
#rotation_period ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings
constructor
A new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings
Returns a new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadKmsSettings.
474 475 476 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 474 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_rotation_time ⇒ String
Required. Input only. Immutable. The time at which the Key Management Service
will automatically create a new version of the crypto key and mark it as the
primary.
Corresponds to the JSON property nextRotationTime
465 466 467 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 465 def next_rotation_time @next_rotation_time end |
#rotation_period ⇒ String
Required. Input only. Immutable. [next_rotation_time] will be advanced by this
period when the Key Management Service automatically rotates a key. Must be at
least 24 hours and at most 876,000 hours.
Corresponds to the JSON property rotationPeriod
472 473 474 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 472 def rotation_period @rotation_period end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
479 480 481 482 |
# File 'generated/google/apis/assuredworkloads_v1/classes.rb', line 479 def update!(**args) @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time) @rotation_period = args[:rotation_period] if args.key?(:rotation_period) end |