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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TimeRange

Returns a new instance of TimeRange.



741
742
743
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 741

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 betwen start_time (inclusive) and end_time (exlusive). Corresponds to the JSON property endTime

Returns:

  • (String)


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

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 betwen start_time (inclusive) and end_time (exlusive). Corresponds to the JSON property startTime

Returns:

  • (String)


739
740
741
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 739

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



746
747
748
749
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 746

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