google-cloud-os_config-v1 0.15.2 → 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: 4a2889dc45280b64453781d6df5fe8bc2ba5989bd61b03e4cd997e31ce8457f4
4
- data.tar.gz: 3f319e1eb71dc43be9d55864353ec2ff4f17e9799f451fd06127449b4d036ab3
3
+ metadata.gz: fb7beb045c74fd31212a281b232ce72d7e1f5cfe585b3615f9036d7b8162fcc7
4
+ data.tar.gz: 397484efd2029cf1868215db89b1005870e3520162285223d8d0193aa4299c78
5
5
  SHA512:
6
- metadata.gz: dec45feb93d56d8c869a128e93a6b6e1d9dc275a86d5b86f6c449687d78eafada9d86bb40010062de0ed713451796148530a3de9ce14d6e3840369a05480f569
7
- data.tar.gz: b976444f699e9a394df9d0ec4418e24c6facb7de416c4fef99392050cefae2a7c85e2cae118dc40793aed795b0ece16d5f1a0b550bd3c3ab970b2f22807119e7
6
+ metadata.gz: f4a2db83431f4ba0143d18e0c348139fc8cea1ab562383ee044d2768ba091efbeb08f237cca5392716ac3e585fc915e96525d901237b49c5d0e0eaec95c9c218
7
+ data.tar.gz: 35ce122ea97619dc67101690935f5401f89a275aa6fe33136e41e63713641cef706bbba568fe49795d4bff26478b03117188f9acc8b32f6a50674738514dc008
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -33,6 +33,9 @@ module Google
33
33
  # manage package installations and patch jobs for virtual machine instances.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "osconfig.$UNIVERSE_DOMAIN$"
38
41
 
@@ -242,10 +245,11 @@ module Google
242
245
  # Customize the options with defaults
243
246
  metadata = @config.rpcs.execute_patch_job.metadata.to_h
244
247
 
245
- # Set x-goog-api-client and x-goog-user-project headers
248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
246
249
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
247
250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
248
251
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
252
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
249
253
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
250
254
 
251
255
  header_params = {}
@@ -328,10 +332,11 @@ module Google
328
332
  # Customize the options with defaults
329
333
  metadata = @config.rpcs.get_patch_job.metadata.to_h
330
334
 
331
- # Set x-goog-api-client and x-goog-user-project headers
335
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
332
336
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
333
337
  lib_name: @config.lib_name, lib_version: @config.lib_version,
334
338
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
339
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
335
340
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
341
 
337
342
  header_params = {}
@@ -414,10 +419,11 @@ module Google
414
419
  # Customize the options with defaults
415
420
  metadata = @config.rpcs.cancel_patch_job.metadata.to_h
416
421
 
417
- # Set x-goog-api-client and x-goog-user-project headers
422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
418
423
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
419
424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
420
425
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
426
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
421
427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
422
428
 
423
429
  header_params = {}
@@ -512,10 +518,11 @@ module Google
512
518
  # Customize the options with defaults
513
519
  metadata = @config.rpcs.list_patch_jobs.metadata.to_h
514
520
 
515
- # Set x-goog-api-client and x-goog-user-project headers
521
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
516
522
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
517
523
  lib_name: @config.lib_name, lib_version: @config.lib_version,
518
524
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
525
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
519
526
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
527
 
521
528
  header_params = {}
@@ -612,10 +619,11 @@ module Google
612
619
  # Customize the options with defaults
613
620
  metadata = @config.rpcs.list_patch_job_instance_details.metadata.to_h
614
621
 
615
- # Set x-goog-api-client and x-goog-user-project headers
622
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
616
623
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
617
624
  lib_name: @config.lib_name, lib_version: @config.lib_version,
618
625
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
626
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
619
627
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
620
628
 
621
629
  header_params = {}
@@ -709,10 +717,11 @@ module Google
709
717
  # Customize the options with defaults
710
718
  metadata = @config.rpcs.create_patch_deployment.metadata.to_h
711
719
 
712
- # Set x-goog-api-client and x-goog-user-project headers
720
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
713
721
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
714
722
  lib_name: @config.lib_name, lib_version: @config.lib_version,
715
723
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
724
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
716
725
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
726
 
718
727
  header_params = {}
@@ -795,10 +804,11 @@ module Google
795
804
  # Customize the options with defaults
796
805
  metadata = @config.rpcs.get_patch_deployment.metadata.to_h
797
806
 
798
- # Set x-goog-api-client and x-goog-user-project headers
807
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
799
808
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
800
809
  lib_name: @config.lib_name, lib_version: @config.lib_version,
801
810
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
811
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
812
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
813
 
804
814
  header_params = {}
@@ -891,10 +901,11 @@ module Google
891
901
  # Customize the options with defaults
892
902
  metadata = @config.rpcs.list_patch_deployments.metadata.to_h
893
903
 
894
- # Set x-goog-api-client and x-goog-user-project headers
904
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
895
905
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
896
906
  lib_name: @config.lib_name, lib_version: @config.lib_version,
897
907
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
908
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
898
909
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
899
910
 
900
911
  header_params = {}
@@ -978,10 +989,11 @@ module Google
978
989
  # Customize the options with defaults
979
990
  metadata = @config.rpcs.delete_patch_deployment.metadata.to_h
980
991
 
981
- # Set x-goog-api-client and x-goog-user-project headers
992
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
982
993
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
983
994
  lib_name: @config.lib_name, lib_version: @config.lib_version,
984
995
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
996
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
985
997
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
986
998
 
987
999
  header_params = {}
@@ -1066,10 +1078,11 @@ module Google
1066
1078
  # Customize the options with defaults
1067
1079
  metadata = @config.rpcs.update_patch_deployment.metadata.to_h
1068
1080
 
1069
- # Set x-goog-api-client and x-goog-user-project headers
1081
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1070
1082
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1071
1083
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1072
1084
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
1085
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1073
1086
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1074
1087
 
1075
1088
  header_params = {}
@@ -1153,10 +1166,11 @@ module Google
1153
1166
  # Customize the options with defaults
1154
1167
  metadata = @config.rpcs.pause_patch_deployment.metadata.to_h
1155
1168
 
1156
- # Set x-goog-api-client and x-goog-user-project headers
1169
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1157
1170
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1158
1171
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1159
1172
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
1173
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1160
1174
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1161
1175
 
1162
1176
  header_params = {}
@@ -1240,10 +1254,11 @@ module Google
1240
1254
  # Customize the options with defaults
1241
1255
  metadata = @config.rpcs.resume_patch_deployment.metadata.to_h
1242
1256
 
1243
- # Set x-goog-api-client and x-goog-user-project headers
1257
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1244
1258
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1245
1259
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1246
1260
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
1261
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1247
1262
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1248
1263
 
1249
1264
  header_params = {}
@@ -35,6 +35,9 @@ module Google
35
35
  # manage package installations and patch jobs for virtual machine instances.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "osconfig.$UNIVERSE_DOMAIN$"
40
43
 
@@ -234,12 +237,13 @@ module Google
234
237
  # Customize the options with defaults
235
238
  call_metadata = @config.rpcs.execute_patch_job.metadata.to_h
236
239
 
237
- # Set x-goog-api-client and x-goog-user-project headers
240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
238
241
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
239
242
  lib_name: @config.lib_name, lib_version: @config.lib_version,
240
243
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
241
244
  transports_version_send: [:rest]
242
245
 
246
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
243
247
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
244
248
 
245
249
  options.apply_defaults timeout: @config.rpcs.execute_patch_job.timeout,
@@ -313,12 +317,13 @@ module Google
313
317
  # Customize the options with defaults
314
318
  call_metadata = @config.rpcs.get_patch_job.metadata.to_h
315
319
 
316
- # Set x-goog-api-client and x-goog-user-project headers
320
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
317
321
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
318
322
  lib_name: @config.lib_name, lib_version: @config.lib_version,
319
323
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
320
324
  transports_version_send: [:rest]
321
325
 
326
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
322
327
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
323
328
 
324
329
  options.apply_defaults timeout: @config.rpcs.get_patch_job.timeout,
@@ -392,12 +397,13 @@ module Google
392
397
  # Customize the options with defaults
393
398
  call_metadata = @config.rpcs.cancel_patch_job.metadata.to_h
394
399
 
395
- # Set x-goog-api-client and x-goog-user-project headers
400
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
396
401
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
397
402
  lib_name: @config.lib_name, lib_version: @config.lib_version,
398
403
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
399
404
  transports_version_send: [:rest]
400
405
 
406
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
401
407
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
402
408
 
403
409
  options.apply_defaults timeout: @config.rpcs.cancel_patch_job.timeout,
@@ -483,12 +489,13 @@ module Google
483
489
  # Customize the options with defaults
484
490
  call_metadata = @config.rpcs.list_patch_jobs.metadata.to_h
485
491
 
486
- # Set x-goog-api-client and x-goog-user-project headers
492
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
487
493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
488
494
  lib_name: @config.lib_name, lib_version: @config.lib_version,
489
495
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
490
496
  transports_version_send: [:rest]
491
497
 
498
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
492
499
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
493
500
 
494
501
  options.apply_defaults timeout: @config.rpcs.list_patch_jobs.timeout,
@@ -576,12 +583,13 @@ module Google
576
583
  # Customize the options with defaults
577
584
  call_metadata = @config.rpcs.list_patch_job_instance_details.metadata.to_h
578
585
 
579
- # Set x-goog-api-client and x-goog-user-project headers
586
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
580
587
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
581
588
  lib_name: @config.lib_name, lib_version: @config.lib_version,
582
589
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
583
590
  transports_version_send: [:rest]
584
591
 
592
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
585
593
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
586
594
 
587
595
  options.apply_defaults timeout: @config.rpcs.list_patch_job_instance_details.timeout,
@@ -666,12 +674,13 @@ module Google
666
674
  # Customize the options with defaults
667
675
  call_metadata = @config.rpcs.create_patch_deployment.metadata.to_h
668
676
 
669
- # Set x-goog-api-client and x-goog-user-project headers
677
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
670
678
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
671
679
  lib_name: @config.lib_name, lib_version: @config.lib_version,
672
680
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
673
681
  transports_version_send: [:rest]
674
682
 
683
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
675
684
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
676
685
 
677
686
  options.apply_defaults timeout: @config.rpcs.create_patch_deployment.timeout,
@@ -745,12 +754,13 @@ module Google
745
754
  # Customize the options with defaults
746
755
  call_metadata = @config.rpcs.get_patch_deployment.metadata.to_h
747
756
 
748
- # Set x-goog-api-client and x-goog-user-project headers
757
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
749
758
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
750
759
  lib_name: @config.lib_name, lib_version: @config.lib_version,
751
760
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
752
761
  transports_version_send: [:rest]
753
762
 
763
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
754
764
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
755
765
 
756
766
  options.apply_defaults timeout: @config.rpcs.get_patch_deployment.timeout,
@@ -834,12 +844,13 @@ module Google
834
844
  # Customize the options with defaults
835
845
  call_metadata = @config.rpcs.list_patch_deployments.metadata.to_h
836
846
 
837
- # Set x-goog-api-client and x-goog-user-project headers
847
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
838
848
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
839
849
  lib_name: @config.lib_name, lib_version: @config.lib_version,
840
850
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
841
851
  transports_version_send: [:rest]
842
852
 
853
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
843
854
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
844
855
 
845
856
  options.apply_defaults timeout: @config.rpcs.list_patch_deployments.timeout,
@@ -914,12 +925,13 @@ module Google
914
925
  # Customize the options with defaults
915
926
  call_metadata = @config.rpcs.delete_patch_deployment.metadata.to_h
916
927
 
917
- # Set x-goog-api-client and x-goog-user-project headers
928
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
918
929
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
919
930
  lib_name: @config.lib_name, lib_version: @config.lib_version,
920
931
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
921
932
  transports_version_send: [:rest]
922
933
 
934
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
923
935
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
924
936
 
925
937
  options.apply_defaults timeout: @config.rpcs.delete_patch_deployment.timeout,
@@ -995,12 +1007,13 @@ module Google
995
1007
  # Customize the options with defaults
996
1008
  call_metadata = @config.rpcs.update_patch_deployment.metadata.to_h
997
1009
 
998
- # Set x-goog-api-client and x-goog-user-project headers
1010
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
999
1011
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1000
1012
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1001
1013
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
1002
1014
  transports_version_send: [:rest]
1003
1015
 
1016
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1004
1017
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1005
1018
 
1006
1019
  options.apply_defaults timeout: @config.rpcs.update_patch_deployment.timeout,
@@ -1075,12 +1088,13 @@ module Google
1075
1088
  # Customize the options with defaults
1076
1089
  call_metadata = @config.rpcs.pause_patch_deployment.metadata.to_h
1077
1090
 
1078
- # Set x-goog-api-client and x-goog-user-project headers
1091
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1079
1092
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1080
1093
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1081
1094
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
1082
1095
  transports_version_send: [:rest]
1083
1096
 
1097
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1084
1098
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1085
1099
 
1086
1100
  options.apply_defaults timeout: @config.rpcs.pause_patch_deployment.timeout,
@@ -1155,12 +1169,13 @@ module Google
1155
1169
  # Customize the options with defaults
1156
1170
  call_metadata = @config.rpcs.resume_patch_deployment.metadata.to_h
1157
1171
 
1158
- # Set x-goog-api-client and x-goog-user-project headers
1172
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1159
1173
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1160
1174
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1161
1175
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
1162
1176
  transports_version_send: [:rest]
1163
1177
 
1178
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1164
1179
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1165
1180
 
1166
1181
  options.apply_defaults timeout: @config.rpcs.resume_patch_deployment.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # manage package installations and patch jobs for Compute Engine VM instances.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "osconfig.$UNIVERSE_DOMAIN$"
38
41
 
@@ -264,10 +267,11 @@ module Google
264
267
  # Customize the options with defaults
265
268
  metadata = @config.rpcs.create_os_policy_assignment.metadata.to_h
266
269
 
267
- # Set x-goog-api-client and x-goog-user-project headers
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
268
271
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
273
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
274
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
271
275
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
272
276
 
