google-cloud-org_policy-v2 0.10.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: f92f22194376d721530e77c1e58596cb2afc6b7ef217671f6b7dad541a9bf6a9
4
- data.tar.gz: '0842a35747c0907589d7c8c57d875a01dde432e3393f66da621484b91cf8bdca'
3
+ metadata.gz: b5a4e6a6234d7c1f61e73ef4e9d72764e47545f0919c89377676a089128b13fd
4
+ data.tar.gz: 86fd05c9656fcff83938119cc4da1b5abfe4b7017e680b8a60d1357080df7986
5
5
  SHA512:
6
- metadata.gz: dfd3b90ed10e69dbdf24e7ded7b0c0513c36cbcca02d2a4d5270c7f6c03a512f552de42ff4e81da945954c5f9a4a9fea8521b54a1b99ca622e63e3ee2265fbf5
7
- data.tar.gz: 0dbcca7901465b7bab17a7e59106681b26d7ebf44e9732bf77b50a4078e8b15491e3b1444f4ca7f672bc23e27594e22c684123357482f8c6729266980bc2fe11
6
+ metadata.gz: 4defed69a691c5f4d362fb1c4c27d578ce226a8b73fad355dfdd0a6a435454df7d2f2eb1e603b0619671523904dab1fa59a259726668e935130f618f0d6d8a65
7
+ data.tar.gz: 728a8a5e18a48bf061708b4b9973fcd7bb86ffb52fa8fc2387d880241095f790fd85adf83228e18ba90f2845ecb113017b64e68b8a903efeb3b9430eddf6cd15
@@ -49,6 +49,9 @@ module Google
49
49
  # particular resource and its child resources.
50
50
  #
51
51
  class Client
52
+ # @private
53
+ API_VERSION = ""
54
+
52
55
  # @private
53
56
  DEFAULT_ENDPOINT_TEMPLATE = "orgpolicy.$UNIVERSE_DOMAIN$"
54
57
 
@@ -311,10 +314,11 @@ module Google
311
314
  # Customize the options with defaults
312
315
  metadata = @config.rpcs.list_constraints.metadata.to_h
313
316
 
314
- # Set x-goog-api-client and x-goog-user-project headers
317
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
315
318
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
316
319
  lib_name: @config.lib_name, lib_version: @config.lib_version,
317
320
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
321
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
318
322
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
319
323
 
320
324
  header_params = {}
@@ -415,10 +419,11 @@ module Google
415
419
  # Customize the options with defaults
416
420
  metadata = @config.rpcs.list_policies.metadata.to_h
417
421
 
418
- # 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
419
423
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
420
424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
421
425
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
426
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
422
427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
423
428
 
424
429
  header_params = {}
@@ -506,10 +511,11 @@ module Google
506
511
  # Customize the options with defaults
507
512
  metadata = @config.rpcs.get_policy.metadata.to_h
508
513
 
509
- # Set x-goog-api-client and x-goog-user-project headers
514
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
515
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
516
  lib_name: @config.lib_name, lib_version: @config.lib_version,
512
517
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
518
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
513
519
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
514
520
 
515
521
  header_params = {}
@@ -597,10 +603,11 @@ module Google
597
603
  # Customize the options with defaults
598
604
  metadata = @config.rpcs.get_effective_policy.metadata.to_h
599
605
 
600
- # Set x-goog-api-client and x-goog-user-project headers
606
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
601
607
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
602
608
  lib_name: @config.lib_name, lib_version: @config.lib_version,
603
609
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
610
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
604
611
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
605
612
 
606
613
  header_params = {}
@@ -695,10 +702,11 @@ module Google
695
702
  # Customize the options with defaults
696
703
  metadata = @config.rpcs.create_policy.metadata.to_h
697
704
 
698
- # Set x-goog-api-client and x-goog-user-project headers
705
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
699
706
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
700
707
  lib_name: @config.lib_name, lib_version: @config.lib_version,
701
708
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
709
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
702
710
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
703
711
 
704
712
  header_params = {}
@@ -792,10 +800,11 @@ module Google
792
800
  # Customize the options with defaults
793
801
  metadata = @config.rpcs.update_policy.metadata.to_h
794
802
 
795
- # Set x-goog-api-client and x-goog-user-project headers
803
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
796
804
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
797
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
798
806
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
807
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
799
808
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
800
809
 
801
810
  header_params = {}
@@ -885,10 +894,11 @@ module Google
885
894
  # Customize the options with defaults
886
895
  metadata = @config.rpcs.delete_policy.metadata.to_h
887
896
 
888
- # Set x-goog-api-client and x-goog-user-project headers
897
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
889
898
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
890
899
  lib_name: @config.lib_name, lib_version: @config.lib_version,
891
900
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
901
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
892
902
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
893
903
 
894
904
  header_params = {}
@@ -979,10 +989,11 @@ module Google
979
989
  # Customize the options with defaults
980
990
  metadata = @config.rpcs.create_custom_constraint.metadata.to_h
981
991
 
982
- # 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
983
993
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
984
994
  lib_name: @config.lib_name, lib_version: @config.lib_version,
985
995
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
996
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
986
997
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
987
998
 
988
999
  header_params = {}
@@ -1070,10 +1081,11 @@ module Google
1070
1081
  # Customize the options with defaults
1071
1082
  metadata = @config.rpcs.update_custom_constraint.metadata.to_h
1072
1083
 
1073
- # Set x-goog-api-client and x-goog-user-project headers
1084
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1074
1085
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1075
1086
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1076
1087
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
1088
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1077
1089
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1078
1090
 
1079
1091
  header_params = {}
@@ -1159,10 +1171,11 @@ module Google
1159
1171
  # Customize the options with defaults
1160
1172
  metadata = @config.rpcs.get_custom_constraint.metadata.to_h
1161
1173
 
1162
- # Set x-goog-api-client and x-goog-user-project headers
1174
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1163
1175
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1164
1176
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1165
1177
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
1178
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1166
1179
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1167
1180
 
1168
1181
  header_params = {}
@@ -1260,10 +1273,11 @@ module Google
1260
1273
  # Customize the options with defaults
1261
1274
  metadata = @config.rpcs.list_custom_constraints.metadata.to_h
1262
1275
 
1263
- # Set x-goog-api-client and x-goog-user-project headers
1276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1264
1277
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1265
1278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1266
1279
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
1280
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1267
1281
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1268
1282
 
1269
1283
  header_params = {}
@@ -1350,10 +1364,11 @@ module Google
1350
1364
  # Customize the options with defaults
1351
1365
  metadata = @config.rpcs.delete_custom_constraint.metadata.to_h
1352
1366
 
1353
- # Set x-goog-api-client and x-goog-user-project headers
1367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1354
1368
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1355
1369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1356
1370
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION
1371
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1357
1372
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1358
1373
 
1359
1374
  header_params = {}
@@ -51,6 +51,9 @@ module Google
51
51
  # particular resource and its child resources.
52
52
  #
53
53
  class Client
54
+ # @private
55
+ API_VERSION = ""
56
+
54
57
  # @private
55
58
  DEFAULT_ENDPOINT_TEMPLATE = "orgpolicy.$UNIVERSE_DOMAIN$"
56
59
 
@@ -303,12 +306,13 @@ module Google
303
306
  # Customize the options with defaults
304
307
  call_metadata = @config.rpcs.list_constraints.metadata.to_h
305
308
 
306
- # Set x-goog-api-client and x-goog-user-project headers
309
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
307
310
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
308
311
  lib_name: @config.lib_name, lib_version: @config.lib_version,
309
312
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
310
313
  transports_version_send: [:rest]
311
314
 
315
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
312
316
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
313
317
 
314
318
  options.apply_defaults timeout: @config.rpcs.list_constraints.timeout,
@@ -400,12 +404,13 @@ module Google
400
404
  # Customize the options with defaults
401
405
  call_metadata = @config.rpcs.list_policies.metadata.to_h
402
406
 
403
- # Set x-goog-api-client and x-goog-user-project headers
407
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
404
408
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
405
409
  lib_name: @config.lib_name, lib_version: @config.lib_version,
406
410
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
407
411
  transports_version_send: [:rest]
408
412
 
413
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
409
414
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
410
415
 
411
416
  options.apply_defaults timeout: @config.rpcs.list_policies.timeout,
@@ -484,12 +489,13 @@ module Google
484
489
  # Customize the options with defaults
485
490
  call_metadata = @config.rpcs.get_policy.metadata.to_h
486
491
 
487
- # 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
488
493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
489
494
  lib_name: @config.lib_name, lib_version: @config.lib_version,
490
495
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
491
496
  transports_version_send: [:rest]
492
497
 
498
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
493
499
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
494
500
 
495
501
  options.apply_defaults timeout: @config.rpcs.get_policy.timeout,
@@ -568,12 +574,13 @@ module Google
568
574
  # Customize the options with defaults
569
575
  call_metadata = @config.rpcs.get_effective_policy.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
  call_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::OrgPolicy::V2::VERSION,
575
581
  transports_version_send: [:rest]
576
582
 
583
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
577
584
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
578
585
 
579
586
  options.apply_defaults timeout: @config.rpcs.get_effective_policy.timeout,
@@ -659,12 +666,13 @@ module Google
659
666
  # Customize the options with defaults
660
667
  call_metadata = @config.rpcs.create_policy.metadata.to_h
661
668
 
662
- # Set x-goog-api-client and x-goog-user-project headers
669
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
663
670
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
664
671
  lib_name: @config.lib_name, lib_version: @config.lib_version,
665
672
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
666
673
  transports_version_send: [:rest]
667
674
 
675
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
668
676
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
669
677
 
670
678
  options.apply_defaults timeout: @config.rpcs.create_policy.timeout,
@@ -749,12 +757,13 @@ module Google
749
757
  # Customize the options with defaults
750
758
  call_metadata = @config.rpcs.update_policy.metadata.to_h
751
759
 
752
- # Set x-goog-api-client and x-goog-user-project headers
760
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
753
761
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
754
762
  lib_name: @config.lib_name, lib_version: @config.lib_version,
755
763
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
756
764
  transports_version_send: [:rest]
757
765
 
766
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
758
767
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
759
768
 
760
769
  options.apply_defaults timeout: @config.rpcs.update_policy.timeout,
@@ -835,12 +844,13 @@ module Google
835
844
  # Customize the options with defaults
836
845
  call_metadata = @config.rpcs.delete_policy.metadata.to_h
837
846
 
838
- # 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
839
848
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
840
849
  lib_name: @config.lib_name, lib_version: @config.lib_version,
841
850
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
842
851
  transports_version_send: [:rest]
843
852
 
853
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
844
854
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
845
855
 
846
856
  options.apply_defaults timeout: @config.rpcs.delete_policy.timeout,
@@ -922,12 +932,13 @@ module Google
922
932
  # Customize the options with defaults
923
933
  call_metadata = @config.rpcs.create_custom_constraint.metadata.to_h
924
934
 
925
- # Set x-goog-api-client and x-goog-user-project headers
935
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
926
936
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
927
937
  lib_name: @config.lib_name, lib_version: @config.lib_version,
928
938
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
929
939
  transports_version_send: [:rest]
930
940
 
941
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
931
942
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
932
943
 
933
944
  options.apply_defaults timeout: @config.rpcs.create_custom_constraint.timeout,
@@ -1006,12 +1017,13 @@ module Google
1006
1017
  # Customize the options with defaults
1007
1018
  call_metadata = @config.rpcs.update_custom_constraint.metadata.to_h
1008
1019
 
1009
- # Set x-goog-api-client and x-goog-user-project headers
1020
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1010
1021
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1011
1022
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1012
1023
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
1013
1024
  transports_version_send: [:rest]
1014
1025
 
1026
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1015
1027
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1016
1028
 
1017
1029
  options.apply_defaults timeout: @config.rpcs.update_custom_constraint.timeout,
@@ -1088,12 +1100,13 @@ module Google
1088
1100
  # Customize the options with defaults
1089
1101
  call_metadata = @config.rpcs.get_custom_constraint.metadata.to_h
1090
1102
 
1091
- # Set x-goog-api-client and x-goog-user-project headers
1103
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1092
1104
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1093
1105
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1094
1106
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
1095
1107
  transports_version_send: [:rest]
1096
1108
 
1109
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1097
1110
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1098
1111
 
1099
1112
  options.apply_defaults timeout: @config.rpcs.get_custom_constraint.timeout,
@@ -1182,12 +1195,13 @@ module Google
1182
1195
  # Customize the options with defaults
1183
1196
  call_metadata = @config.rpcs.list_custom_constraints.metadata.to_h
1184
1197
 
1185
- # Set x-goog-api-client and x-goog-user-project headers
1198
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1186
1199
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1187
1200
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1188
1201
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
1189
1202
  transports_version_send: [:rest]
1190
1203
 
1204
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1191
1205
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1192
1206
 
1193
1207
  options.apply_defaults timeout: @config.rpcs.list_custom_constraints.timeout,
@@ -1265,12 +1279,13 @@ module Google
1265
1279
  # Customize the options with defaults
1266
1280
  call_metadata = @config.rpcs.delete_custom_constraint.metadata.to_h
1267
1281
 
1268
- # Set x-goog-api-client and x-goog-user-project headers
1282
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1269
1283
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1270
1284
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1271
1285
  gapic_version: ::Google::Cloud::OrgPolicy::V2::VERSION,
1272
1286
  transports_version_send: [:rest]
1273
1287
 
1288
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1274
1289
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1275
1290
 
1276
1291
  options.apply_defaults timeout: @config.rpcs.delete_custom_constraint.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OrgPolicy
23
23
  module V2
24
- VERSION = "0.10.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-org_policy-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.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