@maxim_mazurok/gapi.client.admin-datatransfer_v1 0.0.20230425 → 0.0.20230516

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.
Files changed (3) hide show
  1. package/index.d.ts +209 -105
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://admin.googleapis.com/$discovery/rest?version=datatransfer_v1
12
- // Revision: 20230425
12
+ // Revision: 20230516
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,250 +24,354 @@ declare namespace gapi.client {
24
24
  namespace datatransfer {
25
25
  interface Application {
26
26
  /** Etag of the resource. */
27
- etag?: string;
27
+ etag?:
28
+ string;
28
29
  /** The application's ID. Retrievable by using the [`applications.list()`](/admin-sdk/data-transfer/reference/rest/v1/applications/list) method. */
29
- id?: string;
30
+ id?:
31
+ string;
30
32
  /** Identifies the resource as a DataTransfer Application Resource. */
31
- kind?: string;
33
+ kind?:
34
+ string;
32
35
  /** The application's name. */
33
- name?: string;
36
+ name?:
37
+ string;
34
38
  /** The list of all possible transfer parameters for this application. These parameters select which categories of the user's data to transfer. */
35
- transferParams?: ApplicationTransferParam[];
39
+ transferParams?:
40
+ ApplicationTransferParam[];
36
41
  }
37
42
  interface ApplicationDataTransfer {
38
43
  /** The application's ID. */
39
- applicationId?: string;
44
+ applicationId?:
45
+ string;
40
46
  /**
41
47
  * The transfer parameters for the application. These parameters are used to select the data which will get transferred in context of this application. For more information about the
42
48
  * specific values available for each application, see the [Transfer parameters](/admin-sdk/data-transfer/v1/parameters) reference.
43
49
  */
44
- applicationTransferParams?: ApplicationTransferParam[];
50
+ applicationTransferParams?:
51
+ ApplicationTransferParam[];
45
52
  /** Read-only. Current status of transfer for this application. */
46
- applicationTransferStatus?: string;
53
+ applicationTransferStatus?:
54
+ string;
47
55
  }
48
56
  interface ApplicationsListResponse {
49
57
  /** The list of applications that support data transfer and are also installed for the customer. */
50
- applications?: Application[];
58
+ applications?:
59
+ Application[];
51
60
  /** ETag of the resource. */
52
- etag?: string;
61
+ etag?:
62
+ string;
53
63
  /** Identifies the resource as a collection of Applications. */
54
- kind?: string;
64
+ kind?:
65
+ string;
55
66
  /** Token to specify the next page in the list. */
56
- nextPageToken?: string;
67
+ nextPageToken?:
68
+ string;
57
69
  }
58
70
  interface ApplicationTransferParam {
59
71
  /** The type of the transfer parameter, such as `PRIVACY_LEVEL`. */
60
- key?: string;
72
+ key?:
73
+ string;
61
74
  /** The value of the transfer parameter, such as `PRIVATE` or `SHARED`. */
62
- value?: string[];
75
+ value?:
76
+ string[];
63
77
  }
64
78
  interface DataTransfer {
65
79
  /**
66
80
  * The list of per-application data transfer resources. It contains details of the applications associated with this transfer resource, and also specifies the applications for which
67
81
  * data transfer has to be done at the time of the transfer resource creation.
68
82
  */
69
- applicationDataTransfers?: ApplicationDataTransfer[];
83
+ applicationDataTransfers?:
84
+ ApplicationDataTransfer[];
70
85
  /** ETag of the resource. */
71
- etag?: string;
86
+ etag?:
87
+ string;
72
88
  /** Read-only. The transfer's ID. */
73
- id?: string;
89
+ id?:
90
+ string;
74
91
  /** Identifies the resource as a DataTransfer request. */
75
- kind?: string;
92
+ kind?:
93
+ string;
76
94
  /** ID of the user to whom the data is being transferred. */
77
- newOwnerUserId?: string;
95
+ newOwnerUserId?:
96
+ string;
78
97
  /** ID of the user whose data is being transferred. */
79
- oldOwnerUserId?: string;
98
+ oldOwnerUserId?:
99
+ string;
80
100
  /** Read-only. Overall transfer status. */
81
- overallTransferStatusCode?: string;
101
+ overallTransferStatusCode?:
102
+ string;
82
103
  /** Read-only. The time at which the data transfer was requested. */
83
- requestTime?: string;
104
+ requestTime?:
105
+ string;
84
106
  }
85
107
  interface DataTransfersListResponse {
86
108
  /** List of data transfer requests. */
87
- dataTransfers?: DataTransfer[];
109
+ dataTransfers?:
110
+ DataTransfer[];
88
111
  /** ETag of the resource. */
89
- etag?: string;
112
+ etag?:
113
+ string;
90
114
  /** Identifies the resource as a collection of data transfer requests. */
91
- kind?: string;
115
+ kind?:
116
+ string;
92
117
  /** Token to specify the next page in the list. */
93
- nextPageToken?: string;
118
+ nextPageToken?:
119
+ string;
94
120
  }
95
121
  interface ApplicationsResource {
96
122
  /** Retrieves information about an application for the given application ID. */
97
123
  get(request?: {
98
124
  /** V1 error format. */
99
- "$.xgafv"?: string;
125
+ "$.xgafv"?:
126
+ string;
100
127
  /** OAuth access token. */
101
- access_token?: string;
128
+ access_token?:
129
+ string;
102
130
  /** Data format for response. */
103
- alt?: string;
131
+ alt?:
132
+ string;
104
133
  /** ID of the application resource to be retrieved. */
105
- applicationId: string;
134
+ applicationId:
135
+ string;
106
136
  /** JSONP */
107
- callback?: string;
137
+ callback?:
138
+ string;
108
139
  /** Selector specifying which fields to include in a partial response. */
109
- fields?: string;
140
+ fields?:
141
+ string;
110
142
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
111
- key?: string;
143
+ key?:
144
+ string;
112
145
  /** OAuth 2.0 token for the current user. */
113
- oauth_token?: string;
146
+ oauth_token?:
147
+ string;
114
148
  /** Returns response with indentations and line breaks. */
115
- prettyPrint?: boolean;
149
+ prettyPrint?:
150
+ boolean;
116
151
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
117
- quotaUser?: string;
152
+ quotaUser?:
153
+ string;
118
154
  /** Upload protocol for media (e.g. "raw", "multipart"). */
119
- upload_protocol?: string;
155
+ upload_protocol?:
156
+ string;
120
157
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
121
- uploadType?: string;
158
+ uploadType?:
159
+ string;
122
160
  }): Request<Application>;
123
161
  /** Lists the applications available for data transfer for a customer. */
124
162
  list(request?: {
125
163
  /** V1 error format. */
126
- "$.xgafv"?: string;
164
+ "$.xgafv"?:
165
+ string;
127
166
  /** OAuth access token. */
128
- access_token?: string;
167
+ access_token?:
168
+ string;
129
169
  /** Data format for response. */
130
- alt?: string;
170
+ alt?:
171
+ string;
131
172
  /** JSONP */
132
- callback?: string;
173
+ callback?:
174
+ string;
133
175
  /** Immutable ID of the Google Workspace account. */
134
- customerId?: string;
176
+ customerId?:
177
+ string;
135
178
  /** Selector specifying which fields to include in a partial response. */
136
- fields?: string;
179
+ fields?:
180
+ string;
137
181
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
138
- key?: string;
182
+ key?:
183
+ string;
139
184
  /** Maximum number of results to return. Default is 100. */
140
- maxResults?: number;
185
+ maxResults?:
186
+ number;
141
187
  /** OAuth 2.0 token for the current user. */
142
- oauth_token?: string;
188
+ oauth_token?:
189
+ string;
143
190
  /** Token to specify next page in the list. */
144
- pageToken?: string;
191
+ pageToken?:
192
+ string;
145
193
  /** Returns response with indentations and line breaks. */
146
- prettyPrint?: boolean;
194
+ prettyPrint?:
195
+ boolean;
147
196
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
148
- quotaUser?: string;
197
+ quotaUser?:
198
+ string;
149
199
  /** Upload protocol for media (e.g. "raw", "multipart"). */
150
- upload_protocol?: string;
200
+ upload_protocol?:
201
+ string;
151
202
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
152
- uploadType?: string;
203
+ uploadType?:
204
+ string;
153
205
  }): Request<ApplicationsListResponse>;
154
206
  }
155
207
  interface TransfersResource {
156
208
  /** Retrieves a data transfer request by its resource ID. */
157
209
  get(request?: {
158
210
  /** V1 error format. */
159
- "$.xgafv"?: string;
211
+ "$.xgafv"?:
212
+ string;
160
213
  /** OAuth access token. */
161
- access_token?: string;
214
+ access_token?:
215
+ string;
162
216
  /** Data format for response. */
163
- alt?: string;
217
+ alt?:
218
+ string;
164
219
  /** JSONP */
165
- callback?: string;
220
+ callback?:
221
+ string;
166
222
  /** ID of the resource to be retrieved. This is returned in the response from the insert method. */
167
- dataTransferId: string;
223
+ dataTransferId:
224
+ string;
168
225
  /** Selector specifying which fields to include in a partial response. */
169
- fields?: string;
226
+ fields?:
227
+ string;
170
228
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
171
- key?: string;
229
+ key?:
230
+ string;
172
231
  /** OAuth 2.0 token for the current user. */
173
- oauth_token?: string;
232
+ oauth_token?:
233
+ string;
174
234
  /** Returns response with indentations and line breaks. */
175
- prettyPrint?: boolean;
235
+ prettyPrint?:
236
+ boolean;
176
237
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
177
- quotaUser?: string;
238
+ quotaUser?:
239
+ string;
178
240
  /** Upload protocol for media (e.g. "raw", "multipart"). */
179
- upload_protocol?: string;
241
+ upload_protocol?:
242
+ string;
180
243
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
181
- uploadType?: string;
244
+ uploadType?:
245
+ string;
182
246
  }): Request<DataTransfer>;
183
247
  /** Inserts a data transfer request. See the [Transfer parameters](/admin-sdk/data-transfer/v1/parameters) reference for specific application requirements. */
184
248
  insert(request: {
185
249
  /** V1 error format. */
186
- "$.xgafv"?: string;
250
+ "$.xgafv"?:
251
+ string;
187
252
  /** OAuth access token. */
188
- access_token?: string;
253
+ access_token?:
254
+ string;
189
255
  /** Data format for response. */
190
- alt?: string;
256
+ alt?:
257
+ string;
191
258
  /** JSONP */
192
- callback?: string;
259
+ callback?:
260
+ string;
193
261
  /** Selector specifying which fields to include in a partial response. */
194
- fields?: string;
262
+ fields?:
263
+ string;
195
264
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
196
- key?: string;
265
+ key?:
266
+ string;
197
267
  /** OAuth 2.0 token for the current user. */
198
- oauth_token?: string;
268
+ oauth_token?:
269
+ string;
199
270
  /** Returns response with indentations and line breaks. */
200
- prettyPrint?: boolean;
271
+ prettyPrint?:
272
+ boolean;
201
273
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
202
- quotaUser?: string;
274
+ quotaUser?:
275
+ string;
203
276
  /** Upload protocol for media (e.g. "raw", "multipart"). */
204
- upload_protocol?: string;
277
+ upload_protocol?:
278
+ string;
205
279
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
206
- uploadType?: string;
280
+ uploadType?:
281
+ string;
207
282
  /** Request body */
208
- resource: DataTransfer;
283
+ resource:
284
+ DataTransfer;
209
285
  }): Request<DataTransfer>;
210
286
  insert(request: {
211
287
  /** V1 error format. */
212
- "$.xgafv"?: string;
288
+ "$.xgafv"?:
289
+ string;
213
290
  /** OAuth access token. */
214
- access_token?: string;
291
+ access_token?:
292
+ string;
215
293
  /** Data format for response. */
216
- alt?: string;
294
+ alt?:
295
+ string;
217
296
  /** JSONP */
218
- callback?: string;
297
+ callback?:
298
+ string;
219
299
  /** Selector specifying which fields to include in a partial response. */
220
- fields?: string;
300
+ fields?:
301
+ string;
221
302
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
222
- key?: string;
303
+ key?:
304
+ string;
223
305
  /** OAuth 2.0 token for the current user. */
224
- oauth_token?: string;
306
+ oauth_token?:
307
+ string;
225
308
  /** Returns response with indentations and line breaks. */
226
- prettyPrint?: boolean;
309
+ prettyPrint?:
310
+ boolean;
227
311
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
228
- quotaUser?: string;
312
+ quotaUser?:
313
+ string;
229
314
  /** Upload protocol for media (e.g. "raw", "multipart"). */
230
- upload_protocol?: string;
315
+ upload_protocol?:
316
+ string;
231
317
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
232
- uploadType?: string;
318
+ uploadType?:
319
+ string;
233
320
  },
234
321
  body: DataTransfer): Request<DataTransfer>;
235
322
  /** Lists the transfers for a customer by source user, destination user, or status. */
236
323
  list(request?: {
237
324
  /** V1 error format. */
238
- "$.xgafv"?: string;
325
+ "$.xgafv"?:
326
+ string;
239
327
  /** OAuth access token. */
240
- access_token?: string;
328
+ access_token?:
329
+ string;
241
330
  /** Data format for response. */
242
- alt?: string;
331
+ alt?:
332
+ string;
243
333
  /** JSONP */
244
- callback?: string;
334
+ callback?:
335
+ string;
245
336
  /** Immutable ID of the Google Workspace account. */
246
- customerId?: string;
337
+ customerId?:
338
+ string;
247
339
  /** Selector specifying which fields to include in a partial response. */
248
- fields?: string;
340
+ fields?:
341
+ string;
249
342
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
250
- key?: string;
343
+ key?:
344
+ string;
251
345
  /** Maximum number of results to return. Default is 100. */
252
- maxResults?: number;
346
+ maxResults?:
347
+ number;
253
348
  /** Destination user's profile ID. */
254
- newOwnerUserId?: string;
349
+ newOwnerUserId?:
350
+ string;
255
351
  /** OAuth 2.0 token for the current user. */
256
- oauth_token?: string;
352
+ oauth_token?:
353
+ string;
257
354
  /** Source user's profile ID. */
258
- oldOwnerUserId?: string;
355
+ oldOwnerUserId?:
356
+ string;
259
357
  /** Token to specify the next page in the list. */
260
- pageToken?: string;
358
+ pageToken?:
359
+ string;
261
360
  /** Returns response with indentations and line breaks. */
262
- prettyPrint?: boolean;
361
+ prettyPrint?:
362
+ boolean;
263
363
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
264
- quotaUser?: string;
364
+ quotaUser?:
365
+ string;
265
366
  /** Status of the transfer. */
266
- status?: string;
367
+ status?:
368
+ string;
267
369
  /** Upload protocol for media (e.g. "raw", "multipart"). */
268
- upload_protocol?: string;
370
+ upload_protocol?:
371
+ string;
269
372
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
270
- uploadType?: string;
373
+ uploadType?:
374
+ string;
271
375
  }): Request<DataTransfersListResponse>;
272
376
  }
273
377
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.admin-datatransfer_v1",
3
- "version": "0.0.20230425",
3
+ "version": "0.0.20230516",
4
4
  "description": "TypeScript typings for Admin SDK API datatransfer_v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230425
6
+ // Revision: 20230516
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */