Class: Google::Apis::ComputeAlpha::NodeGroupMaintenanceWindow
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::NodeGroupMaintenanceWindow
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window.
Instance Attribute Summary collapse
-
#duration ⇒ String
[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
-
#maintenance_duration ⇒ Google::Apis::ComputeAlpha::Duration
A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution.
-
#start_time ⇒ String
Start time of the window.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeGroupMaintenanceWindow
constructor
A new instance of NodeGroupMaintenanceWindow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodeGroupMaintenanceWindow
Returns a new instance of NodeGroupMaintenanceWindow.
27981 27982 27983 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27981 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ String
[Output only] A predetermined duration for the window, automatically chosen to
be the smallest possible in the given scenario.
Corresponds to the JSON property duration
27964 27965 27966 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27964 def duration @duration end |
#maintenance_duration ⇒ Google::Apis::ComputeAlpha::Duration
A Duration represents a fixed-length span of time represented as a count of
seconds and fractions of seconds at nanosecond resolution. It is independent
of any calendar and concepts like "day" or "month". Range is approximately 10,
000 years.
Corresponds to the JSON property maintenanceDuration
27972 27973 27974 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27972 def maintenance_duration @maintenance_duration end |
#start_time ⇒ String
Start time of the window. This must be in UTC format that resolves to one of
00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:
00 are valid.
Corresponds to the JSON property startTime
27979 27980 27981 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27979 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
27986 27987 27988 27989 27990 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 27986 def update!(**args) @duration = args[:duration] if args.key?(:duration) @maintenance_duration = args[:maintenance_duration] if args.key?(:maintenance_duration) @start_time = args[:start_time] if args.key?(:start_time) end |