Class: Google::Apis::SqladminV1::MaintenanceWindow
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::MaintenanceWindow
- 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
-
#day ⇒ Fixnum
Day of week -
MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY, orSUNDAY. -
#hour ⇒ Fixnum
Hour of day - 0 to 23.
-
#kind ⇒ String
This is always
sql#maintenanceWindow. -
#update_track ⇒ String
Maintenance timing settings:
canary,stable, orweek5.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MaintenanceWindow
constructor
A new instance of MaintenanceWindow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MaintenanceWindow
Returns a new instance of MaintenanceWindow.
3736 3737 3738 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3736 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day ⇒ Fixnum
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
3717 3718 3719 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3717 def day @day end |
#hour ⇒ Fixnum
Hour of day - 0 to 23. Specify in the UTC time zone.
Corresponds to the JSON property hour
3722 3723 3724 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3722 def hour @hour end |
#kind ⇒ String
This is always sql#maintenanceWindow.
Corresponds to the JSON property kind
3727 3728 3729 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3727 def kind @kind end |
#update_track ⇒ String
Maintenance timing settings: canary, stable, or week5. For more
information, see About maintenance on Cloud SQL instances.
Corresponds to the JSON property updateTrack
3734 3735 3736 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3734 def update_track @update_track end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3741 3742 3743 3744 3745 3746 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 3741 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 |