google-apis-policysimulator_v1 0.33.0 → 0.35.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: b78a33d9b2aa75e1f2616666ffff57b50f1f7c25d960071f391b7d4fc9532495
4
- data.tar.gz: 1fa0e0cd716006797299a25e44cecedc0a0ba9fb31647e39eb441a8333975d5b
3
+ metadata.gz: 4383f425d590e8bbc7d3d3a8a34550db70b7f406002779afa74670883bae4e5e
4
+ data.tar.gz: c91c7557e0fcabc0397113f598c62a68ebebb428873345fe91ba687accd7186a
5
5
  SHA512:
6
- metadata.gz: 735fa7b83b8239493cd8fe40d634f7e3c2897f10eec33982ba2b52816c8e003eb9e3db4e255e161e0dda9e05ec1d5191c84db54e94ad6f530bd6610be891da58
7
- data.tar.gz: 955d6ccd722fb9ef929189dd3d2577c8751b3b9268cecbe2e311987fd6f3d1bc594b494e7fd696eb79d2cdfcc6da85d8d50dd92e36b36c1a7cc522a774ff38b8
6
+ metadata.gz: 30f51c0a9ba504d8aed5cc9d67a30cbb7c307bd9448d5d19de07df10262d411711ea43d7711907c0591954d4410343f7ce5bf798ba0bf163ba575ff58e64fb26
7
+ data.tar.gz: 371332df55289c2aa0948bd24c87d08f800cf24ff4fd94ff50f17c131c87cd5f38a2385f3d6e756d92909a3d7cd4984c7b1cca4e2fb5d32e0bcab64965225bb3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-policysimulator_v1
2
2
 
3
+ ### v0.35.0 (2024-03-03)
4
+
5
+ * Regenerated from discovery document revision 20240225
6
+ * Regenerated using generator version 0.14.0
7
+
8
+ ### v0.34.0 (2024-02-23)
9
+
10
+ * Regenerated from discovery document revision 20240218
11
+
3
12
  ### v0.33.0 (2024-01-28)
4
13
 
5
14
  * Regenerated from discovery document revision 20240121
