google-apis-policysimulator_v1 0.36.0 → 0.37.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: 5d8ebadad2991bd2420bea9d078bc586385b465178b95fd5a72a4c513b453e6f
4
- data.tar.gz: 6135d032d49b3d9b773fea4ea194cd97d8c7f8439a4a2fbf1349ed528b8b0a99
3
+ metadata.gz: c635a917c9e75a8a97f448794962941983f4af539847a9d8c21b44cfe228b2e4
4
+ data.tar.gz: ae063ad3a76f34e119861ff79f8b08d042fd10113bd3bbf8220362a899cf141e
5
5
  SHA512:
6
- metadata.gz: b3184606249b766a0dd789601bbd2d2a66849c40cea6a0b8ba612cfa91ee3a52388e374414d8a6b9a72ae44b96b7ddf20286d9b99cf79e8c95d32c4784915eb8
7
- data.tar.gz: 11e3d9f8df3f4f827158e3cc4560bc664609ca4a3d13e3f196de53db256d7e9340f95b29ad81db15b12b37e133f8706fd60cd3fc20fe9b28180a8db0244bfca4
6
+ metadata.gz: 1d82cf695960dc422301ba659d4dd9e0b30d408a45d900ffcc896602484c7ea3a43008a02ae6e13d31019ad78e893490a5e3e02b4d7ac92d6d772f32f189afe6
7
+ data.tar.gz: 4fb37db0563ff2a4d2771d2e97e1109f7f012d7464fc3a5f55db36daf61d6d90add01d5384e687767e7c64b83fb71175f75c374d0214e815b513094934466988
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-policysimulator_v1
2
2
 
3
+ ### v0.37.0 (2024-06-23)
4
+
5
+ * Regenerated from discovery document revision 20240617
6
+
3
7
  ### v0.36.0 (2024-05-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20240505
@@ -670,60 +670,6 @@ module Google
670
670
  end
671
671
  end
672
672
 
673
- # ListOrgPolicyViolationsPreviewsResponse is the response message for
674
- # OrgPolicyViolationsPreviewService.ListOrgPolicyViolationsPreviews.
675
- class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse
676
- include Google::Apis::Core::Hashable
677
-
678
- # A token that you can use to retrieve the next page of results. If this field
679
- # is omitted, there are no subsequent pages.
680
- # Corresponds to the JSON property `nextPageToken`
681
- # @return [String]
682
- attr_accessor :next_page_token
683
-
684
- # The list of OrgPolicyViolationsPreview
685
- # Corresponds to the JSON property `orgPolicyViolationsPreviews`
686
- # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview>]
687
- attr_accessor :org_policy_violations_previews
688
-
689
- def initialize(**args)
690
- update!(**args)
691
- end
692
-
693
- # Update properties of this object
694
- def update!(**args)
695
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
696
- @org_policy_violations_previews = args[:org_policy_violations_previews] if args.key?(:org_policy_violations_previews)
697
- end
698
- end
699
-
700
- # ListOrgPolicyViolationsResponse is the response message for
701
- # OrgPolicyViolationsPreviewService.ListOrgPolicyViolations
702
- class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse
703
- include Google::Apis::Core::Hashable
704
-
705
- # A token that you can use to retrieve the next page of results. If this field
706
- # is omitted, there are no subsequent pages.
707
- # Corresponds to the JSON property `nextPageToken`
708
- # @return [String]
709
- attr_accessor :next_page_token
710
-
711
- # The list of OrgPolicyViolations
712
- # Corresponds to the JSON property `orgPolicyViolations`
713
- # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolation>]
714
- attr_accessor :org_policy_violations
715
-
716
- def initialize(**args)
717
- update!(**args)
718
- end
719
-
720
- # Update properties of this object
721
- def update!(**args)
722
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
723
- @org_policy_violations = args[:org_policy_violations] if args.key?(:org_policy_violations)
724
- end
725
- end
726
-
727
673
  # Response message for Simulator.ListReplayResults.
728
674
  class GoogleCloudPolicysimulatorV1ListReplayResultsResponse
729
675
  include Google::Apis::Core::Hashable
@@ -750,266 +696,6 @@ module Google
750
696
  end
751
697
  end
752
698
 
