Class: Google::Apis::ComputeAlpha::FutureReservationTimeWindow

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FutureReservationTimeWindow

Returns a new instance of FutureReservationTimeWindow.



9919
9920
9921
# File 'lib/google/apis/compute_alpha/classes.rb', line 9919

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#durationGoogle::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 duration



9906
9907
9908
# File 'lib/google/apis/compute_alpha/classes.rb', line 9906

def duration
  @duration
end

#end_timeString

TODO(b/183994731): Replace with Timestamp. Corresponds to the JSON property endTime

Returns:

  • (String)


9911
9912
9913
# File 'lib/google/apis/compute_alpha/classes.rb', line 9911

def end_time
  @end_time
end

#start_timeString

Start time of the Future Reservation. The start_time is an RFC3339 string. TODO(b/183994731): Replace with Timestamp. Corresponds to the JSON property startTime

Returns:

  • (String)


9917
9918
9919
# File 'lib/google/apis/compute_alpha/classes.rb', line 9917

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9924
9925
9926
9927
9928
# File 'lib/google/apis/compute_alpha/classes.rb', line 9924

def update!(**args)
  @duration = args[:duration] if args.key?(:duration)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end