Class: Google::Apis::AlloydbV1beta::MaintenanceUpdatePolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenanceUpdatePolicy

Returns a new instance of MaintenanceUpdatePolicy.



1845
1846
1847
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1845

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

Instance Attribute Details

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

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



1843
1844
1845
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1843

def maintenance_windows
  @maintenance_windows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1850
1851
1852
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1850

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