google-cloud-bigquery-data_transfer-v1 0.14.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 406dd82ea15fd4ec93b6d8b94e836bd8fd2714fede6db5a1959fb404545acdb3
4
- data.tar.gz: 6cdb2d4a17e897370e4e04b2457a85c81dfa43e8cb624588c479236422ffd0c5
3
+ metadata.gz: 30423559a53669126a62f98ecd5faba580ecc58629ea9504a373120e14ff427f
4
+ data.tar.gz: 4346802d0a0e082fe66a3cea7713a7eefdd0f178d86907dfdac5786500b85da1
5
5
  SHA512:
6
- metadata.gz: 89003031b9c2ca5ae5d511172e12d2e9eb41393a8834df5624fc6044d3cd8e5ae87293e61bafd6dffd66de138360f9838f901c272a6a1ab3a8d1551bc3ba1629
7
- data.tar.gz: bee54385dc87d7f43305619061e0403837e4e121dc65206a9914742cb10ea5ba997099ba5ce0a0070ff7ac4bf0fb0213336a7abb46d1e6d9eaf96db295ff46a8
6
+ metadata.gz: 518b18b4f11aa65b93b3936d9014dcec4d920634e38651074feebc09b704390f43984309387842b07799f409970da99f463e7f27f78e6ae8ad7b9dab5422b091
7
+ data.tar.gz: 40dc384b4b67ae1fac42ade82dbd35a43f8c2346fece6eaebefbd0c503a368980d14e54aa2a75f13e712b681c098f3d5caeb9aa11aaee1759e68838299874940
@@ -32,6 +32,9 @@ module Google
32
32
  # This API allows users to manage their data transfers into BigQuery.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "bigquerydatatransfer.$UNIVERSE_DOMAIN$"
37
40
 
@@ -289,10 +292,11 @@ module Google
289
292
  # Customize the options with defaults
290
293
  metadata = @config.rpcs.get_data_source.metadata.to_h
291
294
 
292
- # Set x-goog-api-client and x-goog-user-project headers
295
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
293
296
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
294
297
  lib_name: @config.lib_name, lib_version: @config.lib_version,
295
298
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
299
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
296
300
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
297
301
 
298
302
  header_params = {}
@@ -388,10 +392,11 @@ module Google
388
392
  # Customize the options with defaults
389
393
  metadata = @config.rpcs.list_data_sources.metadata.to_h
390
394
 
391
- # Set x-goog-api-client and x-goog-user-project headers
395
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
392
396
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
393
397
  lib_name: @config.lib_name, lib_version: @config.lib_version,
394
398
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
399
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
395
400
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
396
401
 
397
402
  header_params = {}
@@ -451,7 +456,7 @@ module Google
451
456
  # and new credentials are needed, as indicated by `CheckValidCreds`. In order
452
457
  # to obtain authorization_code, make a request to the following URL:
453
458
  # <pre class="prettyprint" suppresswarning="true">
454
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
459
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
455
460
  # </pre>
456
461
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
457
462
  # returned by ListDataSources method.
@@ -466,7 +471,7 @@ module Google
466
471
  # are needed, as indicated by `CheckValidCreds`. In order to obtain version
467
472
  # info, make a request to the following URL:
468
473
  # <pre class="prettyprint" suppresswarning="true">
469
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
474
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
470
475
  # </pre>
471
476
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
472
477
  # returned by ListDataSources method.
@@ -520,10 +525,11 @@ module Google
520
525
  # Customize the options with defaults
521
526
  metadata = @config.rpcs.create_transfer_config.metadata.to_h
522
527
 
523
- # Set x-goog-api-client and x-goog-user-project headers
528
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
524
529
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
525
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
526
531
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
532
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
533
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
534
 
529
535
  header_params = {}
@@ -577,7 +583,7 @@ module Google
577
583
  # and new credentials are needed, as indicated by `CheckValidCreds`. In order
578
584
  # to obtain authorization_code, make a request to the following URL:
579
585
  # <pre class="prettyprint" suppresswarning="true">
580
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
586
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
581
587
  # </pre>
582
588
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
583
589
  # returned by ListDataSources method.
@@ -594,7 +600,7 @@ module Google
594
600
  # are needed, as indicated by `CheckValidCreds`. In order to obtain version
595
601
  # info, make a request to the following URL:
596
602
  # <pre class="prettyprint" suppresswarning="true">
597
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
603
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
598
604
  # </pre>
599
605
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
600
606
  # returned by ListDataSources method.
@@ -648,10 +654,11 @@ module Google
648
654
  # Customize the options with defaults
