google-cloud-rapid_migration_assessment-v1 0.4.0 → 1.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa43d20c7aa1eac5fd96afbf136c7df48cb1b392d5839aafebcdc5305d3ebf11
4
- data.tar.gz: 255631a7fe475a2442562ae60901bb28031f48ff7f8038bd090e3c2438808641
3
+ metadata.gz: 527d60f8d96addfe60df47d55ead37497adc35a81cd5594e90a3cf967edde6b9
4
+ data.tar.gz: dd96e6deb07573686f0033494f59db16aa4641b99fd23e6dbdaff5d775706796
5
5
  SHA512:
6
- metadata.gz: 2bfde932d857d2d2a89e469f3d558b5327761fff6852ac86eecc358a5baed1595e91ef8e87495616094678bef4b055e4538bcb0519e2ffcac074282b0cd825ca
7
- data.tar.gz: d901bfd549d2acb2220ebe5996d74a36aefad0b02b98a2a095f6beb2df46fda6be6085a924a7f3e3c003515feb808fbc2f1a3f6c7e1a2b051981df6f18862e3f
6
+ metadata.gz: a2fe5854a1178dd3b36acbdbfe4696ea4e1cfff91745866e9e4d96d7c69f2069ef406f6b6b0c9d5cc45537a44181ae1be1ccca5dd95292d03b0f7fdc3a3433c0
7
+ data.tar.gz: 70d926e27c957860bc13b12ad24f680c2ef00f7a60eeab9c9825ec65b9f09589153e5fa16692ad1e044982c5a039ab2fe7672ee2ad101471b54bc99b125bd895
@@ -31,6 +31,9 @@ module Google
31
31
  # Service describing handlers for resources.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "rapidmigrationassessment.$UNIVERSE_DOMAIN$"
36
39
 
@@ -287,10 +290,11 @@ module Google
287
290
  # Customize the options with defaults
288
291
  metadata = @config.rpcs.create_collector.metadata.to_h
289
292
 
290
- # Set x-goog-api-client and x-goog-user-project headers
293
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
294
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
295
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
296
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
297
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
298
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
299
 
296
300
  header_params = {}
@@ -384,10 +388,11 @@ module Google
384
388
  # Customize the options with defaults
385
389
  metadata = @config.rpcs.create_annotation.metadata.to_h
386
390
 
387
- # Set x-goog-api-client and x-goog-user-project headers
391
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
388
392
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
389
393
  lib_name: @config.lib_name, lib_version: @config.lib_version,
390
394
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
395
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
391
396
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
392
397
 
393
398
  header_params = {}
@@ -470,10 +475,11 @@ module Google
470
475
  # Customize the options with defaults
471
476
  metadata = @config.rpcs.get_annotation.metadata.to_h
472
477
 
473
- # Set x-goog-api-client and x-goog-user-project headers
478
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
479
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
480
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
481
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
482
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
483
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
484
 
479
485
  header_params = {}
@@ -568,10 +574,11 @@ module Google
568
574
  # Customize the options with defaults
569
575
  metadata = @config.rpcs.list_collectors.metadata.to_h
570
576
 
571
- # Set x-goog-api-client and x-goog-user-project headers
577
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
572
578
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
573
579
  lib_name: @config.lib_name, lib_version: @config.lib_version,
574
580
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
581
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
575
582
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
576
583
 
577
584
  header_params = {}
@@ -654,10 +661,11 @@ module Google
654
661
  # Customize the options with defaults
655
662
  metadata = @config.rpcs.get_collector.metadata.to_h
656
663
 
657
- # Set x-goog-api-client and x-goog-user-project headers
664
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
658
665
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
659
666
  lib_name: @config.lib_name, lib_version: @config.lib_version,
660
667
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
668
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
661
669
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
662
670
 
663
671
  header_params = {}
@@ -766,10 +774,11 @@ module Google
766
774
  # Customize the options with defaults
767
775
  metadata = @config.rpcs.update_collector.metadata.to_h
768
776
 
