google-cloud-org_policy-v2 0.9.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85a902e1fbda96766ff84c8af1e77d1604e421474cc9e592bf08f268b4b0e05a
4
- data.tar.gz: 24319b6875df3377bdf318a27617ab31dd4e95d69c4ad8043f171ed7548dae87
3
+ metadata.gz: 8fa62d9e96ff243cfdc7815512d3460f3d33bf54c9a8a4fec2de7c034eb33469
4
+ data.tar.gz: 649bf2d4afa83b3093300c42399070d431052a694c125f66ec5f733e6141ef51
5
5
  SHA512:
6
- metadata.gz: 27749eb2715a8cee555e9354248245cd34152f5cf5befaa344b70a11fb531a0fa8ee7e7b68601415c300a8017b12c14fb61e265a1b9850decaf3962e3f461a6d
7
- data.tar.gz: 80e8f6361480017ee30ec8ba14690ef2c041234287eb388a40fbb9d11e9bc5e7678c98bd376ca5ff17cfe3a7ea5b0db1fc28a55ce4e00fe42c6fe9e9d6a48644
6
+ metadata.gz: b7c19d4ac07ffbf6c58d53bdc748bcc2b17c39257c43d782597f959de035575054bb8c5742f8de26ff550c538c9a23c91c2287b35b5394d0695097ebd0a39875
7
+ data.tar.gz: 1955039b5d71bc0e77fdddfd918231f003a76272d305a8054d16d66f162c7893f88353463ecc163fbd15ce28eba0167ad992fa27bb848601644a386a48ae2854
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
@@ -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.9.2"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
 
11
11
 
12
- descriptor_data = "\n*google/cloud/orgpolicy/v2/constraint.proto\x12\x19google.cloud.orgpolicy.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd2\x05\n\nConstraint\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x05\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12S\n\x12\x63onstraint_default\x18\x04 \x01(\x0e\x32\x37.google.cloud.orgpolicy.v2.Constraint.ConstraintDefault\x12O\n\x0flist_constraint\x18\x05 \x01(\x0b\x32\x34.google.cloud.orgpolicy.v2.Constraint.ListConstraintH\x00\x12U\n\x12\x62oolean_constraint\x18\x06 \x01(\x0b\x32\x37.google.cloud.orgpolicy.v2.Constraint.BooleanConstraintH\x00\x12\x18\n\x10supports_dry_run\x18\x07 \x01(\x08\x1a=\n\x0eListConstraint\x12\x13\n\x0bsupports_in\x18\x01 \x01(\x08\x12\x16\n\x0esupports_under\x18\x02 \x01(\x08\x1a\x13\n\x11\x42ooleanConstraint\"L\n\x11\x43onstraintDefault\x12\"\n\x1e\x43ONSTRAINT_DEFAULT_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02:\xb8\x01\xea\x41\xb4\x01\n#orgpolicy.googleapis.com/Constraint\x12+projects/{project}/constraints/{constraint}\x12)folders/{folder}/constraints/{constraint}\x12\x35organizations/{organization}/constraints/{constraint}B\x11\n\x0f\x63onstraint_type\"\xd7\x04\n\x10\x43ustomConstraint\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x05\x12\x1c\n\x0eresource_types\x18\x02 \x03(\tB\x04\xe2\x41\x01\x05\x12L\n\x0cmethod_types\x18\x03 \x03(\x0e\x32\x36.google.cloud.orgpolicy.v2.CustomConstraint.MethodType\x12\x11\n\tcondition\x18\x04 \x01(\t\x12K\n\x0b\x61\x63tion_type\x18\x05 \x01(\x0e\x32\x36.google.cloud.orgpolicy.v2.CustomConstraint.ActionType\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x35\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\"M\n\nMethodType\x12\x1b\n\x17METHOD_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\">\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02:r\xea\x41o\n)orgpolicy.googleapis.com/CustomConstraint\x12\x42organizations/{organization}/customConstraints/{custom_constraint}B\xc6\x01\n\x1d\x63om.google.cloud.orgpolicy.v2B\x0f\x43onstraintProtoP\x01Z;cloud.google.com/go/orgpolicy/apiv2/orgpolicypb;orgpolicypb\xaa\x02\x19Google.Cloud.OrgPolicy.V2\xca\x02\x19Google\\Cloud\\OrgPolicy\\V2\xea\x02\x1cGoogle::Cloud::OrgPolicy::V2b\x06proto3"
12
+ descriptor_data = "\n*google/cloud/orgpolicy/v2/constraint.proto\x12\x19google.cloud.orgpolicy.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd1\x05\n\nConstraint\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12S\n\x12\x63onstraint_default\x18\x04 \x01(\x0e\x32\x37.google.cloud.orgpolicy.v2.Constraint.ConstraintDefault\x12O\n\x0flist_constraint\x18\x05 \x01(\x0b\x32\x34.google.cloud.orgpolicy.v2.Constraint.ListConstraintH\x00\x12U\n\x12\x62oolean_constraint\x18\x06 \x01(\x0b\x32\x37.google.cloud.orgpolicy.v2.Constraint.BooleanConstraintH\x00\x12\x18\n\x10supports_dry_run\x18\x07 \x01(\x08\x1a=\n\x0eListConstraint\x12\x13\n\x0bsupports_in\x18\x01 \x01(\x08\x12\x16\n\x0esupports_under\x18\x02 \x01(\x08\x1a\x13\n\x11\x42ooleanConstraint\"L\n\x11\x43onstraintDefault\x12\"\n\x1e\x43ONSTRAINT_DEFAULT_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02:\xb8\x01\xea\x41\xb4\x01\n#orgpolicy.googleapis.com/Constraint\x12+projects/{project}/constraints/{constraint}\x12)folders/{folder}/constraints/{constraint}\x12\x35organizations/{organization}/constraints/{constraint}B\x11\n\x0f\x63onstraint_type\"\xd4\x04\n\x10\x43ustomConstraint\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x1b\n\x0eresource_types\x18\x02 \x03(\tB\x03\xe0\x41\x05\x12L\n\x0cmethod_types\x18\x03 \x03(\x0e\x32\x36.google.cloud.orgpolicy.v2.CustomConstraint.MethodType\x12\x11\n\tcondition\x18\x04 \x01(\t\x12K\n\x0b\x61\x63tion_type\x18\x05 \x01(\x0e\x32\x36.google.cloud.orgpolicy.v2.CustomConstraint.ActionType\x12\x14\n\x0c\x64isplay_name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"M\n\nMethodType\x12\x1b\n\x17METHOD_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\">\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02:r\xea\x41o\n)orgpolicy.googleapis.com/CustomConstraint\x12\x42organizations/{organization}/customConstraints/{custom_constraint}B\xc6\x01\n\x1d\x63om.google.cloud.orgpolicy.v2B\x0f\x43onstraintProtoP\x01Z;cloud.google.com/go/orgpolicy/apiv2/orgpolicypb;orgpolicypb\xaa\x02\x19Google.Cloud.OrgPolicy.V2\xca\x02\x19Google\\Cloud\\OrgPolicy\\V2\xea\x02\x1cGoogle::Cloud::OrgPolicy::V2b\x06proto3"
13
13
 
14
14
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
15
 
@@ -15,7 +15,7 @@ require 'google/protobuf/timestamp_pb'
15
15
  require 'google/type/expr_pb'
16
16
 
17
17
 
18
- descriptor_data = "\n)google/cloud/orgpolicy/v2/orgpolicy.proto\x12\x19google.cloud.orgpolicy.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/orgpolicy/v2/constraint.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/expr.proto\"\x8b\x03\n\x06Policy\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x05\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32%.google.cloud.orgpolicy.v2.PolicySpec\x12\x45\n\talternate\x18\x03 \x01(\x0b\x32..google.cloud.orgpolicy.v2.AlternatePolicySpecB\x02\x18\x01\x12;\n\x0c\x64ry_run_spec\x18\x04 \x01(\x0b\x32%.google.cloud.orgpolicy.v2.PolicySpec\x12\x12\n\x04\x65tag\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01:\x9f\x01\xea\x41\x9b\x01\n\x1forgpolicy.googleapis.com/Policy\x12$projects/{project}/policies/{policy}\x12\"folders/{folder}/policies/{policy}\x12.organizations/{organization}/policies/{policy}\"Z\n\x13\x41lternatePolicySpec\x12\x0e\n\x06launch\x18\x01 \x01(\t\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32%.google.cloud.orgpolicy.v2.PolicySpec\"\xc7\x03\n\nPolicySpec\x12\x0c\n\x04\x65tag\x18\x01 \x01(\t\x12\x35\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12?\n\x05rules\x18\x03 \x03(\x0b\x32\x30.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule\x12\x1b\n\x13inherit_from_parent\x18\x04 \x01(\x08\x12\r\n\x05reset\x18\x05 \x01(\x08\x1a\x86\x02\n\nPolicyRule\x12O\n\x06values\x18\x01 \x01(\x0b\x32=.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValuesH\x00\x12\x13\n\tallow_all\x18\x02 \x01(\x08H\x00\x12\x12\n\x08\x64\x65ny_all\x18\x03 \x01(\x08H\x00\x12\x11\n\x07\x65nforce\x18\x04 \x01(\x08H\x00\x12$\n\tcondition\x18\x05 \x01(\x0b\x32\x11.google.type.Expr\x1a=\n\x0cStringValues\x12\x16\n\x0e\x61llowed_values\x18\x01 \x03(\t\x12\x15\n\rdenied_values\x18\x02 \x03(\tB\x06\n\x04kind\"}\n\x16ListConstraintsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe2\x41\x01\x02\xfa\x41%\x12#orgpolicy.googleapis.com/Constraint\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"n\n\x17ListConstraintsResponse\x12:\n\x0b\x63onstraints\x18\x01 \x03(\x0b\x32%.google.cloud.orgpolicy.v2.Constraint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"v\n\x13ListPoliciesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\x12\x1forgpolicy.googleapis.com/Policy\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"d\n\x14ListPoliciesResponse\x12\x33\n\x08policies\x18\x01 \x03(\x0b\x32!.google.cloud.orgpolicy.v2.Policy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"J\n\x10GetPolicyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1forgpolicy.googleapis.com/Policy\"S\n\x19GetEffectivePolicyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1forgpolicy.googleapis.com/Policy\"\x88\x01\n\x13\x43reatePolicyRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\x12\x1forgpolicy.googleapis.com/Policy\x12\x37\n\x06policy\x18\x03 \x01(\x0b\x32!.google.cloud.orgpolicy.v2.PolicyB\x04\xe2\x41\x01\x02\"\x7f\n\x13UpdatePolicyRequest\x12\x37\n\x06policy\x18\x01 \x01(\x0b\x32!.google.cloud.orgpolicy.v2.PolicyB\x04\xe2\x41\x01\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"a\n\x13\x44\x65letePolicyRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe2\x41\x01\x02\xfa\x41!\n\x1forgpolicy.googleapis.com/Policy\x12\x12\n\x04\x65tag\x18\x02 \x01(\tB\x04\xe2\x41\x01\x01\"\xb1\x01\n\x1d\x43reateCustomConstraintRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\x12)orgpolicy.googleapis.com/CustomConstraint\x12L\n\x11\x63ustom_constraint\x18\x02 \x01(\x0b\x32+.google.cloud.orgpolicy.v2.CustomConstraintB\x04\xe2\x41\x01\x02\"^\n\x1aGetCustomConstraintRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\n)orgpolicy.googleapis.com/CustomConstraint\"\x89\x01\n\x1cListCustomConstraintsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\x12)orgpolicy.googleapis.com/CustomConstraint\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x81\x01\n\x1dListCustomConstraintsResponse\x12G\n\x12\x63ustom_constraints\x18\x01 \x03(\x0b\x32+.google.cloud.orgpolicy.v2.CustomConstraint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"m\n\x1dUpdateCustomConstraintRequest\x12L\n\x11\x63ustom_constraint\x18\x01 \x01(\x0b\x32+.google.cloud.orgpolicy.v2.CustomConstraintB\x04\xe2\x41\x01\x02\"a\n\x1d\x44\x65leteCustomConstraintRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe2\x41\x01\x02\xfa\x41+\n)orgpolicy.googleapis.com/CustomConstraint2\xcd\x16\n\tOrgPolicy\x12\x81\x02\n\x0fListConstraints\x12\x31.google.cloud.orgpolicy.v2.ListConstraintsRequest\x1a\x32.google.cloud.orgpolicy.v2.ListConstraintsResponse\"\x86\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02w\x12#/v2/{parent=projects/*}/constraintsZ$\x12\"/v2/{parent=folders/*}/constraintsZ*\x12(/v2/{parent=organizations/*}/constraints\x12\xee\x01\n\x0cListPolicies\x12..google.cloud.orgpolicy.v2.ListPoliciesRequest\x1a/.google.cloud.orgpolicy.v2.ListPoliciesResponse\"}\xda\x41\x06parent\x82\xd3\xe4\x93\x02n\x12 /v2/{parent=projects/*}/policiesZ!\x12\x1f/v2/{parent=folders/*}/policiesZ\'\x12%/v2/{parent=organizations/*}/policies\x12\xd8\x01\n\tGetPolicy\x12+.google.cloud.orgpolicy.v2.GetPolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"{\xda\x41\x04name\x82\xd3\xe4\x93\x02n\x12 /v2/{name=projects/*/policies/*}Z!\x12\x1f/v2/{name=folders/*/policies/*}Z\'\x12%/v2/{name=organizations/*/policies/*}\x12\xa5\x02\n\x12GetEffectivePolicy\x12\x34.google.cloud.orgpolicy.v2.GetEffectivePolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"\xb5\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa7\x01\x12\x33/v2/{name=projects/*/policies/*}:getEffectivePolicyZ4\x12\x32/v2/{name=folders/*/policies/*}:getEffectivePolicyZ:\x12\x38/v2/{name=organizations/*/policies/*}:getEffectivePolicy\x12\x81\x02\n\x0c\x43reatePolicy\x12..google.cloud.orgpolicy.v2.CreatePolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"\x9d\x01\xda\x41\rparent,policy\x82\xd3\xe4\x93\x02\x86\x01\" /v2/{parent=projects/*}/policies:\x06policyZ)\"\x1f/v2/{parent=folders/*}/policies:\x06policyZ/\"%/v2/{parent=organizations/*}/policies:\x06policy\x12\x8f\x02\n\x0cUpdatePolicy\x12..google.cloud.orgpolicy.v2.UpdatePolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"\xab\x01\xda\x41\x06policy\x82\xd3\xe4\x93\x02\x9b\x01\x32\'/v2/{policy.name=projects/*/policies/*}:\x06policyZ02&/v2/{policy.name=folders/*/policies/*}:\x06policyZ62,/v2/{policy.name=organizations/*/policies/*}:\x06policy\x12\xd3\x01\n\x0c\x44\x65letePolicy\x12..google.cloud.orgpolicy.v2.DeletePolicyRequest\x1a\x16.google.protobuf.Empty\"{\xda\x41\x04name\x82\xd3\xe4\x93\x02n* /v2/{name=projects/*/policies/*}Z!*\x1f/v2/{name=folders/*/policies/*}Z\'*%/v2/{name=organizations/*/policies/*}\x12\xe5\x01\n\x16\x43reateCustomConstraint\x12\x38.google.cloud.orgpolicy.v2.CreateCustomConstraintRequest\x1a+.google.cloud.orgpolicy.v2.CustomConstraint\"d\xda\x41\x18parent,custom_constraint\x82\xd3\xe4\x93\x02\x43\"./v2/{parent=organizations/*}/customConstraints:\x11\x63ustom_constraint\x12\xf0\x01\n\x16UpdateCustomConstraint\x12\x38.google.cloud.orgpolicy.v2.UpdateCustomConstraintRequest\x1a+.google.cloud.orgpolicy.v2.CustomConstraint\"o\xda\x41\x11\x63ustom_constraint\x82\xd3\xe4\x93\x02U2@/v2/{custom_constraint.name=organizations/*/customConstraints/*}:\x11\x63ustom_constraint\x12\xb8\x01\n\x13GetCustomConstraint\x12\x35.google.cloud.orgpolicy.v2.GetCustomConstraintRequest\x1a+.google.cloud.orgpolicy.v2.CustomConstraint\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v2/{name=organizations/*/customConstraints/*}\x12\xcb\x01\n\x15ListCustomConstraints\x12\x37.google.cloud.orgpolicy.v2.ListCustomConstraintsRequest\x1a\x38.google.cloud.orgpolicy.v2.ListCustomConstraintsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v2/{parent=organizations/*}/customConstraints\x12\xa9\x01\n\x16\x44\x65leteCustomConstraint\x12\x38.google.cloud.orgpolicy.v2.DeleteCustomConstraintRequest\x1a\x16.google.protobuf.Empty\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v2/{name=organizations/*/customConstraints/*}\x1aL\xca\x41\x18orgpolicy.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc5\x01\n\x1d\x63om.google.cloud.orgpolicy.v2B\x0eOrgPolicyProtoP\x01Z;cloud.google.com/go/orgpolicy/apiv2/orgpolicypb;orgpolicypb\xaa\x02\x19Google.Cloud.OrgPolicy.V2\xca\x02\x19Google\\Cloud\\OrgPolicy\\V2\xea\x02\x1cGoogle::Cloud::OrgPolicy::V2b\x06proto3"
18
+ descriptor_data = "\n)google/cloud/orgpolicy/v2/orgpolicy.proto\x12\x19google.cloud.orgpolicy.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/orgpolicy/v2/constraint.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/expr.proto\"\x89\x03\n\x06Policy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32%.google.cloud.orgpolicy.v2.PolicySpec\x12\x45\n\talternate\x18\x03 \x01(\x0b\x32..google.cloud.orgpolicy.v2.AlternatePolicySpecB\x02\x18\x01\x12;\n\x0c\x64ry_run_spec\x18\x04 \x01(\x0b\x32%.google.cloud.orgpolicy.v2.PolicySpec\x12\x11\n\x04\x65tag\x18\x05 \x01(\tB\x03\xe0\x41\x01:\x9f\x01\xea\x41\x9b\x01\n\x1forgpolicy.googleapis.com/Policy\x12$projects/{project}/policies/{policy}\x12\"folders/{folder}/policies/{policy}\x12.organizations/{organization}/policies/{policy}\"Z\n\x13\x41lternatePolicySpec\x12\x0e\n\x06launch\x18\x01 \x01(\t\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32%.google.cloud.orgpolicy.v2.PolicySpec\"\xc6\x03\n\nPolicySpec\x12\x0c\n\x04\x65tag\x18\x01 \x01(\t\x12\x34\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x05rules\x18\x03 \x03(\x0b\x32\x30.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule\x12\x1b\n\x13inherit_from_parent\x18\x04 \x01(\x08\x12\r\n\x05reset\x18\x05 \x01(\x08\x1a\x86\x02\n\nPolicyRule\x12O\n\x06values\x18\x01 \x01(\x0b\x32=.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValuesH\x00\x12\x13\n\tallow_all\x18\x02 \x01(\x08H\x00\x12\x12\n\x08\x64\x65ny_all\x18\x03 \x01(\x08H\x00\x12\x11\n\x07\x65nforce\x18\x04 \x01(\x08H\x00\x12$\n\tcondition\x18\x05 \x01(\x0b\x32\x11.google.type.Expr\x1a=\n\x0cStringValues\x12\x16\n\x0e\x61llowed_values\x18\x01 \x03(\t\x12\x15\n\rdenied_values\x18\x02 \x03(\tB\x06\n\x04kind\"|\n\x16ListConstraintsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#orgpolicy.googleapis.com/Constraint\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"n\n\x17ListConstraintsResponse\x12:\n\x0b\x63onstraints\x18\x01 \x03(\x0b\x32%.google.cloud.orgpolicy.v2.Constraint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"u\n\x13ListPoliciesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1forgpolicy.googleapis.com/Policy\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"d\n\x14ListPoliciesResponse\x12\x33\n\x08policies\x18\x01 \x03(\x0b\x32!.google.cloud.orgpolicy.v2.Policy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"I\n\x10GetPolicyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1forgpolicy.googleapis.com/Policy\"R\n\x19GetEffectivePolicyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1forgpolicy.googleapis.com/Policy\"\x86\x01\n\x13\x43reatePolicyRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1forgpolicy.googleapis.com/Policy\x12\x36\n\x06policy\x18\x03 \x01(\x0b\x32!.google.cloud.orgpolicy.v2.PolicyB\x03\xe0\x41\x02\"~\n\x13UpdatePolicyRequest\x12\x36\n\x06policy\x18\x01 \x01(\x0b\x32!.google.cloud.orgpolicy.v2.PolicyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"_\n\x13\x44\x65letePolicyRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1forgpolicy.googleapis.com/Policy\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xaf\x01\n\x1d\x43reateCustomConstraintRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)orgpolicy.googleapis.com/CustomConstraint\x12K\n\x11\x63ustom_constraint\x18\x02 \x01(\x0b\x32+.google.cloud.orgpolicy.v2.CustomConstraintB\x03\xe0\x41\x02\"]\n\x1aGetCustomConstraintRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)orgpolicy.googleapis.com/CustomConstraint\"\x88\x01\n\x1cListCustomConstraintsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)orgpolicy.googleapis.com/CustomConstraint\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x81\x01\n\x1dListCustomConstraintsResponse\x12G\n\x12\x63ustom_constraints\x18\x01 \x03(\x0b\x32+.google.cloud.orgpolicy.v2.CustomConstraint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"l\n\x1dUpdateCustomConstraintRequest\x12K\n\x11\x63ustom_constraint\x18\x01 \x01(\x0b\x32+.google.cloud.orgpolicy.v2.CustomConstraintB\x03\xe0\x41\x02\"`\n\x1d\x44\x65leteCustomConstraintRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)orgpolicy.googleapis.com/CustomConstraint2\xcd\x16\n\tOrgPolicy\x12\x81\x02\n\x0fListConstraints\x12\x31.google.cloud.orgpolicy.v2.ListConstraintsRequest\x1a\x32.google.cloud.orgpolicy.v2.ListConstraintsResponse\"\x86\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02w\x12#/v2/{parent=projects/*}/constraintsZ$\x12\"/v2/{parent=folders/*}/constraintsZ*\x12(/v2/{parent=organizations/*}/constraints\x12\xee\x01\n\x0cListPolicies\x12..google.cloud.orgpolicy.v2.ListPoliciesRequest\x1a/.google.cloud.orgpolicy.v2.ListPoliciesResponse\"}\xda\x41\x06parent\x82\xd3\xe4\x93\x02n\x12 /v2/{parent=projects/*}/policiesZ!\x12\x1f/v2/{parent=folders/*}/policiesZ\'\x12%/v2/{parent=organizations/*}/policies\x12\xd8\x01\n\tGetPolicy\x12+.google.cloud.orgpolicy.v2.GetPolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"{\xda\x41\x04name\x82\xd3\xe4\x93\x02n\x12 /v2/{name=projects/*/policies/*}Z!\x12\x1f/v2/{name=folders/*/policies/*}Z\'\x12%/v2/{name=organizations/*/policies/*}\x12\xa5\x02\n\x12GetEffectivePolicy\x12\x34.google.cloud.orgpolicy.v2.GetEffectivePolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"\xb5\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xa7\x01\x12\x33/v2/{name=projects/*/policies/*}:getEffectivePolicyZ4\x12\x32/v2/{name=folders/*/policies/*}:getEffectivePolicyZ:\x12\x38/v2/{name=organizations/*/policies/*}:getEffectivePolicy\x12\x81\x02\n\x0c\x43reatePolicy\x12..google.cloud.orgpolicy.v2.CreatePolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"\x9d\x01\xda\x41\rparent,policy\x82\xd3\xe4\x93\x02\x86\x01\" /v2/{parent=projects/*}/policies:\x06policyZ)\"\x1f/v2/{parent=folders/*}/policies:\x06policyZ/\"%/v2/{parent=organizations/*}/policies:\x06policy\x12\x8f\x02\n\x0cUpdatePolicy\x12..google.cloud.orgpolicy.v2.UpdatePolicyRequest\x1a!.google.cloud.orgpolicy.v2.Policy\"\xab\x01\xda\x41\x06policy\x82\xd3\xe4\x93\x02\x9b\x01\x32\'/v2/{policy.name=projects/*/policies/*}:\x06policyZ02&/v2/{policy.name=folders/*/policies/*}:\x06policyZ62,/v2/{policy.name=organizations/*/policies/*}:\x06policy\x12\xd3\x01\n\x0c\x44\x65letePolicy\x12..google.cloud.orgpolicy.v2.DeletePolicyRequest\x1a\x16.google.protobuf.Empty\"{\xda\x41\x04name\x82\xd3\xe4\x93\x02n* /v2/{name=projects/*/policies/*}Z!*\x1f/v2/{name=folders/*/policies/*}Z\'*%/v2/{name=organizations/*/policies/*}\x12\xe5\x01\n\x16\x43reateCustomConstraint\x12\x38.google.cloud.orgpolicy.v2.CreateCustomConstraintRequest\x1a+.google.cloud.orgpolicy.v2.CustomConstraint\"d\xda\x41\x18parent,custom_constraint\x82\xd3\xe4\x93\x02\x43\"./v2/{parent=organizations/*}/customConstraints:\x11\x63ustom_constraint\x12\xf0\x01\n\x16UpdateCustomConstraint\x12\x38.google.cloud.orgpolicy.v2.UpdateCustomConstraintRequest\x1a+.google.cloud.orgpolicy.v2.CustomConstraint\"o\xda\x41\x11\x63ustom_constraint\x82\xd3\xe4\x93\x02U2@/v2/{custom_constraint.name=organizations/*/customConstraints/*}:\x11\x63ustom_constraint\x12\xb8\x01\n\x13GetCustomConstraint\x12\x35.google.cloud.orgpolicy.v2.GetCustomConstraintRequest\x1a+.google.cloud.orgpolicy.v2.CustomConstraint\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v2/{name=organizations/*/customConstraints/*}\x12\xcb\x01\n\x15ListCustomConstraints\x12\x37.google.cloud.orgpolicy.v2.ListCustomConstraintsRequest\x1a\x38.google.cloud.orgpolicy.v2.ListCustomConstraintsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v2/{parent=organizations/*}/customConstraints\x12\xa9\x01\n\x16\x44\x65leteCustomConstraint\x12\x38.google.cloud.orgpolicy.v2.DeleteCustomConstraintRequest\x1a\x16.google.protobuf.Empty\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v2/{name=organizations/*/customConstraints/*}\x1aL\xca\x41\x18orgpolicy.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc5\x01\n\x1d\x63om.google.cloud.orgpolicy.v2B\x0eOrgPolicyProtoP\x01Z;cloud.google.com/go/orgpolicy/apiv2/orgpolicypb;orgpolicypb\xaa\x02\x19Google.Cloud.OrgPolicy.V2\xca\x02\x19Google\\Cloud\\OrgPolicy\\V2\xea\x02\x1cGoogle::Cloud::OrgPolicy::V2b\x06proto3"
19
19
 
20
20
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
21
 
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-org_policy-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-01 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -44,118 +44,6 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
- - !ruby/object:Gem::Dependency
48
- name: google-style
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: 1.26.3
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: 1.26.3
61
- - !ruby/object:Gem::Dependency
62
- name: minitest
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '5.16'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '5.16'
75
- - !ruby/object:Gem::Dependency
76
- name: minitest-focus
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.1'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '1.1'
89
- - !ruby/object:Gem::Dependency
90
- name: minitest-rg
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '5.2'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '5.2'
103
- - !ruby/object:Gem::Dependency
104
- name: rake
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '13.0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '13.0'
117
- - !ruby/object:Gem::Dependency
118
- name: redcarpet
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '3.0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '3.0'
131
- - !ruby/object:Gem::Dependency
132
- name: simplecov
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '0.18'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '0.18'
145
- - !ruby/object:Gem::Dependency
146
- name: yard
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '0.9'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '0.9'
159
47
  description: The Cloud Org Policy service provides a simple mechanism for organizations
160
48
  to restrict the allowed configurations across their entire Cloud Resource hierarchy.
161
49
  Note that google-cloud-org_policy-v2 is a version-specific client library. For most
@@ -208,14 +96,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
96
  requirements:
209
97
  - - ">="
210
98
  - !ruby/object:Gem::Version
211
- version: '2.6'
99
+ version: '2.7'
212
100
  required_rubygems_version: !ruby/object:Gem::Requirement
213
101
  requirements:
214
102
  - - ">="
215
103
  - !ruby/object:Gem::Version
216
104
  version: '0'
217
105
  requirements: []
218
- rubygems_version: 3.5.3
106
+ rubygems_version: 3.5.6
219
107
  signing_key:
220
108
  specification_version: 4
221
109
  summary: The Organization Policy API allows users to configure governance rules on