Class: Google::Apis::DoubleclickbidmanagerV2::QuerySchedule

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

Overview

Settings on when and how frequently to run a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QuerySchedule

Returns a new instance of QuerySchedule.



389
390
391
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 389

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

Instance Attribute Details

#end_dateGoogle::Apis::DoubleclickbidmanagerV2::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property endDate



362
363
364
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 362

def end_date
  @end_date
end

#frequencyString

How frequently to run the query. If set to ONE_TIME, the query will only be run when queries.run is called. Corresponds to the JSON property frequency

Returns:

  • (String)


368
369
370
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 368

def frequency
  @frequency
end

#next_run_timezone_codeString

The canonical code for the timezone the query schedule is based on. Scheduled runs are usually conducted in the morning of a given day. Defaults to America/ New_York. Corresponds to the JSON property nextRunTimezoneCode

Returns:

  • (String)


375
376
377
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 375

def next_run_timezone_code
  @next_run_timezone_code
end

#start_dateGoogle::Apis::DoubleclickbidmanagerV2::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property startDate



387
388
389
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 387

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



394
395
396
397
398
399
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 394

def update!(**args)
  @end_date = args[:end_date] if args.key?(:end_date)
  @frequency = args[:frequency] if args.key?(:frequency)
  @next_run_timezone_code = args[:next_run_timezone_code] if args.key?(:next_run_timezone_code)
  @start_date = args[:start_date] if args.key?(:start_date)
end