769
- # Set x-goog-api-client and x-goog-user-project headers
777
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
770
778
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
771
779
  lib_name: @config.lib_name, lib_version: @config.lib_version,
772
780
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
781
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
773
782
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
774
783
 
775
784
  header_params = {}
@@ -874,10 +883,11 @@ module Google
874
883
  # Customize the options with defaults
875
884
  metadata = @config.rpcs.delete_collector.metadata.to_h
876
885
 
877
- # Set x-goog-api-client and x-goog-user-project headers
886
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
878
887
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
879
888
  lib_name: @config.lib_name, lib_version: @config.lib_version,
880
889
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
890
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
881
891
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
882
892
 
883
893
  header_params = {}
@@ -981,10 +991,11 @@ module Google
981
991
  # Customize the options with defaults
982
992
  metadata = @config.rpcs.resume_collector.metadata.to_h
983
993
 
984
- # Set x-goog-api-client and x-goog-user-project headers
994
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
985
995
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
986
996
  lib_name: @config.lib_name, lib_version: @config.lib_version,
987
997
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
998
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
988
999
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
989
1000
 
990
1001
  header_params = {}
@@ -1088,10 +1099,11 @@ module Google
1088
1099
  # Customize the options with defaults
1089
1100
  metadata = @config.rpcs.register_collector.metadata.to_h
1090
1101
 
1091
- # Set x-goog-api-client and x-goog-user-project headers
1102
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1092
1103
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1093
1104
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1094
1105
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
1106
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1095
1107
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1096
1108
 
1097
1109
  header_params = {}
@@ -1195,10 +1207,11 @@ module Google
1195
1207
  # Customize the options with defaults
1196
1208
  metadata = @config.rpcs.pause_collector.metadata.to_h
1197
1209
 
1198
- # Set x-goog-api-client and x-goog-user-project headers
1210
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1199
1211
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1200
1212
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1201
1213
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION
1214
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1202
1215
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1203
1216
 
1204
1217
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module RapidMigrationAssessment
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 = "rapidmigrationassessment.$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::RapidMigrationAssessment::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::RapidMigrationAssessment::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::RapidMigrationAssessment::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::RapidMigrationAssessment::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::RapidMigrationAssessment::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,
@@ -33,6 +33,9 @@ module Google
33
33
  # Service describing handlers for resources.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "rapidmigrationassessment.$UNIVERSE_DOMAIN$"
38
41
 
@@ -280,12 +283,13 @@ module Google
280
283
  # Customize the options with defaults
281
284
  call_metadata = @config.rpcs.create_collector.metadata.to_h
282
285
 
283
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
284
287
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
285
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
286
289
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
287
290
  transports_version_send: [:rest]
288
291
 
292
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
289
293
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
290
294
 
291
295
  options.apply_defaults timeout: @config.rpcs.create_collector.timeout,
@@ -370,12 +374,13 @@ module Google
370
374
  # Customize the options with defaults
371
375
  call_metadata = @config.rpcs.create_annotation.metadata.to_h
372
376
 
373
- # Set x-goog-api-client and x-goog-user-project headers
377
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
374
378
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
375
379
  lib_name: @config.lib_name, lib_version: @config.lib_version,
376
380
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
377
381
  transports_version_send: [:rest]
378
382
 
383
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
379
384
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
385
 
381
386
  options.apply_defaults timeout: @config.rpcs.create_annotation.timeout,
@@ -449,12 +454,13 @@ module Google
449
454
  # Customize the options with defaults
450
455
  call_metadata = @config.rpcs.get_annotation.metadata.to_h
451
456
 
452
- # Set x-goog-api-client and x-goog-user-project headers
457
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
453
458
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
454
459
  lib_name: @config.lib_name, lib_version: @config.lib_version,
455
460
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
456
461
  transports_version_send: [:rest]
457
462
 
463
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
458
464
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
459
465
 
460
466
  options.apply_defaults timeout: @config.rpcs.get_annotation.timeout,
@@ -540,12 +546,13 @@ module Google
540
546
  # Customize the options with defaults
