Class: Google::Apis::SpectrumV1explorer::EventTime
- Inherits:
-
Object
- Object
- Google::Apis::SpectrumV1explorer::EventTime
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spectrum_v1explorer/classes.rb,
generated/google/apis/spectrum_v1explorer/representations.rb,
generated/google/apis/spectrum_v1explorer/representations.rb
Overview
The start and stop times of an event. This is used to indicate the time period for which a spectrum profile is valid. Both times are expressed using the format, YYYY-MM-DDThh:mm:ssZ, as defined in RFC3339. The times must be expressed using UTC.
Instance Attribute Summary collapse
-
#start_time ⇒ String
The inclusive start of the event.
-
#stop_time ⇒ String
The exclusive end of the event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventTime
constructor
A new instance of EventTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EventTime
Returns a new instance of EventTime
331 332 333 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 331 def initialize(**args) update!(**args) end |
Instance Attribute Details
#start_time ⇒ String
The inclusive start of the event. It will be present.
Corresponds to the JSON property startTime
324 325 326 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 324 def start_time @start_time end |
#stop_time ⇒ String
The exclusive end of the event. It will be present.
Corresponds to the JSON property stopTime
329 330 331 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 329 def stop_time @stop_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
336 337 338 339 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 336 def update!(**args) @start_time = args[:start_time] if args.key?(:start_time) @stop_time = args[:stop_time] if args.key?(:stop_time) end |