649
655
  metadata = @config.rpcs.update_transfer_config.metadata.to_h
650
656
 
651
- # Set x-goog-api-client and x-goog-user-project headers
657
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
652
658
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
653
659
  lib_name: @config.lib_name, lib_version: @config.lib_version,
654
660
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
661
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
655
662
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
656
663
 
657
664
  header_params = {}
@@ -736,10 +743,11 @@ module Google
736
743
  # Customize the options with defaults
737
744
  metadata = @config.rpcs.delete_transfer_config.metadata.to_h
738
745
 
739
- # Set x-goog-api-client and x-goog-user-project headers
746
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
740
747
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
741
748
  lib_name: @config.lib_name, lib_version: @config.lib_version,
742
749
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
750
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
743
751
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
744
752
 
745
753
  header_params = {}
@@ -823,10 +831,11 @@ module Google
823
831
  # Customize the options with defaults
824
832
  metadata = @config.rpcs.get_transfer_config.metadata.to_h
825
833
 
826
- # Set x-goog-api-client and x-goog-user-project headers
834
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
827
835
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
828
836
  lib_name: @config.lib_name, lib_version: @config.lib_version,
829
837
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
838
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
830
839
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
831
840
 
832
841
  header_params = {}
@@ -925,10 +934,11 @@ module Google
925
934
  # Customize the options with defaults
926
935
  metadata = @config.rpcs.list_transfer_configs.metadata.to_h
927
936
 
928
- # Set x-goog-api-client and x-goog-user-project headers
937
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
929
938
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
930
939
  lib_name: @config.lib_name, lib_version: @config.lib_version,
931
940
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
941
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
932
942
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
933
943
 
934
944
  header_params = {}
@@ -1025,10 +1035,11 @@ module Google
1025
1035
  # Customize the options with defaults
1026
1036
  metadata = @config.rpcs.schedule_transfer_runs.metadata.to_h
1027
1037
 
1028
- # Set x-goog-api-client and x-goog-user-project headers
1038
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1029
1039
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1030
1040
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1031
1041
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1042
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1032
1043
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1033
1044
 
1034
1045
  header_params = {}
@@ -1125,10 +1136,11 @@ module Google
1125
1136
  # Customize the options with defaults
1126
1137
  metadata = @config.rpcs.start_manual_transfer_runs.metadata.to_h
1127
1138
 
1128
- # Set x-goog-api-client and x-goog-user-project headers
1139
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1129
1140
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1130
1141
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1131
1142
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1143
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1132
1144
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1133
1145
 
1134
1146
  header_params = {}
@@ -1213,10 +1225,11 @@ module Google
1213
1225
  # Customize the options with defaults
1214
1226
  metadata = @config.rpcs.get_transfer_run.metadata.to_h
1215
1227
 
1216
- # Set x-goog-api-client and x-goog-user-project headers
1228
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1217
1229
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1218
1230
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1219
1231
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1232
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1220
1233
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1221
1234
 
1222
1235
  header_params = {}
@@ -1301,10 +1314,11 @@ module Google
1301
1314
  # Customize the options with defaults
1302
1315
  metadata = @config.rpcs.delete_transfer_run.metadata.to_h
1303
1316
 
1304
- # Set x-goog-api-client and x-goog-user-project headers
1317
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1305
1318
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1306
1319
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1307
1320
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1321
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1308
1322
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1309
1323
 
1310
1324
  header_params = {}
@@ -1405,10 +1419,11 @@ module Google
1405
1419
  # Customize the options with defaults
1406
1420
  metadata = @config.rpcs.list_transfer_runs.metadata.to_h
1407
1421
 
1408
- # Set x-goog-api-client and x-goog-user-project headers
1422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1409
1423
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1410
1424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1411
1425
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1426
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1412
1427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1413
1428
 
1414
1429
  header_params = {}
@@ -1508,10 +1523,11 @@ module Google
1508
1523
  # Customize the options with defaults
1509
1524
  metadata = @config.rpcs.list_transfer_logs.metadata.to_h
1510
1525
 
1511
- # Set x-goog-api-client and x-goog-user-project headers
1526
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1512
1527
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1513
1528
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1514
1529
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1530
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1515
1531
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1516
1532
 
1517
1533
  header_params = {}
@@ -1597,10 +1613,11 @@ module Google
1597
1613
  # Customize the options with defaults
1598
1614
  metadata = @config.rpcs.check_valid_creds.metadata.to_h
1599
1615
 
