Class: Google::Apis::ComputeAlpha::UpcomingMaintenanceTimeWindow
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::UpcomingMaintenanceTimeWindow
- 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
Represents a window of time using two timestamps: earliest and latest.
This timestamp values are in RFC3339 text format.
Instance Attribute Summary collapse
-
#earliest ⇒ String
Corresponds to the JSON property
earliest. -
#latest ⇒ String
Corresponds to the JSON property
latest.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpcomingMaintenanceTimeWindow
constructor
A new instance of UpcomingMaintenanceTimeWindow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpcomingMaintenanceTimeWindow
Returns a new instance of UpcomingMaintenanceTimeWindow.
41435 41436 41437 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41435 def initialize(**args) update!(**args) end |
Instance Attribute Details
#earliest ⇒ String
Corresponds to the JSON property earliest
41428 41429 41430 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41428 def earliest @earliest end |
#latest ⇒ String
Corresponds to the JSON property latest
41433 41434 41435 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41433 def latest @latest end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
41440 41441 41442 41443 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41440 def update!(**args) @earliest = args[:earliest] if args.key?(:earliest) @latest = args[:latest] if args.key?(:latest) end |