Class: Google::Apis::SqladminV1beta4::MaintenanceWindow

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

Overview

Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenanceWindow

Returns a new instance of MaintenanceWindow.



1864
1865
1866
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1864

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

Instance Attribute Details

#dayFixnum

day of week (1-7), starting on Monday. Corresponds to the JSON property day

Returns:

  • (Fixnum)


1847
1848
1849
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1847

def day
  @day
end

#hourFixnum

hour of day - 0 to 23. Corresponds to the JSON property hour

Returns:

  • (Fixnum)


1852
1853
1854
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1852

def hour
  @hour
end

#kindString

This is always sql#maintenanceWindow. Corresponds to the JSON property kind

Returns:

  • (String)


1857
1858
1859
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1857

def kind
  @kind
end

#update_trackString

Maintenance timing setting: canary (Earlier) or stable (Later). Learn more. Corresponds to the JSON property updateTrack

Returns:

  • (String)


1862
1863
1864
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1862

def update_track
  @update_track
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1869
1870
1871
1872
1873
1874
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1869

def update!(**args)
  @day = args[:day] if args.key?(:day)
  @hour = args[:hour] if args.key?(:hour)
  @kind = args[:kind] if args.key?(:kind)
  @update_track = args[:update_track] if args.key?(:update_track)
end