1600
- # Set x-goog-api-client and x-goog-user-project headers
1616
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1601
1617
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1602
1618
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1603
1619
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1620
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1604
1621
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1605
1622
 
1606
1623
  header_params = {}
@@ -1693,10 +1710,11 @@ module Google
1693
1710
  # Customize the options with defaults
1694
1711
  metadata = @config.rpcs.enroll_data_sources.metadata.to_h
1695
1712
 
1696
- # Set x-goog-api-client and x-goog-user-project headers
1713
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1697
1714
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1698
1715
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1699
1716
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1717
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1700
1718
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1701
1719
 
1702
1720
  header_params = {}
@@ -1786,10 +1804,11 @@ module Google
1786
1804
  # Customize the options with defaults
1787
1805
  metadata = @config.rpcs.unenroll_data_sources.metadata.to_h
1788
1806
 
1789
- # Set x-goog-api-client and x-goog-user-project headers
1807
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1790
1808
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1791
1809
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1792
1810
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION
1811
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1793
1812
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1794
1813
 
1795
1814
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # This API allows users to manage their data transfers into BigQuery.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "bigquerydatatransfer.$UNIVERSE_DOMAIN$"
39
42
 
@@ -282,12 +285,13 @@ module Google
282
285
  # Customize the options with defaults
283
286
  call_metadata = @config.rpcs.get_data_source.metadata.to_h
284
287
 
285
- # Set x-goog-api-client and x-goog-user-project headers
288
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
286
289
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
287
290
  lib_name: @config.lib_name, lib_version: @config.lib_version,
288
291
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
289
292
  transports_version_send: [:rest]
290
293
 
294
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
291
295
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
292
296
 
293
297
  options.apply_defaults timeout: @config.rpcs.get_data_source.timeout,
@@ -374,12 +378,13 @@ module Google
374
378
  # Customize the options with defaults
375
379
  call_metadata = @config.rpcs.list_data_sources.metadata.to_h
376
380
 
377
- # Set x-goog-api-client and x-goog-user-project headers
381
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
378
382
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
379
383
  lib_name: @config.lib_name, lib_version: @config.lib_version,
380
384
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
381
385
  transports_version_send: [:rest]
382
386
 
387
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
388
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
389
 
385
390
  options.apply_defaults timeout: @config.rpcs.list_data_sources.timeout,
@@ -431,7 +436,7 @@ module Google
431
436
  # and new credentials are needed, as indicated by `CheckValidCreds`. In order
432
437
  # to obtain authorization_code, make a request to the following URL:
433
438
  # <pre class="prettyprint" suppresswarning="true">
434
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
439
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
435
440
  # </pre>
436
441
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
437
442
  # returned by ListDataSources method.
@@ -446,7 +451,7 @@ module Google
446
451
  # are needed, as indicated by `CheckValidCreds`. In order to obtain version
447
452
  # info, make a request to the following URL:
448
453
  # <pre class="prettyprint" suppresswarning="true">
449
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
454
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
450
455
  # </pre>
451
456
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
452
457
  # returned by ListDataSources method.
@@ -499,12 +504,13 @@ module Google
499
504
  # Customize the options with defaults
500
505
  call_metadata = @config.rpcs.create_transfer_config.metadata.to_h
501
506
 
502
- # Set x-goog-api-client and x-goog-user-project headers
507
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
503
508
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
504
509
  lib_name: @config.lib_name, lib_version: @config.lib_version,
505
510
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
506
511
  transports_version_send: [:rest]
507
512
 
513
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
508
514
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
509
515
 
510
516
  options.apply_defaults timeout: @config.rpcs.create_transfer_config.timeout,
@@ -550,7 +556,7 @@ module Google
550
556
  # and new credentials are needed, as indicated by `CheckValidCreds`. In order
551
557
  # to obtain authorization_code, make a request to the following URL:
552
558
  # <pre class="prettyprint" suppresswarning="true">
553
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
559
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
554
560
  # </pre>
555
561
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
556
562
  # returned by ListDataSources method.
@@ -567,7 +573,7 @@ module Google
567
573
  # are needed, as indicated by `CheckValidCreds`. In order to obtain version
568
574
  # info, make a request to the following URL:
569
575
  # <pre class="prettyprint" suppresswarning="true">
570
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
576
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
571
577
  # </pre>
572
578
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
573
579
  # returned by ListDataSources method.
@@ -620,12 +626,13 @@ module Google
620
626
  # Customize the options with defaults
621
627
  call_metadata = @config.rpcs.update_transfer_config.metadata.to_h
622
628
 
