Class: Google::Apis::BigquerydatatransferV1::TimeRange

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigquerydatatransfer_v1/classes.rb,
generated/google/apis/bigquerydatatransfer_v1/representations.rb,
generated/google/apis/bigquerydatatransfer_v1/representations.rb

Overview

A specification for a time range, this will request transfer runs with run_time between start_time (inclusive) and end_time (exclusive).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeRange

Returns a new instance of TimeRange.



727
728
729
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 727

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

Instance Attribute Details

#end_timeString

End time of the range of transfer runs. For example, "2017-05-30T00:00:00+00: 00". The end_time must not be in the future. Creates transfer runs where run_time is in the range between start_time (inclusive) and end_time ( exclusive). Corresponds to the JSON property endTime

Returns:

  • (String)


717
718
719
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 717

def end_time
  @end_time
end

#start_timeString

Start time of the range of transfer runs. For example, "2017-05-25T00:00:00+ 00:00". The start_time must be strictly less than the end_time. Creates transfer runs where run_time is in the range between start_time (inclusive) and end_time (exclusive). Corresponds to the JSON property startTime

Returns:

  • (String)


725
726
727
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 725

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



732
733
734
735
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 732

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