class Google::Apis::SheetsV4::DataSourceRefreshSchedule

Schedule for refreshing the data source. Data sources in the spreadsheet are refreshed within a time interval. You can specify the start time by clicking the Scheduled Refresh button in the Sheets editor, but the interval is fixed at 4 hours. For example, if you specify a start time of 8am , the refresh will take place between 8am and 12pm every day.

Attributes

daily_schedule[RW]

A schedule for data to refresh every day in a given time interval. Corresponds to the JSON property `dailySchedule` @return [Google::Apis::SheetsV4::DataSourceRefreshDailySchedule]

enabled[RW]

True if the refresh schedule is enabled, or false otherwise. Corresponds to the JSON property `enabled` @return [Boolean]

enabled?[RW]

True if the refresh schedule is enabled, or false otherwise. Corresponds to the JSON property `enabled` @return [Boolean]

monthly_schedule[RW]

A monthly schedule for data to refresh on specific days in the month in a given time interval. Corresponds to the JSON property `monthlySchedule` @return [Google::Apis::SheetsV4::DataSourceRefreshMonthlySchedule]

next_run[RW]

Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. Corresponds to the JSON property `nextRun` @return [Google::Apis::SheetsV4::Interval]

refresh_scope[RW]

The scope of the refresh. Must be ALL_DATA_SOURCES. Corresponds to the JSON property `refreshScope` @return [String]

weekly_schedule[RW]

A weekly schedule for data to refresh on specific days in a given time interval. Corresponds to the JSON property `weeklySchedule` @return [Google::Apis::SheetsV4::DataSourceRefreshWeeklySchedule]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 4114
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 4119
def update!(**args)
  @daily_schedule = args[:daily_schedule] if args.key?(:daily_schedule)
  @enabled = args[:enabled] if args.key?(:enabled)
  @monthly_schedule = args[:monthly_schedule] if args.key?(:monthly_schedule)
  @next_run = args[:next_run] if args.key?(:next_run)
  @refresh_scope = args[:refresh_scope] if args.key?(:refresh_scope)
  @weekly_schedule = args[:weekly_schedule] if args.key?(:weekly_schedule)
end