541
547
  call_metadata = @config.rpcs.list_collectors.metadata.to_h
542
548
 
543
- # Set x-goog-api-client and x-goog-user-project headers
549
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
544
550
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
545
551
  lib_name: @config.lib_name, lib_version: @config.lib_version,
546
552
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
547
553
  transports_version_send: [:rest]
548
554
 
555
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
549
556
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
550
557
 
551
558
  options.apply_defaults timeout: @config.rpcs.list_collectors.timeout,
@@ -618,12 +625,13 @@ module Google
618
625
  # Customize the options with defaults
619
626
  call_metadata = @config.rpcs.get_collector.metadata.to_h
620
627
 
621
- # Set x-goog-api-client and x-goog-user-project headers
628
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
622
629
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
623
630
  lib_name: @config.lib_name, lib_version: @config.lib_version,
624
631
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
625
632
  transports_version_send: [:rest]
626
633
 
634
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
627
635
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
628
636
 
629
637
  options.apply_defaults timeout: @config.rpcs.get_collector.timeout,
@@ -723,12 +731,13 @@ module Google
723
731
  # Customize the options with defaults
724
732
  call_metadata = @config.rpcs.update_collector.metadata.to_h
725
733
 
726
- # Set x-goog-api-client and x-goog-user-project headers
734
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
727
735
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
736
  lib_name: @config.lib_name, lib_version: @config.lib_version,
729
737
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
730
738
  transports_version_send: [:rest]
731
739
 
740
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
732
741
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
733
742
 
734
743
  options.apply_defaults timeout: @config.rpcs.update_collector.timeout,
@@ -824,12 +833,13 @@ module Google
824
833
  # Customize the options with defaults
825
834
  call_metadata = @config.rpcs.delete_collector.metadata.to_h
826
835
 
827
- # Set x-goog-api-client and x-goog-user-project headers
836
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
828
837
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
829
838
  lib_name: @config.lib_name, lib_version: @config.lib_version,
830
839
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
831
840
  transports_version_send: [:rest]
832
841
 
842
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
833
843
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
834
844
 
835
845
  options.apply_defaults timeout: @config.rpcs.delete_collector.timeout,
@@ -924,12 +934,13 @@ module Google
924
934
  # Customize the options with defaults
925
935
  call_metadata = @config.rpcs.resume_collector.metadata.to_h
926
936
 
927
- # 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
928
938
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
929
939
  lib_name: @config.lib_name, lib_version: @config.lib_version,
930
940
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
931
941
  transports_version_send: [:rest]
932
942
 
943
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
933
944
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
934
945
 
935
946
  options.apply_defaults timeout: @config.rpcs.resume_collector.timeout,
@@ -1024,12 +1035,13 @@ module Google
1024
1035
  # Customize the options with defaults
1025
1036
  call_metadata = @config.rpcs.register_collector.metadata.to_h
1026
1037
 
1027
- # 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
1028
1039
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1029
1040
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1030
1041
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
1031
1042
  transports_version_send: [:rest]
1032
1043
 
1044
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1033
1045
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1034
1046
 
1035
1047
  options.apply_defaults timeout: @config.rpcs.register_collector.timeout,
@@ -1124,12 +1136,13 @@ module Google
1124
1136
  # Customize the options with defaults
1125
1137
  call_metadata = @config.rpcs.pause_collector.metadata.to_h
1126
1138
 
1127
- # 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
1128
1140
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1129
1141
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1130
1142
  gapic_version: ::Google::Cloud::RapidMigrationAssessment::V1::VERSION,
1131
1143
  transports_version_send: [:rest]
1132
1144
 
1145
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1133
1146
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1134
1147
 
1135
1148
  options.apply_defaults timeout: @config.rpcs.pause_collector.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 = "rapidmigrationassessment.$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::RapidMigrationAssessment::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::RapidMigrationAssessment::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::RapidMigrationAssessment::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::RapidMigrationAssessment::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 RapidMigrationAssessment
23
23
  module V1
24
- VERSION = "0.4.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-rapid_migration_assessment-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.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