Class: Google::Apis::DfareportingV4::Report::Schedule
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::Report::Schedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
Instance Attribute Summary collapse
-
#active ⇒ Boolean
(also: #active?)
Whether the schedule is active or not.
-
#every ⇒ Fixnum
Defines every how many days, weeks or months the report should be run.
-
#expiration_date ⇒ Date
Corresponds to the JSON property
expirationDate. -
#repeats ⇒ String
The interval for which the report is repeated.
-
#repeats_on_week_days ⇒ Array<String>
List of week days "WEEKLY" on which scheduled reports should run.
-
#runs_on_day_of_month ⇒ String
Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month.
-
#start_date ⇒ Date
Corresponds to the JSON property
startDate.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schedule
constructor
A new instance of Schedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Schedule
Returns a new instance of Schedule.
11355 11356 11357 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11355 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Boolean Also known as: active?
Whether the schedule is active or not. Must be set to either true or false.
Corresponds to the JSON property active
11313 11314 11315 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11313 def active @active end |
#every ⇒ Fixnum
Defines every how many days, weeks or months the report should be run. Needs
to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
Corresponds to the JSON property every
11320 11321 11322 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11320 def every @every end |
#expiration_date ⇒ Date
Corresponds to the JSON property expirationDate
11325 11326 11327 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11325 def expiration_date @expiration_date end |
#repeats ⇒ String
The interval for which the report is repeated. Note: - "DAILY" also requires
field "every" to be set. - "WEEKLY" also requires fields "every" and "
repeatsOnWeekDays" to be set. - "MONTHLY" also requires fields "every" and "
runsOnDayOfMonth" to be set.
Corresponds to the JSON property repeats
11333 11334 11335 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11333 def repeats @repeats end |
#repeats_on_week_days ⇒ Array<String>
List of week days "WEEKLY" on which scheduled reports should run.
Corresponds to the JSON property repeatsOnWeekDays
11338 11339 11340 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11338 def repeats_on_week_days @repeats_on_week_days end |
#runs_on_day_of_month ⇒ String
Enum to define for "MONTHLY" scheduled reports whether reports should be
repeated on the same day of the month as "startDate" or the same day of the
week of the month. Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-
02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month,
and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the
month.
Corresponds to the JSON property runsOnDayOfMonth
11348 11349 11350 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11348 def runs_on_day_of_month @runs_on_day_of_month end |
#start_date ⇒ Date
Corresponds to the JSON property startDate
11353 11354 11355 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11353 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11360 11361 11362 11363 11364 11365 11366 11367 11368 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11360 def update!(**args) @active = args[:active] if args.key?(:active) @every = args[:every] if args.key?(:every) @expiration_date = args[:expiration_date] if args.key?(:expiration_date) @repeats = args[:repeats] if args.key?(:repeats) @repeats_on_week_days = args[:repeats_on_week_days] if args.key?(:repeats_on_week_days) @runs_on_day_of_month = args[:runs_on_day_of_month] if args.key?(:runs_on_day_of_month) @start_date = args[:start_date] if args.key?(:start_date) end |