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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquerydatatransfer_v1/classes.rb,
lib/google/apis/bigquerydatatransfer_v1/representations.rb,
lib/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.



762
763
764
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 762

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)


752
753
754
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 752

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)


760
761
762
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 760

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



767
768
769
770
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 767

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