753
- # The proposed changes to OrgPolicy.
754
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlay
755
- include Google::Apis::Core::Hashable
756
-
757
- # Optional. The OrgPolicy CustomConstraint changes to preview violations for.
758
- # Any existing CustomConstraints with the same name will be overridden in the
759
- # simulation. That is, violations will be determined as if all custom
760
- # constraints in the overlay were instantiated. Only a single custom_constraint
761
- # is supported in the overlay at a time. For evaluating multiple constraints,
762
- # multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
763
- # request evaluates a single constraint.
764
- # Corresponds to the JSON property `customConstraints`
765
- # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay>]
766
- attr_accessor :custom_constraints
767
-
768
- # Optional. The OrgPolicy changes to preview violations for. Any existing
769
- # OrgPolicies with the same name will be overridden in the simulation. That is,
770
- # violations will be determined as if all policies in the overlay were created
771
- # or updated.
772
- # Corresponds to the JSON property `policies`
773
- # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay>]
774
- attr_accessor :policies
775
-
776
- def initialize(**args)
777
- update!(**args)
778
- end
779
-
780
- # Update properties of this object
781
- def update!(**args)
782
- @custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
783
- @policies = args[:policies] if args.key?(:policies)
784
- end
785
- end
786
-
787
- # A change to an OrgPolicy custom constraint.
788
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay
789
- include Google::Apis::Core::Hashable
790
-
791
- # A custom constraint defined by customers which can *only* be applied to the
792
- # given resource types and organization. By creating a custom constraint,
793
- # customers can apply policies of this custom constraint. *Creating a custom
794
- # constraint itself does NOT apply any policy enforcement*.
795
- # Corresponds to the JSON property `customConstraint`
796
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint]
797
- attr_accessor :custom_constraint
798
-
799
- # Optional. Resource the constraint is attached to. Example: "organization/
800
- # 987654"
801
- # Corresponds to the JSON property `customConstraintParent`
802
- # @return [String]
803
- attr_accessor :custom_constraint_parent
804
-
805
- def initialize(**args)
806
- update!(**args)
807
- end
808
-
809
- # Update properties of this object
810
- def update!(**args)
811
- @custom_constraint = args[:custom_constraint] if args.key?(:custom_constraint)
812
- @custom_constraint_parent = args[:custom_constraint_parent] if args.key?(:custom_constraint_parent)
813
- end
814
- end
815
-
816
- # A change to an OrgPolicy.
817
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay
818
- include Google::Apis::Core::Hashable
819
-
820
- # Defines an organization policy which is used to specify constraints for
821
- # configurations of Google Cloud resources.
822
- # Corresponds to the JSON property `policy`
823
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy]
824
- attr_accessor :policy
825
-
826
- # Optional. The parent of the policy we are attaching to. Example: "projects/
827
- # 123456"
828
- # Corresponds to the JSON property `policyParent`
829
- # @return [String]
830
- attr_accessor :policy_parent
831
-
832
- def initialize(**args)
833
- update!(**args)
834
- end
835
-
836
- # Update properties of this object
837
- def update!(**args)
838
- @policy = args[:policy] if args.key?(:policy)
839
- @policy_parent = args[:policy_parent] if args.key?(:policy_parent)
840
- end
841
- end
842
-
843
- # OrgPolicyViolation is a resource representing a single resource violating a
844
- # single OrgPolicy constraint.
845
- class GoogleCloudPolicysimulatorV1OrgPolicyViolation
846
- include Google::Apis::Core::Hashable
847
-
848
- # A custom constraint defined by customers which can *only* be applied to the
849
- # given resource types and organization. By creating a custom constraint,
850
- # customers can apply policies of this custom constraint. *Creating a custom
851
- # constraint itself does NOT apply any policy enforcement*.
852
- # Corresponds to the JSON property `customConstraint`
853
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint]
854
- attr_accessor :custom_constraint
855
-
856
- # The `Status` type defines a logical error model that is suitable for different
857
- # programming environments, including REST APIs and RPC APIs. It is used by [
858
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
859
- # data: error code, error message, and error details. You can find out more
860
- # about this error model and how to work with it in the [API Design Guide](https:
861
- # //cloud.google.com/apis/design/errors).
862
- # Corresponds to the JSON property `error`
863
- # @return [Google::Apis::PolicysimulatorV1::GoogleRpcStatus]
864
- attr_accessor :error
865
-
866
- # The name of the `OrgPolicyViolation`. Example: organizations/my-example-org/
867
- # locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
868
- # Corresponds to the JSON property `name`
869
- # @return [String]
870
- attr_accessor :name
871
-
872
- # ResourceContext provides the context we know about a resource. It is similar
873
- # in concept to google.cloud.asset.v1.Resource, but focuses on the information
874
- # specifically used by Simulator.
875
- # Corresponds to the JSON property `resource`
876
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ResourceContext]
877
- attr_accessor :resource
878
-
879
- def initialize(**args)
880
- update!(**args)
881
- end
882
-
883
- # Update properties of this object
884
- def update!(**args)
885
- @custom_constraint = args[:custom_constraint] if args.key?(:custom_constraint)
886
- @error = args[:error] if args.key?(:error)
887
- @name = args[:name] if args.key?(:name)
888
- @resource = args[:resource] if args.key?(:resource)
889
- end
890
- end
891
-
892
- # OrgPolicyViolationsPreview is a resource providing a preview of the violations
893
- # that will exist if an OrgPolicy change is made. The list of violations are
894
- # modeled as child resources and retrieved via a ListOrgPolicyViolations API
895
- # call. There are potentially more OrgPolicyViolations than could fit in an
896
- # embedded field. Thus, the use of a child resource instead of a field.
897
- class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview
898
- include Google::Apis::Core::Hashable
899
-
900
- # Output only. Time when this `OrgPolicyViolationsPreview` was created.
901
- # Corresponds to the JSON property `createTime`
902
- # @return [String]
903
- attr_accessor :create_time
904
-
905
- # Output only. The names of the constraints against which all `
906
- # OrgPolicyViolations` were evaluated. If `OrgPolicyOverlay` only contains `
907
- # PolicyOverlay` then it contains the name of the configured custom constraint,
908
- # applicable to the specified policies. Otherwise it contains the name of the
909
- # constraint specified in `CustomConstraintOverlay`. Format: `organizations/`
910
- # organization_id`/customConstraints/`custom_constraint_id`` Example: `
911
- # organizations/123/customConstraints/custom.createOnlyE2TypeVms`
912
- # Corresponds to the JSON property `customConstraints`
913
- # @return [Array<String>]
914
- attr_accessor :custom_constraints
915
-
916
- # Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
917
- # following format: `organizations/`organization`/locations/`location`/
918
- # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
919
- # organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/
920
- # 506a5f7f`
921
- # Corresponds to the JSON property `name`
922
- # @return [String]
923
- attr_accessor :name
924
-
925
- # The proposed changes to OrgPolicy.
926
- # Corresponds to the JSON property `overlay`
927
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlay]
928
- attr_accessor :overlay
929
-
930
- # A summary of the state of all resources scanned for compliance with the
931
- # changed OrgPolicy.
932
- # Corresponds to the JSON property `resourceCounts`
933
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts]
934
- attr_accessor :resource_counts
935
-
936
- # Output only. The state of the `OrgPolicyViolationsPreview`.
937
- # Corresponds to the JSON property `state`
938
- # @return [String]
939
- attr_accessor :state
940
-
941
- # Output only. The number of OrgPolicyViolations in this `
942
- # OrgPolicyViolationsPreview`. This count may differ from `resource_summary.
943
- # noncompliant_count` because each OrgPolicyViolation is specific to a resource *
944
- # *and** constraint. If there are multiple constraints being evaluated (i.e.
945
- # multiple policies in the overlay), a single resource may violate multiple
946
- # constraints.
947
- # Corresponds to the JSON property `violationsCount`
948
- # @return [Fixnum]
949
- attr_accessor :violations_count
950
-
951
- def initialize(**args)
952
- update!(**args)
953
- end
954
-
955
- # Update properties of this object
956
- def update!(**args)
957
- @create_time = args[:create_time] if args.key?(:create_time)
958
- @custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
959
- @name = args[:name] if args.key?(:name)
960
- @overlay = args[:overlay] if args.key?(:overlay)
961
- @resource_counts = args[:resource_counts] if args.key?(:resource_counts)
962
- @state = args[:state] if args.key?(:state)
963
- @violations_count = args[:violations_count] if args.key?(:violations_count)
964
- end
965
- end
966
-
967
- # A summary of the state of all resources scanned for compliance with the
968
- # changed OrgPolicy.
969
- class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts
970
- include Google::Apis::Core::Hashable
971
-
972
- # Output only. Number of scanned resources with zero violations.
973
- # Corresponds to the JSON property `compliant`
974
- # @return [Fixnum]
975
- attr_accessor :compliant
976
-
977
- # Output only. Number of resources that returned an error when scanned.
978
- # Corresponds to the JSON property `errors`
979
- # @return [Fixnum]
980
- attr_accessor :errors
981
-
982
- # Output only. Number of scanned resources with at least one violation.
983
- # Corresponds to the JSON property `noncompliant`
984
- # @return [Fixnum]
985
- attr_accessor :noncompliant
986
-
987
- # Output only. Number of resources checked for compliance. Must equal:
988
- # unenforced + noncompliant + compliant + error
989
- # Corresponds to the JSON property `scanned`
990
- # @return [Fixnum]
991
- attr_accessor :scanned
992
-
993
- # Output only. Number of resources where the constraint was not enforced, i.e.
994
- # the Policy set `enforced: false` for that resource.
995
- # Corresponds to the JSON property `unenforced`
996
- # @return [Fixnum]
997
- attr_accessor :unenforced
998
-
999
- def initialize(**args)
1000
- update!(**args)
1001
- end
1002
-
1003
- # Update properties of this object
1004
- def update!(**args)
1005
- @compliant = args[:compliant] if args.key?(:compliant)
1006
- @errors = args[:errors] if args.key?(:errors)
1007
- @noncompliant = args[:noncompliant] if args.key?(:noncompliant)
1008
- @scanned = args[:scanned] if args.key?(:scanned)
1009
- @unenforced = args[:unenforced] if args.key?(:unenforced)
1010
- end
1011
- end
1012
-
1013
699
  # A resource describing a `Replay`, or simulation.
