/
DataSourceChart.purs
61 lines (32 loc) · 2.21 KB
/
DataSourceChart.purs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module Control.Google.Apps.Spreadsheet.DataSourceChart (
forceRefreshData,
getDataSource,
getStatus,
refreshData,
waitForCompletion
) where
import Effect (Effect)
import Data.Google.Apps.Spreadsheet.DataSourceChart as SpreadsheetDataSourceChart
import Data.Google.Apps.Spreadsheet.DataSource as SpreadsheetDataSource
import Data.Google.Apps.Spreadsheet.DataExecutionStatus as SpreadsheetDataExecutionStatus
foreign import forceRefreshDataImpl :: SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataSourceChart.DataSourceChart
-- | Refreshes the data of this object regardless of the current state.
forceRefreshData :: SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataSourceChart.DataSourceChart
forceRefreshData p' = forceRefreshDataImpl p'
foreign import getDataSourceImpl :: SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataSource.DataSource
-- | Gets the data source the object is linked to.
getDataSource :: SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataSource.DataSource
getDataSource p' = getDataSourceImpl p'
foreign import getStatusImpl :: SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataExecutionStatus.DataExecutionStatus
-- | Gets the data execution status of the object.
getStatus :: SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataExecutionStatus.DataExecutionStatus
getStatus p' = getStatusImpl p'
foreign import refreshDataImpl :: SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataSourceChart.DataSourceChart
-- | Refreshes the data of the object.
refreshData :: SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataSourceChart.DataSourceChart
refreshData p' = refreshDataImpl p'
foreign import waitForCompletionImpl :: Int -> SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataExecutionStatus.DataExecutionStatus
-- | Waits until the current execution completes, timing out after the provided
-- | number of seconds.
waitForCompletion :: Int -> SpreadsheetDataSourceChart.DataSourceChart -> Effect SpreadsheetDataExecutionStatus.DataExecutionStatus
waitForCompletion timeoutInSeconds p' = waitForCompletionImpl timeoutInSeconds p'