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 (1-7), starting on Monday.
-
#hour ⇒ Fixnum
hour of day - 0 to 23.
-
#kind ⇒ String
This is always
sql#maintenanceWindow. -
#update_track ⇒ String
Maintenance timing setting:
canary(Earlier) orstable(Later).
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.
2480 2481 2482 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day ⇒ Fixnum
day of week (1-7), starting on Monday.
Corresponds to the JSON property day
2461 2462 2463 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2461 def day @day end |
#hour ⇒ Fixnum
hour of day - 0 to 23.
Corresponds to the JSON property hour
2466 2467 2468 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2466 def hour @hour end |
#kind ⇒ String
This is always sql#maintenanceWindow.
Corresponds to the JSON property kind
2471 2472 2473 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2471 def kind @kind end |
#update_track ⇒ String
Maintenance timing setting: canary (Earlier) or stable (Later). Learn
more.
Corresponds to the JSON property updateTrack
2478 2479 2480 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2478 def update_track @update_track end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2485 2486 2487 2488 2489 2490 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2485 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 |