1014
700
  class GoogleCloudPolicysimulatorV1Replay
1015
701
  include Google::Apis::Core::Hashable
@@ -1260,49 +946,6 @@ module Google
1260
946
  end
1261
947
  end
1262
948
 
1263
- # ResourceContext provides the context we know about a resource. It is similar
1264
- # in concept to google.cloud.asset.v1.Resource, but focuses on the information
1265
- # specifically used by Simulator.
1266
- class GoogleCloudPolicysimulatorV1ResourceContext
1267
- include Google::Apis::Core::Hashable
1268
-
1269
- # The ancestry path of the resource in Google Cloud [resource hierarchy](https://
1270
- # cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy),
1271
- # represented as a list of relative resource names. An ancestry path starts with
1272
- # the closest ancestor in the hierarchy and ends at root. If the resource is a
1273
- # project, folder, or organization, the ancestry path starts from the resource
1274
- # itself. Example: `["projects/123456789", "folders/5432", "organizations/1234"]`
1275
- # Corresponds to the JSON property `ancestors`
1276
- # @return [Array<String>]
1277
- attr_accessor :ancestors
1278
-
1279
- # The asset type of the resource as defined by CAIS. Example: `compute.
1280
- # googleapis.com/Firewall` See [Supported asset types](https://cloud.google.com/
1281
- # asset-inventory/docs/supported-asset-types) for more information.
1282
- # Corresponds to the JSON property `assetType`
1283
- # @return [String]
1284
- attr_accessor :asset_type
1285
-
1286
- # The full name of the resource. Example: `//compute.googleapis.com/projects/
1287
- # my_project_123/zones/zone1/instances/instance1` See [Resource names](https://
1288
- # cloud.google.com/apis/design/resource_names#full_resource_name) for more
1289
- # information.
1290
- # Corresponds to the JSON property `resource`
1291
- # @return [String]
1292
- attr_accessor :resource
1293
-
1294
- def initialize(**args)
1295
- update!(**args)
1296
- end
1297
-
1298
- # Update properties of this object
1299
- def update!(**args)
1300
- @ancestors = args[:ancestors] if args.key?(:ancestors)
1301
- @asset_type = args[:asset_type] if args.key?(:asset_type)
1302
- @resource = args[:resource] if args.key?(:resource)
1303
- end
1304
- end
1305
-
1306
949
  # CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
