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.



874
875
876
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 874

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)


864
865
866
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 864

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)


872
873
874
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 872

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



879
880
881
882
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 879

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