Class: Google::Apis::SqladminV1::MaintenanceWindow

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/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.



3774
3775
3776
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3774

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

Instance Attribute Details

#dayFixnum

Day of week - MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, or SUNDAY. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where 1 equals Monday. Corresponds to the JSON property day

Returns:

  • (Fixnum)


3755
3756
3757
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3755

def day
  @day
end

#hourFixnum

Hour of day - 0 to 23. Specify in the UTC time zone. Corresponds to the JSON property hour

Returns:

  • (Fixnum)


3760
3761
3762
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3760

def hour
  @hour
end

#kindString

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

Returns:

  • (String)


3765
3766
3767
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3765

def kind
  @kind
end

#update_trackString

Maintenance timing settings: canary, stable, or week5. For more information, see About maintenance on Cloud SQL instances. Corresponds to the JSON property updateTrack

Returns:

  • (String)


3772
3773
3774
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3772

def update_track
  @update_track
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3779
3780
3781
3782
3783
3784
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3779

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