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
-
#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.
1600 1601 1602 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1600 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maintenance_windows ⇒ Array<Google::Apis::AlloydbV1beta::MaintenanceWindow>
Preferred windows to perform maintenance. Currently limited to 1.
Corresponds to the JSON property maintenanceWindows
1598 1599 1600 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1598 def maintenance_windows @maintenance_windows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1605 1606 1607 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1605 def update!(**args) @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows) end |