623
- # Set x-goog-api-client and x-goog-user-project headers
629
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
624
630
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
625
631
  lib_name: @config.lib_name, lib_version: @config.lib_version,
626
632
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
627
633
  transports_version_send: [:rest]
628
634
 
635
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
629
636
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
630
637
 
631
638
  options.apply_defaults timeout: @config.rpcs.update_transfer_config.timeout,
@@ -701,12 +708,13 @@ module Google
701
708
  # Customize the options with defaults
702
709
  call_metadata = @config.rpcs.delete_transfer_config.metadata.to_h
703
710
 
704
- # Set x-goog-api-client and x-goog-user-project headers
711
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
705
712
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
706
713
  lib_name: @config.lib_name, lib_version: @config.lib_version,
707
714
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
708
715
  transports_version_send: [:rest]
709
716
 
717
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
710
718
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
711
719
 
712
720
  options.apply_defaults timeout: @config.rpcs.delete_transfer_config.timeout,
@@ -781,12 +789,13 @@ module Google
781
789
  # Customize the options with defaults
782
790
  call_metadata = @config.rpcs.get_transfer_config.metadata.to_h
783
791
 
784
- # Set x-goog-api-client and x-goog-user-project headers
792
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
785
793
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
786
794
  lib_name: @config.lib_name, lib_version: @config.lib_version,
787
795
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
788
796
  transports_version_send: [:rest]
789
797
 
798
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
790
799
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
791
800
 
792
801
  options.apply_defaults timeout: @config.rpcs.get_transfer_config.timeout,
@@ -876,12 +885,13 @@ module Google
876
885
  # Customize the options with defaults
877
886
  call_metadata = @config.rpcs.list_transfer_configs.metadata.to_h
878
887
 
879
- # Set x-goog-api-client and x-goog-user-project headers
888
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
880
889
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
881
890
  lib_name: @config.lib_name, lib_version: @config.lib_version,
882
891
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
883
892
  transports_version_send: [:rest]
884
893
 
894
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
885
895
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
886
896
 
887
897
  options.apply_defaults timeout: @config.rpcs.list_transfer_configs.timeout,
@@ -967,12 +977,13 @@ module Google
967
977
  # Customize the options with defaults
968
978
  call_metadata = @config.rpcs.schedule_transfer_runs.metadata.to_h
969
979
 
970
- # Set x-goog-api-client and x-goog-user-project headers
980
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
971
981
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
972
982
  lib_name: @config.lib_name, lib_version: @config.lib_version,
973
983
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
974
984
  transports_version_send: [:rest]
975
985
 
986
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
976
987
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
977
988
 
978
989
  options.apply_defaults timeout: @config.rpcs.schedule_transfer_runs.timeout,
@@ -1060,12 +1071,13 @@ module Google
1060
1071
  # Customize the options with defaults
1061
1072
  call_metadata = @config.rpcs.start_manual_transfer_runs.metadata.to_h
1062
1073
 
1063
- # Set x-goog-api-client and x-goog-user-project headers
1074
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1064
1075
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1065
1076
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1066
1077
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
1067
1078
  transports_version_send: [:rest]
1068
1079
 
1080
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1069
1081
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1070
1082
 
1071
1083
  options.apply_defaults timeout: @config.rpcs.start_manual_transfer_runs.timeout,
@@ -1141,12 +1153,13 @@ module Google
1141
1153
  # Customize the options with defaults
1142
1154
  call_metadata = @config.rpcs.get_transfer_run.metadata.to_h
1143
1155
 
1144
- # Set x-goog-api-client and x-goog-user-project headers
1156
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1145
1157
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1146
1158
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1147
1159
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
1148
1160
  transports_version_send: [:rest]
1149
1161
 
1162
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1150
1163
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1151
1164
 
1152
1165
  options.apply_defaults timeout: @config.rpcs.get_transfer_run.timeout,
@@ -1222,12 +1235,13 @@ module Google
1222
1235
  # Customize the options with defaults
1223
1236
  call_metadata = @config.rpcs.delete_transfer_run.metadata.to_h
1224
1237
 
1225
- # Set x-goog-api-client and x-goog-user-project headers
1238
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1226
1239
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1227
1240
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1228
1241
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
1229
1242
  transports_version_send: [:rest]
1230
1243
 
1244
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1231
1245
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1232
1246
 
1233
1247
  options.apply_defaults timeout: @config.rpcs.delete_transfer_run.timeout,
@@ -1319,12 +1333,13 @@ module Google
1319
1333
  # Customize the options with defaults
1320
1334
  call_metadata = @config.rpcs.list_transfer_runs.metadata.to_h