data/OVERVIEW.md CHANGED
@@ -83,9 +83,9 @@ The [product documentation](https://cloud.google.com/iam/docs/simulating-access)
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.5+.
86
+ This library is supported on Ruby 2.7+.
87
87
 
88
- Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
90
90
  ## License
91
91
 
@@ -670,6 +670,60 @@ 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
+
673
727
  # Response message for Simulator.ListReplayResults.
674
728
  class GoogleCloudPolicysimulatorV1ListReplayResultsResponse
675
729
  include Google::Apis::Core::Hashable
@@ -696,6 +750,266 @@ module Google
696
750
  end
697
751
  end
698
752
 
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
+
699
1013
  # A resource describing a `Replay`, or simulation.
700
1014
  class GoogleCloudPolicysimulatorV1Replay
701
1015
  include Google::Apis::Core::Hashable
@@ -946,6 +1260,101 @@ module Google
946
1260
  end
947
1261
  end
948
1262
 
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
+ # CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
1307
+ # OrgPolicyViolationsPreview generations operation.
1308
+ class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
1309
+ include Google::Apis::Core::Hashable
1310
+
1311
+ # Time when the request was received.
1312
+ # Corresponds to the JSON property `requestTime`
1313
+ # @return [String]
1314
+ attr_accessor :request_time
1315
+
1316
+ # Total number of resources that need scanning. Should equal resource_scanned +
1317
+ # resources_pending
1318
+ # Corresponds to the JSON property `resourcesFound`
1319
+ # @return [Fixnum]
1320
+ attr_accessor :resources_found
1321
+
1322
+ # Number of resources still to scan.
1323
+ # Corresponds to the JSON property `resourcesPending`
1324
+ # @return [Fixnum]
1325
+ attr_accessor :resources_pending
1326
+
1327
+ # Number of resources already scanned.
1328
+ # Corresponds to the JSON property `resourcesScanned`
1329
+ # @return [Fixnum]
1330
+ attr_accessor :resources_scanned
1331
+
1332
+ # Time when the request started processing, i.e., when the state was set to
1333
+ # RUNNING.
1334
+ # Corresponds to the JSON property `startTime`
1335
+ # @return [String]
1336
+ attr_accessor :start_time
1337
+
1338
+ # Output only. The current state of the operation.
1339
+ # Corresponds to the JSON property `state`
1340
+ # @return [String]
1341
+ attr_accessor :state
1342
+
1343
+ def initialize(**args)
1344
+ update!(**args)
1345
+ end
1346
+
1347
+ # Update properties of this object
1348
+ def update!(**args)
1349
+ @request_time = args[:request_time] if args.key?(:request_time)
1350
+ @resources_found = args[:resources_found] if args.key?(:resources_found)
1351
+ @resources_pending = args[:resources_pending] if args.key?(:resources_pending)
1352
+ @resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
1353
+ @start_time = args[:start_time] if args.key?(:start_time)
1354
+ @state = args[:state] if args.key?(:state)
1355
+ end
1356
+ end
1357
+
949
1358
  # GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
950
1359
  # OrgPolicyViolationsPreview generations operation.
951
1360
  class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
@@ -1209,6 +1618,58 @@ module Google
1209
1618
  end
1210
1619
  end
1211
1620
 
1621
+ # CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
1622
+ # OrgPolicyViolationsPreview generations operation.
1623
+ class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
1624
+ include Google::Apis::Core::Hashable
1625
+
1626
+ # Time when the request was received.
1627
+ # Corresponds to the JSON property `requestTime`
1628
+ # @return [String]
1629
+ attr_accessor :request_time
1630
+
1631
+ # Total number of resources that need scanning. Should equal resource_scanned +
1632
+ # resources_pending
1633
+ # Corresponds to the JSON property `resourcesFound`
1634
+ # @return [Fixnum]
1635
+ attr_accessor :resources_found
1636
+
1637
+ # Number of resources still to scan.
1638
+ # Corresponds to the JSON property `resourcesPending`
1639
+ # @return [Fixnum]
1640
+ attr_accessor :resources_pending
1641
+
1642
+ # Number of resources already scanned.
1643
+ # Corresponds to the JSON property `resourcesScanned`
1644
+ # @return [Fixnum]
1645
+ attr_accessor :resources_scanned
1646
+
1647
+ # Time when the request started processing, i.e., when the state was set to
1648
+ # RUNNING.
1649
+ # Corresponds to the JSON property `startTime`
1650
+ # @return [String]
1651
+ attr_accessor :start_time
1652
+
1653
+ # Output only. The current state of the operation.
1654
+ # Corresponds to the JSON property `state`
1655
+ # @return [String]
1656
+ attr_accessor :state
1657
+
1658
+ def initialize(**args)
1659
+ update!(**args)
1660
+ end
1661
+
1662
+ # Update properties of this object
1663
+ def update!(**args)
1664
+ @request_time = args[:request_time] if args.key?(:request_time)
1665
+ @resources_found = args[:resources_found] if args.key?(:resources_found)
1666
+ @resources_pending = args[:resources_pending] if args.key?(:resources_pending)
1667
+ @resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
1668
+ @start_time = args[:start_time] if args.key?(:start_time)
1669
+ @state = args[:state] if args.key?(:state)
1670
+ end
1671
+ end
1672
+
1212
1673
  # GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
1213
1674
  # OrgPolicyViolationsPreview generations operation.
1214
1675
  class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
@@ -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.33.0"
19
+ GEM_VERSION = "0.35.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.13.1"
22
+ GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240121"
25
+ REVISION = "20240225"
26
26
  end
27
27
  end
28
28
  end
@@ -94,12 +94,60 @@ 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
+
97
109
  class GoogleCloudPolicysimulatorV1ListReplayResultsResponse
98
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
111
 
100
112
  include Google::Apis::Core::JsonObjectSupport
101
113
  end
102
114
 
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
+
103
151
  class GoogleCloudPolicysimulatorV1Replay
104
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
153
 
@@ -136,6 +184,18 @@ module Google
136
184
  include Google::Apis::Core::JsonObjectSupport
137
185
  end
138
186
 
187
+ class GoogleCloudPolicysimulatorV1ResourceContext
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
139
199
  class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
140
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
201
 
@@ -172,6 +232,12 @@ module Google
172
232
  include Google::Apis::Core::JsonObjectSupport
173
233
  end
174
234
 
235
+ class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
175
241
  class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
176
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
243
 
@@ -399,6 +465,24 @@ module Google
399
465
  end
400
466
  end
401
467
 
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
+
402
486
  class GoogleCloudPolicysimulatorV1ListReplayResultsResponse
403
487
  # @private
404
488
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -408,6 +492,73 @@ module Google
408
492
  end
409
493
  end
410
494
 
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
+
411
562
  class GoogleCloudPolicysimulatorV1Replay
412
563
  # @private
413
564
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -474,6 +625,27 @@ module Google
474
625
  end
475
626
  end
476
627
 
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
+ class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
638
+ # @private
639
+ class Representation < Google::Apis::Core::JsonRepresentation
640
+ property :request_time, as: 'requestTime'
641
+ property :resources_found, as: 'resourcesFound'
642
+ property :resources_pending, as: 'resourcesPending'
643
+ property :resources_scanned, as: 'resourcesScanned'
644
+ property :start_time, as: 'startTime'
645
+ property :state, as: 'state'
646
+ end
647
+ end
648
+
477
649
  class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
478
650
  # @private
479
651
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -540,6 +712,18 @@ module Google
540
712
  end
541
713
  end
542
714
 
715
+ class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
716
+ # @private
717
+ class Representation < Google::Apis::Core::JsonRepresentation
718
+ property :request_time, as: 'requestTime'
719
+ property :resources_found, as: 'resourcesFound'
720
+ property :resources_pending, as: 'resourcesPending'
721
+ property :resources_scanned, as: 'resourcesScanned'
722
+ property :start_time, as: 'startTime'
723
+ property :state, as: 'state'
724
+ end
725
+ end
726
+
543
727
  class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
544
728
  # @private
545
729
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -57,6 +57,37 @@ module Google
57
57
  @batch_path = 'batch'
58
58
  end
59
59
 
60
+ # Gets the latest state of a long-running operation. Clients can use this method
61
+ # to poll the operation result at intervals as recommended by the API service.
62
+ # @param [String] name
63
+ # The name of the operation resource.
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def get_folder_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
82
+ command = make_simple_command(:get, 'v1/{+name}', options)
83
+ command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
84
+ command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
85
+ command.params['name'] = name unless name.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
60
91
  # Creates and starts a Replay using the given ReplayConfig.
61
92
  # @param [String] parent
62
93
  # Required. The parent resource where this Replay will be created. This resource
@@ -311,6 +342,195 @@ module Google
311
342
  execute_or_queue_command(command, &block)
312
343
  end
313
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
+ # Gets the latest state of a long-running operation. Clients can use this method
461
+ # to poll the operation result at intervals as recommended by the API service.
462
+ # @param [String] name
463
+ # The name of the operation resource.
464
+ # @param [String] fields
465
+ # Selector specifying which fields to include in a partial response.
466
+ # @param [String] quota_user
467
+ # Available to use for quota purposes for server-side applications. Can be any
468
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
469
+ # @param [Google::Apis::RequestOptions] options
470
+ # Request-specific options
471
+ #
472
+ # @yield [result, err] Result & error if block supplied
473
+ # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
474
+ # @yieldparam err [StandardError] error object if request failed
475
+ #
476
+ # @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
477
+ #
478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
481
+ def get_organization_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
482
+ command = make_simple_command(:get, 'v1/{+name}', options)
483
+ command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
484
+ command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
485
+ command.params['name'] = name unless name.nil?
486
+ command.query['fields'] = fields unless fields.nil?
487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
488
+ execute_or_queue_command(command, &block)
489
+ end
490
+
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
+
314
534
  # Creates and starts a Replay using the given ReplayConfig.
315
535
  # @param [String] parent
316
536
  # Required. The parent resource where this Replay will be created. This resource
@@ -494,6 +714,37 @@ module Google
494
714
  execute_or_queue_command(command, &block)
495
715
  end
496
716
 
717
+ # Gets the latest state of a long-running operation. Clients can use this method
718
+ # to poll the operation result at intervals as recommended by the API service.
719
+ # @param [String] name
720
+ # The name of the operation resource.
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # @param [Google::Apis::RequestOptions] options
727
+ # Request-specific options
728
+ #
729
+ # @yield [result, err] Result & error if block supplied
730
+ # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
734
+ #
735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
738
+ def get_project_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
739
+ command = make_simple_command(:get, 'v1/{+name}', options)
740
+ command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
741
+ command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
742
+ command.params['name'] = name unless name.nil?
743
+ command.query['fields'] = fields unless fields.nil?
744
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
745
+ execute_or_queue_command(command, &block)
746
+ end
747
+
497
748
  # Creates and starts a Replay using the given ReplayConfig.
498
749
  # @param [String] parent
499
750
  # 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.33.0
4
+ version: 0.35.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-01-28 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.12.0
19
+ version: 0.14.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.12.0
29
+ version: 0.14.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1/v0.35.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: []
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '2.5'
71
+ version: '2.7'
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.3
78
+ rubygems_version: 3.5.6
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Policy Simulator API V1