@maxim_mazurok/gapi.client.bigquerydatatransfer-v1 0.0.20220730
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1938 -0
- package/package.json +20 -0
- package/readme.md +79 -0
- package/tests.ts +366 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maxim_mazurok/gapi.client.bigquerydatatransfer-v1",
|
|
3
|
+
"version": "0.0.20220730",
|
|
4
|
+
"description": "TypeScript typings for BigQuery Data Transfer API v1",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"email": "maxim@mazurok.com",
|
|
8
|
+
"name": "Maxim Mazurok",
|
|
9
|
+
"url": "https://maxim.mazurok.com"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
14
|
+
},
|
|
15
|
+
"types": "index.d.ts",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@types/gapi.client": "*",
|
|
18
|
+
"@types/gapi.client.discovery": "*"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# TypeScript typings for BigQuery Data Transfer API v1
|
|
2
|
+
|
|
3
|
+
Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis.
|
|
4
|
+
For detailed description please check [documentation](https://cloud.google.com/bigquery-transfer/).
|
|
5
|
+
|
|
6
|
+
## Installing
|
|
7
|
+
|
|
8
|
+
Install typings for BigQuery Data Transfer API:
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
npm install @types/gapi.client.bigquerydatatransfer-v1 --save-dev
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
You need to initialize Google API client in your code:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
gapi.load('client', () => {
|
|
20
|
+
// now we can use gapi.client
|
|
21
|
+
// ...
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then load api client wrapper:
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
gapi.client.load('https://bigquerydatatransfer.googleapis.com/$discovery/rest?version=v1', () => {
|
|
29
|
+
// now we can use:
|
|
30
|
+
// gapi.client.bigquerydatatransfer
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
|
|
36
|
+
gapi.client.load('bigquerydatatransfer', 'v1', () => {
|
|
37
|
+
// now we can use:
|
|
38
|
+
// gapi.client.bigquerydatatransfer
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Don't forget to authenticate your client before sending any request to resources:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
// declare client_id registered in Google Developers Console
|
|
46
|
+
var client_id = '',
|
|
47
|
+
scope = [
|
|
48
|
+
// View and manage your data in Google BigQuery and see the email address for your Google Account
|
|
49
|
+
'https://www.googleapis.com/auth/bigquery',
|
|
50
|
+
|
|
51
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
52
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
53
|
+
|
|
54
|
+
// View your data across Google Cloud services and see the email address of your Google Account
|
|
55
|
+
'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
56
|
+
],
|
|
57
|
+
immediate = true;
|
|
58
|
+
// ...
|
|
59
|
+
|
|
60
|
+
gapi.auth.authorize(
|
|
61
|
+
{ client_id: client_id, scope: scope, immediate: immediate },
|
|
62
|
+
authResult => {
|
|
63
|
+
if (authResult && !authResult.error) {
|
|
64
|
+
/* handle successful authorization */
|
|
65
|
+
} else {
|
|
66
|
+
/* handle authorization error */
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
After that you can use BigQuery Data Transfer API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
|
|
75
|
+
/*
|
|
76
|
+
Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
|
|
77
|
+
*/
|
|
78
|
+
await gapi.client.bigquerydatatransfer.projects.enrollDataSources({ name: "name", });
|
|
79
|
+
```
|
package/tests.ts
ADDED
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.bigquerydatatransfer-v1 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220730
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://bigquerydatatransfer.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
+
/** now we can use gapi.client.bigquerydatatransfer */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** View and manage your data in Google BigQuery and see the email address for your Google Account */
|
|
19
|
+
'https://www.googleapis.com/auth/bigquery',
|
|
20
|
+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
21
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
22
|
+
/** View your data across Google Cloud services and see the email address of your Google Account */
|
|
23
|
+
'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
24
|
+
];
|
|
25
|
+
const immediate = false;
|
|
26
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
27
|
+
if (authResult && !authResult.error) {
|
|
28
|
+
/** handle successful authorization */
|
|
29
|
+
run();
|
|
30
|
+
} else {
|
|
31
|
+
/** handle authorization error */
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
async function run() {
|
|
36
|
+
/**
|
|
37
|
+
* Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will
|
|
38
|
+
* appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web
|
|
39
|
+
* UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
|
|
40
|
+
*/
|
|
41
|
+
await gapi.client.bigquerydatatransfer.projects.enrollDataSources({
|
|
42
|
+
name: "Test string",
|
|
43
|
+
}, {
|
|
44
|
+
dataSourceIds: [
|
|
45
|
+
"Test string"
|
|
46
|
+
],
|
|
47
|
+
});
|
|
48
|
+
/** Returns true if valid credentials exist for the given data source and requesting user. */
|
|
49
|
+
await gapi.client.bigquerydatatransfer.projects.dataSources.checkValidCreds({
|
|
50
|
+
name: "Test string",
|
|
51
|
+
}, {
|
|
52
|
+
});
|
|
53
|
+
/** Retrieves a supported data source and returns its settings. */
|
|
54
|
+
await gapi.client.bigquerydatatransfer.projects.dataSources.get({
|
|
55
|
+
name: "Test string",
|
|
56
|
+
});
|
|
57
|
+
/** Lists supported data sources and returns their settings. */
|
|
58
|
+
await gapi.client.bigquerydatatransfer.projects.dataSources.list({
|
|
59
|
+
pageSize: 42,
|
|
60
|
+
pageToken: "Test string",
|
|
61
|
+
parent: "Test string",
|
|
62
|
+
});
|
|
63
|
+
/**
|
|
64
|
+
* Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will
|
|
65
|
+
* appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web
|
|
66
|
+
* UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).
|
|
67
|
+
*/
|
|
68
|
+
await gapi.client.bigquerydatatransfer.projects.locations.enrollDataSources({
|
|
69
|
+
name: "Test string",
|
|
70
|
+
}, {
|
|
71
|
+
dataSourceIds: [
|
|
72
|
+
"Test string"
|
|
73
|
+
],
|
|
74
|
+
});
|
|
75
|
+
/** Gets information about a location. */
|
|
76
|
+
await gapi.client.bigquerydatatransfer.projects.locations.get({
|
|
77
|
+
name: "Test string",
|
|
78
|
+
});
|
|
79
|
+
/** Lists information about the supported locations for this service. */
|
|
80
|
+
await gapi.client.bigquerydatatransfer.projects.locations.list({
|
|
81
|
+
filter: "Test string",
|
|
82
|
+
name: "Test string",
|
|
83
|
+
pageSize: 42,
|
|
84
|
+
pageToken: "Test string",
|
|
85
|
+
});
|
|
86
|
+
/** Returns true if valid credentials exist for the given data source and requesting user. */
|
|
87
|
+
await gapi.client.bigquerydatatransfer.projects.locations.dataSources.checkValidCreds({
|
|
88
|
+
name: "Test string",
|
|
89
|
+
}, {
|
|
90
|
+
});
|
|
91
|
+
/** Retrieves a supported data source and returns its settings. */
|
|
92
|
+
await gapi.client.bigquerydatatransfer.projects.locations.dataSources.get({
|
|
93
|
+
name: "Test string",
|
|
94
|
+
});
|
|
95
|
+
/** Lists supported data sources and returns their settings. */
|
|
96
|
+
await gapi.client.bigquerydatatransfer.projects.locations.dataSources.list({
|
|
97
|
+
pageSize: 42,
|
|
98
|
+
pageToken: "Test string",
|
|
99
|
+
parent: "Test string",
|
|
100
|
+
});
|
|
101
|
+
/** Creates a new data transfer configuration. */
|
|
102
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.create({
|
|
103
|
+
authorizationCode: "Test string",
|
|
104
|
+
parent: "Test string",
|
|
105
|
+
serviceAccountName: "Test string",
|
|
106
|
+
versionInfo: "Test string",
|
|
107
|
+
}, {
|
|
108
|
+
dataRefreshWindowDays: 42,
|
|
109
|
+
datasetRegion: "Test string",
|
|
110
|
+
dataSourceId: "Test string",
|
|
111
|
+
destinationDatasetId: "Test string",
|
|
112
|
+
disabled: true,
|
|
113
|
+
displayName: "Test string",
|
|
114
|
+
emailPreferences: {
|
|
115
|
+
enableFailureEmail: true,
|
|
116
|
+
},
|
|
117
|
+
name: "Test string",
|
|
118
|
+
nextRunTime: "Test string",
|
|
119
|
+
notificationPubsubTopic: "Test string",
|
|
120
|
+
ownerInfo: {
|
|
121
|
+
email: "Test string",
|
|
122
|
+
},
|
|
123
|
+
params: {
|
|
124
|
+
A: 42
|
|
125
|
+
},
|
|
126
|
+
schedule: "Test string",
|
|
127
|
+
scheduleOptions: {
|
|
128
|
+
disableAutoScheduling: true,
|
|
129
|
+
endTime: "Test string",
|
|
130
|
+
startTime: "Test string",
|
|
131
|
+
},
|
|
132
|
+
state: "Test string",
|
|
133
|
+
updateTime: "Test string",
|
|
134
|
+
userId: "Test string",
|
|
135
|
+
});
|
|
136
|
+
/** Deletes a data transfer configuration, including any associated transfer runs and logs. */
|
|
137
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.delete({
|
|
138
|
+
name: "Test string",
|
|
139
|
+
});
|
|
140
|
+
/** Returns information about a data transfer config. */
|
|
141
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.get({
|
|
142
|
+
name: "Test string",
|
|
143
|
+
});
|
|
144
|
+
/** Returns information about all transfer configs owned by a project in the specified location. */
|
|
145
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.list({
|
|
146
|
+
dataSourceIds: "Test string",
|
|
147
|
+
pageSize: 42,
|
|
148
|
+
pageToken: "Test string",
|
|
149
|
+
parent: "Test string",
|
|
150
|
+
});
|
|
151
|
+
/** Updates a data transfer configuration. All fields must be set, even if they are not updated. */
|
|
152
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.patch({
|
|
153
|
+
authorizationCode: "Test string",
|
|
154
|
+
name: "Test string",
|
|
155
|
+
serviceAccountName: "Test string",
|
|
156
|
+
updateMask: "Test string",
|
|
157
|
+
versionInfo: "Test string",
|
|
158
|
+
}, {
|
|
159
|
+
dataRefreshWindowDays: 42,
|
|
160
|
+
datasetRegion: "Test string",
|
|
161
|
+
dataSourceId: "Test string",
|
|
162
|
+
destinationDatasetId: "Test string",
|
|
163
|
+
disabled: true,
|
|
164
|
+
displayName: "Test string",
|
|
165
|
+
emailPreferences: {
|
|
166
|
+
enableFailureEmail: true,
|
|
167
|
+
},
|
|
168
|
+
name: "Test string",
|
|
169
|
+
nextRunTime: "Test string",
|
|
170
|
+
notificationPubsubTopic: "Test string",
|
|
171
|
+
ownerInfo: {
|
|
172
|
+
email: "Test string",
|
|
173
|
+
},
|
|
174
|
+
params: {
|
|
175
|
+
A: 42
|
|
176
|
+
},
|
|
177
|
+
schedule: "Test string",
|
|
178
|
+
scheduleOptions: {
|
|
179
|
+
disableAutoScheduling: true,
|
|
180
|
+
endTime: "Test string",
|
|
181
|
+
startTime: "Test string",
|
|
182
|
+
},
|
|
183
|
+
state: "Test string",
|
|
184
|
+
updateTime: "Test string",
|
|
185
|
+
userId: "Test string",
|
|
186
|
+
});
|
|
187
|
+
/**
|
|
188
|
+
* Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that
|
|
189
|
+
* runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.
|
|
190
|
+
*/
|
|
191
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.scheduleRuns({
|
|
192
|
+
parent: "Test string",
|
|
193
|
+
}, {
|
|
194
|
+
endTime: "Test string",
|
|
195
|
+
startTime: "Test string",
|
|
196
|
+
});
|
|
197
|
+
/**
|
|
198
|
+
* Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time
|
|
199
|
+
* (inclusive) and end_time (exclusive), or for a specific run_time.
|
|
200
|
+
*/
|
|
201
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.startManualRuns({
|
|
202
|
+
parent: "Test string",
|
|
203
|
+
}, {
|
|
204
|
+
requestedRunTime: "Test string",
|
|
205
|
+
requestedTimeRange: {
|
|
206
|
+
endTime: "Test string",
|
|
207
|
+
startTime: "Test string",
|
|
208
|
+
},
|
|
209
|
+
});
|
|
210
|
+
/** Deletes the specified transfer run. */
|
|
211
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.runs.delete({
|
|
212
|
+
name: "Test string",
|
|
213
|
+
});
|
|
214
|
+
/** Returns information about the particular transfer run. */
|
|
215
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.runs.get({
|
|
216
|
+
name: "Test string",
|
|
217
|
+
});
|
|
218
|
+
/** Returns information about running and completed transfer runs. */
|
|
219
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.runs.list({
|
|
220
|
+
pageSize: 42,
|
|
221
|
+
pageToken: "Test string",
|
|
222
|
+
parent: "Test string",
|
|
223
|
+
runAttempt: "Test string",
|
|
224
|
+
states: "Test string",
|
|
225
|
+
});
|
|
226
|
+
/** Returns log messages for the transfer run. */
|
|
227
|
+
await gapi.client.bigquerydatatransfer.projects.locations.transferConfigs.runs.transferLogs.list({
|
|
228
|
+
messageTypes: "Test string",
|
|
229
|
+
pageSize: 42,
|
|
230
|
+
pageToken: "Test string",
|
|
231
|
+
parent: "Test string",
|
|
232
|
+
});
|
|
233
|
+
/** Creates a new data transfer configuration. */
|
|
234
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.create({
|
|
235
|
+
authorizationCode: "Test string",
|
|
236
|
+
parent: "Test string",
|
|
237
|
+
serviceAccountName: "Test string",
|
|
238
|
+
versionInfo: "Test string",
|
|
239
|
+
}, {
|
|
240
|
+
dataRefreshWindowDays: 42,
|
|
241
|
+
datasetRegion: "Test string",
|
|
242
|
+
dataSourceId: "Test string",
|
|
243
|
+
destinationDatasetId: "Test string",
|
|
244
|
+
disabled: true,
|
|
245
|
+
displayName: "Test string",
|
|
246
|
+
emailPreferences: {
|
|
247
|
+
enableFailureEmail: true,
|
|
248
|
+
},
|
|
249
|
+
name: "Test string",
|
|
250
|
+
nextRunTime: "Test string",
|
|
251
|
+
notificationPubsubTopic: "Test string",
|
|
252
|
+
ownerInfo: {
|
|
253
|
+
email: "Test string",
|
|
254
|
+
},
|
|
255
|
+
params: {
|
|
256
|
+
A: 42
|
|
257
|
+
},
|
|
258
|
+
schedule: "Test string",
|
|
259
|
+
scheduleOptions: {
|
|
260
|
+
disableAutoScheduling: true,
|
|
261
|
+
endTime: "Test string",
|
|
262
|
+
startTime: "Test string",
|
|
263
|
+
},
|
|
264
|
+
state: "Test string",
|
|
265
|
+
updateTime: "Test string",
|
|
266
|
+
userId: "Test string",
|
|
267
|
+
});
|
|
268
|
+
/** Deletes a data transfer configuration, including any associated transfer runs and logs. */
|
|
269
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.delete({
|
|
270
|
+
name: "Test string",
|
|
271
|
+
});
|
|
272
|
+
/** Returns information about a data transfer config. */
|
|
273
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.get({
|
|
274
|
+
name: "Test string",
|
|
275
|
+
});
|
|
276
|
+
/** Returns information about all transfer configs owned by a project in the specified location. */
|
|
277
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.list({
|
|
278
|
+
dataSourceIds: "Test string",
|
|
279
|
+
pageSize: 42,
|
|
280
|
+
pageToken: "Test string",
|
|
281
|
+
parent: "Test string",
|
|
282
|
+
});
|
|
283
|
+
/** Updates a data transfer configuration. All fields must be set, even if they are not updated. */
|
|
284
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.patch({
|
|
285
|
+
authorizationCode: "Test string",
|
|
286
|
+
name: "Test string",
|
|
287
|
+
serviceAccountName: "Test string",
|
|
288
|
+
updateMask: "Test string",
|
|
289
|
+
versionInfo: "Test string",
|
|
290
|
+
}, {
|
|
291
|
+
dataRefreshWindowDays: 42,
|
|
292
|
+
datasetRegion: "Test string",
|
|
293
|
+
dataSourceId: "Test string",
|
|
294
|
+
destinationDatasetId: "Test string",
|
|
295
|
+
disabled: true,
|
|
296
|
+
displayName: "Test string",
|
|
297
|
+
emailPreferences: {
|
|
298
|
+
enableFailureEmail: true,
|
|
299
|
+
},
|
|
300
|
+
name: "Test string",
|
|
301
|
+
nextRunTime: "Test string",
|
|
302
|
+
notificationPubsubTopic: "Test string",
|
|
303
|
+
ownerInfo: {
|
|
304
|
+
email: "Test string",
|
|
305
|
+
},
|
|
306
|
+
params: {
|
|
307
|
+
A: 42
|
|
308
|
+
},
|
|
309
|
+
schedule: "Test string",
|
|
310
|
+
scheduleOptions: {
|
|
311
|
+
disableAutoScheduling: true,
|
|
312
|
+
endTime: "Test string",
|
|
313
|
+
startTime: "Test string",
|
|
314
|
+
},
|
|
315
|
+
state: "Test string",
|
|
316
|
+
updateTime: "Test string",
|
|
317
|
+
userId: "Test string",
|
|
318
|
+
});
|
|
319
|
+
/**
|
|
320
|
+
* Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that
|
|
321
|
+
* runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.
|
|
322
|
+
*/
|
|
323
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.scheduleRuns({
|
|
324
|
+
parent: "Test string",
|
|
325
|
+
}, {
|
|
326
|
+
endTime: "Test string",
|
|
327
|
+
startTime: "Test string",
|
|
328
|
+
});
|
|
329
|
+
/**
|
|
330
|
+
* Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time
|
|
331
|
+
* (inclusive) and end_time (exclusive), or for a specific run_time.
|
|
332
|
+
*/
|
|
333
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.startManualRuns({
|
|
334
|
+
parent: "Test string",
|
|
335
|
+
}, {
|
|
336
|
+
requestedRunTime: "Test string",
|
|
337
|
+
requestedTimeRange: {
|
|
338
|
+
endTime: "Test string",
|
|
339
|
+
startTime: "Test string",
|
|
340
|
+
},
|
|
341
|
+
});
|
|
342
|
+
/** Deletes the specified transfer run. */
|
|
343
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.runs.delete({
|
|
344
|
+
name: "Test string",
|
|
345
|
+
});
|
|
346
|
+
/** Returns information about the particular transfer run. */
|
|
347
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.runs.get({
|
|
348
|
+
name: "Test string",
|
|
349
|
+
});
|
|
350
|
+
/** Returns information about running and completed transfer runs. */
|
|
351
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.runs.list({
|
|
352
|
+
pageSize: 42,
|
|
353
|
+
pageToken: "Test string",
|
|
354
|
+
parent: "Test string",
|
|
355
|
+
runAttempt: "Test string",
|
|
356
|
+
states: "Test string",
|
|
357
|
+
});
|
|
358
|
+
/** Returns log messages for the transfer run. */
|
|
359
|
+
await gapi.client.bigquerydatatransfer.projects.transferConfigs.runs.transferLogs.list({
|
|
360
|
+
messageTypes: "Test string",
|
|
361
|
+
pageSize: 42,
|
|
362
|
+
pageToken: "Test string",
|
|
363
|
+
parent: "Test string",
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
});
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"lib": ["es6", "dom"],
|
|
5
|
+
"noImplicitAny": true,
|
|
6
|
+
"noImplicitThis": true,
|
|
7
|
+
"strictNullChecks": true,
|
|
8
|
+
"baseUrl": "../",
|
|
9
|
+
"typeRoots": [
|
|
10
|
+
"../"
|
|
11
|
+
],
|
|
12
|
+
"types": [],
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"strictFunctionTypes": true
|
|
16
|
+
},
|
|
17
|
+
"files": ["index.d.ts", "tests.ts"]
|
|
18
|
+
}
|