Class: Google::Apis::ComputeAlpha::FlexibleTimeRange
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::FlexibleTimeRange
- 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
A flexible specification of a time range that has 3 points of flexibility: (1) a flexible start time, (2) a flexible end time, (3) a flexible duration. It is possible to specify a contradictory time range that cannot be matched by any Interval. This causes a validation error.
Instance Attribute Summary collapse
-
#end_time_not_earlier_than ⇒ String
Corresponds to the JSON property
endTimeNotEarlierThan
. -
#end_time_not_later_than ⇒ String
Corresponds to the JSON property
endTimeNotLaterThan
. -
#max_duration ⇒ String
Corresponds to the JSON property
maxDuration
. -
#min_duration ⇒ String
Corresponds to the JSON property
minDuration
. -
#start_time_not_earlier_than ⇒ String
Corresponds to the JSON property
startTimeNotEarlierThan
. -
#start_time_not_later_than ⇒ String
Corresponds to the JSON property
startTimeNotLaterThan
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FlexibleTimeRange
constructor
A new instance of FlexibleTimeRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FlexibleTimeRange
Returns a new instance of FlexibleTimeRange.
11541 11542 11543 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11541 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time_not_earlier_than ⇒ String
Corresponds to the JSON property endTimeNotEarlierThan
11514 11515 11516 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11514 def end_time_not_earlier_than @end_time_not_earlier_than end |
#end_time_not_later_than ⇒ String
Corresponds to the JSON property endTimeNotLaterThan
11519 11520 11521 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11519 def end_time_not_later_than @end_time_not_later_than end |
#max_duration ⇒ String
Corresponds to the JSON property maxDuration
11524 11525 11526 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11524 def max_duration @max_duration end |
#min_duration ⇒ String
Corresponds to the JSON property minDuration
11529 11530 11531 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11529 def min_duration @min_duration end |
#start_time_not_earlier_than ⇒ String
Corresponds to the JSON property startTimeNotEarlierThan
11534 11535 11536 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11534 def start_time_not_earlier_than @start_time_not_earlier_than end |
#start_time_not_later_than ⇒ String
Corresponds to the JSON property startTimeNotLaterThan
11539 11540 11541 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11539 def start_time_not_later_than @start_time_not_later_than end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11546 11547 11548 11549 11550 11551 11552 11553 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 11546 def update!(**args) @end_time_not_earlier_than = args[:end_time_not_earlier_than] if args.key?(:end_time_not_earlier_than) @end_time_not_later_than = args[:end_time_not_later_than] if args.key?(:end_time_not_later_than) @max_duration = args[:max_duration] if args.key?(:max_duration) @min_duration = args[:min_duration] if args.key?(:min_duration) @start_time_not_earlier_than = args[:start_time_not_earlier_than] if args.key?(:start_time_not_earlier_than) @start_time_not_later_than = args[:start_time_not_later_than] if args.key?(:start_time_not_later_than) end |