Class DataSourceRefreshSchedule

DataSourceRefreshSchedule

기존 새로고침 일정에 액세스하고 수정합니다. 모든 새로고침 일정을 가져오려면 Spreadsheet.getDataSourceRefreshSchedules()를 참고하세요.

이 클래스는 데이터베이스에 연결된 데이터에만 사용하세요.

메서드

메서드반환 유형간략한 설명
getFrequency()DataSourceRefreshScheduleFrequency새로고침 빈도 및 새로고침 시점을 지정하는 새로고침 일정 빈도를 가져옵니다.
getScope()DataSourceRefreshScope이 새로고침 일정의 범위를 가져옵니다.
getTimeIntervalOfNextRun()TimeInterval이 새로고침 일정의 다음 실행 시간대를 가져옵니다.
isEnabled()Boolean이 새로고침 일정이 사용 설정되었는지 확인합니다.

자세한 문서

getFrequency()

새로고침 빈도 및 새로고침 시점을 지정하는 새로고침 일정 빈도를 가져옵니다.

리턴

DataSourceRefreshScheduleFrequency — 새로고침 일정 빈도입니다.

승인

이 메서드를 사용하는 스크립트는 다음 범위 중 하나 이상으로 승인이 필요합니다.

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getScope()

이 새로고침 일정의 범위를 가져옵니다.

리턴

DataSourceRefreshScope — 새로고침 범위입니다.

승인

이 메서드를 사용하는 스크립트는 다음 범위 중 하나 이상으로 승인이 필요합니다.

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

getTimeIntervalOfNextRun()

이 새로고침 일정의 다음 실행 시간대를 가져옵니다. 이 새로고침 일정이 사용 설정된 경우에만 적용됩니다.

리턴

TimeInterval — 다음 실행 시간대입니다.

승인

이 메서드를 사용하는 스크립트는 다음 범위 중 하나 이상으로 승인이 필요합니다.

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

isEnabled()

이 새로고침 일정이 사용 설정되었는지 확인합니다.

리턴

Boolean — 이 새로고침 일정이 사용 설정되었는지 여부입니다.

승인

이 메서드를 사용하는 스크립트는 다음 범위 중 하나 이상으로 승인이 필요합니다.

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets