google-cloud-os_config-v1 0.16.0 → 1.0.1

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: b42e0e1ef6abafa1534d3e4097fc4ecbde256fba7e119057a3cb0f8c63a20a56
4
- data.tar.gz: 56a91dc6f54bec5b7973acf19b51166841fbce32fb3064bd4a904dde18b8ca19
3
+ metadata.gz: f3b2df2aa0dd2bf4ceb2ce238b0cd0ee06098face3d6f1d473d0265afb789410
4
+ data.tar.gz: bdc4e908425e72e5d4c7d5f0e33cd3ec94924046e38a8d06c66a6466dd6bafcd
5
5
  SHA512:
6
- metadata.gz: 301a6b58676ef790f7b5d3d4e556fa13730a32638a7843b1abe86f67d6ea88cce7762197308284e035e723b3df66499e9be7a0a07b8d7b4bb0181bb197d7d76d
7
- data.tar.gz: 349c00d17502f1c3d0369ec811700ce4de935db4cea76172e17d636d836ae43ef34124b683cabe15bef638161f4e989f3efbadf9d2c30d53fcb64995f9455b8d
6
+ metadata.gz: 8c25d99f5b1c5dd8d2da9c55ec64124d19a768c36aeab06ca49e31935cecc40b62694455f187556263506b1e452cc97a1c33f59671df2d65eb53f17429b6bf67
7
+ data.tar.gz: 93af9980d22db0d2b6fa4df512269c6c3c1192965ad04704d6a1a3a51ba362c339d6a87a0e629b53d312a8c1a69077d3ce505ccaf2d1a0dce1e2e3f1721dde9d
@@ -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,
@@ -35,6 +35,9 @@ module Google
35
35
  # manage package installations and patch jobs for Compute Engine VM 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
 
@@ -256,12 +259,13 @@ module Google
256
259
  # Customize the options with defaults
257
260
  call_metadata = @config.rpcs.create_os_policy_assignment.metadata.to_h
258
261
 
259
- # Set x-goog-api-client and x-goog-user-project headers
262
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
260
263
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
261
264
  lib_name: @config.lib_name, lib_version: @config.lib_version,
262
265
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
263
266
  transports_version_send: [:rest]
264
267
 
268
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
265
269
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
266
270
 
267
271
  options.apply_defaults timeout: @config.rpcs.create_os_policy_assignment.timeout,
@@ -353,12 +357,13 @@ module Google
353
357
  # Customize the options with defaults
354
358
  call_metadata = @config.rpcs.update_os_policy_assignment.metadata.to_h
355
359
 
356
- # Set x-goog-api-client and x-goog-user-project headers
360
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
357
361
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
358
362
  lib_name: @config.lib_name, lib_version: @config.lib_version,
359
363
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
360
364
  transports_version_send: [:rest]
361
365
 
366
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
367
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
368
 
364
369
  options.apply_defaults timeout: @config.rpcs.update_os_policy_assignment.timeout,
@@ -439,12 +444,13 @@ module Google
439
444
  # Customize the options with defaults
440
445
  call_metadata = @config.rpcs.get_os_policy_assignment.metadata.to_h
441
446
 
442
- # 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
443
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
444
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
445
450
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
446
451
  transports_version_send: [:rest]
447
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
448
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
449
455
 
450
456
  options.apply_defaults timeout: @config.rpcs.get_os_policy_assignment.timeout,
@@ -529,12 +535,13 @@ module Google
529
535
  # Customize the options with defaults
530
536
  call_metadata = @config.rpcs.list_os_policy_assignments.metadata.to_h
531
537
 
532
- # Set x-goog-api-client and x-goog-user-project headers
538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
533
539
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
534
540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
535
541
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
536
542
  transports_version_send: [:rest]
537
543
 
544
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
545
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
546
 
540
547
  options.apply_defaults timeout: @config.rpcs.list_os_policy_assignments.timeout,
@@ -618,12 +625,13 @@ module Google
618
625
  # Customize the options with defaults
619
626
  call_metadata = @config.rpcs.list_os_policy_assignment_revisions.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::OsConfig::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.list_os_policy_assignment_revisions.timeout,
@@ -715,12 +723,13 @@ module Google
715
723
  # Customize the options with defaults
716
724
  call_metadata = @config.rpcs.delete_os_policy_assignment.metadata.to_h
717
725
 
718
- # Set x-goog-api-client and x-goog-user-project headers
726
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
719
727
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
720
728
  lib_name: @config.lib_name, lib_version: @config.lib_version,
721
729
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
722
730
  transports_version_send: [:rest]
723
731
 
732
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
724
733
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
725
734
 
726
735
  options.apply_defaults timeout: @config.rpcs.delete_os_policy_assignment.timeout,
@@ -803,12 +812,13 @@ module Google
803
812
  # Customize the options with defaults
804
813
  call_metadata = @config.rpcs.get_os_policy_assignment_report.metadata.to_h
805
814
 
806
- # Set x-goog-api-client and x-goog-user-project headers
815
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
807
816
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
808
817
  lib_name: @config.lib_name, lib_version: @config.lib_version,
809
818
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
810
819
  transports_version_send: [:rest]
811
820
 
821
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
812
822
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
813
823
 
814
824
  options.apply_defaults timeout: @config.rpcs.get_os_policy_assignment_report.timeout,
@@ -915,12 +925,13 @@ module Google
915
925
  # Customize the options with defaults
916
926
  call_metadata = @config.rpcs.list_os_policy_assignment_reports.metadata.to_h
917
927
 
918
- # 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
919
929
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
920
930
  lib_name: @config.lib_name, lib_version: @config.lib_version,
921
931
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
922
932
  transports_version_send: [:rest]
923
933
 
934
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
924
935
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
925
936
 
926
937
  options.apply_defaults timeout: @config.rpcs.list_os_policy_assignment_reports.timeout,
@@ -1005,12 +1016,13 @@ module Google
1005
1016
  # Customize the options with defaults
1006
1017
  call_metadata = @config.rpcs.get_inventory.metadata.to_h
1007
1018
 
1008
- # Set x-goog-api-client and x-goog-user-project headers
1019
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1009
1020
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1010
1021
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1011
1022
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
1012
1023
  transports_version_send: [:rest]
1013
1024
 
1025
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1014
1026
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1015
1027
 
1016
1028
  options.apply_defaults timeout: @config.rpcs.get_inventory.timeout,
@@ -1103,12 +1115,13 @@ module Google
1103
1115
  # Customize the options with defaults
1104
1116
  call_metadata = @config.rpcs.list_inventories.metadata.to_h
1105
1117
 
1106
- # Set x-goog-api-client and x-goog-user-project headers
1118
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1107
1119
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1108
1120
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1109
1121
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
1110
1122
  transports_version_send: [:rest]
1111
1123
 
1124
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1112
1125
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1113
1126
 
1114
1127
  options.apply_defaults timeout: @config.rpcs.list_inventories.timeout,
@@ -1190,12 +1203,13 @@ module Google
1190
1203
  # Customize the options with defaults
1191
1204
  call_metadata = @config.rpcs.get_vulnerability_report.metadata.to_h
1192
1205
 
1193
- # Set x-goog-api-client and x-goog-user-project headers
1206
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1194
1207
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1195
1208
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1196
1209
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
1197
1210
  transports_version_send: [:rest]
1198
1211
 
1212
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1199
1213
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1200
1214
 
1201
1215
  options.apply_defaults timeout: @config.rpcs.get_vulnerability_report.timeout,
@@ -1285,12 +1299,13 @@ module Google
1285
1299
  # Customize the options with defaults
1286
1300
  call_metadata = @config.rpcs.list_vulnerability_reports.metadata.to_h
1287
1301
 
1288
- # Set x-goog-api-client and x-goog-user-project headers
1302
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1289
1303
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1290
1304
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1291
1305
  gapic_version: ::Google::Cloud::OsConfig::V1::VERSION,
1292
1306
  transports_version_send: [:rest]
1293
1307
 
1308
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1294
1309
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1295
1310
 
1296
1311
  options.apply_defaults timeout: @config.rpcs.list_vulnerability_reports.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 = "osconfig.$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::OsConfig::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::OsConfig::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::OsConfig::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::OsConfig::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 OsConfig
23
23
  module V1
24
- VERSION = "0.16.0"
24
+ VERSION = "1.0.1"
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
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-os_config-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 1.0.1
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-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common