google-cloud-storage_transfer-v1 0.10.0 → 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: 78497fbaf08bbab285715d89f337e5d8a81d6f31f85dc3c48ba79a55d80dd589
4
- data.tar.gz: f5c5c70c794cfe48dc77255796fd5ac73377bcaf5ca85e64a8e4bb48f3cae188
3
+ metadata.gz: 0d8e312fe6418380b8bf6c5374a439e4a1c8ced716520628b4de6a1a8e7e6aa0
4
+ data.tar.gz: 5d92c7591faf238efe585e49fb997a0ad1872964b9f17fe9e4d84ec84b25c01a
5
5
  SHA512:
6
- metadata.gz: 01aa886e9f71da2dcfd4ad2eb45f4ac2a7d7d64c89696f4494d624b39495ff2fd70c2a636ea720b0a2e7be798b749eb5910402f36ebf2f4e79ab2e21a57fd24d
7
- data.tar.gz: 61a8366db2b7c77f21e094c3518126be4bddfde8f8c15cf78f4f7738df46786d0e6d37fc8cd5c36d3a07e726c83b71ef7c4811cc2ef7b594c8eb92a77847131f
6
+ metadata.gz: c24c53c3181b954da7bf10c1fed0639b263e20330c60e1f1db5438698839d3f28f96237e1f424829c3c3f0fc1d06b900cbcb0842b82a6670bb1c5d3aed73d909
7
+ data.tar.gz: b27eaff8b7950d8fa43597ed6d841ff91053818f7dab685a1f03f67c1345a990fb1159a93fcc6951211d9cbeb9116860256b3a604b6061ca7fc659700d1d3db0
@@ -32,6 +32,9 @@ module Google
32
32
  # source external to Google to a Cloud Storage bucket.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "storagetransfer.$UNIVERSE_DOMAIN$"
37
40
 
@@ -246,10 +249,11 @@ module Google
246
249
  # Customize the options with defaults
247
250
  metadata = @config.rpcs.get_google_service_account.metadata.to_h
248
251
 
249
- # Set x-goog-api-client and x-goog-user-project headers
252
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
250
253
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
251
254
  lib_name: @config.lib_name, lib_version: @config.lib_version,
252
255
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
256
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
253
257
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
254
258
 
255
259
  header_params = {}
@@ -331,10 +335,11 @@ module Google
331
335
  # Customize the options with defaults
332
336
  metadata = @config.rpcs.create_transfer_job.metadata.to_h
333
337
 
334
- # Set x-goog-api-client and x-goog-user-project headers
338
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
335
339
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
336
340
  lib_name: @config.lib_name, lib_version: @config.lib_version,
337
341
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
342
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
338
343
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
339
344
 
340
345
  options.apply_defaults timeout: @config.rpcs.create_transfer_job.timeout,
@@ -443,10 +448,11 @@ module Google
443
448
  # Customize the options with defaults
444
449
  metadata = @config.rpcs.update_transfer_job.metadata.to_h
445
450
 
446
- # Set x-goog-api-client and x-goog-user-project headers
451
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
447
452
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
448
453
  lib_name: @config.lib_name, lib_version: @config.lib_version,
449
454
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
455
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
450
456
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
451
457
 
452
458
  header_params = {}
@@ -531,10 +537,11 @@ module Google
531
537
  # Customize the options with defaults
532
538
  metadata = @config.rpcs.get_transfer_job.metadata.to_h
533
539
 
534
- # Set x-goog-api-client and x-goog-user-project headers
540
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
535
541
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
536
542
  lib_name: @config.lib_name, lib_version: @config.lib_version,
537
543
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
544
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
545
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
546
 
540
547
  header_params = {}
@@ -635,10 +642,11 @@ module Google
635
642
  # Customize the options with defaults
636
643
  metadata = @config.rpcs.list_transfer_jobs.metadata.to_h
637
644
 
638
- # Set x-goog-api-client and x-goog-user-project headers
645
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
639
646
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
640
647
  lib_name: @config.lib_name, lib_version: @config.lib_version,
641
648
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
649
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
642
650
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
643
651
 
644
652
  options.apply_defaults timeout: @config.rpcs.list_transfer_jobs.timeout,
@@ -713,10 +721,11 @@ module Google
713
721
  # Customize the options with defaults
714
722
  metadata = @config.rpcs.pause_transfer_operation.metadata.to_h
715
723
 
716
- # Set x-goog-api-client and x-goog-user-project headers
724
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
717
725
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
718
726
  lib_name: @config.lib_name, lib_version: @config.lib_version,
719
727
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
728
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
720
729
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
721
730
 
722
731
  header_params = {}
@@ -798,10 +807,11 @@ module Google
798
807
  # Customize the options with defaults
799
808
  metadata = @config.rpcs.resume_transfer_operation.metadata.to_h
800
809
 
801
- # Set x-goog-api-client and x-goog-user-project headers
810
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
802
811
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
803
812
  lib_name: @config.lib_name, lib_version: @config.lib_version,
804
813
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
814
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
805
815
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
806
816
 
807
817
  header_params = {}
@@ -896,10 +906,11 @@ module Google
896
906
  # Customize the options with defaults
897
907
  metadata = @config.rpcs.run_transfer_job.metadata.to_h
898
908
 
899
- # Set x-goog-api-client and x-goog-user-project headers
909
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
900
910
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
901
911
  lib_name: @config.lib_name, lib_version: @config.lib_version,
902
912
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
913
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
903
914
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
904
915
 
905
916
  header_params = {}
@@ -986,10 +997,11 @@ module Google
986
997
  # Customize the options with defaults
987
998
  metadata = @config.rpcs.delete_transfer_job.metadata.to_h
988
999
 
989
- # Set x-goog-api-client and x-goog-user-project headers
1000
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
990
1001
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
991
1002
  lib_name: @config.lib_name, lib_version: @config.lib_version,
992
1003
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
1004
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
993
1005
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
994
1006
 
995
1007
  header_params = {}
@@ -1088,10 +1100,11 @@ module Google
1088
1100
  # Customize the options with defaults
1089
1101
  metadata = @config.rpcs.create_agent_pool.metadata.to_h
1090
1102
 
1091
- # Set x-goog-api-client and x-goog-user-project headers
1103
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1092
1104
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1093
1105
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1094
1106
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
1107
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1095
1108
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1096
1109
 
1097
1110
  header_params = {}
@@ -1191,10 +1204,11 @@ module Google
1191
1204
  # Customize the options with defaults
1192
1205
  metadata = @config.rpcs.update_agent_pool.metadata.to_h
1193
1206
 
1194
- # Set x-goog-api-client and x-goog-user-project headers
1207
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1195
1208
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1196
1209
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1197
1210
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
1211
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1198
1212
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1199
1213
 
1200
1214
  header_params = {}
@@ -1276,10 +1290,11 @@ module Google
1276
1290
  # Customize the options with defaults
1277
1291
  metadata = @config.rpcs.get_agent_pool.metadata.to_h
1278
1292
 
1279
- # Set x-goog-api-client and x-goog-user-project headers
1293
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1280
1294
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1281
1295
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1282
1296
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
1297
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1283
1298
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1284
1299
 
1285
1300
  header_params = {}
@@ -1378,10 +1393,11 @@ module Google
1378
1393
  # Customize the options with defaults
1379
1394
  metadata = @config.rpcs.list_agent_pools.metadata.to_h
1380
1395
 
1381
- # Set x-goog-api-client and x-goog-user-project headers
1396
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1382
1397
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1383
1398
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1384
1399
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
1400
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1385
1401
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1386
1402
 
1387
1403
  header_params = {}
@@ -1464,10 +1480,11 @@ module Google
1464
1480
  # Customize the options with defaults
1465
1481
  metadata = @config.rpcs.delete_agent_pool.metadata.to_h
1466
1482
 
1467
- # Set x-goog-api-client and x-goog-user-project headers
1483
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1468
1484
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1469
1485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1470
1486
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
1487
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1471
1488
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1472
1489
 
1473
1490
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module StorageTransferService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "storagetransfer.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # source external to Google to a Cloud Storage bucket.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "storagetransfer.$UNIVERSE_DOMAIN$"
39
42
 
