@maxim_mazurok/gapi.client.bigquerydatatransfer-v1 0.1.20260314 → 0.1.20260601

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +229 -128
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://bigquerydatatransfer.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260314
12
+ // Revision: 20260601
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -33,13 +33,24 @@ declare namespace gapi.client {
33
33
  /** If set to `true`, the credentials exist and are valid. */
34
34
  hasValidCreds?: boolean;
35
35
  }
36
+ interface DataplexConfiguration {
37
+ /** Required. The Dataplex Universal Catalog entry group for importing the metadata. entry_group has the format of `projects/{project_id}/locations/{region}/entryGroups/{entry_group_id}`. */
38
+ entryGroup?: string;
39
+ }
36
40
  interface DataSource {
37
41
  /** Indicates the type of authorization. */
38
- authorizationType?: string;
42
+ authorizationType?:
43
+ | 'AUTHORIZATION_TYPE_UNSPECIFIED'
44
+ | 'AUTHORIZATION_CODE'
45
+ | 'GOOGLE_PLUS_AUTHORIZATION_CODE'
46
+ | 'FIRST_PARTY_OAUTH';
39
47
  /** Data source client id which should be used to receive refresh token. */
40
48
  clientId?: string;
41
49
  /** Specifies whether the data source supports automatic data refresh for the past few days, and how it's supported. For some data sources, data might not be complete until a few days later, so it's useful to refresh data automatically. */
42
- dataRefreshType?: string;
50
+ dataRefreshType?:
51
+ | 'DATA_REFRESH_TYPE_UNSPECIFIED'
52
+ | 'SLIDING_WINDOW'
53
+ | 'CUSTOM_SLIDING_WINDOW';
43
54
  /** Data source id. */
44
55
  dataSourceId?: string;
45
56
  /** Default data refresh window on days. Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`. */
@@ -67,7 +78,7 @@ declare namespace gapi.client {
67
78
  /** Deprecated. This field has no effect. */
68
79
  supportsMultipleTransfers?: boolean;
69
80
  /** Deprecated. This field has no effect. */
70
- transferType?: string;
81
+ transferType?: 'TRANSFER_TYPE_UNSPECIFIED' | 'BATCH' | 'STREAMING';
71
82
  /** The number of seconds to wait for an update from the data source before the Data Transfer Service marks the transfer as FAILED. */
72
83
  updateDeadlineSeconds?: number;
73
84
  }
@@ -99,7 +110,15 @@ declare namespace gapi.client {
99
110
  /** Is parameter required. */
100
111
  required?: boolean;
101
112
  /** Parameter type. */
102
- type?: string;
113
+ type?:
114
+ | 'TYPE_UNSPECIFIED'
115
+ | 'STRING'
116
+ | 'INTEGER'
117
+ | 'DOUBLE'
118
+ | 'BOOLEAN'
119
+ | 'RECORD'
120
+ | 'PLUS_PAGE'
121
+ | 'LIST';
103
122
  /** Description of the requirements for this field, in case the user input does not fulfill the regex pattern or min/max values. */
104
123
  validationDescription?: string;
105
124
  /** URL to a help document to further explain the naming requirements. */
@@ -179,6 +198,10 @@ declare namespace gapi.client {
179
198
  name?: string;
180
199
  }
181
200
  interface ManualSchedule {}
201
+ interface MetadataDestination {
202
+ /** The Dataplex Universal Catalog configuration. */
203
+ dataplexConfiguration?: DataplexConfiguration;
204
+ }
182
205
  interface PartitionDetail {
183
206
  /** Optional. Name of the table which has the partitions. */
184
207
  table?: string;
@@ -223,7 +246,7 @@ declare namespace gapi.client {
223
246
  /** The status code, which should be an enum value of google.rpc.Code. */
224
247
  code?: number;
225
248
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
226
- details?: Array<{[P in string]: any}>;
249
+ details?: {[P in string]: any}[];
227
250
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
228
251
  message?: string;
229
252
  }
@@ -265,7 +288,12 @@ declare namespace gapi.client {
265
288
  /** Output only. Error code with detailed information about reason of the latest config failure. */
266
289
  error?: Status;
267
290
  /** The classification of the destination table. */
268
- managedTableType?: string;
291
+ managedTableType?:
292
+ | 'MANAGED_TABLE_TYPE_UNSPECIFIED'
293
+ | 'NATIVE'
294
+ | 'BIGLAKE';
295
+ /** The metadata destination of the transfer config. */
296
+ metadataDestination?: MetadataDestination;
269
297
  /** Identifier. The resource name of the transfer config. Transfer config names have the form either `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` or `projects/{project_id}/transferConfigs/{config_id}`, where `config_id` is usually a UUID, even though it is not guaranteed or required. The name is ignored when creating a transfer config. */
270
298
  name?: string;
271
299
  /** Output only. Next time when data transfer will run. */
@@ -283,7 +311,13 @@ declare namespace gapi.client {
283
311
  /** Options customizing different types of data transfer schedule. This field replaces "schedule" and "schedule_options" fields. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule. */
284
312
  scheduleOptionsV2?: ScheduleOptionsV2;
285
313
  /** Output only. State of the most recently updated transfer run. */
286
- state?: string;
314
+ state?:
315
+ | 'TRANSFER_STATE_UNSPECIFIED'
316
+ | 'PENDING'
317
+ | 'RUNNING'
318
+ | 'SUCCEEDED'
319
+ | 'FAILED'
320
+ | 'CANCELLED';
287
321
  /** Output only. Data transfer modification time. Ignored by server on input. */
288
322
  updateTime?: string;
289
323
  /** Deprecated. Unique ID of the user on whose behalf transfer is done. */
@@ -295,11 +329,17 @@ declare namespace gapi.client {
295
329
  /** Time when message was logged. */
296
330
  messageTime?: string;
297
331
  /** Message severity. */
298
- severity?: string;
332
+ severity?: 'MESSAGE_SEVERITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ERROR';
299
333
  }
300
334
  interface TransferResource {
301
335
  /** Optional. Resource destination. */
302
- destination?: string;
336
+ destination?:
337
+ | 'RESOURCE_DESTINATION_UNSPECIFIED'
338
+ | 'RESOURCE_DESTINATION_BIGQUERY'
339
+ | 'RESOURCE_DESTINATION_DATAPROC_METASTORE'
340
+ | 'RESOURCE_DESTINATION_BIGLAKE_METASTORE'
341
+ | 'RESOURCE_DESTINATION_BIGLAKE_REST_CATALOG'
342
+ | 'RESOURCE_DESTINATION_BIGLAKE_HIVE_CATALOG';
303
343
  /** Optional. Details about the hierarchy. */
304
344
  hierarchyDetail?: HierarchyDetail;
305
345
  /** Output only. Run details for the last successful run. */
@@ -311,7 +351,10 @@ declare namespace gapi.client {
311
351
  /** Identifier. Resource name. */
312
352
  name?: string;
313
353
  /** Optional. Resource type. */
314
- type?: string;
354
+ type?:
355
+ | 'RESOURCE_TYPE_UNSPECIFIED'
356
+ | 'RESOURCE_TYPE_TABLE'
357
+ | 'RESOURCE_TYPE_PARTITION';
315
358
  /** Output only. Time when the resource was last updated. */
316
359
  updateTime?: string;
317
360
  }
@@ -321,7 +364,13 @@ declare namespace gapi.client {
321
364
  /** Optional. Transfer error details for the resource. */
322
365
  error?: Status;
323
366
  /** Optional. Transfer state of the resource. */
324
- state?: string;
367
+ state?:
368
+ | 'RESOURCE_TRANSFER_STATE_UNSPECIFIED'
369
+ | 'RESOURCE_TRANSFER_PENDING'
370
+ | 'RESOURCE_TRANSFER_RUNNING'
371
+ | 'RESOURCE_TRANSFER_SUCCEEDED'
372
+ | 'RESOURCE_TRANSFER_FAILED'
373
+ | 'RESOURCE_TRANSFER_CANCELLED';
325
374
  /** Optional. Transfer status summary of the resource. */
326
375
  summary?: TransferStatusSummary;
327
376
  }
@@ -336,6 +385,8 @@ declare namespace gapi.client {
336
385
  endTime?: string;
337
386
  /** Status of the transfer run. */
338
387
  errorStatus?: Status;
388
+ /** Output only. The metadata destination of the transfer run. */
389
+ metadataDestination?: MetadataDestination;
339
390
  /** Identifier. The resource name of the transfer run. Transfer run names have the form `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. The name is ignored when creating a transfer run. */
340
391
  name?: string;
341
392
  /** Output only. Pub/Sub topic where a notification will be sent after this transfer run finishes. The format for specifying a pubsub topic is: `projects/{project_id}/topics/{topic_id}` */
@@ -351,14 +402,20 @@ declare namespace gapi.client {
351
402
  /** Output only. Time when transfer run was started. Parameter ignored by server for input requests. */
352
403
  startTime?: string;
353
404
  /** Data transfer run state. Ignored for input requests. */
354
- state?: string;
405
+ state?:
406
+ | 'TRANSFER_STATE_UNSPECIFIED'
407
+ | 'PENDING'
408
+ | 'RUNNING'
409
+ | 'SUCCEEDED'
410
+ | 'FAILED'
411
+ | 'CANCELLED';
355
412
  /** Output only. Last time the data transfer run state was updated. */
356
413
  updateTime?: string;
357
414
  /** Deprecated. Unique ID of the user on whose behalf transfer is done. */
358
415
  userId?: string;
359
416
  }
360
417
  interface TransferRunBrief {
361
- /** Optional. Run URI. Format projects/{project}/locations/{location}/transferConfigs/{config}/run/{run} */
418
+ /** Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}` */
362
419
  run?: string;
363
420
  /** Optional. Start time of the transfer run. */
364
421
  startTime?: string;
@@ -373,13 +430,19 @@ declare namespace gapi.client {
373
430
  /** Optional. Total number of units for the transfer. */
374
431
  total?: string;
375
432
  /** Optional. Unit for measuring progress (e.g., BYTES). */
376
- unit?: string;
433
+ unit?:
434
+ | 'TRANSFER_STATUS_UNIT_UNSPECIFIED'
435
+ | 'TRANSFER_STATUS_UNIT_BYTES'
436
+ | 'TRANSFER_STATUS_UNIT_OBJECTS';
377
437
  }
378
438
  interface TransferStatusSummary {
379
439
  /** Optional. List of transfer status metrics. */
380
440
  metrics?: TransferStatusMetric[];
381
441
  /** Input only. Unit based on which transfer status progress should be calculated. */
382
- progressUnit?: string;
442
+ progressUnit?:
443
+ | 'TRANSFER_STATUS_UNIT_UNSPECIFIED'
444
+ | 'TRANSFER_STATUS_UNIT_BYTES'
445
+ | 'TRANSFER_STATUS_UNIT_OBJECTS';
383
446
  }
384
447
  interface UnenrollDataSourcesRequest {
385
448
  /** Data sources that are unenrolled. It is required to provide at least one data source id. */
@@ -393,11 +456,11 @@ declare namespace gapi.client {
393
456
  /** Returns true if valid credentials exist for the given data source and requesting user. */
394
457
  checkValidCreds(request: {
395
458
  /** V1 error format. */
396
- '$.xgafv'?: string;
459
+ '$.xgafv'?: '1' | '2';
397
460
  /** OAuth access token. */
398
461
  access_token?: string;
399
462
  /** Data format for response. */
400
- alt?: string;
463
+ alt?: 'json' | 'media' | 'proto';
401
464
  /** JSONP */
402
465
  callback?: string;
403
466
  /** Selector specifying which fields to include in a partial response. */
@@ -422,11 +485,11 @@ declare namespace gapi.client {
422
485
  checkValidCreds(
423
486
  request: {
424
487
  /** V1 error format. */
425
- '$.xgafv'?: string;
488
+ '$.xgafv'?: '1' | '2';
426
489
  /** OAuth access token. */
427
490
  access_token?: string;
428
491
  /** Data format for response. */
429
- alt?: string;
492
+ alt?: 'json' | 'media' | 'proto';
430
493
  /** JSONP */
431
494
  callback?: string;
432
495
  /** Selector specifying which fields to include in a partial response. */
@@ -451,11 +514,11 @@ declare namespace gapi.client {
451
514
  /** Retrieves a supported data source and returns its settings. */
452
515
  get(request?: {
453
516
  /** V1 error format. */
454
- '$.xgafv'?: string;
517
+ '$.xgafv'?: '1' | '2';
455
518
  /** OAuth access token. */
456
519
  access_token?: string;
457
520
  /** Data format for response. */
458
- alt?: string;
521
+ alt?: 'json' | 'media' | 'proto';
459
522
  /** JSONP */
460
523
  callback?: string;
461
524
  /** Selector specifying which fields to include in a partial response. */
@@ -478,11 +541,11 @@ declare namespace gapi.client {
478
541
  /** Lists supported data sources and returns their settings. */
479
542
  list(request?: {
480
543
  /** V1 error format. */
481
- '$.xgafv'?: string;
544
+ '$.xgafv'?: '1' | '2';
482
545
  /** OAuth access token. */
483
546
  access_token?: string;
484
547
  /** Data format for response. */
485
- alt?: string;
548
+ alt?: 'json' | 'media' | 'proto';
486
549
  /** JSONP */
487
550
  callback?: string;
488
551
  /** Selector specifying which fields to include in a partial response. */
@@ -511,11 +574,11 @@ declare namespace gapi.client {
511
574
  /** Returns true if valid credentials exist for the given data source and requesting user. */
512
575
  checkValidCreds(request: {
513
576
  /** V1 error format. */
514
- '$.xgafv'?: string;
577
+ '$.xgafv'?: '1' | '2';
515
578
  /** OAuth access token. */
516
579
  access_token?: string;
517
580
  /** Data format for response. */
518
- alt?: string;
581
+ alt?: 'json' | 'media' | 'proto';
519
582
  /** JSONP */
520
583
  callback?: string;
521
584
  /** Selector specifying which fields to include in a partial response. */
@@ -540,11 +603,11 @@ declare namespace gapi.client {
540
603
  checkValidCreds(
541
604
  request: {
542
605
  /** V1 error format. */
543
- '$.xgafv'?: string;
606
+ '$.xgafv'?: '1' | '2';
544
607
  /** OAuth access token. */
545
608
  access_token?: string;
546
609
  /** Data format for response. */
547
- alt?: string;
610
+ alt?: 'json' | 'media' | 'proto';
548
611
  /** JSONP */
549
612
  callback?: string;
550
613
  /** Selector specifying which fields to include in a partial response. */
@@ -569,11 +632,11 @@ declare namespace gapi.client {
569
632
  /** Retrieves a supported data source and returns its settings. */
570
633
  get(request?: {
571
634
  /** V1 error format. */
572
- '$.xgafv'?: string;
635
+ '$.xgafv'?: '1' | '2';
573
636
  /** OAuth access token. */
574
637
  access_token?: string;
575
638
  /** Data format for response. */
576
- alt?: string;
639
+ alt?: 'json' | 'media' | 'proto';
577
640
  /** JSONP */
578
641
  callback?: string;
579
642
  /** Selector specifying which fields to include in a partial response. */
@@ -596,11 +659,11 @@ declare namespace gapi.client {
596
659
  /** Lists supported data sources and returns their settings. */
597
660
  list(request?: {
598
661
  /** V1 error format. */
599
- '$.xgafv'?: string;
662
+ '$.xgafv'?: '1' | '2';
600
663
  /** OAuth access token. */
601
664
  access_token?: string;
602
665
  /** Data format for response. */
603
- alt?: string;
666
+ alt?: 'json' | 'media' | 'proto';
604
667
  /** JSONP */
605
668
  callback?: string;
606
669
  /** Selector specifying which fields to include in a partial response. */
@@ -629,11 +692,11 @@ declare namespace gapi.client {
629
692
  /** Returns log messages for the transfer run. */
630
693
  list(request?: {
631
694
  /** V1 error format. */
632
- '$.xgafv'?: string;
695
+ '$.xgafv'?: '1' | '2';
633
696
  /** OAuth access token. */
634
697
  access_token?: string;
635
698
  /** Data format for response. */
636
- alt?: string;
699
+ alt?: 'json' | 'media' | 'proto';
637
700
  /** JSONP */
638
701
  callback?: string;
639
702
  /** Selector specifying which fields to include in a partial response. */
@@ -641,7 +704,12 @@ declare namespace gapi.client {
641
704
  /** 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
705
  key?: string;
643
706
  /** Message types to return. If not populated - INFO, WARNING and ERROR messages are returned. */
644
- messageTypes?: string | string[];
707
+ messageTypes?:
708
+ | 'MESSAGE_SEVERITY_UNSPECIFIED'
709
+ | 'INFO'
710
+ | 'WARNING'
711
+ | 'ERROR'
712
+ | ('MESSAGE_SEVERITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ERROR')[];
645
713
  /** OAuth 2.0 token for the current user. */
646
714
  oauth_token?: string;
647
715
  /** Page size. The default page size is the maximum value of 1000 results. */
@@ -664,11 +732,11 @@ declare namespace gapi.client {
664
732
  /** Deletes the specified transfer run. */
665
733
  delete(request?: {
666
734
  /** V1 error format. */
667
- '$.xgafv'?: string;
735
+ '$.xgafv'?: '1' | '2';
668
736
  /** OAuth access token. */
669
737
  access_token?: string;
670
738
  /** Data format for response. */
671
- alt?: string;
739
+ alt?: 'json' | 'media' | 'proto';
672
740
  /** JSONP */
673
741
  callback?: string;
674
742
  /** Selector specifying which fields to include in a partial response. */
@@ -691,11 +759,11 @@ declare namespace gapi.client {
691
759
  /** Returns information about the particular transfer run. */
692
760
  get(request?: {
693
761
  /** V1 error format. */
694
- '$.xgafv'?: string;
762
+ '$.xgafv'?: '1' | '2';
695
763
  /** OAuth access token. */
696
764
  access_token?: string;
697
765
  /** Data format for response. */
698
- alt?: string;
766
+ alt?: 'json' | 'media' | 'proto';
699
767
  /** JSONP */
700
768
  callback?: string;
701
769
  /** Selector specifying which fields to include in a partial response. */
@@ -718,11 +786,11 @@ declare namespace gapi.client {
718
786
  /** Returns information about running and completed transfer runs. */
719
787
  list(request?: {
720
788
  /** V1 error format. */
721
- '$.xgafv'?: string;
789
+ '$.xgafv'?: '1' | '2';
722
790
  /** OAuth access token. */
723
791
  access_token?: string;
724
792
  /** Data format for response. */
725
- alt?: string;
793
+ alt?: 'json' | 'media' | 'proto';
726
794
  /** JSONP */
727
795
  callback?: string;
728
796
  /** Selector specifying which fields to include in a partial response. */
@@ -742,9 +810,23 @@ declare namespace gapi.client {
742
810
  /** 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. */
743
811
  quotaUser?: string;
744
812
  /** Indicates how run attempts are to be pulled. */
745
- runAttempt?: string;
813
+ runAttempt?: 'RUN_ATTEMPT_UNSPECIFIED' | 'LATEST';
746
814
  /** When specified, only transfer runs with requested states are returned. */
747
- states?: string | string[];
815
+ states?:
816
+ | 'TRANSFER_STATE_UNSPECIFIED'
817
+ | 'PENDING'
818
+ | 'RUNNING'
819
+ | 'SUCCEEDED'
820
+ | 'FAILED'
821
+ | 'CANCELLED'
822
+ | (
823
+ | 'TRANSFER_STATE_UNSPECIFIED'
824
+ | 'PENDING'
825
+ | 'RUNNING'
826
+ | 'SUCCEEDED'
827
+ | 'FAILED'
828
+ | 'CANCELLED'
829
+ )[];
748
830
  /** Upload protocol for media (e.g. "raw", "multipart"). */
749
831
  upload_protocol?: string;
750
832
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -756,11 +838,11 @@ declare namespace gapi.client {
756
838
  /** Returns a transfer resource. */
757
839
  get(request?: {
758
840
  /** V1 error format. */
759
- '$.xgafv'?: string;
841
+ '$.xgafv'?: '1' | '2';
760
842
  /** OAuth access token. */
761
843
  access_token?: string;
762
844
  /** Data format for response. */
763
- alt?: string;
845
+ alt?: 'json' | 'media' | 'proto';
764
846
  /** JSONP */
765
847
  callback?: string;
766
848
  /** Selector specifying which fields to include in a partial response. */
@@ -783,16 +865,16 @@ declare namespace gapi.client {
783
865
  /** Returns information about transfer resources. */
784
866
  list(request?: {
785
867
  /** V1 error format. */
786
- '$.xgafv'?: string;
868
+ '$.xgafv'?: '1' | '2';
787
869
  /** OAuth access token. */
788
870
  access_token?: string;
789
871
  /** Data format for response. */
790
- alt?: string;
872
+ alt?: 'json' | 'media' | 'proto';
791
873
  /** JSONP */
792
874
  callback?: string;
793
875
  /** Selector specifying which fields to include in a partial response. */
794
876
  fields?: string;
795
- /** Optional. Filter for the transfer resources. Currently supported filters include: * Resource name: `name` - Wildcard supported * Resource type: `type` * Resource destination: `destination` * Latest resource state: `latest_status_detail.state` * Last update time: `update_time` - RFC-3339 format * Parent table name: `hierarchy_detail.partition_detail.table` Multiple filters can be applied using the `AND/OR` operator. Examples: * `name="*123" AND (type="TABLE" OR latest_status_detail.state="SUCCEEDED")` * `update_time >= "2012-04-21T11:30:00-04:00` * `hierarchy_detail.partition_detail.table = "table1"` */
877
+ /** Optional. Filter for the transfer resources. Currently supported filters include: * Resource name: `name` - Wildcard supported * Resource type: `type` * Resource destination: `destination` * Latest resource state: `latest_status_detail.state` * Last update time: `update_time` - RFC-3339 format * Parent table name: `hierarchy_detail.partition_detail.table` Multiple filters can be applied using the `AND/OR` operator. Examples: * `name="*123" AND (type="TABLE" OR latest_status_detail.state="SUCCEEDED")` * `update_time >= "2012-04-21T11:30:00-04:00"` * `hierarchy_detail.partition_detail.table = "table1"` */
796
878
  filter?: string;
797
879
  /** 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. */
798
880
  key?: string;
@@ -802,7 +884,7 @@ declare namespace gapi.client {
802
884
  pageSize?: number;
803
885
  /** Optional. A page token, received from a previous `ListTransferResources` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTransferResources` must match the call that provided the page token. */
804
886
  pageToken?: string;
805
- /** Required. Name of transfer configuration for which transfer resources should be retrieved. The name should be in one of the following form: * `projects/{project_id}/transferConfigs/{config_id}` * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` */
887
+ /** Required. Name of transfer configuration for which transfer resources should be retrieved. The name should be in one of the following forms: * `projects/{project}/transferConfigs/{transfer_config}` * `projects/{project}/locations/{location_id}/transferConfigs/{transfer_config}` */
806
888
  parent: string;
807
889
  /** Returns response with indentations and line breaks. */
808
890
  prettyPrint?: boolean;
@@ -818,11 +900,11 @@ declare namespace gapi.client {
818
900
  /** Creates a new data transfer configuration. */
819
901
  create(request: {
820
902
  /** V1 error format. */
821
- '$.xgafv'?: string;
903
+ '$.xgafv'?: '1' | '2';
822
904
  /** OAuth access token. */
823
905
  access_token?: string;
824
906
  /** Data format for response. */
825
- alt?: string;
907
+ alt?: 'json' | 'media' | 'proto';
826
908
  /** Deprecated: Authorization code was required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config. */
827
909
  authorizationCode?: string;
828
910
  /** JSONP */
@@ -853,11 +935,11 @@ declare namespace gapi.client {
853
935
  create(
854
936
  request: {
855
937
  /** V1 error format. */
856
- '$.xgafv'?: string;
938
+ '$.xgafv'?: '1' | '2';
857
939
  /** OAuth access token. */
858
940
  access_token?: string;
859
941
  /** Data format for response. */
860
- alt?: string;
942
+ alt?: 'json' | 'media' | 'proto';
861
943
  /** Deprecated: Authorization code was required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config. */
862
944
  authorizationCode?: string;
863
945
  /** JSONP */
@@ -888,11 +970,11 @@ declare namespace gapi.client {
888
970
  /** Deletes a data transfer configuration, including any associated transfer runs and logs. */
889
971
  delete(request?: {
890
972
  /** V1 error format. */
891
- '$.xgafv'?: string;
973
+ '$.xgafv'?: '1' | '2';
892
974
  /** OAuth access token. */
893
975
  access_token?: string;
894
976
  /** Data format for response. */
895
- alt?: string;
977
+ alt?: 'json' | 'media' | 'proto';
896
978
  /** JSONP */
897
979
  callback?: string;
898
980
  /** Selector specifying which fields to include in a partial response. */
@@ -915,11 +997,11 @@ declare namespace gapi.client {
915
997
  /** Returns information about a data transfer config. */
916
998
  get(request?: {
917
999
  /** V1 error format. */
918
- '$.xgafv'?: string;
1000
+ '$.xgafv'?: '1' | '2';
919
1001
  /** OAuth access token. */
920
1002
  access_token?: string;
921
1003
  /** Data format for response. */
922
- alt?: string;
1004
+ alt?: 'json' | 'media' | 'proto';
923
1005
  /** JSONP */
924
1006
  callback?: string;
925
1007
  /** Selector specifying which fields to include in a partial response. */
@@ -942,11 +1024,11 @@ declare namespace gapi.client {
942
1024
  /** Returns information about all transfer configs owned by a project in the specified location. */
943
1025
  list(request?: {
944
1026
  /** V1 error format. */
945
- '$.xgafv'?: string;
1027
+ '$.xgafv'?: '1' | '2';
946
1028
  /** OAuth access token. */
947
1029
  access_token?: string;
948
1030
  /** Data format for response. */
949
- alt?: string;
1031
+ alt?: 'json' | 'media' | 'proto';
950
1032
  /** JSONP */
951
1033
  callback?: string;
952
1034
  /** When specified, only configurations of requested data sources are returned. */
@@ -975,11 +1057,11 @@ declare namespace gapi.client {
975
1057
  /** Updates a data transfer configuration. All fields must be set, even if they are not updated. */
976
1058
  patch(request: {
977
1059
  /** V1 error format. */
978
- '$.xgafv'?: string;
1060
+ '$.xgafv'?: '1' | '2';
979
1061
  /** OAuth access token. */
980
1062
  access_token?: string;
981
1063
  /** Data format for response. */
982
- alt?: string;
1064
+ alt?: 'json' | 'media' | 'proto';
983
1065
  /** Deprecated: Authorization code was required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config. */
984
1066
  authorizationCode?: string;
985
1067
  /** JSONP */
@@ -1012,11 +1094,11 @@ declare namespace gapi.client {
1012
1094
  patch(
1013
1095
  request: {
1014
1096
  /** V1 error format. */
1015
- '$.xgafv'?: string;
1097
+ '$.xgafv'?: '1' | '2';
1016
1098
  /** OAuth access token. */
1017
1099
  access_token?: string;
1018
1100
  /** Data format for response. */
1019
- alt?: string;
1101
+ alt?: 'json' | 'media' | 'proto';
1020
1102
  /** Deprecated: Authorization code was required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config. */
1021
1103
  authorizationCode?: string;
1022
1104
  /** JSONP */
@@ -1049,11 +1131,11 @@ declare namespace gapi.client {
1049
1131
  /** Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead. */
1050
1132
  scheduleRuns(request: {
1051
1133
  /** V1 error format. */
1052
- '$.xgafv'?: string;
1134
+ '$.xgafv'?: '1' | '2';
1053
1135
  /** OAuth access token. */
1054
1136
  access_token?: string;
1055
1137
  /** Data format for response. */
1056
- alt?: string;
1138
+ alt?: 'json' | 'media' | 'proto';
1057
1139
  /** JSONP */
1058
1140
  callback?: string;
1059
1141
  /** Selector specifying which fields to include in a partial response. */
@@ -1078,11 +1160,11 @@ declare namespace gapi.client {
1078
1160
  scheduleRuns(
1079
1161
  request: {
1080
1162
  /** V1 error format. */
1081
- '$.xgafv'?: string;
1163
+ '$.xgafv'?: '1' | '2';
1082
1164
  /** OAuth access token. */
1083
1165
  access_token?: string;
1084
1166
  /** Data format for response. */
1085
- alt?: string;
1167
+ alt?: 'json' | 'media' | 'proto';
1086
1168
  /** JSONP */
1087
1169
  callback?: string;
1088
1170
  /** Selector specifying which fields to include in a partial response. */
@@ -1107,11 +1189,11 @@ declare namespace gapi.client {
1107
1189
  /** Manually initiates transfer runs. You can schedule these runs in two ways: 1. For a specific point in time using the 'requested_run_time' parameter. 2. For a period between 'start_time' (inclusive) and 'end_time' (exclusive). If scheduling a single run, it is set to execute immediately (schedule_time equals the current time). When scheduling multiple runs within a time range, the first run starts now, and subsequent runs are delayed by 15 seconds each. */
1108
1190
  startManualRuns(request: {
1109
1191
  /** V1 error format. */
1110
- '$.xgafv'?: string;
1192
+ '$.xgafv'?: '1' | '2';
1111
1193
  /** OAuth access token. */
1112
1194
  access_token?: string;
1113
1195
  /** Data format for response. */
1114
- alt?: string;
1196
+ alt?: 'json' | 'media' | 'proto';
1115
1197
  /** JSONP */
1116
1198
  callback?: string;
1117
1199
  /** Selector specifying which fields to include in a partial response. */
@@ -1136,11 +1218,11 @@ declare namespace gapi.client {
1136
1218
  startManualRuns(
1137
1219
  request: {
1138
1220
  /** V1 error format. */
1139
- '$.xgafv'?: string;
1221
+ '$.xgafv'?: '1' | '2';
1140
1222
  /** OAuth access token. */
1141
1223
  access_token?: string;
1142
1224
  /** Data format for response. */
1143
- alt?: string;
1225
+ alt?: 'json' | 'media' | 'proto';
1144
1226
  /** JSONP */
1145
1227
  callback?: string;
1146
1228
  /** Selector specifying which fields to include in a partial response. */
@@ -1169,11 +1251,11 @@ declare namespace gapi.client {
1169
1251
  /** Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers). */
1170
1252
  enrollDataSources(request: {
1171
1253
  /** V1 error format. */
1172
- '$.xgafv'?: string;
1254
+ '$.xgafv'?: '1' | '2';
1173
1255
  /** OAuth access token. */
1174
1256
  access_token?: string;
1175
1257
  /** Data format for response. */
1176
- alt?: string;
1258
+ alt?: 'json' | 'media' | 'proto';
1177
1259
  /** JSONP */
1178
1260
  callback?: string;
1179
1261
  /** Selector specifying which fields to include in a partial response. */
@@ -1198,11 +1280,11 @@ declare namespace gapi.client {
1198
1280
  enrollDataSources(
1199
1281
  request: {
1200
1282
  /** V1 error format. */
1201
- '$.xgafv'?: string;
1283
+ '$.xgafv'?: '1' | '2';
1202
1284
  /** OAuth access token. */
1203
1285
  access_token?: string;
1204
1286
  /** Data format for response. */
1205
- alt?: string;
1287
+ alt?: 'json' | 'media' | 'proto';
1206
1288
  /** JSONP */
1207
1289
  callback?: string;
1208
1290
  /** Selector specifying which fields to include in a partial response. */
@@ -1227,11 +1309,11 @@ declare namespace gapi.client {
1227
1309
  /** Gets information about a location. */
1228
1310
  get(request?: {
1229
1311
  /** V1 error format. */
1230
- '$.xgafv'?: string;
1312
+ '$.xgafv'?: '1' | '2';
1231
1313
  /** OAuth access token. */
1232
1314
  access_token?: string;
1233
1315
  /** Data format for response. */
1234
- alt?: string;
1316
+ alt?: 'json' | 'media' | 'proto';
1235
1317
  /** JSONP */
1236
1318
  callback?: string;
1237
1319
  /** Selector specifying which fields to include in a partial response. */
@@ -1251,17 +1333,17 @@ declare namespace gapi.client {
1251
1333
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1252
1334
  uploadType?: string;
1253
1335
  }): Request<Location>;
1254
- /** Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. */
1336
+ /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
1255
1337
  list(request?: {
1256
1338
  /** V1 error format. */
1257
- '$.xgafv'?: string;
1339
+ '$.xgafv'?: '1' | '2';
1258
1340
  /** OAuth access token. */
1259
1341
  access_token?: string;
1260
1342
  /** Data format for response. */
1261
- alt?: string;
1343
+ alt?: 'json' | 'media' | 'proto';
1262
1344
  /** JSONP */
1263
1345
  callback?: string;
1264
- /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
1346
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
1265
1347
  extraLocationTypes?: string | string[];
1266
1348
  /** Selector specifying which fields to include in a partial response. */
1267
1349
  fields?: string;
@@ -1289,11 +1371,11 @@ declare namespace gapi.client {
1289
1371
  /** Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). Data transfers configurations of unenrolled data sources will not be scheduled. */
1290
1372
  unenrollDataSources(request: {
1291
1373
  /** V1 error format. */
1292
- '$.xgafv'?: string;
1374
+ '$.xgafv'?: '1' | '2';
1293
1375
  /** OAuth access token. */
1294
1376
  access_token?: string;
1295
1377
  /** Data format for response. */
1296
- alt?: string;
1378
+ alt?: 'json' | 'media' | 'proto';
1297
1379
  /** JSONP */
1298
1380
  callback?: string;
1299
1381
  /** Selector specifying which fields to include in a partial response. */
@@ -1318,11 +1400,11 @@ declare namespace gapi.client {
1318
1400
  unenrollDataSources(
1319
1401
  request: {
1320
1402
  /** V1 error format. */
1321
- '$.xgafv'?: string;
1403
+ '$.xgafv'?: '1' | '2';
1322
1404
  /** OAuth access token. */
1323
1405
  access_token?: string;
1324
1406
  /** Data format for response. */
1325
- alt?: string;
1407
+ alt?: 'json' | 'media' | 'proto';
1326
1408
  /** JSONP */
1327
1409
  callback?: string;
1328
1410
  /** Selector specifying which fields to include in a partial response. */
@@ -1351,11 +1433,11 @@ declare namespace gapi.client {
1351
1433
  /** Returns log messages for the transfer run. */
1352
1434
  list(request?: {
1353
1435
  /** V1 error format. */
1354
- '$.xgafv'?: string;
1436
+ '$.xgafv'?: '1' | '2';
1355
1437
  /** OAuth access token. */
1356
1438
  access_token?: string;
1357
1439
  /** Data format for response. */
1358
- alt?: string;
1440
+ alt?: 'json' | 'media' | 'proto';
1359
1441
  /** JSONP */
1360
1442
  callback?: string;
1361
1443
  /** Selector specifying which fields to include in a partial response. */
@@ -1363,7 +1445,12 @@ declare namespace gapi.client {
1363
1445
  /** 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. */
1364
1446
  key?: string;
1365
1447
  /** Message types to return. If not populated - INFO, WARNING and ERROR messages are returned. */
1366
- messageTypes?: string | string[];
1448
+ messageTypes?:
1449
+ | 'MESSAGE_SEVERITY_UNSPECIFIED'
1450
+ | 'INFO'
1451
+ | 'WARNING'
1452
+ | 'ERROR'
1453
+ | ('MESSAGE_SEVERITY_UNSPECIFIED' | 'INFO' | 'WARNING' | 'ERROR')[];
1367
1454
  /** OAuth 2.0 token for the current user. */
1368
1455
  oauth_token?: string;
1369
1456
  /** Page size. The default page size is the maximum value of 1000 results. */
@@ -1386,11 +1473,11 @@ declare namespace gapi.client {
1386
1473
  /** Deletes the specified transfer run. */
1387
1474
  delete(request?: {
1388
1475
  /** V1 error format. */
1389
- '$.xgafv'?: string;
1476
+ '$.xgafv'?: '1' | '2';
1390
1477
  /** OAuth access token. */
1391
1478
  access_token?: string;
1392
1479
  /** Data format for response. */
1393
- alt?: string;
1480
+ alt?: 'json' | 'media' | 'proto';
1394
1481
  /** JSONP */
1395
1482
  callback?: string;
1396
1483
  /** Selector specifying which fields to include in a partial response. */
@@ -1413,11 +1500,11 @@ declare namespace gapi.client {
1413
1500
  /** Returns information about the particular transfer run. */
1414
1501
  get(request?: {
1415
1502
  /** V1 error format. */
1416
- '$.xgafv'?: string;
1503
+ '$.xgafv'?: '1' | '2';
1417
1504
  /** OAuth access token. */
1418
1505
  access_token?: string;
1419
1506
  /** Data format for response. */
1420
- alt?: string;
1507
+ alt?: 'json' | 'media' | 'proto';
1421
1508
  /** JSONP */
1422
1509
  callback?: string;
1423
1510
  /** Selector specifying which fields to include in a partial response. */
@@ -1440,11 +1527,11 @@ declare namespace gapi.client {
1440
1527
  /** Returns information about running and completed transfer runs. */
1441
1528
  list(request?: {
1442
1529
  /** V1 error format. */
1443
- '$.xgafv'?: string;
1530
+ '$.xgafv'?: '1' | '2';
1444
1531
  /** OAuth access token. */
1445
1532
  access_token?: string;
1446
1533
  /** Data format for response. */
1447
- alt?: string;
1534
+ alt?: 'json' | 'media' | 'proto';
1448
1535
  /** JSONP */
1449
1536
  callback?: string;
1450
1537
  /** Selector specifying which fields to include in a partial response. */
@@ -1464,9 +1551,23 @@ declare namespace gapi.client {
1464
1551
  /** 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. */
1465
1552
  quotaUser?: string;
1466
1553
  /** Indicates how run attempts are to be pulled. */
1467
- runAttempt?: string;
1554
+ runAttempt?: 'RUN_ATTEMPT_UNSPECIFIED' | 'LATEST';
1468
1555
  /** When specified, only transfer runs with requested states are returned. */
1469
- states?: string | string[];
1556
+ states?:
1557
+ | 'TRANSFER_STATE_UNSPECIFIED'
1558
+ | 'PENDING'
1559
+ | 'RUNNING'
1560
+ | 'SUCCEEDED'
1561
+ | 'FAILED'
1562
+ | 'CANCELLED'
1563
+ | (
1564
+ | 'TRANSFER_STATE_UNSPECIFIED'
1565
+ | 'PENDING'
1566
+ | 'RUNNING'
1567
+ | 'SUCCEEDED'
1568
+ | 'FAILED'
1569
+ | 'CANCELLED'
1570
+ )[];
1470
1571
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1471
1572
  upload_protocol?: string;
1472
1573
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
@@ -1478,11 +1579,11 @@ declare namespace gapi.client {
1478
1579
  /** Returns a transfer resource. */
1479
1580
  get(request?: {
1480
1581
  /** V1 error format. */
1481
- '$.xgafv'?: string;
1582
+ '$.xgafv'?: '1' | '2';
1482
1583
  /** OAuth access token. */
1483
1584
  access_token?: string;
1484
1585
  /** Data format for response. */
1485
- alt?: string;
1586
+ alt?: 'json' | 'media' | 'proto';
1486
1587
  /** JSONP */
1487
1588
  callback?: string;
1488
1589
  /** Selector specifying which fields to include in a partial response. */
@@ -1505,16 +1606,16 @@ declare namespace gapi.client {
1505
1606
  /** Returns information about transfer resources. */
1506
1607
  list(request?: {
1507
1608
  /** V1 error format. */
1508
- '$.xgafv'?: string;
1609
+ '$.xgafv'?: '1' | '2';
1509
1610
  /** OAuth access token. */
1510
1611
  access_token?: string;
1511
1612
  /** Data format for response. */
1512
- alt?: string;
1613
+ alt?: 'json' | 'media' | 'proto';
1513
1614
  /** JSONP */
1514
1615
  callback?: string;
1515
1616
  /** Selector specifying which fields to include in a partial response. */
1516
1617
  fields?: string;
1517
- /** Optional. Filter for the transfer resources. Currently supported filters include: * Resource name: `name` - Wildcard supported * Resource type: `type` * Resource destination: `destination` * Latest resource state: `latest_status_detail.state` * Last update time: `update_time` - RFC-3339 format * Parent table name: `hierarchy_detail.partition_detail.table` Multiple filters can be applied using the `AND/OR` operator. Examples: * `name="*123" AND (type="TABLE" OR latest_status_detail.state="SUCCEEDED")` * `update_time >= "2012-04-21T11:30:00-04:00` * `hierarchy_detail.partition_detail.table = "table1"` */
1618
+ /** Optional. Filter for the transfer resources. Currently supported filters include: * Resource name: `name` - Wildcard supported * Resource type: `type` * Resource destination: `destination` * Latest resource state: `latest_status_detail.state` * Last update time: `update_time` - RFC-3339 format * Parent table name: `hierarchy_detail.partition_detail.table` Multiple filters can be applied using the `AND/OR` operator. Examples: * `name="*123" AND (type="TABLE" OR latest_status_detail.state="SUCCEEDED")` * `update_time >= "2012-04-21T11:30:00-04:00"` * `hierarchy_detail.partition_detail.table = "table1"` */
1518
1619
  filter?: string;
1519
1620
  /** 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. */
1520
1621
  key?: string;
@@ -1524,7 +1625,7 @@ declare namespace gapi.client {
1524
1625
  pageSize?: number;
1525
1626
  /** Optional. A page token, received from a previous `ListTransferResources` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTransferResources` must match the call that provided the page token. */
1526
1627
  pageToken?: string;
1527
- /** Required. Name of transfer configuration for which transfer resources should be retrieved. The name should be in one of the following form: * `projects/{project_id}/transferConfigs/{config_id}` * `projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}` */
1628
+ /** Required. Name of transfer configuration for which transfer resources should be retrieved. The name should be in one of the following forms: * `projects/{project}/transferConfigs/{transfer_config}` * `projects/{project}/locations/{location_id}/transferConfigs/{transfer_config}` */
1528
1629
  parent: string;
1529
1630
  /** Returns response with indentations and line breaks. */
1530
1631
  prettyPrint?: boolean;
@@ -1540,11 +1641,11 @@ declare namespace gapi.client {
1540
1641
  /** Creates a new data transfer configuration. */
1541
1642
  create(request: {
1542
1643
  /** V1 error format. */
1543
- '$.xgafv'?: string;
1644
+ '$.xgafv'?: '1' | '2';
1544
1645
  /** OAuth access token. */
1545
1646
  access_token?: string;
1546
1647
  /** Data format for response. */
1547
- alt?: string;
1648
+ alt?: 'json' | 'media' | 'proto';
1548
1649
  /** Deprecated: Authorization code was required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config. */
1549
1650
  authorizationCode?: string;
1550
1651
  /** JSONP */
@@ -1575,11 +1676,11 @@ declare namespace gapi.client {
1575
1676
  create(
1576
1677
  request: {
1577
1678
  /** V1 error format. */
1578
- '$.xgafv'?: string;
1679
+ '$.xgafv'?: '1' | '2';
1579
1680
  /** OAuth access token. */
1580
1681
  access_token?: string;
1581
1682
  /** Data format for response. */
1582
- alt?: string;
1683
+ alt?: 'json' | 'media' | 'proto';
1583
1684
  /** Deprecated: Authorization code was required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to create the transfer config. */
1584
1685
  authorizationCode?: string;
1585
1686
  /** JSONP */
@@ -1610,11 +1711,11 @@ declare namespace gapi.client {
1610
1711
  /** Deletes a data transfer configuration, including any associated transfer runs and logs. */
1611
1712
  delete(request?: {
1612
1713
  /** V1 error format. */
1613
- '$.xgafv'?: string;
1714
+ '$.xgafv'?: '1' | '2';
1614
1715
  /** OAuth access token. */
1615
1716
  access_token?: string;
1616
1717
  /** Data format for response. */
1617
- alt?: string;
1718
+ alt?: 'json' | 'media' | 'proto';
1618
1719
  /** JSONP */
1619
1720
  callback?: string;
1620
1721
  /** Selector specifying which fields to include in a partial response. */
@@ -1637,11 +1738,11 @@ declare namespace gapi.client {
1637
1738
  /** Returns information about a data transfer config. */
1638
1739
  get(request?: {
1639
1740
  /** V1 error format. */
1640
- '$.xgafv'?: string;
1741
+ '$.xgafv'?: '1' | '2';
1641
1742
  /** OAuth access token. */
1642
1743
  access_token?: string;
1643
1744
  /** Data format for response. */
1644
- alt?: string;
1745
+ alt?: 'json' | 'media' | 'proto';
1645
1746
  /** JSONP */
1646
1747
  callback?: string;
1647
1748
  /** Selector specifying which fields to include in a partial response. */
@@ -1664,11 +1765,11 @@ declare namespace gapi.client {
1664
1765
  /** Returns information about all transfer configs owned by a project in the specified location. */
1665
1766
  list(request?: {
1666
1767
  /** V1 error format. */
1667
- '$.xgafv'?: string;
1768
+ '$.xgafv'?: '1' | '2';
1668
1769
  /** OAuth access token. */
1669
1770
  access_token?: string;
1670
1771
  /** Data format for response. */
1671
- alt?: string;
1772
+ alt?: 'json' | 'media' | 'proto';
1672
1773
  /** JSONP */
1673
1774
  callback?: string;
1674
1775
  /** When specified, only configurations of requested data sources are returned. */
@@ -1697,11 +1798,11 @@ declare namespace gapi.client {
1697
1798
  /** Updates a data transfer configuration. All fields must be set, even if they are not updated. */
1698
1799
  patch(request: {
1699
1800
  /** V1 error format. */
1700
- '$.xgafv'?: string;
1801
+ '$.xgafv'?: '1' | '2';
1701
1802
  /** OAuth access token. */
1702
1803
  access_token?: string;
1703
1804
  /** Data format for response. */
1704
- alt?: string;
1805
+ alt?: 'json' | 'media' | 'proto';
1705
1806
  /** Deprecated: Authorization code was required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config. */
1706
1807
  authorizationCode?: string;
1707
1808
  /** JSONP */
@@ -1734,11 +1835,11 @@ declare namespace gapi.client {
1734
1835
  patch(
1735
1836
  request: {
1736
1837
  /** V1 error format. */
1737
- '$.xgafv'?: string;
1838
+ '$.xgafv'?: '1' | '2';
1738
1839
  /** OAuth access token. */
1739
1840
  access_token?: string;
1740
1841
  /** Data format for response. */
1741
- alt?: string;
1842
+ alt?: 'json' | 'media' | 'proto';
1742
1843
  /** Deprecated: Authorization code was required when `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used in any data sources. Use `version_info` instead. Optional OAuth2 authorization code to use with this transfer configuration. This is required only if `transferConfig.dataSourceId` is 'youtube_channel' and new credentials are needed, as indicated by `CheckValidCreds`. In order to obtain authorization_code, make a request to the following URL: https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=client_id&scope=data_source_scopes * The client_id is the OAuth client_id of the data source as returned by ListDataSources method. * data_source_scopes are the scopes returned by ListDataSources method. Note that this should not be set when `service_account_name` is used to update the transfer config. */
1743
1844
  authorizationCode?: string;
1744
1845
  /** JSONP */
@@ -1771,11 +1872,11 @@ declare namespace gapi.client {
1771
1872
  /** Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead. */
1772
1873
  scheduleRuns(request: {
1773
1874
  /** V1 error format. */
1774
- '$.xgafv'?: string;
1875
+ '$.xgafv'?: '1' | '2';
1775
1876
  /** OAuth access token. */
1776
1877
  access_token?: string;
1777
1878
  /** Data format for response. */
1778
- alt?: string;
1879
+ alt?: 'json' | 'media' | 'proto';
1779
1880
  /** JSONP */
1780
1881
  callback?: string;
1781
1882
  /** Selector specifying which fields to include in a partial response. */
@@ -1800,11 +1901,11 @@ declare namespace gapi.client {
1800
1901
  scheduleRuns(
1801
1902
  request: {
1802
1903
  /** V1 error format. */
1803
- '$.xgafv'?: string;
1904
+ '$.xgafv'?: '1' | '2';
1804
1905
  /** OAuth access token. */
1805
1906
  access_token?: string;
1806
1907
  /** Data format for response. */
1807
- alt?: string;
1908
+ alt?: 'json' | 'media' | 'proto';
1808
1909
  /** JSONP */
1809
1910
  callback?: string;
1810
1911
  /** Selector specifying which fields to include in a partial response. */
@@ -1829,11 +1930,11 @@ declare namespace gapi.client {
1829
1930
  /** Manually initiates transfer runs. You can schedule these runs in two ways: 1. For a specific point in time using the 'requested_run_time' parameter. 2. For a period between 'start_time' (inclusive) and 'end_time' (exclusive). If scheduling a single run, it is set to execute immediately (schedule_time equals the current time). When scheduling multiple runs within a time range, the first run starts now, and subsequent runs are delayed by 15 seconds each. */
1830
1931
  startManualRuns(request: {
1831
1932
  /** V1 error format. */
1832
- '$.xgafv'?: string;
1933
+ '$.xgafv'?: '1' | '2';
1833
1934
  /** OAuth access token. */
1834
1935
  access_token?: string;
1835
1936
  /** Data format for response. */
1836
- alt?: string;
1937
+ alt?: 'json' | 'media' | 'proto';
1837
1938
  /** JSONP */
1838
1939
  callback?: string;
1839
1940
  /** Selector specifying which fields to include in a partial response. */
@@ -1858,11 +1959,11 @@ declare namespace gapi.client {
1858
1959
  startManualRuns(
1859
1960
  request: {
1860
1961
  /** V1 error format. */
1861
- '$.xgafv'?: string;
1962
+ '$.xgafv'?: '1' | '2';
1862
1963
  /** OAuth access token. */
1863
1964
  access_token?: string;
1864
1965
  /** Data format for response. */
1865
- alt?: string;
1966
+ alt?: 'json' | 'media' | 'proto';
1866
1967
  /** JSONP */
1867
1968
  callback?: string;
1868
1969
  /** Selector specifying which fields to include in a partial response. */
@@ -1891,11 +1992,11 @@ declare namespace gapi.client {
1891
1992
  /** Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers). */
1892
1993
  enrollDataSources(request: {
1893
1994
  /** V1 error format. */
1894
- '$.xgafv'?: string;
1995
+ '$.xgafv'?: '1' | '2';
1895
1996
  /** OAuth access token. */
1896
1997
  access_token?: string;
1897
1998
  /** Data format for response. */
1898
- alt?: string;
1999
+ alt?: 'json' | 'media' | 'proto';
1899
2000
  /** JSONP */
1900
2001
  callback?: string;
1901
2002
  /** Selector specifying which fields to include in a partial response. */
@@ -1920,11 +2021,11 @@ declare namespace gapi.client {
1920
2021
  enrollDataSources(
1921
2022
  request: {
1922
2023
  /** V1 error format. */
1923
- '$.xgafv'?: string;
2024
+ '$.xgafv'?: '1' | '2';
1924
2025
  /** OAuth access token. */
1925
2026
  access_token?: string;
1926
2027
  /** Data format for response. */
1927
- alt?: string;
2028
+ alt?: 'json' | 'media' | 'proto';
1928
2029
  /** JSONP */
1929
2030
  callback?: string;
1930
2031
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.bigquerydatatransfer-v1",
3
- "version": "0.1.20260314",
3
+ "version": "0.1.20260601",
4
4
  "description": "TypeScript typings for BigQuery Data Transfer API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for BigQuery Data Transfer API:
11
11
  npm install @types/gapi.client.bigquerydatatransfer-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.bigquerydatatransfer-v1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: