Class: Google::Apis::AlloydbV1::MaintenanceWindow
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::MaintenanceWindow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb
Overview
MaintenanceWindow specifies a preferred day and time for maintenance.
Instance Attribute Summary collapse
-
#day ⇒ String
Preferred day of the week for maintenance, e.g.
-
#start_time ⇒ Google::Apis::AlloydbV1::GoogleTypeTimeOfDay
Represents a time of day.
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.
1751 1752 1753 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1751 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day ⇒ String
Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc.
Corresponds to the JSON property day
1742 1743 1744 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1742 def day @day end |
#start_time ⇒ Google::Apis::AlloydbV1::GoogleTypeTimeOfDay
Represents a time of day. The date and time zone are either not significant or
are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and google.protobuf.Timestamp.
Corresponds to the JSON property startTime
1749 1750 1751 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1749 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1756 1757 1758 1759 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 1756 def update!(**args) @day = args[:day] if args.key?(:day) @start_time = args[:start_time] if args.key?(:start_time) end |