@googleapis/biglake 0.1.1 → 2.0.1

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/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -358,6 +358,73 @@ export namespace biglake_v1 {
358
358
 
359
359
  /**
360
360
  * Creates a new catalog.
361
+ * @example
362
+ * ```js
363
+ * // Before running the sample:
364
+ * // - Enable the API at:
365
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
366
+ * // - Login into gcloud by running:
367
+ * // ```sh
368
+ * // $ gcloud auth application-default login
369
+ * // ```
370
+ * // - Install the npm module by running:
371
+ * // ```sh
372
+ * // $ npm install googleapis
373
+ * // ```
374
+ *
375
+ * const {google} = require('googleapis');
376
+ * const biglake = google.biglake('v1');
377
+ *
378
+ * async function main() {
379
+ * const auth = new google.auth.GoogleAuth({
380
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
381
+ * scopes: [
382
+ * 'https://www.googleapis.com/auth/bigquery',
383
+ * 'https://www.googleapis.com/auth/cloud-platform',
384
+ * ],
385
+ * });
386
+ *
387
+ * // Acquire an auth client, and bind it to all future calls
388
+ * const authClient = await auth.getClient();
389
+ * google.options({auth: authClient});
390
+ *
391
+ * // Do the magic
392
+ * const res = await biglake.projects.locations.catalogs.create({
393
+ * // Required. The ID to use for the catalog, which will become the final component of the catalog's resource name.
394
+ * catalogId: 'placeholder-value',
395
+ * // Required. The parent resource where this catalog will be created. Format: projects/{project_id_or_number\}/locations/{location_id\}
396
+ * parent: 'projects/my-project/locations/my-location',
397
+ *
398
+ * // Request body metadata
399
+ * requestBody: {
400
+ * // request body parameters
401
+ * // {
402
+ * // "createTime": "my_createTime",
403
+ * // "deleteTime": "my_deleteTime",
404
+ * // "expireTime": "my_expireTime",
405
+ * // "name": "my_name",
406
+ * // "updateTime": "my_updateTime"
407
+ * // }
408
+ * },
409
+ * });
410
+ * console.log(res.data);
411
+ *
412
+ * // Example response
413
+ * // {
414
+ * // "createTime": "my_createTime",
415
+ * // "deleteTime": "my_deleteTime",
416
+ * // "expireTime": "my_expireTime",
417
+ * // "name": "my_name",
418
+ * // "updateTime": "my_updateTime"
419
+ * // }
420
+ * }
421
+ *
422
+ * main().catch(e => {
423
+ * console.error(e);
424
+ * throw e;
425
+ * });
426
+ *
427
+ * ```
361
428
  *
362
429
  * @param params - Parameters for request
363
430
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -367,11 +434,11 @@ export namespace biglake_v1 {
367
434
  create(
368
435
  params: Params$Resource$Projects$Locations$Catalogs$Create,
369
436
  options: StreamMethodOptions
370
- ): GaxiosPromise<Readable>;
437
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
371
438
  create(
372
439
  params?: Params$Resource$Projects$Locations$Catalogs$Create,
373
440
  options?: MethodOptions
374
- ): GaxiosPromise<Schema$Catalog>;
441
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Catalog>>;
375
442
  create(
376
443
  params: Params$Resource$Projects$Locations$Catalogs$Create,
377
444
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -400,7 +467,10 @@ export namespace biglake_v1 {
400
467
  callback?:
401
468
  | BodyResponseCallback<Schema$Catalog>
402
469
  | BodyResponseCallback<Readable>
403
- ): void | GaxiosPromise<Schema$Catalog> | GaxiosPromise<Readable> {
470
+ ):
471
+ | void
472
+ | Promise<GaxiosResponseWithHTTP2<Schema$Catalog>>
473
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
404
474
  let params = (paramsOrCallback ||
405
475
  {}) as Params$Resource$Projects$Locations$Catalogs$Create;
406
476
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -446,6 +516,59 @@ export namespace biglake_v1 {
446
516
 
447
517
  /**
448
518
  * Deletes an existing catalog specified by the catalog ID.
519
+ * @example
520
+ * ```js
521
+ * // Before running the sample:
522
+ * // - Enable the API at:
523
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
524
+ * // - Login into gcloud by running:
525
+ * // ```sh
526
+ * // $ gcloud auth application-default login
527
+ * // ```
528
+ * // - Install the npm module by running:
529
+ * // ```sh
530
+ * // $ npm install googleapis
531
+ * // ```
532
+ *
533
+ * const {google} = require('googleapis');
534
+ * const biglake = google.biglake('v1');
535
+ *
536
+ * async function main() {
537
+ * const auth = new google.auth.GoogleAuth({
538
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
539
+ * scopes: [
540
+ * 'https://www.googleapis.com/auth/bigquery',
541
+ * 'https://www.googleapis.com/auth/cloud-platform',
542
+ * ],
543
+ * });
544
+ *
545
+ * // Acquire an auth client, and bind it to all future calls
546
+ * const authClient = await auth.getClient();
547
+ * google.options({auth: authClient});
548
+ *
549
+ * // Do the magic
550
+ * const res = await biglake.projects.locations.catalogs.delete({
551
+ * // Required. The name of the catalog to delete. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}
552
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog',
553
+ * });
554
+ * console.log(res.data);
555
+ *
556
+ * // Example response
557
+ * // {
558
+ * // "createTime": "my_createTime",
559
+ * // "deleteTime": "my_deleteTime",
560
+ * // "expireTime": "my_expireTime",
561
+ * // "name": "my_name",
562
+ * // "updateTime": "my_updateTime"
563
+ * // }
564
+ * }
565
+ *
566
+ * main().catch(e => {
567
+ * console.error(e);
568
+ * throw e;
569
+ * });
570
+ *
571
+ * ```
449
572
  *
450
573
  * @param params - Parameters for request
451
574
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -455,11 +578,11 @@ export namespace biglake_v1 {
455
578
  delete(
456
579
  params: Params$Resource$Projects$Locations$Catalogs$Delete,
457
580
  options: StreamMethodOptions
458
- ): GaxiosPromise<Readable>;
581
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
459
582
  delete(
460
583
  params?: Params$Resource$Projects$Locations$Catalogs$Delete,
461
584
  options?: MethodOptions
462
- ): GaxiosPromise<Schema$Catalog>;
585
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Catalog>>;
463
586
  delete(
464
587
  params: Params$Resource$Projects$Locations$Catalogs$Delete,
465
588
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -488,7 +611,10 @@ export namespace biglake_v1 {
488
611
  callback?:
489
612
  | BodyResponseCallback<Schema$Catalog>
490
613
  | BodyResponseCallback<Readable>
491
- ): void | GaxiosPromise<Schema$Catalog> | GaxiosPromise<Readable> {
614
+ ):
615
+ | void
616
+ | Promise<GaxiosResponseWithHTTP2<Schema$Catalog>>
617
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
492
618
  let params = (paramsOrCallback ||
493
619
  {}) as Params$Resource$Projects$Locations$Catalogs$Delete;
494
620
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -531,6 +657,59 @@ export namespace biglake_v1 {
531
657
 
532
658
  /**
533
659
  * Gets the catalog specified by the resource name.
660
+ * @example
661
+ * ```js
662
+ * // Before running the sample:
663
+ * // - Enable the API at:
664
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
665
+ * // - Login into gcloud by running:
666
+ * // ```sh
667
+ * // $ gcloud auth application-default login
668
+ * // ```
669
+ * // - Install the npm module by running:
670
+ * // ```sh
671
+ * // $ npm install googleapis
672
+ * // ```
673
+ *
674
+ * const {google} = require('googleapis');
675
+ * const biglake = google.biglake('v1');
676
+ *
677
+ * async function main() {
678
+ * const auth = new google.auth.GoogleAuth({
679
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
680
+ * scopes: [
681
+ * 'https://www.googleapis.com/auth/bigquery',
682
+ * 'https://www.googleapis.com/auth/cloud-platform',
683
+ * ],
684
+ * });
685
+ *
686
+ * // Acquire an auth client, and bind it to all future calls
687
+ * const authClient = await auth.getClient();
688
+ * google.options({auth: authClient});
689
+ *
690
+ * // Do the magic
691
+ * const res = await biglake.projects.locations.catalogs.get({
692
+ * // Required. The name of the catalog to retrieve. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}
693
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog',
694
+ * });
695
+ * console.log(res.data);
696
+ *
697
+ * // Example response
698
+ * // {
699
+ * // "createTime": "my_createTime",
700
+ * // "deleteTime": "my_deleteTime",
701
+ * // "expireTime": "my_expireTime",
702
+ * // "name": "my_name",
703
+ * // "updateTime": "my_updateTime"
704
+ * // }
705
+ * }
706
+ *
707
+ * main().catch(e => {
708
+ * console.error(e);
709
+ * throw e;
710
+ * });
711
+ *
712
+ * ```
534
713
  *
535
714
  * @param params - Parameters for request
536
715
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -540,11 +719,11 @@ export namespace biglake_v1 {
540
719
  get(
541
720
  params: Params$Resource$Projects$Locations$Catalogs$Get,
542
721
  options: StreamMethodOptions
543
- ): GaxiosPromise<Readable>;
722
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
544
723
  get(
545
724
  params?: Params$Resource$Projects$Locations$Catalogs$Get,
546
725
  options?: MethodOptions
547
- ): GaxiosPromise<Schema$Catalog>;
726
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Catalog>>;
548
727
  get(
549
728
  params: Params$Resource$Projects$Locations$Catalogs$Get,
550
729
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -573,7 +752,10 @@ export namespace biglake_v1 {
573
752
  callback?:
574
753
  | BodyResponseCallback<Schema$Catalog>
575
754
  | BodyResponseCallback<Readable>
576
- ): void | GaxiosPromise<Schema$Catalog> | GaxiosPromise<Readable> {
755
+ ):
756
+ | void
757
+ | Promise<GaxiosResponseWithHTTP2<Schema$Catalog>>
758
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
577
759
  let params = (paramsOrCallback ||
578
760
  {}) as Params$Resource$Projects$Locations$Catalogs$Get;
579
761
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -616,6 +798,60 @@ export namespace biglake_v1 {
616
798
 
617
799
  /**
618
800
  * List all catalogs in a specified project.
801
+ * @example
802
+ * ```js
803
+ * // Before running the sample:
804
+ * // - Enable the API at:
805
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
806
+ * // - Login into gcloud by running:
807
+ * // ```sh
808
+ * // $ gcloud auth application-default login
809
+ * // ```
810
+ * // - Install the npm module by running:
811
+ * // ```sh
812
+ * // $ npm install googleapis
813
+ * // ```
814
+ *
815
+ * const {google} = require('googleapis');
816
+ * const biglake = google.biglake('v1');
817
+ *
818
+ * async function main() {
819
+ * const auth = new google.auth.GoogleAuth({
820
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
821
+ * scopes: [
822
+ * 'https://www.googleapis.com/auth/bigquery',
823
+ * 'https://www.googleapis.com/auth/cloud-platform',
824
+ * ],
825
+ * });
826
+ *
827
+ * // Acquire an auth client, and bind it to all future calls
828
+ * const authClient = await auth.getClient();
829
+ * google.options({auth: authClient});
830
+ *
831
+ * // Do the magic
832
+ * const res = await biglake.projects.locations.catalogs.list({
833
+ * // The maximum number of catalogs to return. The service may return fewer than this value. If unspecified, at most 50 catalogs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
834
+ * pageSize: 'placeholder-value',
835
+ * // A page token, received from a previous `ListCatalogs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCatalogs` must match the call that provided the page token.
836
+ * pageToken: 'placeholder-value',
837
+ * // Required. The parent, which owns this collection of catalogs. Format: projects/{project_id_or_number\}/locations/{location_id\}
838
+ * parent: 'projects/my-project/locations/my-location',
839
+ * });
840
+ * console.log(res.data);
841
+ *
842
+ * // Example response
843
+ * // {
844
+ * // "catalogs": [],
845
+ * // "nextPageToken": "my_nextPageToken"
846
+ * // }
847
+ * }
848
+ *
849
+ * main().catch(e => {
850
+ * console.error(e);
851
+ * throw e;
852
+ * });
853
+ *
854
+ * ```
619
855
  *
620
856
  * @param params - Parameters for request
621
857
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -625,11 +861,11 @@ export namespace biglake_v1 {
625
861
  list(
626
862
  params: Params$Resource$Projects$Locations$Catalogs$List,
627
863
  options: StreamMethodOptions
628
- ): GaxiosPromise<Readable>;
864
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
629
865
  list(
630
866
  params?: Params$Resource$Projects$Locations$Catalogs$List,
631
867
  options?: MethodOptions
632
- ): GaxiosPromise<Schema$ListCatalogsResponse>;
868
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListCatalogsResponse>>;
633
869
  list(
634
870
  params: Params$Resource$Projects$Locations$Catalogs$List,
635
871
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -662,8 +898,8 @@ export namespace biglake_v1 {
662
898
  | BodyResponseCallback<Readable>
663
899
  ):
664
900
  | void
665
- | GaxiosPromise<Schema$ListCatalogsResponse>
666
- | GaxiosPromise<Readable> {
901
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListCatalogsResponse>>
902
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
667
903
  let params = (paramsOrCallback ||
668
904
  {}) as Params$Resource$Projects$Locations$Catalogs$List;
669
905
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -766,6 +1002,77 @@ export namespace biglake_v1 {
766
1002
 
767
1003
  /**
768
1004
  * Creates a new database.
1005
+ * @example
1006
+ * ```js
1007
+ * // Before running the sample:
1008
+ * // - Enable the API at:
1009
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
1010
+ * // - Login into gcloud by running:
1011
+ * // ```sh
1012
+ * // $ gcloud auth application-default login
1013
+ * // ```
1014
+ * // - Install the npm module by running:
1015
+ * // ```sh
1016
+ * // $ npm install googleapis
1017
+ * // ```
1018
+ *
1019
+ * const {google} = require('googleapis');
1020
+ * const biglake = google.biglake('v1');
1021
+ *
1022
+ * async function main() {
1023
+ * const auth = new google.auth.GoogleAuth({
1024
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1025
+ * scopes: [
1026
+ * 'https://www.googleapis.com/auth/bigquery',
1027
+ * 'https://www.googleapis.com/auth/cloud-platform',
1028
+ * ],
1029
+ * });
1030
+ *
1031
+ * // Acquire an auth client, and bind it to all future calls
1032
+ * const authClient = await auth.getClient();
1033
+ * google.options({auth: authClient});
1034
+ *
1035
+ * // Do the magic
1036
+ * const res = await biglake.projects.locations.catalogs.databases.create({
1037
+ * // Required. The ID to use for the database, which will become the final component of the database's resource name.
1038
+ * databaseId: 'placeholder-value',
1039
+ * // Required. The parent resource where this database will be created. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}
1040
+ * parent: 'projects/my-project/locations/my-location/catalogs/my-catalog',
1041
+ *
1042
+ * // Request body metadata
1043
+ * requestBody: {
1044
+ * // request body parameters
1045
+ * // {
1046
+ * // "createTime": "my_createTime",
1047
+ * // "deleteTime": "my_deleteTime",
1048
+ * // "expireTime": "my_expireTime",
1049
+ * // "hiveOptions": {},
1050
+ * // "name": "my_name",
1051
+ * // "type": "my_type",
1052
+ * // "updateTime": "my_updateTime"
1053
+ * // }
1054
+ * },
1055
+ * });
1056
+ * console.log(res.data);
1057
+ *
1058
+ * // Example response
1059
+ * // {
1060
+ * // "createTime": "my_createTime",
1061
+ * // "deleteTime": "my_deleteTime",
1062
+ * // "expireTime": "my_expireTime",
1063
+ * // "hiveOptions": {},
1064
+ * // "name": "my_name",
1065
+ * // "type": "my_type",
1066
+ * // "updateTime": "my_updateTime"
1067
+ * // }
1068
+ * }
1069
+ *
1070
+ * main().catch(e => {
1071
+ * console.error(e);
1072
+ * throw e;
1073
+ * });
1074
+ *
1075
+ * ```
769
1076
  *
770
1077
  * @param params - Parameters for request
771
1078
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -775,11 +1082,11 @@ export namespace biglake_v1 {
775
1082
  create(
776
1083
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Create,
777
1084
  options: StreamMethodOptions
778
- ): GaxiosPromise<Readable>;
1085
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
779
1086
  create(
780
1087
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Create,
781
1088
  options?: MethodOptions
782
- ): GaxiosPromise<Schema$Database>;
1089
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Database>>;
783
1090
  create(
784
1091
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Create,
785
1092
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -808,7 +1115,10 @@ export namespace biglake_v1 {
808
1115
  callback?:
809
1116
  | BodyResponseCallback<Schema$Database>
810
1117
  | BodyResponseCallback<Readable>
811
- ): void | GaxiosPromise<Schema$Database> | GaxiosPromise<Readable> {
1118
+ ):
1119
+ | void
1120
+ | Promise<GaxiosResponseWithHTTP2<Schema$Database>>
1121
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
812
1122
  let params = (paramsOrCallback ||
813
1123
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Create;
814
1124
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -855,6 +1165,61 @@ export namespace biglake_v1 {
855
1165
 
856
1166
  /**
857
1167
  * Deletes an existing database specified by the database ID.
1168
+ * @example
1169
+ * ```js
1170
+ * // Before running the sample:
1171
+ * // - Enable the API at:
1172
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
1173
+ * // - Login into gcloud by running:
1174
+ * // ```sh
1175
+ * // $ gcloud auth application-default login
1176
+ * // ```
1177
+ * // - Install the npm module by running:
1178
+ * // ```sh
1179
+ * // $ npm install googleapis
1180
+ * // ```
1181
+ *
1182
+ * const {google} = require('googleapis');
1183
+ * const biglake = google.biglake('v1');
1184
+ *
1185
+ * async function main() {
1186
+ * const auth = new google.auth.GoogleAuth({
1187
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1188
+ * scopes: [
1189
+ * 'https://www.googleapis.com/auth/bigquery',
1190
+ * 'https://www.googleapis.com/auth/cloud-platform',
1191
+ * ],
1192
+ * });
1193
+ *
1194
+ * // Acquire an auth client, and bind it to all future calls
1195
+ * const authClient = await auth.getClient();
1196
+ * google.options({auth: authClient});
1197
+ *
1198
+ * // Do the magic
1199
+ * const res = await biglake.projects.locations.catalogs.databases.delete({
1200
+ * // Required. The name of the database to delete. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}
1201
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database',
1202
+ * });
1203
+ * console.log(res.data);
1204
+ *
1205
+ * // Example response
1206
+ * // {
1207
+ * // "createTime": "my_createTime",
1208
+ * // "deleteTime": "my_deleteTime",
1209
+ * // "expireTime": "my_expireTime",
1210
+ * // "hiveOptions": {},
1211
+ * // "name": "my_name",
1212
+ * // "type": "my_type",
1213
+ * // "updateTime": "my_updateTime"
1214
+ * // }
1215
+ * }
1216
+ *
1217
+ * main().catch(e => {
1218
+ * console.error(e);
1219
+ * throw e;
1220
+ * });
1221
+ *
1222
+ * ```
858
1223
  *
859
1224
  * @param params - Parameters for request
860
1225
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -864,11 +1229,11 @@ export namespace biglake_v1 {
864
1229
  delete(
865
1230
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Delete,
866
1231
  options: StreamMethodOptions
867
- ): GaxiosPromise<Readable>;
1232
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
868
1233
  delete(
869
1234
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Delete,
870
1235
  options?: MethodOptions
871
- ): GaxiosPromise<Schema$Database>;
1236
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Database>>;
872
1237
  delete(
873
1238
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Delete,
874
1239
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -897,7 +1262,10 @@ export namespace biglake_v1 {
897
1262
  callback?:
898
1263
  | BodyResponseCallback<Schema$Database>
899
1264
  | BodyResponseCallback<Readable>
900
- ): void | GaxiosPromise<Schema$Database> | GaxiosPromise<Readable> {
1265
+ ):
1266
+ | void
1267
+ | Promise<GaxiosResponseWithHTTP2<Schema$Database>>
1268
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
901
1269
  let params = (paramsOrCallback ||
902
1270
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Delete;
903
1271
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -941,6 +1309,61 @@ export namespace biglake_v1 {
941
1309
 
942
1310
  /**
943
1311
  * Gets the database specified by the resource name.
1312
+ * @example
1313
+ * ```js
1314
+ * // Before running the sample:
1315
+ * // - Enable the API at:
1316
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
1317
+ * // - Login into gcloud by running:
1318
+ * // ```sh
1319
+ * // $ gcloud auth application-default login
1320
+ * // ```
1321
+ * // - Install the npm module by running:
1322
+ * // ```sh
1323
+ * // $ npm install googleapis
1324
+ * // ```
1325
+ *
1326
+ * const {google} = require('googleapis');
1327
+ * const biglake = google.biglake('v1');
1328
+ *
1329
+ * async function main() {
1330
+ * const auth = new google.auth.GoogleAuth({
1331
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1332
+ * scopes: [
1333
+ * 'https://www.googleapis.com/auth/bigquery',
1334
+ * 'https://www.googleapis.com/auth/cloud-platform',
1335
+ * ],
1336
+ * });
1337
+ *
1338
+ * // Acquire an auth client, and bind it to all future calls
1339
+ * const authClient = await auth.getClient();
1340
+ * google.options({auth: authClient});
1341
+ *
1342
+ * // Do the magic
1343
+ * const res = await biglake.projects.locations.catalogs.databases.get({
1344
+ * // Required. The name of the database to retrieve. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}
1345
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database',
1346
+ * });
1347
+ * console.log(res.data);
1348
+ *
1349
+ * // Example response
1350
+ * // {
1351
+ * // "createTime": "my_createTime",
1352
+ * // "deleteTime": "my_deleteTime",
1353
+ * // "expireTime": "my_expireTime",
1354
+ * // "hiveOptions": {},
1355
+ * // "name": "my_name",
1356
+ * // "type": "my_type",
1357
+ * // "updateTime": "my_updateTime"
1358
+ * // }
1359
+ * }
1360
+ *
1361
+ * main().catch(e => {
1362
+ * console.error(e);
1363
+ * throw e;
1364
+ * });
1365
+ *
1366
+ * ```
944
1367
  *
945
1368
  * @param params - Parameters for request
946
1369
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -950,11 +1373,11 @@ export namespace biglake_v1 {
950
1373
  get(
951
1374
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Get,
952
1375
  options: StreamMethodOptions
953
- ): GaxiosPromise<Readable>;
1376
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
954
1377
  get(
955
1378
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Get,
956
1379
  options?: MethodOptions
957
- ): GaxiosPromise<Schema$Database>;
1380
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Database>>;
958
1381
  get(
959
1382
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Get,
960
1383
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -983,7 +1406,10 @@ export namespace biglake_v1 {
983
1406
  callback?:
984
1407
  | BodyResponseCallback<Schema$Database>
985
1408
  | BodyResponseCallback<Readable>
986
- ): void | GaxiosPromise<Schema$Database> | GaxiosPromise<Readable> {
1409
+ ):
1410
+ | void
1411
+ | Promise<GaxiosResponseWithHTTP2<Schema$Database>>
1412
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
987
1413
  let params = (paramsOrCallback ||
988
1414
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Get;
989
1415
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1027,6 +1453,60 @@ export namespace biglake_v1 {
1027
1453
 
1028
1454
  /**
1029
1455
  * List all databases in a specified catalog.
1456
+ * @example
1457
+ * ```js
1458
+ * // Before running the sample:
1459
+ * // - Enable the API at:
1460
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
1461
+ * // - Login into gcloud by running:
1462
+ * // ```sh
1463
+ * // $ gcloud auth application-default login
1464
+ * // ```
1465
+ * // - Install the npm module by running:
1466
+ * // ```sh
1467
+ * // $ npm install googleapis
1468
+ * // ```
1469
+ *
1470
+ * const {google} = require('googleapis');
1471
+ * const biglake = google.biglake('v1');
1472
+ *
1473
+ * async function main() {
1474
+ * const auth = new google.auth.GoogleAuth({
1475
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1476
+ * scopes: [
1477
+ * 'https://www.googleapis.com/auth/bigquery',
1478
+ * 'https://www.googleapis.com/auth/cloud-platform',
1479
+ * ],
1480
+ * });
1481
+ *
1482
+ * // Acquire an auth client, and bind it to all future calls
1483
+ * const authClient = await auth.getClient();
1484
+ * google.options({auth: authClient});
1485
+ *
1486
+ * // Do the magic
1487
+ * const res = await biglake.projects.locations.catalogs.databases.list({
1488
+ * // The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
1489
+ * pageSize: 'placeholder-value',
1490
+ * // A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token.
1491
+ * pageToken: 'placeholder-value',
1492
+ * // Required. The parent, which owns this collection of databases. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}
1493
+ * parent: 'projects/my-project/locations/my-location/catalogs/my-catalog',
1494
+ * });
1495
+ * console.log(res.data);
1496
+ *
1497
+ * // Example response
1498
+ * // {
1499
+ * // "databases": [],
1500
+ * // "nextPageToken": "my_nextPageToken"
1501
+ * // }
1502
+ * }
1503
+ *
1504
+ * main().catch(e => {
1505
+ * console.error(e);
1506
+ * throw e;
1507
+ * });
1508
+ *
1509
+ * ```
1030
1510
  *
1031
1511
  * @param params - Parameters for request
1032
1512
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1036,11 +1516,11 @@ export namespace biglake_v1 {
1036
1516
  list(
1037
1517
  params: Params$Resource$Projects$Locations$Catalogs$Databases$List,
1038
1518
  options: StreamMethodOptions
1039
- ): GaxiosPromise<Readable>;
1519
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1040
1520
  list(
1041
1521
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$List,
1042
1522
  options?: MethodOptions
1043
- ): GaxiosPromise<Schema$ListDatabasesResponse>;
1523
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListDatabasesResponse>>;
1044
1524
  list(
1045
1525
  params: Params$Resource$Projects$Locations$Catalogs$Databases$List,
1046
1526
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1073,8 +1553,8 @@ export namespace biglake_v1 {
1073
1553
  | BodyResponseCallback<Readable>
1074
1554
  ):
1075
1555
  | void
1076
- | GaxiosPromise<Schema$ListDatabasesResponse>
1077
- | GaxiosPromise<Readable> {
1556
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListDatabasesResponse>>
1557
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1078
1558
  let params = (paramsOrCallback ||
1079
1559
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$List;
1080
1560
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1121,6 +1601,77 @@ export namespace biglake_v1 {
1121
1601
 
1122
1602
  /**
1123
1603
  * Updates an existing database specified by the database ID.
1604
+ * @example
1605
+ * ```js
1606
+ * // Before running the sample:
1607
+ * // - Enable the API at:
1608
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
1609
+ * // - Login into gcloud by running:
1610
+ * // ```sh
1611
+ * // $ gcloud auth application-default login
1612
+ * // ```
1613
+ * // - Install the npm module by running:
1614
+ * // ```sh
1615
+ * // $ npm install googleapis
1616
+ * // ```
1617
+ *
1618
+ * const {google} = require('googleapis');
1619
+ * const biglake = google.biglake('v1');
1620
+ *
1621
+ * async function main() {
1622
+ * const auth = new google.auth.GoogleAuth({
1623
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1624
+ * scopes: [
1625
+ * 'https://www.googleapis.com/auth/bigquery',
1626
+ * 'https://www.googleapis.com/auth/cloud-platform',
1627
+ * ],
1628
+ * });
1629
+ *
1630
+ * // Acquire an auth client, and bind it to all future calls
1631
+ * const authClient = await auth.getClient();
1632
+ * google.options({auth: authClient});
1633
+ *
1634
+ * // Do the magic
1635
+ * const res = await biglake.projects.locations.catalogs.databases.patch({
1636
+ * // Output only. The resource name. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}
1637
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database',
1638
+ * // The list of fields to update. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.
1639
+ * updateMask: 'placeholder-value',
1640
+ *
1641
+ * // Request body metadata
1642
+ * requestBody: {
1643
+ * // request body parameters
1644
+ * // {
1645
+ * // "createTime": "my_createTime",
1646
+ * // "deleteTime": "my_deleteTime",
1647
+ * // "expireTime": "my_expireTime",
1648
+ * // "hiveOptions": {},
1649
+ * // "name": "my_name",
1650
+ * // "type": "my_type",
1651
+ * // "updateTime": "my_updateTime"
1652
+ * // }
1653
+ * },
1654
+ * });
1655
+ * console.log(res.data);
1656
+ *
1657
+ * // Example response
1658
+ * // {
1659
+ * // "createTime": "my_createTime",
1660
+ * // "deleteTime": "my_deleteTime",
1661
+ * // "expireTime": "my_expireTime",
1662
+ * // "hiveOptions": {},
1663
+ * // "name": "my_name",
1664
+ * // "type": "my_type",
1665
+ * // "updateTime": "my_updateTime"
1666
+ * // }
1667
+ * }
1668
+ *
1669
+ * main().catch(e => {
1670
+ * console.error(e);
1671
+ * throw e;
1672
+ * });
1673
+ *
1674
+ * ```
1124
1675
  *
1125
1676
  * @param params - Parameters for request
1126
1677
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1130,11 +1681,11 @@ export namespace biglake_v1 {
1130
1681
  patch(
1131
1682
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Patch,
1132
1683
  options: StreamMethodOptions
1133
- ): GaxiosPromise<Readable>;
1684
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1134
1685
  patch(
1135
1686
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Patch,
1136
1687
  options?: MethodOptions
1137
- ): GaxiosPromise<Schema$Database>;
1688
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Database>>;
1138
1689
  patch(
1139
1690
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Patch,
1140
1691
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1163,7 +1714,10 @@ export namespace biglake_v1 {
1163
1714
  callback?:
1164
1715
  | BodyResponseCallback<Schema$Database>
1165
1716
  | BodyResponseCallback<Readable>
1166
- ): void | GaxiosPromise<Schema$Database> | GaxiosPromise<Readable> {
1717
+ ):
1718
+ | void
1719
+ | Promise<GaxiosResponseWithHTTP2<Schema$Database>>
1720
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1167
1721
  let params = (paramsOrCallback ||
1168
1722
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Patch;
1169
1723
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1276,6 +1830,82 @@ export namespace biglake_v1 {
1276
1830
 
1277
1831
  /**
1278
1832
  * Creates a new table.
1833
+ * @example
1834
+ * ```js
1835
+ * // Before running the sample:
1836
+ * // - Enable the API at:
1837
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
1838
+ * // - Login into gcloud by running:
1839
+ * // ```sh
1840
+ * // $ gcloud auth application-default login
1841
+ * // ```
1842
+ * // - Install the npm module by running:
1843
+ * // ```sh
1844
+ * // $ npm install googleapis
1845
+ * // ```
1846
+ *
1847
+ * const {google} = require('googleapis');
1848
+ * const biglake = google.biglake('v1');
1849
+ *
1850
+ * async function main() {
1851
+ * const auth = new google.auth.GoogleAuth({
1852
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1853
+ * scopes: [
1854
+ * 'https://www.googleapis.com/auth/bigquery',
1855
+ * 'https://www.googleapis.com/auth/cloud-platform',
1856
+ * ],
1857
+ * });
1858
+ *
1859
+ * // Acquire an auth client, and bind it to all future calls
1860
+ * const authClient = await auth.getClient();
1861
+ * google.options({auth: authClient});
1862
+ *
1863
+ * // Do the magic
1864
+ * const res = await biglake.projects.locations.catalogs.databases.tables.create(
1865
+ * {
1866
+ * // Required. The parent resource where this table will be created. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}
1867
+ * parent:
1868
+ * 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database',
1869
+ * // Required. The ID to use for the table, which will become the final component of the table's resource name.
1870
+ * tableId: 'placeholder-value',
1871
+ *
1872
+ * // Request body metadata
1873
+ * requestBody: {
1874
+ * // request body parameters
1875
+ * // {
1876
+ * // "createTime": "my_createTime",
1877
+ * // "deleteTime": "my_deleteTime",
1878
+ * // "etag": "my_etag",
1879
+ * // "expireTime": "my_expireTime",
1880
+ * // "hiveOptions": {},
1881
+ * // "name": "my_name",
1882
+ * // "type": "my_type",
1883
+ * // "updateTime": "my_updateTime"
1884
+ * // }
1885
+ * },
1886
+ * },
1887
+ * );
1888
+ * console.log(res.data);
1889
+ *
1890
+ * // Example response
1891
+ * // {
1892
+ * // "createTime": "my_createTime",
1893
+ * // "deleteTime": "my_deleteTime",
1894
+ * // "etag": "my_etag",
1895
+ * // "expireTime": "my_expireTime",
1896
+ * // "hiveOptions": {},
1897
+ * // "name": "my_name",
1898
+ * // "type": "my_type",
1899
+ * // "updateTime": "my_updateTime"
1900
+ * // }
1901
+ * }
1902
+ *
1903
+ * main().catch(e => {
1904
+ * console.error(e);
1905
+ * throw e;
1906
+ * });
1907
+ *
1908
+ * ```
1279
1909
  *
1280
1910
  * @param params - Parameters for request
1281
1911
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1285,11 +1915,11 @@ export namespace biglake_v1 {
1285
1915
  create(
1286
1916
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Create,
1287
1917
  options: StreamMethodOptions
1288
- ): GaxiosPromise<Readable>;
1918
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1289
1919
  create(
1290
1920
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Create,
1291
1921
  options?: MethodOptions
1292
- ): GaxiosPromise<Schema$Table>;
1922
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Table>>;
1293
1923
  create(
1294
1924
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Create,
1295
1925
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1318,7 +1948,10 @@ export namespace biglake_v1 {
1318
1948
  callback?:
1319
1949
  | BodyResponseCallback<Schema$Table>
1320
1950
  | BodyResponseCallback<Readable>
1321
- ): void | GaxiosPromise<Schema$Table> | GaxiosPromise<Readable> {
1951
+ ):
1952
+ | void
1953
+ | Promise<GaxiosResponseWithHTTP2<Schema$Table>>
1954
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1322
1955
  let params = (paramsOrCallback ||
1323
1956
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Create;
1324
1957
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1365,6 +1998,64 @@ export namespace biglake_v1 {
1365
1998
 
1366
1999
  /**
1367
2000
  * Deletes an existing table specified by the table ID.
2001
+ * @example
2002
+ * ```js
2003
+ * // Before running the sample:
2004
+ * // - Enable the API at:
2005
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
2006
+ * // - Login into gcloud by running:
2007
+ * // ```sh
2008
+ * // $ gcloud auth application-default login
2009
+ * // ```
2010
+ * // - Install the npm module by running:
2011
+ * // ```sh
2012
+ * // $ npm install googleapis
2013
+ * // ```
2014
+ *
2015
+ * const {google} = require('googleapis');
2016
+ * const biglake = google.biglake('v1');
2017
+ *
2018
+ * async function main() {
2019
+ * const auth = new google.auth.GoogleAuth({
2020
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2021
+ * scopes: [
2022
+ * 'https://www.googleapis.com/auth/bigquery',
2023
+ * 'https://www.googleapis.com/auth/cloud-platform',
2024
+ * ],
2025
+ * });
2026
+ *
2027
+ * // Acquire an auth client, and bind it to all future calls
2028
+ * const authClient = await auth.getClient();
2029
+ * google.options({auth: authClient});
2030
+ *
2031
+ * // Do the magic
2032
+ * const res = await biglake.projects.locations.catalogs.databases.tables.delete(
2033
+ * {
2034
+ * // Required. The name of the table to delete. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}/tables/{table_id\}
2035
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database/tables/my-table',
2036
+ * },
2037
+ * );
2038
+ * console.log(res.data);
2039
+ *
2040
+ * // Example response
2041
+ * // {
2042
+ * // "createTime": "my_createTime",
2043
+ * // "deleteTime": "my_deleteTime",
2044
+ * // "etag": "my_etag",
2045
+ * // "expireTime": "my_expireTime",
2046
+ * // "hiveOptions": {},
2047
+ * // "name": "my_name",
2048
+ * // "type": "my_type",
2049
+ * // "updateTime": "my_updateTime"
2050
+ * // }
2051
+ * }
2052
+ *
2053
+ * main().catch(e => {
2054
+ * console.error(e);
2055
+ * throw e;
2056
+ * });
2057
+ *
2058
+ * ```
1368
2059
  *
1369
2060
  * @param params - Parameters for request
1370
2061
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1374,11 +2065,11 @@ export namespace biglake_v1 {
1374
2065
  delete(
1375
2066
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Delete,
1376
2067
  options: StreamMethodOptions
1377
- ): GaxiosPromise<Readable>;
2068
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1378
2069
  delete(
1379
2070
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Delete,
1380
2071
  options?: MethodOptions
1381
- ): GaxiosPromise<Schema$Table>;
2072
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Table>>;
1382
2073
  delete(
1383
2074
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Delete,
1384
2075
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1407,7 +2098,10 @@ export namespace biglake_v1 {
1407
2098
  callback?:
1408
2099
  | BodyResponseCallback<Schema$Table>
1409
2100
  | BodyResponseCallback<Readable>
1410
- ): void | GaxiosPromise<Schema$Table> | GaxiosPromise<Readable> {
2101
+ ):
2102
+ | void
2103
+ | Promise<GaxiosResponseWithHTTP2<Schema$Table>>
2104
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1411
2105
  let params = (paramsOrCallback ||
1412
2106
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Delete;
1413
2107
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1451,6 +2145,62 @@ export namespace biglake_v1 {
1451
2145
 
1452
2146
  /**
1453
2147
  * Gets the table specified by the resource name.
2148
+ * @example
2149
+ * ```js
2150
+ * // Before running the sample:
2151
+ * // - Enable the API at:
2152
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
2153
+ * // - Login into gcloud by running:
2154
+ * // ```sh
2155
+ * // $ gcloud auth application-default login
2156
+ * // ```
2157
+ * // - Install the npm module by running:
2158
+ * // ```sh
2159
+ * // $ npm install googleapis
2160
+ * // ```
2161
+ *
2162
+ * const {google} = require('googleapis');
2163
+ * const biglake = google.biglake('v1');
2164
+ *
2165
+ * async function main() {
2166
+ * const auth = new google.auth.GoogleAuth({
2167
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2168
+ * scopes: [
2169
+ * 'https://www.googleapis.com/auth/bigquery',
2170
+ * 'https://www.googleapis.com/auth/cloud-platform',
2171
+ * ],
2172
+ * });
2173
+ *
2174
+ * // Acquire an auth client, and bind it to all future calls
2175
+ * const authClient = await auth.getClient();
2176
+ * google.options({auth: authClient});
2177
+ *
2178
+ * // Do the magic
2179
+ * const res = await biglake.projects.locations.catalogs.databases.tables.get({
2180
+ * // Required. The name of the table to retrieve. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}/tables/{table_id\}
2181
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database/tables/my-table',
2182
+ * });
2183
+ * console.log(res.data);
2184
+ *
2185
+ * // Example response
2186
+ * // {
2187
+ * // "createTime": "my_createTime",
2188
+ * // "deleteTime": "my_deleteTime",
2189
+ * // "etag": "my_etag",
2190
+ * // "expireTime": "my_expireTime",
2191
+ * // "hiveOptions": {},
2192
+ * // "name": "my_name",
2193
+ * // "type": "my_type",
2194
+ * // "updateTime": "my_updateTime"
2195
+ * // }
2196
+ * }
2197
+ *
2198
+ * main().catch(e => {
2199
+ * console.error(e);
2200
+ * throw e;
2201
+ * });
2202
+ *
2203
+ * ```
1454
2204
  *
1455
2205
  * @param params - Parameters for request
1456
2206
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1460,11 +2210,11 @@ export namespace biglake_v1 {
1460
2210
  get(
1461
2211
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Get,
1462
2212
  options: StreamMethodOptions
1463
- ): GaxiosPromise<Readable>;
2213
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1464
2214
  get(
1465
2215
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Get,
1466
2216
  options?: MethodOptions
1467
- ): GaxiosPromise<Schema$Table>;
2217
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Table>>;
1468
2218
  get(
1469
2219
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Get,
1470
2220
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1493,7 +2243,10 @@ export namespace biglake_v1 {
1493
2243
  callback?:
1494
2244
  | BodyResponseCallback<Schema$Table>
1495
2245
  | BodyResponseCallback<Readable>
1496
- ): void | GaxiosPromise<Schema$Table> | GaxiosPromise<Readable> {
2246
+ ):
2247
+ | void
2248
+ | Promise<GaxiosResponseWithHTTP2<Schema$Table>>
2249
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1497
2250
  let params = (paramsOrCallback ||
1498
2251
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Get;
1499
2252
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1537,6 +2290,63 @@ export namespace biglake_v1 {
1537
2290
 
1538
2291
  /**
1539
2292
  * List all tables in a specified database.
2293
+ * @example
2294
+ * ```js
2295
+ * // Before running the sample:
2296
+ * // - Enable the API at:
2297
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
2298
+ * // - Login into gcloud by running:
2299
+ * // ```sh
2300
+ * // $ gcloud auth application-default login
2301
+ * // ```
2302
+ * // - Install the npm module by running:
2303
+ * // ```sh
2304
+ * // $ npm install googleapis
2305
+ * // ```
2306
+ *
2307
+ * const {google} = require('googleapis');
2308
+ * const biglake = google.biglake('v1');
2309
+ *
2310
+ * async function main() {
2311
+ * const auth = new google.auth.GoogleAuth({
2312
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2313
+ * scopes: [
2314
+ * 'https://www.googleapis.com/auth/bigquery',
2315
+ * 'https://www.googleapis.com/auth/cloud-platform',
2316
+ * ],
2317
+ * });
2318
+ *
2319
+ * // Acquire an auth client, and bind it to all future calls
2320
+ * const authClient = await auth.getClient();
2321
+ * google.options({auth: authClient});
2322
+ *
2323
+ * // Do the magic
2324
+ * const res = await biglake.projects.locations.catalogs.databases.tables.list({
2325
+ * // The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 50 tables will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
2326
+ * pageSize: 'placeholder-value',
2327
+ * // 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.
2328
+ * pageToken: 'placeholder-value',
2329
+ * // Required. The parent, which owns this collection of tables. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}
2330
+ * parent:
2331
+ * 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database',
2332
+ * // The view for the returned tables.
2333
+ * view: 'placeholder-value',
2334
+ * });
2335
+ * console.log(res.data);
2336
+ *
2337
+ * // Example response
2338
+ * // {
2339
+ * // "nextPageToken": "my_nextPageToken",
2340
+ * // "tables": []
2341
+ * // }
2342
+ * }
2343
+ *
2344
+ * main().catch(e => {
2345
+ * console.error(e);
2346
+ * throw e;
2347
+ * });
2348
+ *
2349
+ * ```
1540
2350
  *
1541
2351
  * @param params - Parameters for request
1542
2352
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1546,11 +2356,11 @@ export namespace biglake_v1 {
1546
2356
  list(
1547
2357
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$List,
1548
2358
  options: StreamMethodOptions
1549
- ): GaxiosPromise<Readable>;
2359
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1550
2360
  list(
1551
2361
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$List,
1552
2362
  options?: MethodOptions
1553
- ): GaxiosPromise<Schema$ListTablesResponse>;
2363
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListTablesResponse>>;
1554
2364
  list(
1555
2365
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$List,
1556
2366
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1581,8 +2391,8 @@ export namespace biglake_v1 {
1581
2391
  | BodyResponseCallback<Readable>
1582
2392
  ):
1583
2393
  | void
1584
- | GaxiosPromise<Schema$ListTablesResponse>
1585
- | GaxiosPromise<Readable> {
2394
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListTablesResponse>>
2395
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1586
2396
  let params = (paramsOrCallback ||
1587
2397
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Tables$List;
1588
2398
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1629,6 +2439,79 @@ export namespace biglake_v1 {
1629
2439
 
1630
2440
  /**
1631
2441
  * Updates an existing table specified by the table ID.
2442
+ * @example
2443
+ * ```js
2444
+ * // Before running the sample:
2445
+ * // - Enable the API at:
2446
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
2447
+ * // - Login into gcloud by running:
2448
+ * // ```sh
2449
+ * // $ gcloud auth application-default login
2450
+ * // ```
2451
+ * // - Install the npm module by running:
2452
+ * // ```sh
2453
+ * // $ npm install googleapis
2454
+ * // ```
2455
+ *
2456
+ * const {google} = require('googleapis');
2457
+ * const biglake = google.biglake('v1');
2458
+ *
2459
+ * async function main() {
2460
+ * const auth = new google.auth.GoogleAuth({
2461
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2462
+ * scopes: [
2463
+ * 'https://www.googleapis.com/auth/bigquery',
2464
+ * 'https://www.googleapis.com/auth/cloud-platform',
2465
+ * ],
2466
+ * });
2467
+ *
2468
+ * // Acquire an auth client, and bind it to all future calls
2469
+ * const authClient = await auth.getClient();
2470
+ * google.options({auth: authClient});
2471
+ *
2472
+ * // Do the magic
2473
+ * const res = await biglake.projects.locations.catalogs.databases.tables.patch({
2474
+ * // Output only. The resource name. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}/tables/{table_id\}
2475
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database/tables/my-table',
2476
+ * // The list of fields to update. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.
2477
+ * updateMask: 'placeholder-value',
2478
+ *
2479
+ * // Request body metadata
2480
+ * requestBody: {
2481
+ * // request body parameters
2482
+ * // {
2483
+ * // "createTime": "my_createTime",
2484
+ * // "deleteTime": "my_deleteTime",
2485
+ * // "etag": "my_etag",
2486
+ * // "expireTime": "my_expireTime",
2487
+ * // "hiveOptions": {},
2488
+ * // "name": "my_name",
2489
+ * // "type": "my_type",
2490
+ * // "updateTime": "my_updateTime"
2491
+ * // }
2492
+ * },
2493
+ * });
2494
+ * console.log(res.data);
2495
+ *
2496
+ * // Example response
2497
+ * // {
2498
+ * // "createTime": "my_createTime",
2499
+ * // "deleteTime": "my_deleteTime",
2500
+ * // "etag": "my_etag",
2501
+ * // "expireTime": "my_expireTime",
2502
+ * // "hiveOptions": {},
2503
+ * // "name": "my_name",
2504
+ * // "type": "my_type",
2505
+ * // "updateTime": "my_updateTime"
2506
+ * // }
2507
+ * }
2508
+ *
2509
+ * main().catch(e => {
2510
+ * console.error(e);
2511
+ * throw e;
2512
+ * });
2513
+ *
2514
+ * ```
1632
2515
  *
1633
2516
  * @param params - Parameters for request
1634
2517
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1638,11 +2521,11 @@ export namespace biglake_v1 {
1638
2521
  patch(
1639
2522
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Patch,
1640
2523
  options: StreamMethodOptions
1641
- ): GaxiosPromise<Readable>;
2524
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1642
2525
  patch(
1643
2526
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Patch,
1644
2527
  options?: MethodOptions
1645
- ): GaxiosPromise<Schema$Table>;
2528
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Table>>;
1646
2529
  patch(
1647
2530
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Patch,
1648
2531
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1671,7 +2554,10 @@ export namespace biglake_v1 {
1671
2554
  callback?:
1672
2555
  | BodyResponseCallback<Schema$Table>
1673
2556
  | BodyResponseCallback<Readable>
1674
- ): void | GaxiosPromise<Schema$Table> | GaxiosPromise<Readable> {
2557
+ ):
2558
+ | void
2559
+ | Promise<GaxiosResponseWithHTTP2<Schema$Table>>
2560
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1675
2561
  let params = (paramsOrCallback ||
1676
2562
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Patch;
1677
2563
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -1715,6 +2601,72 @@ export namespace biglake_v1 {
1715
2601
 
1716
2602
  /**
1717
2603
  * Renames an existing table specified by the table ID.
2604
+ * @example
2605
+ * ```js
2606
+ * // Before running the sample:
2607
+ * // - Enable the API at:
2608
+ * // https://console.developers.google.com/apis/api/biglake.googleapis.com
2609
+ * // - Login into gcloud by running:
2610
+ * // ```sh
2611
+ * // $ gcloud auth application-default login
2612
+ * // ```
2613
+ * // - Install the npm module by running:
2614
+ * // ```sh
2615
+ * // $ npm install googleapis
2616
+ * // ```
2617
+ *
2618
+ * const {google} = require('googleapis');
2619
+ * const biglake = google.biglake('v1');
2620
+ *
2621
+ * async function main() {
2622
+ * const auth = new google.auth.GoogleAuth({
2623
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
2624
+ * scopes: [
2625
+ * 'https://www.googleapis.com/auth/bigquery',
2626
+ * 'https://www.googleapis.com/auth/cloud-platform',
2627
+ * ],
2628
+ * });
2629
+ *
2630
+ * // Acquire an auth client, and bind it to all future calls
2631
+ * const authClient = await auth.getClient();
2632
+ * google.options({auth: authClient});
2633
+ *
2634
+ * // Do the magic
2635
+ * const res = await biglake.projects.locations.catalogs.databases.tables.rename(
2636
+ * {
2637
+ * // Required. The table's `name` field is used to identify the table to rename. Format: projects/{project_id_or_number\}/locations/{location_id\}/catalogs/{catalog_id\}/databases/{database_id\}/tables/{table_id\}
2638
+ * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/databases/my-database/tables/my-table',
2639
+ *
2640
+ * // Request body metadata
2641
+ * requestBody: {
2642
+ * // request body parameters
2643
+ * // {
2644
+ * // "newName": "my_newName"
2645
+ * // }
2646
+ * },
2647
+ * },
2648
+ * );
2649
+ * console.log(res.data);
2650
+ *
2651
+ * // Example response
2652
+ * // {
2653
+ * // "createTime": "my_createTime",
2654
+ * // "deleteTime": "my_deleteTime",
2655
+ * // "etag": "my_etag",
2656
+ * // "expireTime": "my_expireTime",
2657
+ * // "hiveOptions": {},
2658
+ * // "name": "my_name",
2659
+ * // "type": "my_type",
2660
+ * // "updateTime": "my_updateTime"
2661
+ * // }
2662
+ * }
2663
+ *
2664
+ * main().catch(e => {
2665
+ * console.error(e);
2666
+ * throw e;
2667
+ * });
2668
+ *
2669
+ * ```
1718
2670
  *
1719
2671
  * @param params - Parameters for request
1720
2672
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1724,11 +2676,11 @@ export namespace biglake_v1 {
1724
2676
  rename(
1725
2677
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Rename,
1726
2678
  options: StreamMethodOptions
1727
- ): GaxiosPromise<Readable>;
2679
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
1728
2680
  rename(
1729
2681
  params?: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Rename,
1730
2682
  options?: MethodOptions
1731
- ): GaxiosPromise<Schema$Table>;
2683
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Table>>;
1732
2684
  rename(
1733
2685
  params: Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Rename,
1734
2686
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -1757,7 +2709,10 @@ export namespace biglake_v1 {
1757
2709
  callback?:
1758
2710
  | BodyResponseCallback<Schema$Table>
1759
2711
  | BodyResponseCallback<Readable>
1760
- ): void | GaxiosPromise<Schema$Table> | GaxiosPromise<Readable> {
2712
+ ):
2713
+ | void
2714
+ | Promise<GaxiosResponseWithHTTP2<Schema$Table>>
2715
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
1761
2716
  let params = (paramsOrCallback ||
1762
2717
  {}) as Params$Resource$Projects$Locations$Catalogs$Databases$Tables$Rename;
1763
2718
  let options = (optionsOrCallback || {}) as MethodOptions;