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.



1594
1595
1596
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1594

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



1592
1593
1594
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1592

def maintenance_windows
  @maintenance_windows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1599
1600
1601
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1599

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