1307
950
  # OrgPolicyViolationsPreview generations operation.
1308
951
  class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PolicysimulatorV1
18
18
  # Version of the google-apis-policysimulator_v1 gem
19
- GEM_VERSION = "0.36.0"
19
+ GEM_VERSION = "0.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240505"
25
+ REVISION = "20240617"
26
26
  end
27
27
  end
28
28
  end
@@ -94,60 +94,12 @@ module Google
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
97
  class GoogleCloudPolicysimulatorV1ListReplayResultsResponse
110
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
99
 
112
100
  include Google::Apis::Core::JsonObjectSupport
113
101
  end
114
102
 
115
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlay
116
- class Representation < Google::Apis::Core::JsonRepresentation; end
117
-
118
- include Google::Apis::Core::JsonObjectSupport
119
- end
120
-
121
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
129
-
130
- include Google::Apis::Core::JsonObjectSupport
131
- end
132
-
133
- class GoogleCloudPolicysimulatorV1OrgPolicyViolation
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
135
-
136
- include Google::Apis::Core::JsonObjectSupport
137
- end
138
-
139
- class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
143
- end
144
-
145
- class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
147
-
148
- include Google::Apis::Core::JsonObjectSupport
149
- end
150
-
151
103
  class GoogleCloudPolicysimulatorV1Replay
152
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
105
 
@@ -184,12 +136,6 @@ module Google
184
136
  include Google::Apis::Core::JsonObjectSupport
185
137
  end
186
138
 
187
- class GoogleCloudPolicysimulatorV1ResourceContext
188
- class Representation < Google::Apis::Core::JsonRepresentation; end
189
-
190
- include Google::Apis::Core::JsonObjectSupport
191
- end
192
-
193
139
  class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
194
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
141
 
@@ -465,24 +411,6 @@ module Google
465
411
  end
466
412
  end
467
413
 
468
- class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse
469
- # @private
470
- class Representation < Google::Apis::Core::JsonRepresentation
471
- property :next_page_token, as: 'nextPageToken'
472
- collection :org_policy_violations_previews, as: 'orgPolicyViolationsPreviews', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview::Representation
473
-
474
- end
475
- end
476
-
477
- class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse
478
- # @private
479
- class Representation < Google::Apis::Core::JsonRepresentation
480
- property :next_page_token, as: 'nextPageToken'
481
- collection :org_policy_violations, as: 'orgPolicyViolations', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolation, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolation::Representation
482
-
483
- end
484
- end
485
-
486
414
  class GoogleCloudPolicysimulatorV1ListReplayResultsResponse
487
415
  # @private
488
416
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -492,73 +420,6 @@ module Google
492
420
  end
493
421
  end
494
422
 
495
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlay
496
- # @private
497
- class Representation < Google::Apis::Core::JsonRepresentation
498
- collection :custom_constraints, as: 'customConstraints', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay::Representation
499
-
500
- collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay::Representation
501
-
502
- end
503
- end
504
-
505
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay
506
- # @private
507
- class Representation < Google::Apis::Core::JsonRepresentation
508
- property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint::Representation
509
-
510
- property :custom_constraint_parent, as: 'customConstraintParent'
511
- end
512
- end
513
-
514
- class GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay
515
- # @private
516
- class Representation < Google::Apis::Core::JsonRepresentation
517
- property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy::Representation
518
-
519
- property :policy_parent, as: 'policyParent'
520
- end
521
- end
522
-
523
- class GoogleCloudPolicysimulatorV1OrgPolicyViolation
524
- # @private
525
- class Representation < Google::Apis::Core::JsonRepresentation
526
- property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint::Representation
527
-
528
- property :error, as: 'error', class: Google::Apis::PolicysimulatorV1::GoogleRpcStatus, decorator: Google::Apis::PolicysimulatorV1::GoogleRpcStatus::Representation
529
-
530
- property :name, as: 'name'
531
- property :resource, as: 'resource', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ResourceContext, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ResourceContext::Representation
532
-
533
- end
534
- end
535
-
536
- class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview
537
- # @private
538
- class Representation < Google::Apis::Core::JsonRepresentation
539
- property :create_time, as: 'createTime'
540
- collection :custom_constraints, as: 'customConstraints'
541
- property :name, as: 'name'
542
- property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyOverlay::Representation
543
-
544
- property :resource_counts, as: 'resourceCounts', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts::Representation
545
-
546
- property :state, as: 'state'
547
- property :violations_count, as: 'violationsCount'
548
- end
549
- end
550
-
551
- class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts
552
- # @private
553
- class Representation < Google::Apis::Core::JsonRepresentation
554
- property :compliant, as: 'compliant'
555
- property :errors, as: 'errors'
556
- property :noncompliant, as: 'noncompliant'
557
- property :scanned, as: 'scanned'
558
- property :unenforced, as: 'unenforced'
559
- end
560
- end
561
-
562
423
  class GoogleCloudPolicysimulatorV1Replay
563
424
  # @private
564
425
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -625,15 +486,6 @@ module Google
625
486
  end
626
487
  end
627
488
 
628
- class GoogleCloudPolicysimulatorV1ResourceContext
629
- # @private
630
- class Representation < Google::Apis::Core::JsonRepresentation
631
- collection :ancestors, as: 'ancestors'
632
- property :asset_type, as: 'assetType'
633
- property :resource, as: 'resource'
634
- end
635
- end
636
-
637
489
  class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
638
490
  # @private
639
491
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -342,121 +342,6 @@ module Google
342
342
  execute_or_queue_command(command, &block)
343
343
  end
344
344
 
345
- # CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the
346
- # proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay.
347
- # The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The
348
- # resources to scan are inferred from these specified changes.
349
- # @param [String] parent
350
- # Required. The organization under which this OrgPolicyViolationsPreview will be
351
- # created. Example: `organizations/my-example-org/locations/global`
352
- # @param [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview] google_cloud_policysimulator_v1_org_policy_violations_preview_object
353
- # @param [String] org_policy_violations_preview_id
354
- # Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If
355
- # not provided, a random ID will be generated.
356
- # @param [String] fields
357
- # Selector specifying which fields to include in a partial response.
358
- # @param [String] quota_user
359
- # Available to use for quota purposes for server-side applications. Can be any
360
- # arbitrary string assigned to a user, but should not exceed 40 characters.
361
- # @param [Google::Apis::RequestOptions] options
362
- # Request-specific options
363
- #
364
- # @yield [result, err] Result & error if block supplied
365
- # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
366
- # @yieldparam err [StandardError] error object if request failed
367
- #
368
- # @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
369
- #
370
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
371
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
372
- # @raise [Google::Apis::AuthorizationError] Authorization is required
373
- def create_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1_org_policy_violations_preview_object = nil, org_policy_violations_preview_id: nil, fields: nil, quota_user: nil, options: nil, &block)
374
- command = make_simple_command(:post, 'v1/{+parent}/orgPolicyViolationsPreviews', options)
375
- command.request_representation = Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview::Representation
376
- command.request_object = google_cloud_policysimulator_v1_org_policy_violations_preview_object
377
- command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
378
- command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
379
- command.params['parent'] = parent unless parent.nil?
380
- command.query['orgPolicyViolationsPreviewId'] = org_policy_violations_preview_id unless org_policy_violations_preview_id.nil?
381
- command.query['fields'] = fields unless fields.nil?
382
- command.query['quotaUser'] = quota_user unless quota_user.nil?
383
- execute_or_queue_command(command, &block)
384
- end
385
-
386
- # GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
387
- # Each OrgPolicyViolationsPreview is available for at least 7 days.
388
- # @param [String] name
389
- # Required. The name of the OrgPolicyViolationsPreview to get.
390
- # @param [String] fields
391
- # Selector specifying which fields to include in a partial response.
392
- # @param [String] quota_user
393
- # Available to use for quota purposes for server-side applications. Can be any
394
- # arbitrary string assigned to a user, but should not exceed 40 characters.
395
- # @param [Google::Apis::RequestOptions] options
396
- # Request-specific options
397
- #
398
- # @yield [result, err] Result & error if block supplied
399
- # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview] parsed result object
400
- # @yieldparam err [StandardError] error object if request failed
401
- #
402
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview]
403
- #
404
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
405
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
406
- # @raise [Google::Apis::AuthorizationError] Authorization is required
407
- def get_organization_location_org_policy_violations_preview(name, fields: nil, quota_user: nil, options: nil, &block)
408
- command = make_simple_command(:get, 'v1/{+name}', options)
409
- command.response_representation = Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview::Representation
410
- command.response_class = Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview
411
- command.params['name'] = name unless name.nil?
412
- command.query['fields'] = fields unless fields.nil?
413
- command.query['quotaUser'] = quota_user unless quota_user.nil?
414
- execute_or_queue_command(command, &block)
415
- end
416
-
417
- # ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an
418
- # organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
419
- # @param [String] parent
420
- # Required. The parent the violations are scoped to. Format: `organizations/`
421
- # organization`/locations/`location`` Example: `organizations/my-example-org/
422
- # locations/global`
423
- # @param [Fixnum] page_size
424
- # Optional. The maximum number of items to return. The service may return fewer
425
- # than this value. If unspecified, at most 5 items will be returned. The maximum
426
- # value is 10; values above 10 will be coerced to 10.
427
- # @param [String] page_token
428
- # Optional. A page token, received from a previous call. Provide this to
429
- # retrieve the subsequent page. When paginating, all other parameters must match
430
- # the call that provided the page token.
431
- # @param [String] fields
432
- # Selector specifying which fields to include in a partial response.
433
- # @param [String] quota_user
434
- # Available to use for quota purposes for server-side applications. Can be any
435
- # arbitrary string assigned to a user, but should not exceed 40 characters.
436
- # @param [Google::Apis::RequestOptions] options
437
- # Request-specific options
438
- #
439
- # @yield [result, err] Result & error if block supplied
440
- # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse] parsed result object
441
- # @yieldparam err [StandardError] error object if request failed
442
- #
443
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse]
444
- #
445
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
446
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
447
- # @raise [Google::Apis::AuthorizationError] Authorization is required
448
- def list_organization_location_org_policy_violations_previews(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
449
- command = make_simple_command(:get, 'v1/{+parent}/orgPolicyViolationsPreviews', options)
450
- command.response_representation = Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse::Representation
451
- command.response_class = Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse
452
- command.params['parent'] = parent unless parent.nil?
453
- command.query['pageSize'] = page_size unless page_size.nil?
454
- command.query['pageToken'] = page_token unless page_token.nil?
455
- command.query['fields'] = fields unless fields.nil?
456
- command.query['quotaUser'] = quota_user unless quota_user.nil?
457
- execute_or_queue_command(command, &block)
458
- end
459
-
460
345
  # Gets the latest state of a long-running operation. Clients can use this method
461
346
  # to poll the operation result at intervals as recommended by the API service.
462
347
  # @param [String] name
@@ -488,49 +373,6 @@ module Google
488
373
  execute_or_queue_command(command, &block)
489
374
  end
490
375
 
491
- # ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an
492
- # OrgPolicyViolationsPreview.
493
- # @param [String] parent
494
- # Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from.
495
- # Format: organizations/`organization`/locations/`location`/
496
- # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`
497
- # @param [Fixnum] page_size
498
- # Optional. The maximum number of items to return. The service may return fewer
499
- # than this value. If unspecified, at most 50 items will be returned. The
500
- # maximum value is 1000; values above 1000 will be coerced to 1000.
501
- # @param [String] page_token
502
- # Optional. A page token, received from a previous call. Provide this to
503
- # retrieve the subsequent page. When paginating, all other parameters must match
504
- # the call that provided the page token.
505
- # @param [String] fields
506
- # Selector specifying which fields to include in a partial response.
507
- # @param [String] quota_user
508
- # Available to use for quota purposes for server-side applications. Can be any
509
- # arbitrary string assigned to a user, but should not exceed 40 characters.
510
- # @param [Google::Apis::RequestOptions] options
511
- # Request-specific options
512
- #
513
- # @yield [result, err] Result & error if block supplied
514
- # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse] parsed result object
515
- # @yieldparam err [StandardError] error object if request failed
516
- #
517
- # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse]
518
- #
519
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
- # @raise [Google::Apis::AuthorizationError] Authorization is required
522
- def list_organization_location_org_policy_violations_preview_org_policy_violations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
523
- command = make_simple_command(:get, 'v1/{+parent}/orgPolicyViolations', options)
524
- command.response_representation = Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse::Representation
525
- command.response_class = Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse
526
- command.params['parent'] = parent unless parent.nil?
527
- command.query['pageSize'] = page_size unless page_size.nil?
528
- command.query['pageToken'] = page_token unless page_token.nil?
529
- command.query['fields'] = fields unless fields.nil?
530
- command.query['quotaUser'] = quota_user unless quota_user.nil?
531
- execute_or_queue_command(command, &block)
532
- end
533
-
534
376
  # Creates and starts a Replay using the given ReplayConfig.
535
377
  # @param [String] parent
536
378
  # Required. The parent resource where this Replay will be created. This resource
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-policysimulator_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.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-05-19 00:00:00.000000000 Z
11
+ date: 2024-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1/v0.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1/v0.37.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1
63
63
  post_install_message:
64
64
  rdoc_options: []