Class: Google::Apis::AlloydbV1::MaintenanceUpdatePolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb

Overview

MaintenanceUpdatePolicy defines the policy for system updates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenanceUpdatePolicy

Returns a new instance of MaintenanceUpdatePolicy.



1631
1632
1633
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1631

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#maintenance_windowsArray<Google::Apis::AlloydbV1::MaintenanceWindow>

Preferred windows to perform maintenance. Currently limited to 1. Corresponds to the JSON property maintenanceWindows



1629
1630
1631
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1629

def maintenance_windows
  @maintenance_windows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1636
1637
1638
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1636

def update!(**args)
  @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows)
end