访问和修改现有的刷新时间表。如需获取所有刷新时间表,请参阅 Spreadsheet.getDataSourceRefreshSchedules()。
仅将此类用于与数据库关联的数据。
方法
| 方法 | 返回类型 | 简介 | 
|---|---|---|
| get | Data | 获取刷新时间表频率,该频率用于指定刷新的频率和时间。 | 
| get | Data | 获取此刷新时间表的范围。 | 
| get | Time | 获取此刷新时间表的下次运行时间范围。 | 
| is | Boolean | 确定此刷新时间表是否已启用。 | 
详细文档
get
获取刷新时间表频率,该频率用于指定刷新的频率和时间。
返回
Data - 刷新时间表频率。
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly
- 
https://www.googleapis.com/auth/spreadsheets
get
获取此刷新时间表的范围。
返回
Data - 刷新范围。
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly
- 
https://www.googleapis.com/auth/spreadsheets
get
获取此刷新时间表的下次运行时间范围。仅在此刷新时间表处于启用状态时才适用。
返回
Time - 下次运行的时间范围。
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly
- 
https://www.googleapis.com/auth/spreadsheets
is
确定此刷新时间表是否已启用。
返回
Boolean - 此刷新时间表是否已启用。
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly
- 
https://www.googleapis.com/auth/spreadsheets