@maxim_mazurok/gapi.client.area120tables-v1alpha1 0.0.20231128 → 0.0.20231203

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 CHANGED
@@ -9,978 +9,683 @@
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://area120tables.googleapis.com/$discovery/rest?version=v1alpha1
12
- // Revision: 20231128
12
+ // Revision: 20231203
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Area120 Tables API v1alpha1 */
18
- function load(urlOrObject: "https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1"): Promise<void>;
19
- /** @deprecated Please load APIs with discovery documents. */
20
- function load(name: "area120tables", version: "v1alpha1"): Promise<void>;
21
- /** @deprecated Please load APIs with discovery documents. */
22
- function load(name: "area120tables", version: "v1alpha1", callback: () => any): void;
17
+ /** Load Area120 Tables API v1alpha1 */
18
+ function load(
19
+ urlOrObject: 'https://area120tables.googleapis.com/$discovery/rest?version=v1alpha1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'area120tables', version: 'v1alpha1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(
25
+ name: 'area120tables',
26
+ version: 'v1alpha1',
27
+ callback: () => any
28
+ ): void;
23
29
 
24
- namespace area120tables {
25
- interface BatchCreateRowsRequest {
26
- /** Required. The request message specifying the rows to create. A maximum of 500 rows can be created in a single batch. */
27
- requests?:
28
- CreateRowRequest[];
29
- }
30
- interface BatchCreateRowsResponse {
31
- /** The created rows. */
32
- rows?:
33
- Row[];
34
- }
35
- interface BatchDeleteRowsRequest {
36
- /**
37
- * Required. The names of the rows to delete. All rows must belong to the parent table or else the entire batch will fail. A maximum of 500 rows can be deleted in a batch. Format:
38
- * tables/{table}/rows/{row}
39
- */
40
- names?:
41
- string[];
42
- }
43
- interface BatchUpdateRowsRequest {
44
- /** Required. The request messages specifying the rows to update. A maximum of 500 rows can be modified in a single batch. */
45
- requests?:
46
- UpdateRowRequest[];
47
- }
48
- interface BatchUpdateRowsResponse {
49
- /** The updated rows. */
50
- rows?:
51
- Row[];
52
- }
53
- interface ColumnDescription {
54
- /**
55
- * Data type of the column Supported types are auto_id, boolean, boolean_list, creator, create_timestamp, date, dropdown, location, integer, integer_list, number, number_list, person,
56
- * person_list, tags, check_list, text, text_list, update_timestamp, updater, relationship, file_attachment_list. These types directly map to the column types supported on Tables
57
- * website.
58
- */
59
- dataType?:
60
- string;
61
- /** Optional. Additional details about a date column. */
62
- dateDetails?:
63
- DateDetails;
64
- /** Internal id for a column. */
65
- id?:
66
- string;
67
- /**
68
- * Optional. Range of labeled values for the column. Some columns like tags and drop-downs limit the values to a set of possible values. We return the range of values in such cases to
69
- * help clients implement better user data validation.
70
- */
71
- labels?:
72
- LabeledItem[];
73
- /**
74
- * Optional. Indicates that this is a lookup column whose value is derived from the relationship column specified in the details. Lookup columns can not be updated directly. To change
75
- * the value you must update the associated relationship column.
76
- */
77
- lookupDetails?:
78
- LookupDetails;
79
- /** Optional. Indicates whether or not multiple values are allowed for array types where such a restriction is possible. */
80
- multipleValuesDisallowed?:
81
- boolean;
82
- /** column name */
83
- name?:
84
- string;
85
- /** Optional. Indicates that values for the column cannot be set by the user. */
86
- readonly?:
87
- boolean;
88
- /** Optional. Additional details about a relationship column. Specified when data_type is relationship. */
89
- relationshipDetails?:
90
- RelationshipDetails;
91
- }
92
- interface CreateRowRequest {
93
- /** Required. The parent table where this row will be created. Format: tables/{table} */
94
- parent?:
95
- string;
96
- /** Required. The row to create. */
97
- row?:
98
- Row;
99
- /** Optional. Column key to use for values in the row. Defaults to user entered name. */
100
- view?:
101
- string;
102
- }
103
- interface DateDetails {
104
- /** Whether the date column includes time. */
105
- hasTime?:
106
- boolean;
107
- }
108
- // tslint:disable-next-line:no-empty-interface
109
- interface Empty {
110
- }
111
- interface LabeledItem {
112
- /** Internal id associated with the item. */
113
- id?:
114
- string;
115
- /** Display string as entered by user. */
116
- name?:
117
- string;
118
- }
119
- interface ListRowsResponse {
120
- /** A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages. */
121
- nextPageToken?:
122
- string;
123
- /** The rows from the specified table. */
124
- rows?:
125
- Row[];
126
- }
127
- interface ListTablesResponse {
128
- /** A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages. */
129
- nextPageToken?:
130
- string;
131
- /** The list of tables. */
132
- tables?:
133
- Table[];
134
- }
135
- interface ListWorkspacesResponse {
136
- /** A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages. */
137
- nextPageToken?:
138
- string;
139
- /** The list of workspaces. */
140
- workspaces?:
141
- Workspace[];
142
- }
143
- interface LookupDetails {
144
- /** The name of the relationship column associated with the lookup. */
145
- relationshipColumn?:
146
- string;
147
- /** The id of the relationship column. */
148
- relationshipColumnId?:
149
- string;
150
- }
151
- interface RelationshipDetails {
152
- /** The name of the table this relationship is linked to. */
153
- linkedTable?:
154
- string;
155
- }
156
- interface Row {
157
- /** Time when the row was created. */
158
- createTime?:
159
- string;
160
- /** The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. */
161
- name?:
162
- string;
163
- /** Time when the row was last updated. */
164
- updateTime?:
165
- string;
166
- /** The values of the row. This is a map of column key to value. Key is user entered name(default) or the internal column id based on the view in the request. */
167
- values?:
168
- { [P in string]: any };
169
- }
170
- interface SavedView {
171
- /** Internal id associated with the saved view. */
172
- id?:
173
- string;
174
- /** Display name of the saved view. */
175
- name?:
176
- string;
177
- }
178
- interface Table {
179
- /** List of columns in this table. Order of columns matches the display order. */
180
- columns?:
181
- ColumnDescription[];
182
- /** Time when the table was created. */
183
- createTime?:
184
- string;
185
- /** The human readable title of the table. */
186
- displayName?:
187
- string;
188
- /** The resource name of the table. Table names have the form `tables/{table}`. */
189
- name?:
190
- string;
191
- /** Saved views for this table. */
192
- savedViews?:
193
- SavedView[];
194
- /** The time zone of the table. IANA Time Zone Database time zone, e.g. "America/New_York". */
195
- timeZone?:
196
- string;
197
- /** Time when the table was last updated excluding updates to individual rows */
198
- updateTime?:
199
- string;
200
- }
201
- interface UpdateRowRequest {
202
- /** Required. The row to update. */
203
- row?:
204
- Row;
205
- /** The list of fields to update. */
206
- updateMask?:
207
- string;
208
- /** Optional. Column key to use for values in the row. Defaults to user entered name. */
209
- view?:
210
- string;
211
- }
212
- interface Workspace {
213
- /** Time when the workspace was created. */
214
- createTime?:
215
- string;
216
- /** The human readable title of the workspace. */
217
- displayName?:
218
- string;
219
- /** The resource name of the workspace. Workspace names have the form `workspaces/{workspace}`. */
220
- name?:
221
- string;
222
- /** The list of tables in the workspace. */
223
- tables?:
224
- Table[];
225
- /** Time when the workspace was last updated. */
226
- updateTime?:
227
- string;
228
- }
229
- interface RowsResource {
230
- /** Creates multiple rows. */
231
- batchCreate(request: {
232
- /** V1 error format. */
233
- "$.xgafv"?:
234
- string;
235
- /** OAuth access token. */
236
- access_token?:
237
- string;
238
- /** Data format for response. */
239
- alt?:
240
- string;
241
- /** JSONP */
242
- callback?:
243
- string;
244
- /** Selector specifying which fields to include in a partial response. */
245
- fields?:
246
- string;
247
- /** 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. */
248
- key?:
249
- string;
250
- /** OAuth 2.0 token for the current user. */
251
- oauth_token?:
252
- string;
253
- /** Required. The parent table where the rows will be created. Format: tables/{table} */
254
- parent:
255
- string;
256
- /** Returns response with indentations and line breaks. */
257
- prettyPrint?:
258
- boolean;
259
- /** 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. */
260
- quotaUser?:
261
- string;
262
- /** Upload protocol for media (e.g. "raw", "multipart"). */
263
- upload_protocol?:
264
- string;
265
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
266
- uploadType?:
267
- string;
268
- /** Request body */
269
- resource:
270
- BatchCreateRowsRequest;
271
- }): Request<BatchCreateRowsResponse>;
272
- batchCreate(request: {
273
- /** V1 error format. */
274
- "$.xgafv"?:
275
- string;
276
- /** OAuth access token. */
277
- access_token?:
278
- string;
279
- /** Data format for response. */
280
- alt?:
281
- string;
282
- /** JSONP */
283
- callback?:
284
- string;
285
- /** Selector specifying which fields to include in a partial response. */
286
- fields?:
287
- string;
288
- /** 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. */
289
- key?:
290
- string;
291
- /** OAuth 2.0 token for the current user. */
292
- oauth_token?:
293
- string;
294
- /** Required. The parent table where the rows will be created. Format: tables/{table} */
295
- parent:
296
- string;
297
- /** Returns response with indentations and line breaks. */
298
- prettyPrint?:
299
- boolean;
300
- /** 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. */
301
- quotaUser?:
302
- string;
303
- /** Upload protocol for media (e.g. "raw", "multipart"). */
304
- upload_protocol?:
305
- string;
306
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
307
- uploadType?:
308
- string;
309
- },
310
- body: BatchCreateRowsRequest): Request<BatchCreateRowsResponse>;
311
- /** Deletes multiple rows. */
312
- batchDelete(request: {
313
- /** V1 error format. */
314
- "$.xgafv"?:
315
- string;
316
- /** OAuth access token. */
317
- access_token?:
318
- string;
319
- /** Data format for response. */
320
- alt?:
321
- string;
322
- /** JSONP */
323
- callback?:
324
- string;
325
- /** Selector specifying which fields to include in a partial response. */
326
- fields?:
327
- string;
328
- /** 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. */
329
- key?:
330
- string;
331
- /** OAuth 2.0 token for the current user. */
332
- oauth_token?:
333
- string;
334
- /** Required. The parent table shared by all rows being deleted. Format: tables/{table} */
335
- parent:
336
- string;
337
- /** Returns response with indentations and line breaks. */
338
- prettyPrint?:
339
- boolean;
340
- /** 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. */
341
- quotaUser?:
342
- string;
343
- /** Upload protocol for media (e.g. "raw", "multipart"). */
344
- upload_protocol?:
345
- string;
346
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
347
- uploadType?:
348
- string;
349
- /** Request body */
350
- resource:
351
- BatchDeleteRowsRequest;
352
- }): Request<{}>;
353
- batchDelete(request: {
354
- /** V1 error format. */
355
- "$.xgafv"?:
356
- string;
357
- /** OAuth access token. */
358
- access_token?:
359
- string;
360
- /** Data format for response. */
361
- alt?:
362
- string;
363
- /** JSONP */
364
- callback?:
365
- string;
366
- /** Selector specifying which fields to include in a partial response. */
367
- fields?:
368
- string;
369
- /** 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. */
370
- key?:
371
- string;
372
- /** OAuth 2.0 token for the current user. */
373
- oauth_token?:
374
- string;
375
- /** Required. The parent table shared by all rows being deleted. Format: tables/{table} */
376
- parent:
377
- string;
378
- /** Returns response with indentations and line breaks. */
379
- prettyPrint?:
380
- boolean;
381
- /** 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. */
382
- quotaUser?:
383
- string;
384
- /** Upload protocol for media (e.g. "raw", "multipart"). */
385
- upload_protocol?:
386
- string;
387
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
388
- uploadType?:
389
- string;
390
- },
391
- body: BatchDeleteRowsRequest): Request<{}>;
392
- /** Updates multiple rows. */
393
- batchUpdate(request: {
394
- /** V1 error format. */
395
- "$.xgafv"?:
396
- string;
397
- /** OAuth access token. */
398
- access_token?:
399
- string;
400
- /** Data format for response. */
401
- alt?:
402
- string;
403
- /** JSONP */
404
- callback?:
405
- string;
406
- /** Selector specifying which fields to include in a partial response. */
407
- fields?:
408
- string;
409
- /** 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. */
410
- key?:
411
- string;
412
- /** OAuth 2.0 token for the current user. */
413
- oauth_token?:
414
- string;
415
- /** Required. The parent table shared by all rows being updated. Format: tables/{table} */
416
- parent:
417
- string;
418
- /** Returns response with indentations and line breaks. */
419
- prettyPrint?:
420
- boolean;
421
- /** 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. */
422
- quotaUser?:
423
- string;
424
- /** Upload protocol for media (e.g. "raw", "multipart"). */
425
- upload_protocol?:
426
- string;
427
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
428
- uploadType?:
429
- string;
430
- /** Request body */
431
- resource:
432
- BatchUpdateRowsRequest;
433
- }): Request<BatchUpdateRowsResponse>;
434
- batchUpdate(request: {
435
- /** V1 error format. */
436
- "$.xgafv"?:
437
- string;
438
- /** OAuth access token. */
439
- access_token?:
440
- string;
441
- /** Data format for response. */
442
- alt?:
443
- string;
444
- /** JSONP */
445
- callback?:
446
- string;
447
- /** Selector specifying which fields to include in a partial response. */
448
- fields?:
449
- string;
450
- /** 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. */
451
- key?:
452
- string;
453
- /** OAuth 2.0 token for the current user. */
454
- oauth_token?:
455
- string;
456
- /** Required. The parent table shared by all rows being updated. Format: tables/{table} */
457
- parent:
458
- string;
459
- /** Returns response with indentations and line breaks. */
460
- prettyPrint?:
461
- boolean;
462
- /** 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. */
463
- quotaUser?:
464
- string;
465
- /** Upload protocol for media (e.g. "raw", "multipart"). */
466
- upload_protocol?:
467
- string;
468
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
469
- uploadType?:
470
- string;
471
- },
472
- body: BatchUpdateRowsRequest): Request<BatchUpdateRowsResponse>;
473
- /** Creates a row. */
474
- create(request: {
475
- /** V1 error format. */
476
- "$.xgafv"?:
477
- string;
478
- /** OAuth access token. */
479
- access_token?:
480
- string;
481
- /** Data format for response. */
482
- alt?:
483
- string;
484
- /** JSONP */
485
- callback?:
486
- string;
487
- /** Selector specifying which fields to include in a partial response. */
488
- fields?:
489
- string;
490
- /** 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. */
491
- key?:
492
- string;
493
- /** OAuth 2.0 token for the current user. */
494
- oauth_token?:
495
- string;
496
- /** Required. The parent table where this row will be created. Format: tables/{table} */
497
- parent:
498
- string;
499
- /** Returns response with indentations and line breaks. */
500
- prettyPrint?:
501
- boolean;
502
- /** 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. */
503
- quotaUser?:
504
- string;
505
- /** Upload protocol for media (e.g. "raw", "multipart"). */
506
- upload_protocol?:
507
- string;
508
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
509
- uploadType?:
510
- string;
511
- /** Optional. Column key to use for values in the row. Defaults to user entered name. */
512
- view?:
513
- string;
514
- /** Request body */
515
- resource:
516
- Row;
517
- }): Request<Row>;
518
- create(request: {
519
- /** V1 error format. */
520
- "$.xgafv"?:
521
- string;
522
- /** OAuth access token. */
523
- access_token?:
524
- string;
525
- /** Data format for response. */
526
- alt?:
527
- string;
528
- /** JSONP */
529
- callback?:
530
- string;
531
- /** Selector specifying which fields to include in a partial response. */
532
- fields?:
533
- string;
534
- /** 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. */
535
- key?:
536
- string;
537
- /** OAuth 2.0 token for the current user. */
538
- oauth_token?:
539
- string;
540
- /** Required. The parent table where this row will be created. Format: tables/{table} */
541
- parent:
542
- string;
543
- /** Returns response with indentations and line breaks. */
544
- prettyPrint?:
545
- boolean;
546
- /** 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. */
547
- quotaUser?:
548
- string;
549
- /** Upload protocol for media (e.g. "raw", "multipart"). */
550
- upload_protocol?:
551
- string;
552
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
553
- uploadType?:
554
- string;
555
- /** Optional. Column key to use for values in the row. Defaults to user entered name. */
556
- view?:
557
- string;
558
- },
559
- body: Row): Request<Row>;
560
- /** Deletes a row. */
561
- delete(request?: {
562
- /** V1 error format. */
563
- "$.xgafv"?:
564
- string;
565
- /** OAuth access token. */
566
- access_token?:
567
- string;
568
- /** Data format for response. */
569
- alt?:
570
- string;
571
- /** JSONP */
572
- callback?:
573
- string;
574
- /** Selector specifying which fields to include in a partial response. */
575
- fields?:
576
- string;
577
- /** 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. */
578
- key?:
579
- string;
580
- /** Required. The name of the row to delete. Format: tables/{table}/rows/{row} */
581
- name:
582
- string;
583
- /** OAuth 2.0 token for the current user. */
584
- oauth_token?:
585
- string;
586
- /** Returns response with indentations and line breaks. */
587
- prettyPrint?:
588
- boolean;
589
- /** 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. */
590
- quotaUser?:
591
- string;
592
- /** Upload protocol for media (e.g. "raw", "multipart"). */
593
- upload_protocol?:
594
- string;
595
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
596
- uploadType?:
597
- string;
598
- }): Request<{}>;
599
- /** Gets a row. Returns NOT_FOUND if the row does not exist in the table. */
600
- get(request?: {
601
- /** V1 error format. */
602
- "$.xgafv"?:
603
- string;
604
- /** OAuth access token. */
605
- access_token?:
606
- string;
607
- /** Data format for response. */
608
- alt?:
609
- string;
610
- /** JSONP */
611
- callback?:
612
- string;
613
- /** Selector specifying which fields to include in a partial response. */
614
- fields?:
615
- string;
616
- /** 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. */
617
- key?:
618
- string;
619
- /** Required. The name of the row to retrieve. Format: tables/{table}/rows/{row} */
620
- name:
621
- string;
622
- /** OAuth 2.0 token for the current user. */
623
- oauth_token?:
624
- string;
625
- /** Returns response with indentations and line breaks. */
626
- prettyPrint?:
627
- boolean;
628
- /** 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. */
629
- quotaUser?:
630
- string;
631
- /** Upload protocol for media (e.g. "raw", "multipart"). */
632
- upload_protocol?:
633
- string;
634
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
635
- uploadType?:
636
- string;
637
- /** Optional. Column key to use for values in the row. Defaults to user entered name. */
638
- view?:
639
- string;
640
- }): Request<Row>;
641
- /** Lists rows in a table. Returns NOT_FOUND if the table does not exist. */
642
- list(request?: {
643
- /** V1 error format. */
644
- "$.xgafv"?:
645
- string;
646
- /** OAuth access token. */
647
- access_token?:
648
- string;
649
- /** Data format for response. */
650
- alt?:
651
- string;
652
- /** JSONP */
653
- callback?:
654
- string;
655
- /** Selector specifying which fields to include in a partial response. */
656
- fields?:
657
- string;
658
- /**
659
- * Optional. Filter to only include resources matching the requirements. For more information, see [Filtering list
660
- * results](https://support.google.com/area120-tables/answer/10503371).
661
- */
662
- filter?:
663
- string;
664
- /** 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. */
665
- key?:
666
- string;
667
- /** OAuth 2.0 token for the current user. */
668
- oauth_token?:
669
- string;
670
- /** Optional. Sorting order for the list of rows on createTime/updateTime. */
671
- orderBy?:
672
- string;
673
- /**
674
- * The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 50 rows are returned. The maximum value is 1,000; values above 1,000
675
- * are coerced to 1,000.
676
- */
677
- pageSize?:
678
- number;
679
- /**
680
- * A page token, received from a previous `ListRows` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRows` must match the
681
- * call that provided the page token.
682
- */
683
- pageToken?:
684
- string;
685
- /** Required. The parent table. Format: tables/{table} */
686
- parent:
687
- string;
688
- /** Returns response with indentations and line breaks. */
689
- prettyPrint?:
690
- boolean;
691
- /** 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. */
692
- quotaUser?:
693
- string;
694
- /** Upload protocol for media (e.g. "raw", "multipart"). */
695
- upload_protocol?:
696
- string;
697
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
698
- uploadType?:
699
- string;
700
- /** Optional. Column key to use for values in the row. Defaults to user entered name. */
701
- view?:
702
- string;
703
- }): Request<ListRowsResponse>;
704
- /** Updates a row. */
705
- patch(request: {
706
- /** V1 error format. */
707
- "$.xgafv"?:
708
- string;
709
- /** OAuth access token. */
710
- access_token?:
711
- string;
712
- /** Data format for response. */
713
- alt?:
714
- string;
715
- /** JSONP */
716
- callback?:
717
- string;
718
- /** Selector specifying which fields to include in a partial response. */
719
- fields?:
720
- string;
721
- /** 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. */
722
- key?:
723
- string;
724
- /** The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. */
725
- name:
726
- string;
727
- /** OAuth 2.0 token for the current user. */
728
- oauth_token?:
729
- string;
730
- /** Returns response with indentations and line breaks. */
731
- prettyPrint?:
732
- boolean;
733
- /** 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. */
734
- quotaUser?:
735
- string;
736
- /** The list of fields to update. */
737
- updateMask?:
738
- string;
739
- /** Upload protocol for media (e.g. "raw", "multipart"). */
740
- upload_protocol?:
741
- string;
742
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
743
- uploadType?:
744
- string;
745
- /** Optional. Column key to use for values in the row. Defaults to user entered name. */
746
- view?:
747
- string;
748
- /** Request body */
749
- resource:
750
- Row;
751
- }): Request<Row>;
752
- patch(request: {
753
- /** V1 error format. */
754
- "$.xgafv"?:
755
- string;
756
- /** OAuth access token. */
757
- access_token?:
758
- string;
759
- /** Data format for response. */
760
- alt?:
761
- string;
762
- /** JSONP */
763
- callback?:
764
- string;
765
- /** Selector specifying which fields to include in a partial response. */
766
- fields?:
767
- string;
768
- /** 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. */
769
- key?:
770
- string;
771
- /** The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. */
772
- name:
773
- string;
774
- /** OAuth 2.0 token for the current user. */
775
- oauth_token?:
776
- string;
777
- /** Returns response with indentations and line breaks. */
778
- prettyPrint?:
779
- boolean;
780
- /** 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. */
781
- quotaUser?:
782
- string;
783
- /** The list of fields to update. */
784
- updateMask?:
785
- string;
786
- /** Upload protocol for media (e.g. "raw", "multipart"). */
787
- upload_protocol?:
788
- string;
789
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
790
- uploadType?:
791
- string;
792
- /** Optional. Column key to use for values in the row. Defaults to user entered name. */
793
- view?:
794
- string;
795
- },
796
- body: Row): Request<Row>;
797
- }
798
- interface TablesResource {
799
- /** Gets a table. Returns NOT_FOUND if the table does not exist. */
800
- get(request?: {
801
- /** V1 error format. */
802
- "$.xgafv"?:
803
- string;
804
- /** OAuth access token. */
805
- access_token?:
806
- string;
807
- /** Data format for response. */
808
- alt?:
809
- string;
810
- /** JSONP */
811
- callback?:
812
- string;
813
- /** Selector specifying which fields to include in a partial response. */
814
- fields?:
815
- string;
816
- /** 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. */
817
- key?:
818
- string;
819
- /** Required. The name of the table to retrieve. Format: tables/{table} */
820
- name:
821
- string;
822
- /** OAuth 2.0 token for the current user. */
823
- oauth_token?:
824
- string;
825
- /** Returns response with indentations and line breaks. */
826
- prettyPrint?:
827
- boolean;
828
- /** 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. */
829
- quotaUser?:
830
- string;
831
- /** Upload protocol for media (e.g. "raw", "multipart"). */
832
- upload_protocol?:
833
- string;
834
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
835
- uploadType?:
836
- string;
837
- }): Request<Table>;
838
- /** Lists tables for the user. */
839
- list(request?: {
840
- /** V1 error format. */
841
- "$.xgafv"?:
842
- string;
843
- /** OAuth access token. */
844
- access_token?:
845
- string;
846
- /** Data format for response. */
847
- alt?:
848
- string;
849
- /** JSONP */
850
- callback?:
851
- string;
852
- /** Selector specifying which fields to include in a partial response. */
853
- fields?:
854
- string;
855
- /** 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. */
856
- key?:
857
- string;
858
- /** OAuth 2.0 token for the current user. */
859
- oauth_token?:
860
- string;
861
- /** Optional. Sorting order for the list of tables on createTime/updateTime. */
862
- orderBy?:
863
- string;
864
- /**
865
- * The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 20 tables are returned. The maximum value is 100; values above 100
866
- * are coerced to 100.
867
- */
868
- pageSize?:
869
- number;
870
- /**
871
- * A page token, received from a previous `ListTables` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTables` must match
872
- * the call that provided the page token.
873
- */
874
- pageToken?:
875
- string;
876
- /** Returns response with indentations and line breaks. */
877
- prettyPrint?:
878
- boolean;
879
- /** 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. */
880
- quotaUser?:
881
- string;
882
- /** Upload protocol for media (e.g. "raw", "multipart"). */
883
- upload_protocol?:
884
- string;
885
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
886
- uploadType?:
887
- string;
888
- }): Request<ListTablesResponse>;
889
- rows:
890
- RowsResource;
891
- }
892
- interface WorkspacesResource {
893
- /** Gets a workspace. Returns NOT_FOUND if the workspace does not exist. */
894
- get(request?: {
895
- /** V1 error format. */
896
- "$.xgafv"?:
897
- string;
898
- /** OAuth access token. */
899
- access_token?:
900
- string;
901
- /** Data format for response. */
902
- alt?:
903
- string;
904
- /** JSONP */
905
- callback?:
906
- string;
907
- /** Selector specifying which fields to include in a partial response. */
908
- fields?:
909
- string;
910
- /** 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. */
911
- key?:
912
- string;
913
- /** Required. The name of the workspace to retrieve. Format: workspaces/{workspace} */
914
- name:
915
- string;
916
- /** OAuth 2.0 token for the current user. */
917
- oauth_token?:
918
- string;
919
- /** Returns response with indentations and line breaks. */
920
- prettyPrint?:
921
- boolean;
922
- /** 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. */
923
- quotaUser?:
924
- string;
925
- /** Upload protocol for media (e.g. "raw", "multipart"). */
926
- upload_protocol?:
927
- string;
928
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
929
- uploadType?:
930
- string;
931
- }): Request<Workspace>;
932
- /** Lists workspaces for the user. */
933
- list(request?: {
934
- /** V1 error format. */
935
- "$.xgafv"?:
936
- string;
937
- /** OAuth access token. */
938
- access_token?:
939
- string;
940
- /** Data format for response. */
941
- alt?:
942
- string;
943
- /** JSONP */
944
- callback?:
945
- string;
946
- /** Selector specifying which fields to include in a partial response. */
947
- fields?:
948
- string;
949
- /** 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. */
950
- key?:
951
- string;
952
- /** OAuth 2.0 token for the current user. */
953
- oauth_token?:
954
- string;
955
- /**
956
- * The maximum number of workspaces to return. The service may return fewer than this value. If unspecified, at most 10 workspaces are returned. The maximum value is 25; values
957
- * above 25 are coerced to 25.
958
- */
959
- pageSize?:
960
- number;
961
- /**
962
- * A page token, received from a previous `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces`
963
- * must match the call that provided the page token.
964
- */
965
- pageToken?:
966
- string;
967
- /** Returns response with indentations and line breaks. */
968
- prettyPrint?:
969
- boolean;
970
- /** 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. */
971
- quotaUser?:
972
- string;
973
- /** Upload protocol for media (e.g. "raw", "multipart"). */
974
- upload_protocol?:
975
- string;
976
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
977
- uploadType?:
978
- string;
979
- }): Request<ListWorkspacesResponse>;
980
- }
30
+ namespace area120tables {
31
+ interface BatchCreateRowsRequest {
32
+ /** Required. The request message specifying the rows to create. A maximum of 500 rows can be created in a single batch. */
33
+ requests?: CreateRowRequest[];
34
+ }
35
+ interface BatchCreateRowsResponse {
36
+ /** The created rows. */
37
+ rows?: Row[];
38
+ }
39
+ interface BatchDeleteRowsRequest {
40
+ /** Required. The names of the rows to delete. All rows must belong to the parent table or else the entire batch will fail. A maximum of 500 rows can be deleted in a batch. Format: tables/{table}/rows/{row} */
41
+ names?: string[];
42
+ }
43
+ interface BatchUpdateRowsRequest {
44
+ /** Required. The request messages specifying the rows to update. A maximum of 500 rows can be modified in a single batch. */
45
+ requests?: UpdateRowRequest[];
46
+ }
47
+ interface BatchUpdateRowsResponse {
48
+ /** The updated rows. */
49
+ rows?: Row[];
50
+ }
51
+ interface ColumnDescription {
52
+ /** Data type of the column Supported types are auto_id, boolean, boolean_list, creator, create_timestamp, date, dropdown, location, integer, integer_list, number, number_list, person, person_list, tags, check_list, text, text_list, update_timestamp, updater, relationship, file_attachment_list. These types directly map to the column types supported on Tables website. */
53
+ dataType?: string;
54
+ /** Optional. Additional details about a date column. */
55
+ dateDetails?: DateDetails;
56
+ /** Internal id for a column. */
57
+ id?: string;
58
+ /** Optional. Range of labeled values for the column. Some columns like tags and drop-downs limit the values to a set of possible values. We return the range of values in such cases to help clients implement better user data validation. */
59
+ labels?: LabeledItem[];
60
+ /** Optional. Indicates that this is a lookup column whose value is derived from the relationship column specified in the details. Lookup columns can not be updated directly. To change the value you must update the associated relationship column. */
61
+ lookupDetails?: LookupDetails;
62
+ /** Optional. Indicates whether or not multiple values are allowed for array types where such a restriction is possible. */
63
+ multipleValuesDisallowed?: boolean;
64
+ /** column name */
65
+ name?: string;
66
+ /** Optional. Indicates that values for the column cannot be set by the user. */
67
+ readonly?: boolean;
68
+ /** Optional. Additional details about a relationship column. Specified when data_type is relationship. */
69
+ relationshipDetails?: RelationshipDetails;
70
+ }
71
+ interface CreateRowRequest {
72
+ /** Required. The parent table where this row will be created. Format: tables/{table} */
73
+ parent?: string;
74
+ /** Required. The row to create. */
75
+ row?: Row;
76
+ /** Optional. Column key to use for values in the row. Defaults to user entered name. */
77
+ view?: string;
78
+ }
79
+ interface DateDetails {
80
+ /** Whether the date column includes time. */
81
+ hasTime?: boolean;
82
+ }
83
+ interface Empty {}
84
+ interface LabeledItem {
85
+ /** Internal id associated with the item. */
86
+ id?: string;
87
+ /** Display string as entered by user. */
88
+ name?: string;
89
+ }
90
+ interface ListRowsResponse {
91
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages. */
92
+ nextPageToken?: string;
93
+ /** The rows from the specified table. */
94
+ rows?: Row[];
95
+ }
96
+ interface ListTablesResponse {
97
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages. */
98
+ nextPageToken?: string;
99
+ /** The list of tables. */
100
+ tables?: Table[];
101
+ }
102
+ interface ListWorkspacesResponse {
103
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages. */
104
+ nextPageToken?: string;
105
+ /** The list of workspaces. */
106
+ workspaces?: Workspace[];
107
+ }
108
+ interface LookupDetails {
109
+ /** The name of the relationship column associated with the lookup. */
110
+ relationshipColumn?: string;
111
+ /** The id of the relationship column. */
112
+ relationshipColumnId?: string;
113
+ }
114
+ interface RelationshipDetails {
115
+ /** The name of the table this relationship is linked to. */
116
+ linkedTable?: string;
117
+ }
118
+ interface Row {
119
+ /** Time when the row was created. */
120
+ createTime?: string;
121
+ /** The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. */
122
+ name?: string;
123
+ /** Time when the row was last updated. */
124
+ updateTime?: string;
125
+ /** The values of the row. This is a map of column key to value. Key is user entered name(default) or the internal column id based on the view in the request. */
126
+ values?: {[P in string]: any};
127
+ }
128
+ interface SavedView {
129
+ /** Internal id associated with the saved view. */
130
+ id?: string;
131
+ /** Display name of the saved view. */
132
+ name?: string;
133
+ }
134
+ interface Table {
135
+ /** List of columns in this table. Order of columns matches the display order. */
136
+ columns?: ColumnDescription[];
137
+ /** Time when the table was created. */
138
+ createTime?: string;
139
+ /** The human readable title of the table. */
140
+ displayName?: string;
141
+ /** The resource name of the table. Table names have the form `tables/{table}`. */
142
+ name?: string;
143
+ /** Saved views for this table. */
144
+ savedViews?: SavedView[];
145
+ /** The time zone of the table. IANA Time Zone Database time zone, e.g. "America/New_York". */
146
+ timeZone?: string;
147
+ /** Time when the table was last updated excluding updates to individual rows */
148
+ updateTime?: string;
149
+ }
150
+ interface UpdateRowRequest {
151
+ /** Required. The row to update. */
152
+ row?: Row;
153
+ /** The list of fields to update. */
154
+ updateMask?: string;
155
+ /** Optional. Column key to use for values in the row. Defaults to user entered name. */
156
+ view?: string;
157
+ }
158
+ interface Workspace {
159
+ /** Time when the workspace was created. */
160
+ createTime?: string;
161
+ /** The human readable title of the workspace. */
162
+ displayName?: string;
163
+ /** The resource name of the workspace. Workspace names have the form `workspaces/{workspace}`. */
164
+ name?: string;
165
+ /** The list of tables in the workspace. */
166
+ tables?: Table[];
167
+ /** Time when the workspace was last updated. */
168
+ updateTime?: string;
169
+ }
170
+ interface RowsResource {
171
+ /** Creates multiple rows. */
172
+ batchCreate(request: {
173
+ /** V1 error format. */
174
+ '$.xgafv'?: string;
175
+ /** OAuth access token. */
176
+ access_token?: string;
177
+ /** Data format for response. */
178
+ alt?: string;
179
+ /** JSONP */
180
+ callback?: string;
181
+ /** Selector specifying which fields to include in a partial response. */
182
+ fields?: string;
183
+ /** 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. */
184
+ key?: string;
185
+ /** OAuth 2.0 token for the current user. */
186
+ oauth_token?: string;
187
+ /** Required. The parent table where the rows will be created. Format: tables/{table} */
188
+ parent: string;
189
+ /** Returns response with indentations and line breaks. */
190
+ prettyPrint?: boolean;
191
+ /** 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. */
192
+ quotaUser?: string;
193
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
194
+ upload_protocol?: string;
195
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
196
+ uploadType?: string;
197
+ /** Request body */
198
+ resource: BatchCreateRowsRequest;
199
+ }): Request<BatchCreateRowsResponse>;
200
+ batchCreate(
201
+ request: {
202
+ /** V1 error format. */
203
+ '$.xgafv'?: string;
204
+ /** OAuth access token. */
205
+ access_token?: string;
206
+ /** Data format for response. */
207
+ alt?: string;
208
+ /** JSONP */
209
+ callback?: string;
210
+ /** Selector specifying which fields to include in a partial response. */
211
+ fields?: string;
212
+ /** 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. */
213
+ key?: string;
214
+ /** OAuth 2.0 token for the current user. */
215
+ oauth_token?: string;
216
+ /** Required. The parent table where the rows will be created. Format: tables/{table} */
217
+ parent: string;
218
+ /** Returns response with indentations and line breaks. */
219
+ prettyPrint?: boolean;
220
+ /** 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. */
221
+ quotaUser?: string;
222
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
223
+ upload_protocol?: string;
224
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
225
+ uploadType?: string;
226
+ },
227
+ body: BatchCreateRowsRequest
228
+ ): Request<BatchCreateRowsResponse>;
229
+ /** Deletes multiple rows. */
230
+ batchDelete(request: {
231
+ /** V1 error format. */
232
+ '$.xgafv'?: string;
233
+ /** OAuth access token. */
234
+ access_token?: string;
235
+ /** Data format for response. */
236
+ alt?: string;
237
+ /** JSONP */
238
+ callback?: string;
239
+ /** Selector specifying which fields to include in a partial response. */
240
+ fields?: string;
241
+ /** 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. */
242
+ key?: string;
243
+ /** OAuth 2.0 token for the current user. */
244
+ oauth_token?: string;
245
+ /** Required. The parent table shared by all rows being deleted. Format: tables/{table} */
246
+ parent: string;
247
+ /** Returns response with indentations and line breaks. */
248
+ prettyPrint?: boolean;
249
+ /** 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. */
250
+ quotaUser?: string;
251
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
252
+ upload_protocol?: string;
253
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
254
+ uploadType?: string;
255
+ /** Request body */
256
+ resource: BatchDeleteRowsRequest;
257
+ }): Request<{}>;
258
+ batchDelete(
259
+ request: {
260
+ /** V1 error format. */
261
+ '$.xgafv'?: string;
262
+ /** OAuth access token. */
263
+ access_token?: string;
264
+ /** Data format for response. */
265
+ alt?: string;
266
+ /** JSONP */
267
+ callback?: string;
268
+ /** Selector specifying which fields to include in a partial response. */
269
+ fields?: string;
270
+ /** 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. */
271
+ key?: string;
272
+ /** OAuth 2.0 token for the current user. */
273
+ oauth_token?: string;
274
+ /** Required. The parent table shared by all rows being deleted. Format: tables/{table} */
275
+ parent: string;
276
+ /** Returns response with indentations and line breaks. */
277
+ prettyPrint?: boolean;
278
+ /** 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. */
279
+ quotaUser?: string;
280
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
281
+ upload_protocol?: string;
282
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
283
+ uploadType?: string;
284
+ },
285
+ body: BatchDeleteRowsRequest
286
+ ): Request<{}>;
287
+ /** Updates multiple rows. */
288
+ batchUpdate(request: {
289
+ /** V1 error format. */
290
+ '$.xgafv'?: string;
291
+ /** OAuth access token. */
292
+ access_token?: string;
293
+ /** Data format for response. */
294
+ alt?: string;
295
+ /** JSONP */
296
+ callback?: string;
297
+ /** Selector specifying which fields to include in a partial response. */
298
+ fields?: string;
299
+ /** 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. */
300
+ key?: string;
301
+ /** OAuth 2.0 token for the current user. */
302
+ oauth_token?: string;
303
+ /** Required. The parent table shared by all rows being updated. Format: tables/{table} */
304
+ parent: string;
305
+ /** Returns response with indentations and line breaks. */
306
+ prettyPrint?: boolean;
307
+ /** 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. */
308
+ quotaUser?: string;
309
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
310
+ upload_protocol?: string;
311
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
312
+ uploadType?: string;
313
+ /** Request body */
314
+ resource: BatchUpdateRowsRequest;
315
+ }): Request<BatchUpdateRowsResponse>;
316
+ batchUpdate(
317
+ request: {
318
+ /** V1 error format. */
319
+ '$.xgafv'?: string;
320
+ /** OAuth access token. */
321
+ access_token?: string;
322
+ /** Data format for response. */
323
+ alt?: string;
324
+ /** JSONP */
325
+ callback?: string;
326
+ /** Selector specifying which fields to include in a partial response. */
327
+ fields?: string;
328
+ /** 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. */
329
+ key?: string;
330
+ /** OAuth 2.0 token for the current user. */
331
+ oauth_token?: string;
332
+ /** Required. The parent table shared by all rows being updated. Format: tables/{table} */
333
+ parent: string;
334
+ /** Returns response with indentations and line breaks. */
335
+ prettyPrint?: boolean;
336
+ /** 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. */
337
+ quotaUser?: string;
338
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
339
+ upload_protocol?: string;
340
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
341
+ uploadType?: string;
342
+ },
343
+ body: BatchUpdateRowsRequest
344
+ ): Request<BatchUpdateRowsResponse>;
345
+ /** Creates a row. */
346
+ create(request: {
347
+ /** V1 error format. */
348
+ '$.xgafv'?: string;
349
+ /** OAuth access token. */
350
+ access_token?: string;
351
+ /** Data format for response. */
352
+ alt?: string;
353
+ /** JSONP */
354
+ callback?: string;
355
+ /** Selector specifying which fields to include in a partial response. */
356
+ fields?: string;
357
+ /** 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. */
358
+ key?: string;
359
+ /** OAuth 2.0 token for the current user. */
360
+ oauth_token?: string;
361
+ /** Required. The parent table where this row will be created. Format: tables/{table} */
362
+ parent: string;
363
+ /** Returns response with indentations and line breaks. */
364
+ prettyPrint?: boolean;
365
+ /** 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. */
366
+ quotaUser?: string;
367
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
368
+ upload_protocol?: string;
369
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
370
+ uploadType?: string;
371
+ /** Optional. Column key to use for values in the row. Defaults to user entered name. */
372
+ view?: string;
373
+ /** Request body */
374
+ resource: Row;
375
+ }): Request<Row>;
376
+ create(
377
+ request: {
378
+ /** V1 error format. */
379
+ '$.xgafv'?: string;
380
+ /** OAuth access token. */
381
+ access_token?: string;
382
+ /** Data format for response. */
383
+ alt?: string;
384
+ /** JSONP */
385
+ callback?: string;
386
+ /** Selector specifying which fields to include in a partial response. */
387
+ fields?: string;
388
+ /** 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. */
389
+ key?: string;
390
+ /** OAuth 2.0 token for the current user. */
391
+ oauth_token?: string;
392
+ /** Required. The parent table where this row will be created. Format: tables/{table} */
393
+ parent: string;
394
+ /** Returns response with indentations and line breaks. */
395
+ prettyPrint?: boolean;
396
+ /** 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. */
397
+ quotaUser?: string;
398
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
399
+ upload_protocol?: string;
400
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
401
+ uploadType?: string;
402
+ /** Optional. Column key to use for values in the row. Defaults to user entered name. */
403
+ view?: string;
404
+ },
405
+ body: Row
406
+ ): Request<Row>;
407
+ /** Deletes a row. */
408
+ delete(request?: {
409
+ /** V1 error format. */
410
+ '$.xgafv'?: string;
411
+ /** OAuth access token. */
412
+ access_token?: string;
413
+ /** Data format for response. */
414
+ alt?: string;
415
+ /** JSONP */
416
+ callback?: string;
417
+ /** Selector specifying which fields to include in a partial response. */
418
+ fields?: string;
419
+ /** 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. */
420
+ key?: string;
421
+ /** Required. The name of the row to delete. Format: tables/{table}/rows/{row} */
422
+ name: string;
423
+ /** OAuth 2.0 token for the current user. */
424
+ oauth_token?: string;
425
+ /** Returns response with indentations and line breaks. */
426
+ prettyPrint?: boolean;
427
+ /** 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. */
428
+ quotaUser?: string;
429
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
430
+ upload_protocol?: string;
431
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
432
+ uploadType?: string;
433
+ }): Request<{}>;
434
+ /** Gets a row. Returns NOT_FOUND if the row does not exist in the table. */
435
+ get(request?: {
436
+ /** V1 error format. */
437
+ '$.xgafv'?: string;
438
+ /** OAuth access token. */
439
+ access_token?: string;
440
+ /** Data format for response. */
441
+ alt?: string;
442
+ /** JSONP */
443
+ callback?: string;
444
+ /** Selector specifying which fields to include in a partial response. */
445
+ fields?: string;
446
+ /** 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. */
447
+ key?: string;
448
+ /** Required. The name of the row to retrieve. Format: tables/{table}/rows/{row} */
449
+ name: string;
450
+ /** OAuth 2.0 token for the current user. */
451
+ oauth_token?: string;
452
+ /** Returns response with indentations and line breaks. */
453
+ prettyPrint?: boolean;
454
+ /** 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. */
455
+ quotaUser?: string;
456
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
457
+ upload_protocol?: string;
458
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
459
+ uploadType?: string;
460
+ /** Optional. Column key to use for values in the row. Defaults to user entered name. */
461
+ view?: string;
462
+ }): Request<Row>;
463
+ /** Lists rows in a table. Returns NOT_FOUND if the table does not exist. */
464
+ list(request?: {
465
+ /** V1 error format. */
466
+ '$.xgafv'?: string;
467
+ /** OAuth access token. */
468
+ access_token?: string;
469
+ /** Data format for response. */
470
+ alt?: string;
471
+ /** JSONP */
472
+ callback?: string;
473
+ /** Selector specifying which fields to include in a partial response. */
474
+ fields?: string;
475
+ /** Optional. Filter to only include resources matching the requirements. For more information, see [Filtering list results](https://support.google.com/area120-tables/answer/10503371). */
476
+ filter?: string;
477
+ /** 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. */
478
+ key?: string;
479
+ /** OAuth 2.0 token for the current user. */
480
+ oauth_token?: string;
481
+ /** Optional. Sorting order for the list of rows on createTime/updateTime. */
482
+ orderBy?: string;
483
+ /** The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 50 rows are returned. The maximum value is 1,000; values above 1,000 are coerced to 1,000. */
484
+ pageSize?: number;
485
+ /** A page token, received from a previous `ListRows` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRows` must match the call that provided the page token. */
486
+ pageToken?: string;
487
+ /** Required. The parent table. Format: tables/{table} */
488
+ parent: string;
489
+ /** Returns response with indentations and line breaks. */
490
+ prettyPrint?: boolean;
491
+ /** 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. */
492
+ quotaUser?: string;
493
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
494
+ upload_protocol?: string;
495
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
496
+ uploadType?: string;
497
+ /** Optional. Column key to use for values in the row. Defaults to user entered name. */
498
+ view?: string;
499
+ }): Request<ListRowsResponse>;
500
+ /** Updates a row. */
501
+ patch(request: {
502
+ /** V1 error format. */
503
+ '$.xgafv'?: string;
504
+ /** OAuth access token. */
505
+ access_token?: string;
506
+ /** Data format for response. */
507
+ alt?: string;
508
+ /** JSONP */
509
+ callback?: string;
510
+ /** Selector specifying which fields to include in a partial response. */
511
+ fields?: string;
512
+ /** 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. */
513
+ key?: string;
514
+ /** The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. */
515
+ name: string;
516
+ /** OAuth 2.0 token for the current user. */
517
+ oauth_token?: string;
518
+ /** Returns response with indentations and line breaks. */
519
+ prettyPrint?: boolean;
520
+ /** 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. */
521
+ quotaUser?: string;
522
+ /** The list of fields to update. */
523
+ updateMask?: string;
524
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
525
+ upload_protocol?: string;
526
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
527
+ uploadType?: string;
528
+ /** Optional. Column key to use for values in the row. Defaults to user entered name. */
529
+ view?: string;
530
+ /** Request body */
531
+ resource: Row;
532
+ }): Request<Row>;
533
+ patch(
534
+ request: {
535
+ /** V1 error format. */
536
+ '$.xgafv'?: string;
537
+ /** OAuth access token. */
538
+ access_token?: string;
539
+ /** Data format for response. */
540
+ alt?: string;
541
+ /** JSONP */
542
+ callback?: string;
543
+ /** Selector specifying which fields to include in a partial response. */
544
+ fields?: string;
545
+ /** 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. */
546
+ key?: string;
547
+ /** The resource name of the row. Row names have the form `tables/{table}/rows/{row}`. The name is ignored when creating a row. */
548
+ name: string;
549
+ /** OAuth 2.0 token for the current user. */
550
+ oauth_token?: string;
551
+ /** Returns response with indentations and line breaks. */
552
+ prettyPrint?: boolean;
553
+ /** 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. */
554
+ quotaUser?: string;
555
+ /** The list of fields to update. */
556
+ updateMask?: string;
557
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
558
+ upload_protocol?: string;
559
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
560
+ uploadType?: string;
561
+ /** Optional. Column key to use for values in the row. Defaults to user entered name. */
562
+ view?: string;
563
+ },
564
+ body: Row
565
+ ): Request<Row>;
566
+ }
567
+ interface TablesResource {
568
+ /** Gets a table. Returns NOT_FOUND if the table does not exist. */
569
+ get(request?: {
570
+ /** V1 error format. */
571
+ '$.xgafv'?: string;
572
+ /** OAuth access token. */
573
+ access_token?: string;
574
+ /** Data format for response. */
575
+ alt?: string;
576
+ /** JSONP */
577
+ callback?: string;
578
+ /** Selector specifying which fields to include in a partial response. */
579
+ fields?: string;
580
+ /** 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. */
581
+ key?: string;
582
+ /** Required. The name of the table to retrieve. Format: tables/{table} */
583
+ name: string;
584
+ /** OAuth 2.0 token for the current user. */
585
+ oauth_token?: string;
586
+ /** Returns response with indentations and line breaks. */
587
+ prettyPrint?: boolean;
588
+ /** 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. */
589
+ quotaUser?: string;
590
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
591
+ upload_protocol?: string;
592
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
593
+ uploadType?: string;
594
+ }): Request<Table>;
595
+ /** Lists tables for the user. */
596
+ list(request?: {
597
+ /** V1 error format. */
598
+ '$.xgafv'?: string;
599
+ /** OAuth access token. */
600
+ access_token?: string;
601
+ /** Data format for response. */
602
+ alt?: string;
603
+ /** JSONP */
604
+ callback?: string;
605
+ /** Selector specifying which fields to include in a partial response. */
606
+ fields?: string;
607
+ /** 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. */
608
+ key?: string;
609
+ /** OAuth 2.0 token for the current user. */
610
+ oauth_token?: string;
611
+ /** Optional. Sorting order for the list of tables on createTime/updateTime. */
612
+ orderBy?: string;
613
+ /** The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 20 tables are returned. The maximum value is 100; values above 100 are coerced to 100. */
614
+ pageSize?: number;
615
+ /** A page token, received from a previous `ListTables` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTables` must match the call that provided the page token. */
616
+ pageToken?: string;
617
+ /** Returns response with indentations and line breaks. */
618
+ prettyPrint?: boolean;
619
+ /** 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. */
620
+ quotaUser?: string;
621
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
622
+ upload_protocol?: string;
623
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
624
+ uploadType?: string;
625
+ }): Request<ListTablesResponse>;
626
+ rows: RowsResource;
627
+ }
628
+ interface WorkspacesResource {
629
+ /** Gets a workspace. Returns NOT_FOUND if the workspace does not exist. */
630
+ get(request?: {
631
+ /** V1 error format. */
632
+ '$.xgafv'?: string;
633
+ /** OAuth access token. */
634
+ access_token?: string;
635
+ /** Data format for response. */
636
+ alt?: string;
637
+ /** JSONP */
638
+ callback?: string;
639
+ /** Selector specifying which fields to include in a partial response. */
640
+ fields?: string;
641
+ /** 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. */
642
+ key?: string;
643
+ /** Required. The name of the workspace to retrieve. Format: workspaces/{workspace} */
644
+ name: string;
645
+ /** OAuth 2.0 token for the current user. */
646
+ oauth_token?: string;
647
+ /** Returns response with indentations and line breaks. */
648
+ prettyPrint?: boolean;
649
+ /** 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. */
650
+ quotaUser?: string;
651
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
652
+ upload_protocol?: string;
653
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
654
+ uploadType?: string;
655
+ }): Request<Workspace>;
656
+ /** Lists workspaces for the user. */
657
+ list(request?: {
658
+ /** V1 error format. */
659
+ '$.xgafv'?: string;
660
+ /** OAuth access token. */
661
+ access_token?: string;
662
+ /** Data format for response. */
663
+ alt?: string;
664
+ /** JSONP */
665
+ callback?: string;
666
+ /** Selector specifying which fields to include in a partial response. */
667
+ fields?: string;
668
+ /** 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. */
669
+ key?: string;
670
+ /** OAuth 2.0 token for the current user. */
671
+ oauth_token?: string;
672
+ /** The maximum number of workspaces to return. The service may return fewer than this value. If unspecified, at most 10 workspaces are returned. The maximum value is 25; values above 25 are coerced to 25. */
673
+ pageSize?: number;
674
+ /** A page token, received from a previous `ListWorkspaces` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkspaces` must match the call that provided the page token. */
675
+ pageToken?: string;
676
+ /** Returns response with indentations and line breaks. */
677
+ prettyPrint?: boolean;
678
+ /** 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. */
679
+ quotaUser?: string;
680
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
681
+ upload_protocol?: string;
682
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
683
+ uploadType?: string;
684
+ }): Request<ListWorkspacesResponse>;
685
+ }
981
686
 
982
- const tables: TablesResource;
687
+ const tables: TablesResource;
983
688
 
984
- const workspaces: WorkspacesResource;
985
- }
689
+ const workspaces: WorkspacesResource;
690
+ }
986
691
  }