Class: Google::Apis::AlloydbV1beta::MaintenanceUpdatePolicy
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::MaintenanceUpdatePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb
Overview
MaintenanceUpdatePolicy defines the policy for system updates.
Instance Attribute Summary collapse
-
#deny_maintenance_periods ⇒ Array<Google::Apis::AlloydbV1beta::DenyMaintenancePeriod>
Periods to deny maintenance.
-
#maintenance_windows ⇒ Array<Google::Apis::AlloydbV1beta::MaintenanceWindow>
Preferred windows to perform maintenance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MaintenanceUpdatePolicy
constructor
A new instance of MaintenanceUpdatePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MaintenanceUpdatePolicy
Returns a new instance of MaintenanceUpdatePolicy.
2620 2621 2622 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2620 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deny_maintenance_periods ⇒ Array<Google::Apis::AlloydbV1beta::DenyMaintenancePeriod>
Periods to deny maintenance. Currently limited to 1.
Corresponds to the JSON property denyMaintenancePeriods
2613 2614 2615 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2613 def deny_maintenance_periods @deny_maintenance_periods end |
#maintenance_windows ⇒ Array<Google::Apis::AlloydbV1beta::MaintenanceWindow>
Preferred windows to perform maintenance. Currently limited to 1.
Corresponds to the JSON property maintenanceWindows
2618 2619 2620 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2618 def maintenance_windows @maintenance_windows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2625 2626 2627 2628 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2625 def update!(**args) @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods) @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows) end |