@@ -238,12 +241,13 @@ module Google
238
241
  # Customize the options with defaults
239
242
  call_metadata = @config.rpcs.get_google_service_account.metadata.to_h
240
243
 
241
- # Set x-goog-api-client and x-goog-user-project headers
244
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
242
245
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
243
246
  lib_name: @config.lib_name, lib_version: @config.lib_version,
244
247
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
245
248
  transports_version_send: [:rest]
246
249
 
250
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
247
251
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
248
252
 
249
253
  options.apply_defaults timeout: @config.rpcs.get_google_service_account.timeout,
@@ -316,12 +320,13 @@ module Google
316
320
  # Customize the options with defaults
317
321
  call_metadata = @config.rpcs.create_transfer_job.metadata.to_h
318
322
 
319
- # Set x-goog-api-client and x-goog-user-project headers
323
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
320
324
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
321
325
  lib_name: @config.lib_name, lib_version: @config.lib_version,
322
326
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
323
327
  transports_version_send: [:rest]
324
328
 
329
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
325
330
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
326
331
 
327
332
  options.apply_defaults timeout: @config.rpcs.create_transfer_job.timeout,
@@ -429,12 +434,13 @@ module Google
429
434
  # Customize the options with defaults
430
435
  call_metadata = @config.rpcs.update_transfer_job.metadata.to_h
431
436
 
432
- # Set x-goog-api-client and x-goog-user-project headers
437
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
433
438
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
434
439
  lib_name: @config.lib_name, lib_version: @config.lib_version,
435
440
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
436
441
  transports_version_send: [:rest]
437
442
 
443
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
438
444
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
439
445
 
440
446
  options.apply_defaults timeout: @config.rpcs.update_transfer_job.timeout,
@@ -510,12 +516,13 @@ module Google
510
516
  # Customize the options with defaults
511
517
  call_metadata = @config.rpcs.get_transfer_job.metadata.to_h
512
518
 
513
- # Set x-goog-api-client and x-goog-user-project headers
519
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
514
520
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
515
521
  lib_name: @config.lib_name, lib_version: @config.lib_version,
516
522
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
517
523
  transports_version_send: [:rest]
518
524
 
525
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
519
526
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
527
 
521
528
  options.apply_defaults timeout: @config.rpcs.get_transfer_job.timeout,
@@ -607,12 +614,13 @@ module Google
607
614
  # Customize the options with defaults
608
615
  call_metadata = @config.rpcs.list_transfer_jobs.metadata.to_h
609
616
 
610
- # Set x-goog-api-client and x-goog-user-project headers
617
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
611
618
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
612
619
  lib_name: @config.lib_name, lib_version: @config.lib_version,
613
620
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
614
621
  transports_version_send: [:rest]
615
622
 
623
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
616
624
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
617
625
 
618
626
  options.apply_defaults timeout: @config.rpcs.list_transfer_jobs.timeout,
@@ -686,12 +694,13 @@ module Google
686
694
  # Customize the options with defaults
687
695
  call_metadata = @config.rpcs.pause_transfer_operation.metadata.to_h
688
696
 
689
- # Set x-goog-api-client and x-goog-user-project headers
697
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
690
698
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
691
699
  lib_name: @config.lib_name, lib_version: @config.lib_version,
692
700
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
693
701
  transports_version_send: [:rest]
694
702
 
703
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
695
704
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
696
705
 
697
706
  options.apply_defaults timeout: @config.rpcs.pause_transfer_operation.timeout,
@@ -764,12 +773,13 @@ module Google
764
773
  # Customize the options with defaults
765
774
  call_metadata = @config.rpcs.resume_transfer_operation.metadata.to_h
766
775
 
767
- # Set x-goog-api-client and x-goog-user-project headers
776
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
768
777
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
769
778
  lib_name: @config.lib_name, lib_version: @config.lib_version,
770
779
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
771
780
  transports_version_send: [:rest]
772
781
 
782
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
773
783
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
774
784
 
775
785
  options.apply_defaults timeout: @config.rpcs.resume_transfer_operation.timeout,
