Class: Google::Apis::AlloydbV1alpha::MaintenanceUpdatePolicy
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::MaintenanceUpdatePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
MaintenanceUpdatePolicy defines the policy for system updates.
Instance Attribute Summary collapse
-
#deny_maintenance_periods ⇒ Array<Google::Apis::AlloydbV1alpha::DenyMaintenancePeriod>
Periods to deny maintenance.
-
#maintenance_windows ⇒ Array<Google::Apis::AlloydbV1alpha::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.
2654 2655 2656 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2654 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deny_maintenance_periods ⇒ Array<Google::Apis::AlloydbV1alpha::DenyMaintenancePeriod>
Periods to deny maintenance. Currently limited to 1.
Corresponds to the JSON property denyMaintenancePeriods
2647 2648 2649 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2647 def deny_maintenance_periods @deny_maintenance_periods end |
#maintenance_windows ⇒ Array<Google::Apis::AlloydbV1alpha::MaintenanceWindow>
Preferred windows to perform maintenance. Currently limited to 1.
Corresponds to the JSON property maintenanceWindows
2652 2653 2654 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2652 def maintenance_windows @maintenance_windows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2659 2660 2661 2662 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2659 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 |