Class: Google::Apis::SqlV1beta4::MaintenanceWindow
- Inherits:
-
Object
- Object
- Google::Apis::SqlV1beta4::MaintenanceWindow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sql_v1beta4/classes.rb,
generated/google/apis/sql_v1beta4/representations.rb,
generated/google/apis/sql_v1beta4/representations.rb
Overview
Maintenance window. This specifies when a v2 Cloud SQL instance should preferably be 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MaintenanceWindow
Returns a new instance of MaintenanceWindow.
1716 1717 1718 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1716 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
1696 1697 1698 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1696 def day @day end |
#hour ⇒ Fixnum
hour of day - 0 to 23.
Corresponds to the JSON property hour
1701 1702 1703 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1701 def hour @hour end |
#kind ⇒ String
This is always sql#maintenanceWindow
.
Corresponds to the JSON property kind
1706 1707 1708 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1706 def kind @kind end |
#update_track ⇒ String
Maintenance timing setting: canary
(Earlier) or
stable
(Later).
Learn more.
Corresponds to the JSON property updateTrack
1714 1715 1716 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1714 def update_track @update_track end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1721 1722 1723 1724 1725 1726 |
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 1721 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 |