@@ -855,12 +865,13 @@ module Google
855
865
  # Customize the options with defaults
856
866
  call_metadata = @config.rpcs.run_transfer_job.metadata.to_h
857
867
 
858
- # Set x-goog-api-client and x-goog-user-project headers
868
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
859
869
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
860
870
  lib_name: @config.lib_name, lib_version: @config.lib_version,
861
871
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
862
872
  transports_version_send: [:rest]
863
873
 
874
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
864
875
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
865
876
 
866
877
  options.apply_defaults timeout: @config.rpcs.run_transfer_job.timeout,
@@ -938,12 +949,13 @@ module Google
938
949
  # Customize the options with defaults
939
950
  call_metadata = @config.rpcs.delete_transfer_job.metadata.to_h
940
951
 
941
- # Set x-goog-api-client and x-goog-user-project headers
952
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
942
953
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
943
954
  lib_name: @config.lib_name, lib_version: @config.lib_version,
944
955
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
945
956
  transports_version_send: [:rest]
946
957
 
958
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
947
959
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
948
960
 
949
961
  options.apply_defaults timeout: @config.rpcs.delete_transfer_job.timeout,
@@ -1033,12 +1045,13 @@ module Google
1033
1045
  # Customize the options with defaults
1034
1046
  call_metadata = @config.rpcs.create_agent_pool.metadata.to_h
1035
1047
 
1036
- # Set x-goog-api-client and x-goog-user-project headers
1048
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1037
1049
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1038
1050
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1039
1051
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
1040
1052
  transports_version_send: [:rest]
1041
1053
 
1054
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1042
1055
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1043
1056
 
1044
1057
  options.apply_defaults timeout: @config.rpcs.create_agent_pool.timeout,
@@ -1129,12 +1142,13 @@ module Google
1129
1142
  # Customize the options with defaults
1130
1143
  call_metadata = @config.rpcs.update_agent_pool.metadata.to_h
1131
1144
 
1132
- # Set x-goog-api-client and x-goog-user-project headers
1145
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1133
1146
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1134
1147
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1135
1148
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
1136
1149
  transports_version_send: [:rest]
1137
1150
 
1151
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1138
1152
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1139
1153
 
1140
1154
  options.apply_defaults timeout: @config.rpcs.update_agent_pool.timeout,
@@ -1207,12 +1221,13 @@ module Google
1207
1221
  # Customize the options with defaults
1208
1222
  call_metadata = @config.rpcs.get_agent_pool.metadata.to_h
1209
1223
 
1210
- # Set x-goog-api-client and x-goog-user-project headers
1224
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1211
1225
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1212
1226
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1213
1227
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
1214
1228
  transports_version_send: [:rest]
1215
1229
 
1230
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1216
1231
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1217
1232
 
1218
1233
  options.apply_defaults timeout: @config.rpcs.get_agent_pool.timeout,
@@ -1302,12 +1317,13 @@ module Google
1302
1317
  # Customize the options with defaults
1303
1318
  call_metadata = @config.rpcs.list_agent_pools.metadata.to_h
1304
1319
 
1305
- # Set x-goog-api-client and x-goog-user-project headers
1320
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1306
1321
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1307
1322
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1308
1323
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
1309
1324
  transports_version_send: [:rest]
1310
1325
 
1326
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1311
1327
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1312
1328
 
1313
1329
  options.apply_defaults timeout: @config.rpcs.list_agent_pools.timeout,
@@ -1381,12 +1397,13 @@ module Google
1381
1397
  # Customize the options with defaults
1382
1398
  call_metadata = @config.rpcs.delete_agent_pool.metadata.to_h
1383
1399
 
1384
- # Set x-goog-api-client and x-goog-user-project headers
1400
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1385
1401
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1386
1402
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1387
1403
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
1388
1404
  transports_version_send: [:rest]
1389
1405
 
1406
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1390
1407
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1391
1408
 
1392
1409
  options.apply_defaults timeout: @config.rpcs.delete_agent_pool.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "storagetransfer.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::StorageTransfer::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module StorageTransfer
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-storage_transfer-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
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-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common