273
277
  header_params = {}
@@ -368,10 +372,11 @@ module Google
368
372
  # Customize the options with defaults
369
373
  metadata = @config.rpcs.update_os_policy_assignment.metadata.to_h
370
374
 
371
- # Set x-goog-api-client and x-goog-user-project headers
375
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
372
376
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
377
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
378
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
379
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
375
380
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
381
 
377
382
  header_params = {}
@@ -461,10 +466,11 @@ module Google
461
466
  # Customize the options with defaults
462
467
  metadata = @config.rpcs.get_os_policy_assignment.metadata.to_h
463
468
 
464
- # Set x-goog-api-client and x-goog-user-project headers
469
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
465
470
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
466
471
  lib_name: @config.lib_name, lib_version: @config.lib_version,
467
472
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
473
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
468
474
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
469
475
 
470
476
  header_params = {}
@@ -558,10 +564,11 @@ module Google
558
564
  # Customize the options with defaults
559
565
  metadata = @config.rpcs.list_os_policy_assignments.metadata.to_h
560
566
 
561
- # Set x-goog-api-client and x-goog-user-project headers
567
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
562
568
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
563
569
  lib_name: @config.lib_name, lib_version: @config.lib_version,
564
570
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
571
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
565
572
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
566
573
 
567
574
  header_params = {}
@@ -654,10 +661,11 @@ module Google
654
661
  # Customize the options with defaults
655
662
  metadata = @config.rpcs.list_os_policy_assignment_revisions.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::OsConfig::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 = {}
@@ -758,10 +766,11 @@ module Google
758
766
  # Customize the options with defaults
759
767
  metadata = @config.rpcs.delete_os_policy_assignment.metadata.to_h
760
768
 
761
- # Set x-goog-api-client and x-goog-user-project headers
769
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
762
770
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
763
771
  lib_name: @config.lib_name, lib_version: @config.lib_version,
764
772
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
773
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
765
774
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
766
775
 
767
776
  header_params = {}
@@ -853,10 +862,11 @@ module Google
853
862
  # Customize the options with defaults
854
863
  metadata = @config.rpcs.get_os_policy_assignment_report.metadata.to_h
855
864
 
856
- # Set x-goog-api-client and x-goog-user-project headers
865
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
857
866
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
858
867
  lib_name: @config.lib_name, lib_version: @config.lib_version,
859
868
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
869
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
860
870
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
861
871
 
862
872
  header_params = {}
@@ -972,10 +982,11 @@ module Google
972
982
  # Customize the options with defaults
973
983
  metadata = @config.rpcs.list_os_policy_assignment_reports.metadata.to_h
974
984
 
975
- # Set x-goog-api-client and x-goog-user-project headers
985
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
976
986
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
977
987
  lib_name: @config.lib_name, lib_version: @config.lib_version,
978
988
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
989
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
979
990
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
980
991
 
981
992
  header_params = {}
@@ -1069,10 +1080,11 @@ module Google
1069
1080
  # Customize the options with defaults
1070
1081
  metadata = @config.rpcs.get_inventory.metadata.to_h
1071
1082
 
1072
- # Set x-goog-api-client and x-goog-user-project headers
1083
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1073
1084
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1074
1085
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1075
1086
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
1087
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1076
1088
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1077
1089
 
1078
1090
  header_params = {}
@@ -1174,10 +1186,11 @@ module Google
1174
1186
  # Customize the options with defaults
1175
1187
  metadata = @config.rpcs.list_inventories.metadata.to_h
1176
1188
 
1177
- # Set x-goog-api-client and x-goog-user-project headers
1189
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1178
1190
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1179
1191
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1180
1192
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
1193
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1181
1194
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1182
1195
 
1183
1196
  header_params = {}
@@ -1268,10 +1281,11 @@ module Google
1268
1281
  # Customize the options with defaults
1269
1282
  metadata = @config.rpcs.get_vulnerability_report.metadata.to_h
1270
1283
 
1271
- # Set x-goog-api-client and x-goog-user-project headers
1284
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1272
1285
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1273
1286
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1274
1287
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
1288
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1275
1289
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1276
1290
 
1277
1291
  header_params = {}
@@ -1370,10 +1384,11 @@ module Google
1370
1384
  # Customize the options with defaults
1371
1385
  metadata = @config.rpcs.list_vulnerability_reports.metadata.to_h
1372
1386
 
1373
- # Set x-goog-api-client and x-goog-user-project headers
1387
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1374
1388
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1375
1389
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1376
1390
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION
1391
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1377
1392
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1378
1393
 
1379
1394
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module OsConfigZonalService
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 = "osconfig.$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::OsConfig::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::OsConfig::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::OsConfig::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::OsConfig::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::OsConfig::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,