1321
1335
 
1322
- # Set x-goog-api-client and x-goog-user-project headers
1336
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1323
1337
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1324
1338
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1325
1339
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
1326
1340
  transports_version_send: [:rest]
1327
1341
 
1342
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1328
1343
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1329
1344
 
1330
1345
  options.apply_defaults timeout: @config.rpcs.list_transfer_runs.timeout,
@@ -1415,12 +1430,13 @@ module Google
1415
1430
  # Customize the options with defaults
1416
1431
  call_metadata = @config.rpcs.list_transfer_logs.metadata.to_h
1417
1432
 
1418
- # Set x-goog-api-client and x-goog-user-project headers
1433
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1419
1434
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1420
1435
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1421
1436
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
1422
1437
  transports_version_send: [:rest]
1423
1438
 
1439
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1424
1440
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1425
1441
 
1426
1442
  options.apply_defaults timeout: @config.rpcs.list_transfer_logs.timeout,
@@ -1497,12 +1513,13 @@ module Google
1497
1513
  # Customize the options with defaults
1498
1514
  call_metadata = @config.rpcs.check_valid_creds.metadata.to_h
1499
1515
 
1500
- # Set x-goog-api-client and x-goog-user-project headers
1516
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1501
1517
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1502
1518
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1503
1519
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
1504
1520
  transports_version_send: [:rest]
1505
1521
 
1522
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1506
1523
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1507
1524
 
1508
1525
  options.apply_defaults timeout: @config.rpcs.check_valid_creds.timeout,
@@ -1586,12 +1603,13 @@ module Google
1586
1603
  # Customize the options with defaults
1587
1604
  call_metadata = @config.rpcs.enroll_data_sources.metadata.to_h
1588
1605
 
1589
- # Set x-goog-api-client and x-goog-user-project headers
1606
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1590
1607
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1591
1608
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1592
1609
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
1593
1610
  transports_version_send: [:rest]
1594
1611
 
1612
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1595
1613
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1596
1614
 
1597
1615
  options.apply_defaults timeout: @config.rpcs.enroll_data_sources.timeout,
@@ -1672,12 +1690,13 @@ module Google
1672
1690
  # Customize the options with defaults
1673
1691
  call_metadata = @config.rpcs.unenroll_data_sources.metadata.to_h
1674
1692
 
1675
- # Set x-goog-api-client and x-goog-user-project headers
1693
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1676
1694
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1677
1695
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1678
1696
  gapic_version: ::Google::Cloud::Bigquery::DataTransfer::V1::VERSION,
1679
1697
  transports_version_send: [:rest]
1680
1698
 
1699
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1681
1700
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1682
1701
 
1683
1702
  options.apply_defaults timeout: @config.rpcs.unenroll_data_sources.timeout,
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module DataTransfer
24
24
  module V1
25
- VERSION = "0.14.1"
25
+ VERSION = "1.0.0"
26
26
  end
27
27
  end
28
28
  end
@@ -285,7 +285,7 @@ module Google
285
285
  # and new credentials are needed, as indicated by `CheckValidCreds`. In order
286
286
  # to obtain authorization_code, make a request to the following URL:
287
287
  # <pre class="prettyprint" suppresswarning="true">
288
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
288
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
289
289
  # </pre>
290
290
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
291
291
  # returned by ListDataSources method.
@@ -301,7 +301,7 @@ module Google
301
301
  # are needed, as indicated by `CheckValidCreds`. In order to obtain version
302
302
  # info, make a request to the following URL:
303
303
  # <pre class="prettyprint" suppresswarning="true">
304
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
304
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
305
305
  # </pre>
306
306
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
307
307
  # returned by ListDataSources method.
@@ -338,7 +338,7 @@ module Google
338
338
  # and new credentials are needed, as indicated by `CheckValidCreds`. In order
339
339
  # to obtain authorization_code, make a request to the following URL:
340
340
  # <pre class="prettyprint" suppresswarning="true">
341
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
341
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
342
342
  # </pre>
343
343
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
344
344
  # returned by ListDataSources method.
@@ -357,7 +357,7 @@ module Google
357
357
  # are needed, as indicated by `CheckValidCreds`. In order to obtain version
358
358
  # info, make a request to the following URL:
359
359
  # <pre class="prettyprint" suppresswarning="true">
360
- # https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
360
+ # https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
361
361
  # </pre>
362
362
  # * The <var>client_id</var> is the OAuth client_id of the a data source as
363
363
  # returned by ListDataSources method.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-data_transfer-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-25 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common