Class: Google::Apis::DoubleclickbidmanagerV1_1::QuerySchedule

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

Overview

Information on how frequently and when to run a query.

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) ⇒ QuerySchedule

Returns a new instance of QuerySchedule.



527
528
529
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 527

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

Instance Attribute Details

#end_time_msFixnum

Datetime to periodically run the query until. Corresponds to the JSON property endTimeMs

Returns:

  • (Fixnum)


503
504
505
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 503

def end_time_ms
  @end_time_ms
end

#frequencyString

How often the query is run. Corresponds to the JSON property frequency

Returns:

  • (String)


508
509
510
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 508

def frequency
  @frequency
end

#next_run_minute_of_dayFixnum

Time of day at which a new report will be generated, represented as minutes past midnight. Range is 0 to 1439. Only applies to scheduled reports. Corresponds to the JSON property nextRunMinuteOfDay

Returns:

  • (Fixnum)


514
515
516
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 514

def next_run_minute_of_day
  @next_run_minute_of_day
end

#next_run_timezone_codeString

Canonical timezone code for report generation time. Defaults to America/ New_York. Corresponds to the JSON property nextRunTimezoneCode

Returns:

  • (String)


520
521
522
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 520

def next_run_timezone_code
  @next_run_timezone_code
end

#start_time_msFixnum

When to start running the query. Not applicable to ONE_TIME frequency. Corresponds to the JSON property startTimeMs

Returns:

  • (Fixnum)


525
526
527
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 525

def start_time_ms
  @start_time_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



532
533
534
535
536
537
538
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 532

def update!(**args)
  @end_time_ms = args[:end_time_ms] if args.key?(:end_time_ms)
  @frequency = args[:frequency] if args.key?(:frequency)
  @next_run_minute_of_day = args[:next_run_minute_of_day] if args.key?(:next_run_minute_of_day)
  @next_run_timezone_code = args[:next_run_timezone_code] if args.key?(:next_run_timezone_code)
  @start_time_ms = args[:start_time_ms] if args.key?(:start_time_ms)
end