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.



1600
1601
1602
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 1600

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



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