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 v2 Cloud SQL instance should preferably be restarted for system maintenance puruposes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MaintenanceWindow

Returns a new instance of MaintenanceWindow.


1168
1169
1170
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1168

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)

1151
1152
1153
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1151

def day
  @day
end

#hourFixnum

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

Returns:

  • (Fixnum)

1156
1157
1158
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1156

def hour
  @hour
end

#kindString

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

Returns:

  • (String)

1161
1162
1163
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1161

def kind
  @kind
end

#update_trackString

Corresponds to the JSON property updateTrack

Returns:

  • (String)

1166
1167
1168
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1166

def update_track
  @update_track
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1173
1174
1175
1176
1177
1178
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 1173

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