google-apis-policysimulator_v1alpha 0.16.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/policysimulator_v1alpha/classes.rb +152 -39
- data/lib/google/apis/policysimulator_v1alpha/gem_version.rb +3 -3
- data/lib/google/apis/policysimulator_v1alpha/representations.rb +36 -0
- data/lib/google/apis/policysimulator_v1alpha/service.rb +55 -14
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f8ff90b122d437a11e6d2a18b79f224451b6e28b922022eb56661839301d113
|
4
|
+
data.tar.gz: 88274d06573db9943227dfde0c04750484b5e9aac8440822a677b633d883c69f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040735da40fc004aef06a8d5de48f223135ef8b28167867e75f743abd2c7cd8c3734d3d8b88e1ff005fa38dc575f6856fa17d2ce576d0e6c19c855e1d9321d48
|
7
|
+
data.tar.gz: a1be65719128e80fa33d7588813867b410d84579bad513320729d35bbc09577c94d749e3dd3656ee60b346e1915111c6429b64b877ce59c9a0ce16f5e4163393
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-policysimulator_v1alpha
|
2
2
|
|
3
|
+
### v0.18.0 (2024-02-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240218
|
6
|
+
* Regenerated using generator version 0.14.0
|
7
|
+
|
8
|
+
### v0.17.0 (2024-01-28)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240121
|
11
|
+
* Regenerated using generator version 0.13.1
|
12
|
+
|
3
13
|
### v0.16.0 (2024-01-22)
|
4
14
|
|
5
15
|
* Regenerated using generator version 0.13.0
|
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.
|
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.
|
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
|
|
@@ -708,6 +708,58 @@ module Google
|
|
708
708
|
end
|
709
709
|
end
|
710
710
|
|
711
|
+
# CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
712
|
+
# OrgPolicyViolationsPreview generations operation.
|
713
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
714
|
+
include Google::Apis::Core::Hashable
|
715
|
+
|
716
|
+
# Time when the request was received.
|
717
|
+
# Corresponds to the JSON property `requestTime`
|
718
|
+
# @return [String]
|
719
|
+
attr_accessor :request_time
|
720
|
+
|
721
|
+
# Total number of resources that need scanning. Should equal resource_scanned +
|
722
|
+
# resources_pending
|
723
|
+
# Corresponds to the JSON property `resourcesFound`
|
724
|
+
# @return [Fixnum]
|
725
|
+
attr_accessor :resources_found
|
726
|
+
|
727
|
+
# Number of resources still to scan.
|
728
|
+
# Corresponds to the JSON property `resourcesPending`
|
729
|
+
# @return [Fixnum]
|
730
|
+
attr_accessor :resources_pending
|
731
|
+
|
732
|
+
# Number of resources already scanned.
|
733
|
+
# Corresponds to the JSON property `resourcesScanned`
|
734
|
+
# @return [Fixnum]
|
735
|
+
attr_accessor :resources_scanned
|
736
|
+
|
737
|
+
# Time when the request started processing, i.e., when the state was set to
|
738
|
+
# RUNNING.
|
739
|
+
# Corresponds to the JSON property `startTime`
|
740
|
+
# @return [String]
|
741
|
+
attr_accessor :start_time
|
742
|
+
|
743
|
+
# Output only. The current state of the operation.
|
744
|
+
# Corresponds to the JSON property `state`
|
745
|
+
# @return [String]
|
746
|
+
attr_accessor :state
|
747
|
+
|
748
|
+
def initialize(**args)
|
749
|
+
update!(**args)
|
750
|
+
end
|
751
|
+
|
752
|
+
# Update properties of this object
|
753
|
+
def update!(**args)
|
754
|
+
@request_time = args[:request_time] if args.key?(:request_time)
|
755
|
+
@resources_found = args[:resources_found] if args.key?(:resources_found)
|
756
|
+
@resources_pending = args[:resources_pending] if args.key?(:resources_pending)
|
757
|
+
@resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
|
758
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
759
|
+
@state = args[:state] if args.key?(:state)
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
711
763
|
# Details about how a set of policies, listed in ExplainedPolicy, resulted in a
|
712
764
|
# certain AccessState when replaying an access tuple.
|
713
765
|
class GoogleCloudPolicysimulatorV1alphaExplainedAccess
|
@@ -990,20 +1042,21 @@ module Google
|
|
990
1042
|
class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
|
991
1043
|
include Google::Apis::Core::Hashable
|
992
1044
|
|
993
|
-
# The OrgPolicy CustomConstraint changes to preview violations for.
|
994
|
-
# CustomConstraints with the same name will be overridden in the
|
995
|
-
# That is, violations will be determined as if all custom
|
996
|
-
# overlay were instantiated. Only a single custom_constraint
|
997
|
-
# overlay at a time. For evaluating multiple constraints,
|
998
|
-
# GenerateOrgPolicyViolationsPreview` requests are made, where each
|
999
|
-
# evaluates a single constraint.
|
1045
|
+
# Optional. The OrgPolicy CustomConstraint changes to preview violations for.
|
1046
|
+
# Any existing CustomConstraints with the same name will be overridden in the
|
1047
|
+
# simulation. That is, violations will be determined as if all custom
|
1048
|
+
# constraints in the overlay were instantiated. Only a single custom_constraint
|
1049
|
+
# is supported in the overlay at a time. For evaluating multiple constraints,
|
1050
|
+
# multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
|
1051
|
+
# request evaluates a single constraint.
|
1000
1052
|
# Corresponds to the JSON property `customConstraints`
|
1001
1053
|
# @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
|
1002
1054
|
attr_accessor :custom_constraints
|
1003
1055
|
|
1004
|
-
# The OrgPolicy changes to preview violations for. Any existing
|
1005
|
-
# the same name will be overridden in the simulation. That is,
|
1006
|
-
# be determined as if all policies in the overlay were created
|
1056
|
+
# Optional. The OrgPolicy changes to preview violations for. Any existing
|
1057
|
+
# OrgPolicies with the same name will be overridden in the simulation. That is,
|
1058
|
+
# violations will be determined as if all policies in the overlay were created
|
1059
|
+
# or updated.
|
1007
1060
|
# Corresponds to the JSON property `policies`
|
1008
1061
|
# @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay>]
|
1009
1062
|
attr_accessor :policies
|
@@ -1031,7 +1084,8 @@ module Google
|
|
1031
1084
|
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint]
|
1032
1085
|
attr_accessor :custom_constraint
|
1033
1086
|
|
1034
|
-
# Resource the constraint is attached to. Example: "organization/
|
1087
|
+
# Optional. Resource the constraint is attached to. Example: "organization/
|
1088
|
+
# 987654"
|
1035
1089
|
# Corresponds to the JSON property `customConstraintParent`
|
1036
1090
|
# @return [String]
|
1037
1091
|
attr_accessor :custom_constraint_parent
|
@@ -1057,7 +1111,8 @@ module Google
|
|
1057
1111
|
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2Policy]
|
1058
1112
|
attr_accessor :policy
|
1059
1113
|
|
1060
|
-
# The parent of the policy we are attaching to. Example: "projects/
|
1114
|
+
# Optional. The parent of the policy we are attaching to. Example: "projects/
|
1115
|
+
# 123456"
|
1061
1116
|
# Corresponds to the JSON property `policyParent`
|
1062
1117
|
# @return [String]
|
1063
1118
|
attr_accessor :policy_parent
|
@@ -1202,29 +1257,29 @@ module Google
|
|
1202
1257
|
class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
|
1203
1258
|
include Google::Apis::Core::Hashable
|
1204
1259
|
|
1205
|
-
# Number of scanned resources with zero violations.
|
1260
|
+
# Output only. Number of scanned resources with zero violations.
|
1206
1261
|
# Corresponds to the JSON property `compliant`
|
1207
1262
|
# @return [Fixnum]
|
1208
1263
|
attr_accessor :compliant
|
1209
1264
|
|
1210
|
-
# Number of resources that returned an error when scanned.
|
1265
|
+
# Output only. Number of resources that returned an error when scanned.
|
1211
1266
|
# Corresponds to the JSON property `errors`
|
1212
1267
|
# @return [Fixnum]
|
1213
1268
|
attr_accessor :errors
|
1214
1269
|
|
1215
|
-
# Number of scanned resources with at least one violation.
|
1270
|
+
# Output only. Number of scanned resources with at least one violation.
|
1216
1271
|
# Corresponds to the JSON property `noncompliant`
|
1217
1272
|
# @return [Fixnum]
|
1218
1273
|
attr_accessor :noncompliant
|
1219
1274
|
|
1220
|
-
# Number of resources checked for compliance. Must equal:
|
1221
|
-
# noncompliant + compliant + error
|
1275
|
+
# Output only. Number of resources checked for compliance. Must equal:
|
1276
|
+
# unenforced + noncompliant + compliant + error
|
1222
1277
|
# Corresponds to the JSON property `scanned`
|
1223
1278
|
# @return [Fixnum]
|
1224
1279
|
attr_accessor :scanned
|
1225
1280
|
|
1226
|
-
# Number of resources where the constraint was not enforced, i.e.
|
1227
|
-
# `enforced: false` for that resource.
|
1281
|
+
# Output only. Number of resources where the constraint was not enforced, i.e.
|
1282
|
+
# the Policy set `enforced: false` for that resource.
|
1228
1283
|
# Corresponds to the JSON property `unenforced`
|
1229
1284
|
# @return [Fixnum]
|
1230
1285
|
attr_accessor :unenforced
|
@@ -1517,6 +1572,58 @@ module Google
|
|
1517
1572
|
end
|
1518
1573
|
end
|
1519
1574
|
|
1575
|
+
# CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
1576
|
+
# OrgPolicyViolationsPreview generations operation.
|
1577
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
1578
|
+
include Google::Apis::Core::Hashable
|
1579
|
+
|
1580
|
+
# Time when the request was received.
|
1581
|
+
# Corresponds to the JSON property `requestTime`
|
1582
|
+
# @return [String]
|
1583
|
+
attr_accessor :request_time
|
1584
|
+
|
1585
|
+
# Total number of resources that need scanning. Should equal resource_scanned +
|
1586
|
+
# resources_pending
|
1587
|
+
# Corresponds to the JSON property `resourcesFound`
|
1588
|
+
# @return [Fixnum]
|
1589
|
+
attr_accessor :resources_found
|
1590
|
+
|
1591
|
+
# Number of resources still to scan.
|
1592
|
+
# Corresponds to the JSON property `resourcesPending`
|
1593
|
+
# @return [Fixnum]
|
1594
|
+
attr_accessor :resources_pending
|
1595
|
+
|
1596
|
+
# Number of resources already scanned.
|
1597
|
+
# Corresponds to the JSON property `resourcesScanned`
|
1598
|
+
# @return [Fixnum]
|
1599
|
+
attr_accessor :resources_scanned
|
1600
|
+
|
1601
|
+
# Time when the request started processing, i.e., when the state was set to
|
1602
|
+
# RUNNING.
|
1603
|
+
# Corresponds to the JSON property `startTime`
|
1604
|
+
# @return [String]
|
1605
|
+
attr_accessor :start_time
|
1606
|
+
|
1607
|
+
# Output only. The current state of the operation.
|
1608
|
+
# Corresponds to the JSON property `state`
|
1609
|
+
# @return [String]
|
1610
|
+
attr_accessor :state
|
1611
|
+
|
1612
|
+
def initialize(**args)
|
1613
|
+
update!(**args)
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# Update properties of this object
|
1617
|
+
def update!(**args)
|
1618
|
+
@request_time = args[:request_time] if args.key?(:request_time)
|
1619
|
+
@resources_found = args[:resources_found] if args.key?(:resources_found)
|
1620
|
+
@resources_pending = args[:resources_pending] if args.key?(:resources_pending)
|
1621
|
+
@resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
|
1622
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1623
|
+
@state = args[:state] if args.key?(:state)
|
1624
|
+
end
|
1625
|
+
end
|
1626
|
+
|
1520
1627
|
# GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
|
1521
1628
|
# OrgPolicyViolationsPreview generations operation.
|
1522
1629
|
class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
@@ -1573,20 +1680,21 @@ module Google
|
|
1573
1680
|
class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
|
1574
1681
|
include Google::Apis::Core::Hashable
|
1575
1682
|
|
1576
|
-
# The OrgPolicy CustomConstraint changes to preview violations for.
|
1577
|
-
# CustomConstraints with the same name will be overridden in the
|
1578
|
-
# That is, violations will be determined as if all custom
|
1579
|
-
# overlay were instantiated. Only a single custom_constraint
|
1580
|
-
# overlay at a time. For evaluating multiple constraints,
|
1581
|
-
# GenerateOrgPolicyViolationsPreview` requests are made, where each
|
1582
|
-
# evaluates a single constraint.
|
1683
|
+
# Optional. The OrgPolicy CustomConstraint changes to preview violations for.
|
1684
|
+
# Any existing CustomConstraints with the same name will be overridden in the
|
1685
|
+
# simulation. That is, violations will be determined as if all custom
|
1686
|
+
# constraints in the overlay were instantiated. Only a single custom_constraint
|
1687
|
+
# is supported in the overlay at a time. For evaluating multiple constraints,
|
1688
|
+
# multiple `GenerateOrgPolicyViolationsPreview` requests are made, where each
|
1689
|
+
# request evaluates a single constraint.
|
1583
1690
|
# Corresponds to the JSON property `customConstraints`
|
1584
1691
|
# @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
|
1585
1692
|
attr_accessor :custom_constraints
|
1586
1693
|
|
1587
|
-
# The OrgPolicy changes to preview violations for. Any existing
|
1588
|
-
# the same name will be overridden in the simulation. That is,
|
1589
|
-
# be determined as if all policies in the overlay were created
|
1694
|
+
# Optional. The OrgPolicy changes to preview violations for. Any existing
|
1695
|
+
# OrgPolicies with the same name will be overridden in the simulation. That is,
|
1696
|
+
# violations will be determined as if all policies in the overlay were created
|
1697
|
+
# or updated.
|
1590
1698
|
# Corresponds to the JSON property `policies`
|
1591
1699
|
# @return [Array<Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay>]
|
1592
1700
|
attr_accessor :policies
|
@@ -1614,7 +1722,8 @@ module Google
|
|
1614
1722
|
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2CustomConstraint]
|
1615
1723
|
attr_accessor :custom_constraint
|
1616
1724
|
|
1617
|
-
# Resource the constraint is attached to. Example: "organization/
|
1725
|
+
# Optional. Resource the constraint is attached to. Example: "organization/
|
1726
|
+
# 987654"
|
1618
1727
|
# Corresponds to the JSON property `customConstraintParent`
|
1619
1728
|
# @return [String]
|
1620
1729
|
attr_accessor :custom_constraint_parent
|
@@ -1640,7 +1749,8 @@ module Google
|
|
1640
1749
|
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudOrgpolicyV2Policy]
|
1641
1750
|
attr_accessor :policy
|
1642
1751
|
|
1643
|
-
# The parent of the policy we are attaching to. Example: "projects/
|
1752
|
+
# Optional. The parent of the policy we are attaching to. Example: "projects/
|
1753
|
+
# 123456"
|
1644
1754
|
# Corresponds to the JSON property `policyParent`
|
1645
1755
|
# @return [String]
|
1646
1756
|
attr_accessor :policy_parent
|
@@ -1736,29 +1846,29 @@ module Google
|
|
1736
1846
|
class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
|
1737
1847
|
include Google::Apis::Core::Hashable
|
1738
1848
|
|
1739
|
-
# Number of scanned resources with zero violations.
|
1849
|
+
# Output only. Number of scanned resources with zero violations.
|
1740
1850
|
# Corresponds to the JSON property `compliant`
|
1741
1851
|
# @return [Fixnum]
|
1742
1852
|
attr_accessor :compliant
|
1743
1853
|
|
1744
|
-
# Number of resources that returned an error when scanned.
|
1854
|
+
# Output only. Number of resources that returned an error when scanned.
|
1745
1855
|
# Corresponds to the JSON property `errors`
|
1746
1856
|
# @return [Fixnum]
|
1747
1857
|
attr_accessor :errors
|
1748
1858
|
|
1749
|
-
# Number of scanned resources with at least one violation.
|
1859
|
+
# Output only. Number of scanned resources with at least one violation.
|
1750
1860
|
# Corresponds to the JSON property `noncompliant`
|
1751
1861
|
# @return [Fixnum]
|
1752
1862
|
attr_accessor :noncompliant
|
1753
1863
|
|
1754
|
-
# Number of resources checked for compliance. Must equal:
|
1755
|
-
# noncompliant + compliant + error
|
1864
|
+
# Output only. Number of resources checked for compliance. Must equal:
|
1865
|
+
# unenforced + noncompliant + compliant + error
|
1756
1866
|
# Corresponds to the JSON property `scanned`
|
1757
1867
|
# @return [Fixnum]
|
1758
1868
|
attr_accessor :scanned
|
1759
1869
|
|
1760
|
-
# Number of resources where the constraint was not enforced, i.e.
|
1761
|
-
# `enforced: false` for that resource.
|
1870
|
+
# Output only. Number of resources where the constraint was not enforced, i.e.
|
1871
|
+
# the Policy set `enforced: false` for that resource.
|
1762
1872
|
# Corresponds to the JSON property `unenforced`
|
1763
1873
|
# @return [Fixnum]
|
1764
1874
|
attr_accessor :unenforced
|
@@ -1929,7 +2039,10 @@ module Google
|
|
1929
2039
|
attr_accessor :members
|
1930
2040
|
|
1931
2041
|
# Role that is assigned to the list of `members`, or principals. For example, `
|
1932
|
-
# roles/viewer`, `roles/editor`, or `roles/owner`.
|
2042
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
|
2043
|
+
# roles and permissions, see the [IAM documentation](https://cloud.google.com/
|
2044
|
+
# iam/docs/roles-overview). For a list of the available pre-defined roles, see [
|
2045
|
+
# here](https://cloud.google.com/iam/docs/understanding-roles).
|
1933
2046
|
# Corresponds to the JSON property `role`
|
1934
2047
|
# @return [String]
|
1935
2048
|
attr_accessor :role
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PolicysimulatorV1alpha
|
18
18
|
# Version of the google-apis-policysimulator_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240218"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -106,6 +106,12 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
109
115
|
class GoogleCloudPolicysimulatorV1alphaExplainedAccess
|
110
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
117
|
|
@@ -220,6 +226,12 @@ module Google
|
|
220
226
|
include Google::Apis::Core::JsonObjectSupport
|
221
227
|
end
|
222
228
|
|
229
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
223
235
|
class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
224
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
237
|
|
@@ -465,6 +477,18 @@ module Google
|
|
465
477
|
end
|
466
478
|
end
|
467
479
|
|
480
|
+
class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata
|
481
|
+
# @private
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
483
|
+
property :request_time, as: 'requestTime'
|
484
|
+
property :resources_found, as: 'resourcesFound'
|
485
|
+
property :resources_pending, as: 'resourcesPending'
|
486
|
+
property :resources_scanned, as: 'resourcesScanned'
|
487
|
+
property :start_time, as: 'startTime'
|
488
|
+
property :state, as: 'state'
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
468
492
|
class GoogleCloudPolicysimulatorV1alphaExplainedAccess
|
469
493
|
# @private
|
470
494
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -672,6 +696,18 @@ module Google
|
|
672
696
|
end
|
673
697
|
end
|
674
698
|
|
699
|
+
class GoogleCloudPolicysimulatorV1betaCreateOrgPolicyViolationsPreviewOperationMetadata
|
700
|
+
# @private
|
701
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
702
|
+
property :request_time, as: 'requestTime'
|
703
|
+
property :resources_found, as: 'resourcesFound'
|
704
|
+
property :resources_pending, as: 'resourcesPending'
|
705
|
+
property :resources_scanned, as: 'resourcesScanned'
|
706
|
+
property :start_time, as: 'startTime'
|
707
|
+
property :state, as: 'state'
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
675
711
|
class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
|
676
712
|
# @private
|
677
713
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -389,6 +389,47 @@ module Google
|
|
389
389
|
execute_or_queue_command(command, &block)
|
390
390
|
end
|
391
391
|
|
392
|
+
# CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the
|
393
|
+
# proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay.
|
394
|
+
# The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The
|
395
|
+
# resources to scan are inferred from these specified changes.
|
396
|
+
# @param [String] parent
|
397
|
+
# Required. The organization under which this OrgPolicyViolationsPreview will be
|
398
|
+
# created. Example: `organizations/my-example-org/locations/global`
|
399
|
+
# @param [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object
|
400
|
+
# @param [String] org_policy_violations_preview_id
|
401
|
+
# Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If
|
402
|
+
# not provided, a random ID will be generated.
|
403
|
+
# @param [String] fields
|
404
|
+
# Selector specifying which fields to include in a partial response.
|
405
|
+
# @param [String] quota_user
|
406
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
407
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
408
|
+
# @param [Google::Apis::RequestOptions] options
|
409
|
+
# Request-specific options
|
410
|
+
#
|
411
|
+
# @yield [result, err] Result & error if block supplied
|
412
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation] parsed result object
|
413
|
+
# @yieldparam err [StandardError] error object if request failed
|
414
|
+
#
|
415
|
+
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation]
|
416
|
+
#
|
417
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
418
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
419
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
420
|
+
def create_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object = nil, org_policy_violations_preview_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
421
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/orgPolicyViolationsPreviews', options)
|
422
|
+
command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation
|
423
|
+
command.request_object = google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object
|
424
|
+
command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation
|
425
|
+
command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
|
426
|
+
command.params['parent'] = parent unless parent.nil?
|
427
|
+
command.query['orgPolicyViolationsPreviewId'] = org_policy_violations_preview_id unless org_policy_violations_preview_id.nil?
|
428
|
+
command.query['fields'] = fields unless fields.nil?
|
429
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
430
|
+
execute_or_queue_command(command, &block)
|
431
|
+
end
|
432
|
+
|
392
433
|
# GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for
|
393
434
|
# the proposed changes in the provided OrgPolicyViolationsPreview.
|
394
435
|
# OrgPolicyOverlay. The changes to OrgPolicy are specified by this `
|
@@ -415,8 +456,8 @@ module Google
|
|
415
456
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
416
457
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
417
458
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
418
|
-
def
|
419
|
-
command = make_simple_command(:post, 'v1alpha/{+parent}/orgPolicyViolationsPreviews', options)
|
459
|
+
def generate_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
460
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/orgPolicyViolationsPreviews:generate', options)
|
420
461
|
command.request_representation = Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview::Representation
|
421
462
|
command.request_object = google_cloud_policysimulator_v1alpha_org_policy_violations_preview_object
|
422
463
|
command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation
|
@@ -465,13 +506,13 @@ module Google
|
|
465
506
|
# organization`/locations/`location`` Example: `organizations/my-example-org/
|
466
507
|
# locations/global`
|
467
508
|
# @param [Fixnum] page_size
|
468
|
-
# The maximum number of items to return. The service may return fewer
|
469
|
-
# value. If unspecified, at most 5 items will be returned. The maximum
|
470
|
-
# 10; values above 10 will be coerced to 10.
|
509
|
+
# Optional. The maximum number of items to return. The service may return fewer
|
510
|
+
# than this value. If unspecified, at most 5 items will be returned. The maximum
|
511
|
+
# value is 10; values above 10 will be coerced to 10.
|
471
512
|
# @param [String] page_token
|
472
|
-
# A page token, received from a previous call. Provide this to
|
473
|
-
# subsequent page. When paginating, all other parameters must match
|
474
|
-
# that provided the page token.
|
513
|
+
# Optional. A page token, received from a previous call. Provide this to
|
514
|
+
# retrieve the subsequent page. When paginating, all other parameters must match
|
515
|
+
# the call that provided the page token.
|
475
516
|
# @param [String] fields
|
476
517
|
# Selector specifying which fields to include in a partial response.
|
477
518
|
# @param [String] quota_user
|
@@ -539,13 +580,13 @@ module Google
|
|
539
580
|
# Format: organizations/`organization`/locations/`location`/
|
540
581
|
# orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`
|
541
582
|
# @param [Fixnum] page_size
|
542
|
-
# The maximum number of items to return. The service may return fewer
|
543
|
-
# value. If unspecified, at most 50 items will be returned. The
|
544
|
-
# 1000; values above 1000 will be coerced to 1000.
|
583
|
+
# Optional. The maximum number of items to return. The service may return fewer
|
584
|
+
# than this value. If unspecified, at most 50 items will be returned. The
|
585
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
545
586
|
# @param [String] page_token
|
546
|
-
# A page token, received from a previous call. Provide this to
|
547
|
-
# subsequent page. When paginating, all other parameters must match
|
548
|
-
# that provided the page token.
|
587
|
+
# Optional. A page token, received from a previous call. Provide this to
|
588
|
+
# retrieve the subsequent page. When paginating, all other parameters must match
|
589
|
+
# the call that provided the page token.
|
549
590
|
# @param [String] fields
|
550
591
|
# Selector specifying which fields to include in a partial response.
|
551
592
|
# @param [String] quota_user
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-policysimulator_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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-
|
11
|
+
date: 2024-02-25 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.
|
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.
|
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_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1alpha/v0.18.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1alpha
|
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.
|
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.
|
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 V1alpha
|