google-apis-policysimulator_v1 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6679df35317d62bec7e9c9361ab3a02d9cab43588962add0053acd67b1bb75bd
4
- data.tar.gz: a1ac18f7f8cfe18b1a8d7c2fa16c7bf11f8bdfcf61c8404d79477def965af7ba
3
+ metadata.gz: 3c722d34108fa1e278a0998a8a18c7f9e980dfe68b8445a5b1ea41948abc15be
4
+ data.tar.gz: fed32b1d6d3e4c2a471c6b5b47b17d5c26bb1f3b4a646d1e751ee09855a5cec0
5
5
  SHA512:
6
- metadata.gz: b1e06ed39085fd4769880dbcb9a19752ea530641708318f9ba4696d2271466ab03799554523c1acc3b46cd498aac8603660eacc699277979693e089325782c13
7
- data.tar.gz: 36ef25f796aeedd6cc997f72d58500d74ebdc5a5836fe69cca9e392db784d943677219c1843e9fc4dd48ff09422c0f5f7df434cd74e12092a85bc0617f8d7a84
6
+ metadata.gz: e61a3c6e346759161eaf4c34a720533c7f4964b81f3ac8c24d440439f513e7b3f18b1c5209972c1aae056958863e0a4e81255e964336181d236228fe029273b0
7
+ data.tar.gz: 6301d959e29eed287b2155138278e3e8bb56f8c4d404290833428fb7043d391a5d32f1af77a3455f8ce08cc9dec119c199889f7ac131effb40e9d5c8f4196c9b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-policysimulator_v1
2
2
 
3
+ ### v0.26.0 (2023-08-03)
4
+
5
+ * Regenerated from discovery document revision 20230723
6
+
7
+ ### v0.25.0 (2023-04-02)
8
+
9
+ * Regenerated from discovery document revision 20230326
10
+
3
11
  ### v0.24.0 (2023-03-12)
4
12
 
5
13
  * Regenerated from discovery document revision 20230304
@@ -22,6 +22,329 @@ module Google
22
22
  module Apis
23
23
  module PolicysimulatorV1
24
24
 
25
+ # Similar to PolicySpec but with an extra 'launch' field for launch reference.
26
+ # The PolicySpec here is specific for dry-run/darklaunch.
27
+ class GoogleCloudOrgpolicyV2AlternatePolicySpec
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Reference to the launch that will be used while audit logging and to control
31
+ # the launch. Should be set only in the alternate policy.
32
+ # Corresponds to the JSON property `launch`
33
+ # @return [String]
34
+ attr_accessor :launch
35
+
36
+ # Defines a Google Cloud policy specification which is used to specify
37
+ # constraints for configurations of Google Cloud resources.
38
+ # Corresponds to the JSON property `spec`
39
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec]
40
+ attr_accessor :spec
41
+
42
+ def initialize(**args)
43
+ update!(**args)
44
+ end
45
+
46
+ # Update properties of this object
47
+ def update!(**args)
48
+ @launch = args[:launch] if args.key?(:launch)
49
+ @spec = args[:spec] if args.key?(:spec)
50
+ end
51
+ end
52
+
53
+ # A custom constraint defined by customers which can *only* be applied to the
54
+ # given resource types and organization. By creating a custom constraint,
55
+ # customers can apply policies of this custom constraint. *Creating a custom
56
+ # constraint itself does NOT apply any policy enforcement*.
57
+ class GoogleCloudOrgpolicyV2CustomConstraint
58
+ include Google::Apis::Core::Hashable
59
+
60
+ # Allow or deny type.
61
+ # Corresponds to the JSON property `actionType`
62
+ # @return [String]
63
+ attr_accessor :action_type
64
+
65
+ # Org policy condition/expression. For example: `resource.instanceName.matches("[
66
+ # production|test]_.*_(\d)+")'` or, `resource.management.auto_upgrade == true`
67
+ # The max length of the condition is 1000 characters.
68
+ # Corresponds to the JSON property `condition`
69
+ # @return [String]
70
+ attr_accessor :condition
71
+
72
+ # Detailed information about this custom policy constraint. The max length of
73
+ # the description is 2000 characters.
74
+ # Corresponds to the JSON property `description`
75
+ # @return [String]
76
+ attr_accessor :description
77
+
78
+ # One line display name for the UI. The max length of the display_name is 200
79
+ # characters.
80
+ # Corresponds to the JSON property `displayName`
81
+ # @return [String]
82
+ attr_accessor :display_name
83
+
84
+ # All the operations being applied for this constraint.
85
+ # Corresponds to the JSON property `methodTypes`
86
+ # @return [Array<String>]
87
+ attr_accessor :method_types
88
+
89
+ # Immutable. Name of the constraint. This is unique within the organization.
90
+ # Format of the name should be * `organizations/`organization_id`/
91
+ # customConstraints/`custom_constraint_id`` Example: `organizations/123/
92
+ # customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters
93
+ # and the minimum length is 1. Note that the prefix `organizations/`
94
+ # organization_id`/customConstraints/` is not counted.
95
+ # Corresponds to the JSON property `name`
96
+ # @return [String]
97
+ attr_accessor :name
98
+
99
+ # Immutable. The resource instance type on which this policy applies. Format
100
+ # will be of the form : `/` Example: * `compute.googleapis.com/Instance`.
101
+ # Corresponds to the JSON property `resourceTypes`
102
+ # @return [Array<String>]
103
+ attr_accessor :resource_types
104
+
105
+ # Output only. The last time this custom constraint was updated. This represents
106
+ # the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint`
107
+ # RPC was called
108
+ # Corresponds to the JSON property `updateTime`
109
+ # @return [String]
110
+ attr_accessor :update_time
111
+
112
+ def initialize(**args)
113
+ update!(**args)
114
+ end
115
+
116
+ # Update properties of this object
117
+ def update!(**args)
118
+ @action_type = args[:action_type] if args.key?(:action_type)
119
+ @condition = args[:condition] if args.key?(:condition)
120
+ @description = args[:description] if args.key?(:description)
121
+ @display_name = args[:display_name] if args.key?(:display_name)
122
+ @method_types = args[:method_types] if args.key?(:method_types)
123
+ @name = args[:name] if args.key?(:name)
124
+ @resource_types = args[:resource_types] if args.key?(:resource_types)
125
+ @update_time = args[:update_time] if args.key?(:update_time)
126
+ end
127
+ end
128
+
129
+ # Defines an organization policy which is used to specify constraints for
130
+ # configurations of Google Cloud resources.
131
+ class GoogleCloudOrgpolicyV2Policy
132
+ include Google::Apis::Core::Hashable
133
+
134
+ # Similar to PolicySpec but with an extra 'launch' field for launch reference.
135
+ # The PolicySpec here is specific for dry-run/darklaunch.
136
+ # Corresponds to the JSON property `alternate`
137
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2AlternatePolicySpec]
138
+ attr_accessor :alternate
139
+
140
+ # Defines a Google Cloud policy specification which is used to specify
141
+ # constraints for configurations of Google Cloud resources.
142
+ # Corresponds to the JSON property `dryRunSpec`
143
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec]
144
+ attr_accessor :dry_run_spec
145
+
146
+ # Immutable. The resource name of the policy. Must be one of the following forms,
147
+ # where constraint_name is the name of the constraint which this policy
148
+ # configures: * `projects/`project_number`/policies/`constraint_name`` * `
149
+ # folders/`folder_id`/policies/`constraint_name`` * `organizations/`
150
+ # organization_id`/policies/`constraint_name`` For example, "projects/123/
151
+ # policies/compute.disableSerialPortAccess". Note: `projects/`project_id`/
152
+ # policies/`constraint_name`` is also an acceptable name for API requests, but
153
+ # responses will return the name using the equivalent project number.
154
+ # Corresponds to the JSON property `name`
155
+ # @return [String]
156
+ attr_accessor :name
157
+
158
+ # Defines a Google Cloud policy specification which is used to specify
159
+ # constraints for configurations of Google Cloud resources.
160
+ # Corresponds to the JSON property `spec`
161
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec]
162
+ attr_accessor :spec
163
+
164
+ def initialize(**args)
165
+ update!(**args)
166
+ end
167
+
168
+ # Update properties of this object
169
+ def update!(**args)
170
+ @alternate = args[:alternate] if args.key?(:alternate)
171
+ @dry_run_spec = args[:dry_run_spec] if args.key?(:dry_run_spec)
172
+ @name = args[:name] if args.key?(:name)
173
+ @spec = args[:spec] if args.key?(:spec)
174
+ end
175
+ end
176
+
177
+ # Defines a Google Cloud policy specification which is used to specify
178
+ # constraints for configurations of Google Cloud resources.
179
+ class GoogleCloudOrgpolicyV2PolicySpec
180
+ include Google::Apis::Core::Hashable
181
+
182
+ # An opaque tag indicating the current version of the policy, used for
183
+ # concurrency control. This field is ignored if used in a `CreatePolicy` request.
184
+ # When the policy` is returned from either a `GetPolicy` or a `ListPolicies`
185
+ # request, this `etag` indicates the version of the current policy to use when
186
+ # executing a read-modify-write loop. When the policy is returned from a `
187
+ # GetEffectivePolicy` request, the `etag` will be unset.
188
+ # Corresponds to the JSON property `etag`
189
+ # @return [String]
190
+ attr_accessor :etag
191
+
192
+ # Determines the inheritance behavior for this policy. If `inherit_from_parent`
193
+ # is true, policy rules set higher up in the hierarchy (up to the closest root)
194
+ # are inherited and present in the effective policy. If it is false, then no
195
+ # rules are inherited, and this policy becomes the new root for evaluation. This
196
+ # field can be set only for policies which configure list constraints.
197
+ # Corresponds to the JSON property `inheritFromParent`
198
+ # @return [Boolean]
199
+ attr_accessor :inherit_from_parent
200
+ alias_method :inherit_from_parent?, :inherit_from_parent
201
+
202
+ # Ignores policies set above this resource and restores the `constraint_default`
203
+ # enforcement behavior of the specific constraint at this resource. This field
204
+ # can be set in policies for either list or boolean constraints. If set, `rules`
205
+ # must be empty and `inherit_from_parent` must be set to false.
206
+ # Corresponds to the JSON property `reset`
207
+ # @return [Boolean]
208
+ attr_accessor :reset
209
+ alias_method :reset?, :reset
210
+
211
+ # In policies for boolean constraints, the following requirements apply: - There
212
+ # must be one and only one policy rule where condition is unset. - Boolean
213
+ # policy rules with conditions must set `enforced` to the opposite of the policy
214
+ # rule without a condition. - During policy evaluation, policy rules with
215
+ # conditions that are true for a target resource take precedence.
216
+ # Corresponds to the JSON property `rules`
217
+ # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpecPolicyRule>]
218
+ attr_accessor :rules
219
+
220
+ # Output only. The time stamp this was previously updated. This represents the
221
+ # last time a call to `CreatePolicy` or `UpdatePolicy` was made for that policy.
222
+ # Corresponds to the JSON property `updateTime`
223
+ # @return [String]
224
+ attr_accessor :update_time
225
+
226
+ def initialize(**args)
227
+ update!(**args)
228
+ end
229
+
230
+ # Update properties of this object
231
+ def update!(**args)
232
+ @etag = args[:etag] if args.key?(:etag)
233
+ @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
234
+ @reset = args[:reset] if args.key?(:reset)
235
+ @rules = args[:rules] if args.key?(:rules)
236
+ @update_time = args[:update_time] if args.key?(:update_time)
237
+ end
238
+ end
239
+
240
+ # A rule used to express this policy.
241
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule
242
+ include Google::Apis::Core::Hashable
243
+
244
+ # Setting this to true means that all values are allowed. This field can be set
245
+ # only in policies for list constraints.
246
+ # Corresponds to the JSON property `allowAll`
247
+ # @return [Boolean]
248
+ attr_accessor :allow_all
249
+ alias_method :allow_all?, :allow_all
250
+
251
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
252
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
253
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
254
+ # "Summary size limit" description: "Determines if a summary is less than 100
255
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
256
+ # Requestor is owner" description: "Determines if requestor is the document
257
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
258
+ # Logic): title: "Public documents" description: "Determine whether the document
259
+ # should be publicly visible" expression: "document.type != 'private' &&
260
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
261
+ # string" description: "Create a notification string with a timestamp."
262
+ # expression: "'New message received at ' + string(document.create_time)" The
263
+ # exact variables and functions that may be referenced within an expression are
264
+ # determined by the service that evaluates it. See the service documentation for
265
+ # additional information.
266
+ # Corresponds to the JSON property `condition`
267
+ # @return [Google::Apis::PolicysimulatorV1::GoogleTypeExpr]
268
+ attr_accessor :condition
269
+
270
+ # Setting this to true means that all values are denied. This field can be set
271
+ # only in policies for list constraints.
272
+ # Corresponds to the JSON property `denyAll`
273
+ # @return [Boolean]
274
+ attr_accessor :deny_all
275
+ alias_method :deny_all?, :deny_all
276
+
277
+ # If `true`, then the policy is enforced. If `false`, then any configuration is
278
+ # acceptable. This field can be set only in policies for boolean constraints.
279
+ # Corresponds to the JSON property `enforce`
280
+ # @return [Boolean]
281
+ attr_accessor :enforce
282
+ alias_method :enforce?, :enforce
283
+
284
+ # A message that holds specific allowed and denied values. This message can
285
+ # define specific values and subtrees of the Resource Manager resource hierarchy
286
+ # (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is
287
+ # achieved by using the `under:` and optional `is:` prefixes. The `under:`
288
+ # prefix is used to denote resource subtree values. The `is:` prefix is used to
289
+ # denote specific values, and is required only if the value contains a ":".
290
+ # Values prefixed with "is:" are treated the same as values with no prefix.
291
+ # Ancestry subtrees must be in one of the following formats: - "projects/", e.g.
292
+ # "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - "organizations/",
293
+ # e.g. "organizations/1234" The `supports_under` field of the associated `
294
+ # Constraint` defines whether ancestry prefixes can be used.
295
+ # Corresponds to the JSON property `values`
296
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues]
297
+ attr_accessor :values
298
+
299
+ def initialize(**args)
300
+ update!(**args)
301
+ end
302
+
303
+ # Update properties of this object
304
+ def update!(**args)
305
+ @allow_all = args[:allow_all] if args.key?(:allow_all)
306
+ @condition = args[:condition] if args.key?(:condition)
307
+ @deny_all = args[:deny_all] if args.key?(:deny_all)
308
+ @enforce = args[:enforce] if args.key?(:enforce)
309
+ @values = args[:values] if args.key?(:values)
310
+ end
311
+ end
312
+
313
+ # A message that holds specific allowed and denied values. This message can
314
+ # define specific values and subtrees of the Resource Manager resource hierarchy
315
+ # (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is
316
+ # achieved by using the `under:` and optional `is:` prefixes. The `under:`
317
+ # prefix is used to denote resource subtree values. The `is:` prefix is used to
318
+ # denote specific values, and is required only if the value contains a ":".
319
+ # Values prefixed with "is:" are treated the same as values with no prefix.
320
+ # Ancestry subtrees must be in one of the following formats: - "projects/", e.g.
321
+ # "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - "organizations/",
322
+ # e.g. "organizations/1234" The `supports_under` field of the associated `
323
+ # Constraint` defines whether ancestry prefixes can be used.
324
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
325
+ include Google::Apis::Core::Hashable
326
+
327
+ # List of values allowed at this resource.
328
+ # Corresponds to the JSON property `allowedValues`
329
+ # @return [Array<String>]
330
+ attr_accessor :allowed_values
331
+
332
+ # List of values denied at this resource.
333
+ # Corresponds to the JSON property `deniedValues`
334
+ # @return [Array<String>]
335
+ attr_accessor :denied_values
336
+
337
+ def initialize(**args)
338
+ update!(**args)
339
+ end
340
+
341
+ # Update properties of this object
342
+ def update!(**args)
343
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
344
+ @denied_values = args[:denied_values] if args.key?(:denied_values)
345
+ end
346
+ end
347
+
25
348
  # A summary and comparison of the principal's access under the current (baseline)
26
349
  # policies and the proposed (simulated) policies for a single access tuple.
27
350
  class GoogleCloudPolicysimulatorV1AccessStateDiff
@@ -612,6 +935,484 @@ module Google
612
935
  end
613
936
  end
614
937
 
938
+ # GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
939
+ # OrgPolicyViolationsPreview generations operation.
940
+ class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
941
+ include Google::Apis::Core::Hashable
942
+
943
+ # Time when the request was received.
944
+ # Corresponds to the JSON property `requestTime`
945
+ # @return [String]
946
+ attr_accessor :request_time
947
+
948
+ # Total number of resources that need scanning. Should equal resource_scanned +
949
+ # resources_pending
950
+ # Corresponds to the JSON property `resourcesFound`
951
+ # @return [Fixnum]
952
+ attr_accessor :resources_found
953
+
954
+ # Number of resources still to scan.
955
+ # Corresponds to the JSON property `resourcesPending`
956
+ # @return [Fixnum]
957
+ attr_accessor :resources_pending
958
+
959
+ # Number of resources already scanned.
960
+ # Corresponds to the JSON property `resourcesScanned`
961
+ # @return [Fixnum]
962
+ attr_accessor :resources_scanned
963
+
964
+ # Time when the request started processing, i.e. when the state was set to
965
+ # RUNNING.
966
+ # Corresponds to the JSON property `startTime`
967
+ # @return [String]
968
+ attr_accessor :start_time
969
+
970
+ # The current state of the operation.
971
+ # Corresponds to the JSON property `state`
972
+ # @return [String]
973
+ attr_accessor :state
974
+
975
+ def initialize(**args)
976
+ update!(**args)
977
+ end
978
+
979
+ # Update properties of this object
980
+ def update!(**args)
981
+ @request_time = args[:request_time] if args.key?(:request_time)
982
+ @resources_found = args[:resources_found] if args.key?(:resources_found)
983
+ @resources_pending = args[:resources_pending] if args.key?(:resources_pending)
984
+ @resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
985
+ @start_time = args[:start_time] if args.key?(:start_time)
986
+ @state = args[:state] if args.key?(:state)
987
+ end
988
+ end
989
+
990
+ # The proposed changes to OrgPolicy.
991
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
992
+ include Google::Apis::Core::Hashable
993
+
994
+ # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
995
+ # CustomConstraints with the same name will be overridden in the simulation.
996
+ # That is, violations will be determined as if all custom constraints in the
997
+ # overlay were instantiated.
998
+ # Corresponds to the JSON property `customConstraints`
999
+ # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay>]
1000
+ attr_accessor :custom_constraints
1001
+
1002
+ # The OrgPolicy changes to preview violations for. Any existing OrgPolicies with
1003
+ # the same name will be overridden in the simulation. That is, violations will
1004
+ # be determined as if all policies in the overlay were created or updated.
1005
+ # Corresponds to the JSON property `policies`
1006
+ # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay>]
1007
+ attr_accessor :policies
1008
+
1009
+ def initialize(**args)
1010
+ update!(**args)
1011
+ end
1012
+
1013
+ # Update properties of this object
1014
+ def update!(**args)
1015
+ @custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
1016
+ @policies = args[:policies] if args.key?(:policies)
1017
+ end
1018
+ end
1019
+
1020
+ # A change to an OrgPolicy custom constraint.
1021
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
1022
+ include Google::Apis::Core::Hashable
1023
+
1024
+ # A custom constraint defined by customers which can *only* be applied to the
1025
+ # given resource types and organization. By creating a custom constraint,
1026
+ # customers can apply policies of this custom constraint. *Creating a custom
1027
+ # constraint itself does NOT apply any policy enforcement*.
1028
+ # Corresponds to the JSON property `customConstraint`
1029
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint]
1030
+ attr_accessor :custom_constraint
1031
+
1032
+ # Resource the constraint is attached to. Example: "organization/987654"
1033
+ # Corresponds to the JSON property `customConstraintParent`
1034
+ # @return [String]
1035
+ attr_accessor :custom_constraint_parent
1036
+
1037
+ def initialize(**args)
1038
+ update!(**args)
1039
+ end
1040
+
1041
+ # Update properties of this object
1042
+ def update!(**args)
1043
+ @custom_constraint = args[:custom_constraint] if args.key?(:custom_constraint)
1044
+ @custom_constraint_parent = args[:custom_constraint_parent] if args.key?(:custom_constraint_parent)
1045
+ end
1046
+ end
1047
+
1048
+ # A change to an OrgPolicy.
1049
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay
1050
+ include Google::Apis::Core::Hashable
1051
+
1052
+ # Defines an organization policy which is used to specify constraints for
1053
+ # configurations of Google Cloud resources.
1054
+ # Corresponds to the JSON property `policy`
1055
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy]
1056
+ attr_accessor :policy
1057
+
1058
+ # The parent of the policy we are attaching to. Example: "projects/123456"
1059
+ # Corresponds to the JSON property `policyParent`
1060
+ # @return [String]
1061
+ attr_accessor :policy_parent
1062
+
1063
+ def initialize(**args)
1064
+ update!(**args)
1065
+ end
1066
+
1067
+ # Update properties of this object
1068
+ def update!(**args)
1069
+ @policy = args[:policy] if args.key?(:policy)
1070
+ @policy_parent = args[:policy_parent] if args.key?(:policy_parent)
1071
+ end
1072
+ end
1073
+
1074
+ # OrgPolicyViolationsPreview is a resource providing a preview of the violations
1075
+ # that will exist if an OrgPolicy change is made. The list of violations are
1076
+ # modeled as child resources and retrieved via a ListOrgPolicyViolations API
1077
+ # call. There are potentially more OrgPolicyViolations than could fit in an
1078
+ # embedded field. Thus, the use of a child resource instead of a field.
1079
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
1080
+ include Google::Apis::Core::Hashable
1081
+
1082
+ # Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
1083
+ # following format: `organizations/`organization`/locations/`location`/
1084
+ # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
1085
+ # organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/
1086
+ # 506a5f7f`
1087
+ # Corresponds to the JSON property `name`
1088
+ # @return [String]
1089
+ attr_accessor :name
1090
+
1091
+ # The proposed changes to OrgPolicy.
1092
+ # Corresponds to the JSON property `overlay`
1093
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay]
1094
+ attr_accessor :overlay
1095
+
1096
+ # A summary of the state of all resources scanned for compliance with the
1097
+ # changed OrgPolicy.
1098
+ # Corresponds to the JSON property `resourceCounts`
1099
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts]
1100
+ attr_accessor :resource_counts
1101
+
1102
+ # Output only. The state of the `OrgPolicyViolationsPreview`.
1103
+ # Corresponds to the JSON property `state`
1104
+ # @return [String]
1105
+ attr_accessor :state
1106
+
1107
+ # Output only. The number of OrgPolicyViolations in this `
1108
+ # OrgPolicyViolationsPreview`. This count may differ from `resource_summary.
1109
+ # noncompliant_count` because each OrgPolicyViolation is specific to a resource *
1110
+ # *and** constraint. If there are multiple constraints being evaluated (i.e.
1111
+ # multiple policies in the overlay), a single resource may violate multiple
1112
+ # constraints.
1113
+ # Corresponds to the JSON property `violationsCount`
1114
+ # @return [Fixnum]
1115
+ attr_accessor :violations_count
1116
+
1117
+ def initialize(**args)
1118
+ update!(**args)
1119
+ end
1120
+
1121
+ # Update properties of this object
1122
+ def update!(**args)
1123
+ @name = args[:name] if args.key?(:name)
1124
+ @overlay = args[:overlay] if args.key?(:overlay)
1125
+ @resource_counts = args[:resource_counts] if args.key?(:resource_counts)
1126
+ @state = args[:state] if args.key?(:state)
1127
+ @violations_count = args[:violations_count] if args.key?(:violations_count)
1128
+ end
1129
+ end
1130
+
1131
+ # A summary of the state of all resources scanned for compliance with the
1132
+ # changed OrgPolicy.
1133
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
1134
+ include Google::Apis::Core::Hashable
1135
+
1136
+ # Number of scanned resources with zero violations.
1137
+ # Corresponds to the JSON property `compliant`
1138
+ # @return [Fixnum]
1139
+ attr_accessor :compliant
1140
+
1141
+ # Number of resources that returned an error when scanned.
1142
+ # Corresponds to the JSON property `errors`
1143
+ # @return [Fixnum]
1144
+ attr_accessor :errors
1145
+
1146
+ # Number of scanned resources with at least one violation.
1147
+ # Corresponds to the JSON property `noncompliant`
1148
+ # @return [Fixnum]
1149
+ attr_accessor :noncompliant
1150
+
1151
+ # Number of resources checked for compliance. Must equal: unenforced +
1152
+ # noncompliant + compliant + error
1153
+ # Corresponds to the JSON property `scanned`
1154
+ # @return [Fixnum]
1155
+ attr_accessor :scanned
1156
+
1157
+ # Number of resources where the constraint was not enforced, i.e. the Policy set
1158
+ # `enforced: false` for that resource.
1159
+ # Corresponds to the JSON property `unenforced`
1160
+ # @return [Fixnum]
1161
+ attr_accessor :unenforced
1162
+
1163
+ def initialize(**args)
1164
+ update!(**args)
1165
+ end
1166
+
1167
+ # Update properties of this object
1168
+ def update!(**args)
1169
+ @compliant = args[:compliant] if args.key?(:compliant)
1170
+ @errors = args[:errors] if args.key?(:errors)
1171
+ @noncompliant = args[:noncompliant] if args.key?(:noncompliant)
1172
+ @scanned = args[:scanned] if args.key?(:scanned)
1173
+ @unenforced = args[:unenforced] if args.key?(:unenforced)
1174
+ end
1175
+ end
1176
+
1177
+ # GenerateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
1178
+ # OrgPolicyViolationsPreview generations operation.
1179
+ class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
1180
+ include Google::Apis::Core::Hashable
1181
+
1182
+ # Time when the request was received.
1183
+ # Corresponds to the JSON property `requestTime`
1184
+ # @return [String]
1185
+ attr_accessor :request_time
1186
+
1187
+ # Total number of resources that need scanning. Should equal resource_scanned +
1188
+ # resources_pending
1189
+ # Corresponds to the JSON property `resourcesFound`
1190
+ # @return [Fixnum]
1191
+ attr_accessor :resources_found
1192
+
1193
+ # Number of resources still to scan.
1194
+ # Corresponds to the JSON property `resourcesPending`
1195
+ # @return [Fixnum]
1196
+ attr_accessor :resources_pending
1197
+
1198
+ # Number of resources already scanned.
1199
+ # Corresponds to the JSON property `resourcesScanned`
1200
+ # @return [Fixnum]
1201
+ attr_accessor :resources_scanned
1202
+
1203
+ # Time when the request started processing, i.e. when the state was set to
1204
+ # RUNNING.
1205
+ # Corresponds to the JSON property `startTime`
1206
+ # @return [String]
1207
+ attr_accessor :start_time
1208
+
1209
+ # The current state of the operation.
1210
+ # Corresponds to the JSON property `state`
1211
+ # @return [String]
1212
+ attr_accessor :state
1213
+
1214
+ def initialize(**args)
1215
+ update!(**args)
1216
+ end
1217
+
1218
+ # Update properties of this object
1219
+ def update!(**args)
1220
+ @request_time = args[:request_time] if args.key?(:request_time)
1221
+ @resources_found = args[:resources_found] if args.key?(:resources_found)
1222
+ @resources_pending = args[:resources_pending] if args.key?(:resources_pending)
1223
+ @resources_scanned = args[:resources_scanned] if args.key?(:resources_scanned)
1224
+ @start_time = args[:start_time] if args.key?(:start_time)
1225
+ @state = args[:state] if args.key?(:state)
1226
+ end
1227
+ end
1228
+
1229
+ # The proposed changes to OrgPolicy.
1230
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
1231
+ include Google::Apis::Core::Hashable
1232
+
1233
+ # The OrgPolicy CustomConstraint changes to preview violations for. Any existing
1234
+ # CustomConstraints with the same name will be overridden in the simulation.
1235
+ # That is, violations will be determined as if all custom constraints in the
1236
+ # overlay were instantiated.
1237
+ # Corresponds to the JSON property `customConstraints`
1238
+ # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay>]
1239
+ attr_accessor :custom_constraints
1240
+
1241
+ # The OrgPolicy changes to preview violations for. Any existing OrgPolicies with
1242
+ # the same name will be overridden in the simulation. That is, violations will
1243
+ # be determined as if all policies in the overlay were created or updated.
1244
+ # Corresponds to the JSON property `policies`
1245
+ # @return [Array<Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay>]
1246
+ attr_accessor :policies
1247
+
1248
+ def initialize(**args)
1249
+ update!(**args)
1250
+ end
1251
+
1252
+ # Update properties of this object
1253
+ def update!(**args)
1254
+ @custom_constraints = args[:custom_constraints] if args.key?(:custom_constraints)
1255
+ @policies = args[:policies] if args.key?(:policies)
1256
+ end
1257
+ end
1258
+
1259
+ # A change to an OrgPolicy custom constraint.
1260
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay
1261
+ include Google::Apis::Core::Hashable
1262
+
1263
+ # A custom constraint defined by customers which can *only* be applied to the
1264
+ # given resource types and organization. By creating a custom constraint,
1265
+ # customers can apply policies of this custom constraint. *Creating a custom
1266
+ # constraint itself does NOT apply any policy enforcement*.
1267
+ # Corresponds to the JSON property `customConstraint`
1268
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint]
1269
+ attr_accessor :custom_constraint
1270
+
1271
+ # Resource the constraint is attached to. Example: "organization/987654"
1272
+ # Corresponds to the JSON property `customConstraintParent`
1273
+ # @return [String]
1274
+ attr_accessor :custom_constraint_parent
1275
+
1276
+ def initialize(**args)
1277
+ update!(**args)
1278
+ end
1279
+
1280
+ # Update properties of this object
1281
+ def update!(**args)
1282
+ @custom_constraint = args[:custom_constraint] if args.key?(:custom_constraint)
1283
+ @custom_constraint_parent = args[:custom_constraint_parent] if args.key?(:custom_constraint_parent)
1284
+ end
1285
+ end
1286
+
1287
+ # A change to an OrgPolicy.
1288
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay
1289
+ include Google::Apis::Core::Hashable
1290
+
1291
+ # Defines an organization policy which is used to specify constraints for
1292
+ # configurations of Google Cloud resources.
1293
+ # Corresponds to the JSON property `policy`
1294
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy]
1295
+ attr_accessor :policy
1296
+
1297
+ # The parent of the policy we are attaching to. Example: "projects/123456"
1298
+ # Corresponds to the JSON property `policyParent`
1299
+ # @return [String]
1300
+ attr_accessor :policy_parent
1301
+
1302
+ def initialize(**args)
1303
+ update!(**args)
1304
+ end
1305
+
1306
+ # Update properties of this object
1307
+ def update!(**args)
1308
+ @policy = args[:policy] if args.key?(:policy)
1309
+ @policy_parent = args[:policy_parent] if args.key?(:policy_parent)
1310
+ end
1311
+ end
1312
+
1313
+ # OrgPolicyViolationsPreview is a resource providing a preview of the violations
1314
+ # that will exist if an OrgPolicy change is made. The list of violations are
1315
+ # modeled as child resources and retrieved via a ListOrgPolicyViolations API
1316
+ # call. There are potentially more OrgPolicyViolations than could fit in an
1317
+ # embedded field. Thus, the use of a child resource instead of a field.
1318
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
1319
+ include Google::Apis::Core::Hashable
1320
+
1321
+ # Output only. The resource name of the `OrgPolicyViolationsPreview`. It has the
1322
+ # following format: `organizations/`organization`/locations/`location`/
1323
+ # orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`` Example: `
1324
+ # organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/
1325
+ # 506a5f7f`
1326
+ # Corresponds to the JSON property `name`
1327
+ # @return [String]
1328
+ attr_accessor :name
1329
+
1330
+ # The proposed changes to OrgPolicy.
1331
+ # Corresponds to the JSON property `overlay`
1332
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay]
1333
+ attr_accessor :overlay
1334
+
1335
+ # A summary of the state of all resources scanned for compliance with the
1336
+ # changed OrgPolicy.
1337
+ # Corresponds to the JSON property `resourceCounts`
1338
+ # @return [Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts]
1339
+ attr_accessor :resource_counts
1340
+
1341
+ # Output only. The state of the `OrgPolicyViolationsPreview`.
1342
+ # Corresponds to the JSON property `state`
1343
+ # @return [String]
1344
+ attr_accessor :state
1345
+
1346
+ # Output only. The number of OrgPolicyViolations in this `
1347
+ # OrgPolicyViolationsPreview`. This count may differ from `resource_summary.
1348
+ # noncompliant_count` because each OrgPolicyViolation is specific to a resource *
1349
+ # *and** constraint. If there are multiple constraints being evaluated (i.e.
1350
+ # multiple policies in the overlay), a single resource may violate multiple
1351
+ # constraints.
1352
+ # Corresponds to the JSON property `violationsCount`
1353
+ # @return [Fixnum]
1354
+ attr_accessor :violations_count
1355
+
1356
+ def initialize(**args)
1357
+ update!(**args)
1358
+ end
1359
+
1360
+ # Update properties of this object
1361
+ def update!(**args)
1362
+ @name = args[:name] if args.key?(:name)
1363
+ @overlay = args[:overlay] if args.key?(:overlay)
1364
+ @resource_counts = args[:resource_counts] if args.key?(:resource_counts)
1365
+ @state = args[:state] if args.key?(:state)
1366
+ @violations_count = args[:violations_count] if args.key?(:violations_count)
1367
+ end
1368
+ end
1369
+
1370
+ # A summary of the state of all resources scanned for compliance with the
1371
+ # changed OrgPolicy.
1372
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
1373
+ include Google::Apis::Core::Hashable
1374
+
1375
+ # Number of scanned resources with zero violations.
1376
+ # Corresponds to the JSON property `compliant`
1377
+ # @return [Fixnum]
1378
+ attr_accessor :compliant
1379
+
1380
+ # Number of resources that returned an error when scanned.
1381
+ # Corresponds to the JSON property `errors`
1382
+ # @return [Fixnum]
1383
+ attr_accessor :errors
1384
+
1385
+ # Number of scanned resources with at least one violation.
1386
+ # Corresponds to the JSON property `noncompliant`
1387
+ # @return [Fixnum]
1388
+ attr_accessor :noncompliant
1389
+
1390
+ # Number of resources checked for compliance. Must equal: unenforced +
1391
+ # noncompliant + compliant + error
1392
+ # Corresponds to the JSON property `scanned`
1393
+ # @return [Fixnum]
1394
+ attr_accessor :scanned
1395
+
1396
+ # Number of resources where the constraint was not enforced, i.e. the Policy set
1397
+ # `enforced: false` for that resource.
1398
+ # Corresponds to the JSON property `unenforced`
1399
+ # @return [Fixnum]
1400
+ attr_accessor :unenforced
1401
+
1402
+ def initialize(**args)
1403
+ update!(**args)
1404
+ end
1405
+
1406
+ # Update properties of this object
1407
+ def update!(**args)
1408
+ @compliant = args[:compliant] if args.key?(:compliant)
1409
+ @errors = args[:errors] if args.key?(:errors)
1410
+ @noncompliant = args[:noncompliant] if args.key?(:noncompliant)
1411
+ @scanned = args[:scanned] if args.key?(:scanned)
1412
+ @unenforced = args[:unenforced] if args.key?(:unenforced)
1413
+ end
1414
+ end
1415
+
615
1416
  # Specifies the audit configuration for a service. The configuration determines
616
1417
  # which permission types are logged, and what identities, if any, are exempted
617
1418
  # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
@@ -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.24.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230304"
25
+ REVISION = "20230723"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,42 @@ module Google
22
22
  module Apis
23
23
  module PolicysimulatorV1
24
24
 
25
+ class GoogleCloudOrgpolicyV2AlternatePolicySpec
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleCloudOrgpolicyV2CustomConstraint
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudOrgpolicyV2Policy
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudOrgpolicyV2PolicySpec
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
25
61
  class GoogleCloudPolicysimulatorV1AccessStateDiff
26
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
63
 
@@ -100,6 +136,78 @@ module Google
100
136
  include Google::Apis::Core::JsonObjectSupport
101
137
  end
102
138
 
139
+ class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
103
211
  class GoogleIamV1AuditConfig
104
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
213
 
@@ -154,6 +262,75 @@ module Google
154
262
  include Google::Apis::Core::JsonObjectSupport
155
263
  end
156
264
 
265
+ class GoogleCloudOrgpolicyV2AlternatePolicySpec
266
+ # @private
267
+ class Representation < Google::Apis::Core::JsonRepresentation
268
+ property :launch, as: 'launch'
269
+ property :spec, as: 'spec', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec::Representation
270
+
271
+ end
272
+ end
273
+
274
+ class GoogleCloudOrgpolicyV2CustomConstraint
275
+ # @private
276
+ class Representation < Google::Apis::Core::JsonRepresentation
277
+ property :action_type, as: 'actionType'
278
+ property :condition, as: 'condition'
279
+ property :description, as: 'description'
280
+ property :display_name, as: 'displayName'
281
+ collection :method_types, as: 'methodTypes'
282
+ property :name, as: 'name'
283
+ collection :resource_types, as: 'resourceTypes'
284
+ property :update_time, as: 'updateTime'
285
+ end
286
+ end
287
+
288
+ class GoogleCloudOrgpolicyV2Policy
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ property :alternate, as: 'alternate', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2AlternatePolicySpec, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2AlternatePolicySpec::Representation
292
+
293
+ property :dry_run_spec, as: 'dryRunSpec', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec::Representation
294
+
295
+ property :name, as: 'name'
296
+ property :spec, as: 'spec', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpec::Representation
297
+
298
+ end
299
+ end
300
+
301
+ class GoogleCloudOrgpolicyV2PolicySpec
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :etag, as: 'etag'
305
+ property :inherit_from_parent, as: 'inheritFromParent'
306
+ property :reset, as: 'reset'
307
+ collection :rules, as: 'rules', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpecPolicyRule, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpecPolicyRule::Representation
308
+
309
+ property :update_time, as: 'updateTime'
310
+ end
311
+ end
312
+
313
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ property :allow_all, as: 'allowAll'
317
+ property :condition, as: 'condition', class: Google::Apis::PolicysimulatorV1::GoogleTypeExpr, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeExpr::Representation
318
+
319
+ property :deny_all, as: 'denyAll'
320
+ property :enforce, as: 'enforce'
321
+ property :values, as: 'values', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues::Representation
322
+
323
+ end
324
+ end
325
+
326
+ class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
327
+ # @private
328
+ class Representation < Google::Apis::Core::JsonRepresentation
329
+ collection :allowed_values, as: 'allowedValues'
330
+ collection :denied_values, as: 'deniedValues'
331
+ end
332
+ end
333
+
157
334
  class GoogleCloudPolicysimulatorV1AccessStateDiff
158
335
  # @private
159
336
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -296,6 +473,134 @@ module Google
296
473
  end
297
474
  end
298
475
 
476
+ class GoogleCloudPolicysimulatorV1alphaGenerateOrgPolicyViolationsPreviewOperationMetadata
477
+ # @private
478
+ class Representation < Google::Apis::Core::JsonRepresentation
479
+ property :request_time, as: 'requestTime'
480
+ property :resources_found, as: 'resourcesFound'
481
+ property :resources_pending, as: 'resourcesPending'
482
+ property :resources_scanned, as: 'resourcesScanned'
483
+ property :start_time, as: 'startTime'
484
+ property :state, as: 'state'
485
+ end
486
+ end
487
+
488
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay
489
+ # @private
490
+ class Representation < Google::Apis::Core::JsonRepresentation
491
+ collection :custom_constraints, as: 'customConstraints', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay::Representation
492
+
493
+ collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay::Representation
494
+
495
+ end
496
+ end
497
+
498
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayCustomConstraintOverlay
499
+ # @private
500
+ class Representation < Google::Apis::Core::JsonRepresentation
501
+ property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint::Representation
502
+
503
+ property :custom_constraint_parent, as: 'customConstraintParent'
504
+ end
505
+ end
506
+
507
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlayPolicyOverlay
508
+ # @private
509
+ class Representation < Google::Apis::Core::JsonRepresentation
510
+ property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy::Representation
511
+
512
+ property :policy_parent, as: 'policyParent'
513
+ end
514
+ end
515
+
516
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreview
517
+ # @private
518
+ class Representation < Google::Apis::Core::JsonRepresentation
519
+ property :name, as: 'name'
520
+ property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyOverlay::Representation
521
+
522
+ property :resource_counts, as: 'resourceCounts', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts::Representation
523
+
524
+ property :state, as: 'state'
525
+ property :violations_count, as: 'violationsCount'
526
+ end
527
+ end
528
+
529
+ class GoogleCloudPolicysimulatorV1alphaOrgPolicyViolationsPreviewResourceCounts
530
+ # @private
531
+ class Representation < Google::Apis::Core::JsonRepresentation
532
+ property :compliant, as: 'compliant'
533
+ property :errors, as: 'errors'
534
+ property :noncompliant, as: 'noncompliant'
535
+ property :scanned, as: 'scanned'
536
+ property :unenforced, as: 'unenforced'
537
+ end
538
+ end
539
+
540
+ class GoogleCloudPolicysimulatorV1betaGenerateOrgPolicyViolationsPreviewOperationMetadata
541
+ # @private
542
+ class Representation < Google::Apis::Core::JsonRepresentation
543
+ property :request_time, as: 'requestTime'
544
+ property :resources_found, as: 'resourcesFound'
545
+ property :resources_pending, as: 'resourcesPending'
546
+ property :resources_scanned, as: 'resourcesScanned'
547
+ property :start_time, as: 'startTime'
548
+ property :state, as: 'state'
549
+ end
550
+ end
551
+
552
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay
553
+ # @private
554
+ class Representation < Google::Apis::Core::JsonRepresentation
555
+ collection :custom_constraints, as: 'customConstraints', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay::Representation
556
+
557
+ collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay::Representation
558
+
559
+ end
560
+ end
561
+
562
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayCustomConstraintOverlay
563
+ # @private
564
+ class Representation < Google::Apis::Core::JsonRepresentation
565
+ property :custom_constraint, as: 'customConstraint', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2CustomConstraint::Representation
566
+
567
+ property :custom_constraint_parent, as: 'customConstraintParent'
568
+ end
569
+ end
570
+
571
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyOverlayPolicyOverlay
572
+ # @private
573
+ class Representation < Google::Apis::Core::JsonRepresentation
574
+ property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudOrgpolicyV2Policy::Representation
575
+
576
+ property :policy_parent, as: 'policyParent'
577
+ end
578
+ end
579
+
580
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
581
+ # @private
582
+ class Representation < Google::Apis::Core::JsonRepresentation
583
+ property :name, as: 'name'
584
+ property :overlay, as: 'overlay', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay::Representation
585
+
586
+ property :resource_counts, as: 'resourceCounts', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts::Representation
587
+
588
+ property :state, as: 'state'
589
+ property :violations_count, as: 'violationsCount'
590
+ end
591
+ end
592
+
593
+ class GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts
594
+ # @private
595
+ class Representation < Google::Apis::Core::JsonRepresentation
596
+ property :compliant, as: 'compliant'
597
+ property :errors, as: 'errors'
598
+ property :noncompliant, as: 'noncompliant'
599
+ property :scanned, as: 'scanned'
600
+ property :unenforced, as: 'unenforced'
601
+ end
602
+ end
603
+
299
604
  class GoogleIamV1AuditConfig
300
605
  # @private
301
606
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -55,37 +55,6 @@ module Google
55
55
  @batch_path = 'batch'
56
56
  end
57
57
 
58
- # Gets the latest state of a long-running operation. Clients can use this method
59
- # to poll the operation result at intervals as recommended by the API service.
60
- # @param [String] name
61
- # The name of the operation resource.
62
- # @param [String] fields
63
- # Selector specifying which fields to include in a partial response.
64
- # @param [String] quota_user
65
- # Available to use for quota purposes for server-side applications. Can be any
66
- # arbitrary string assigned to a user, but should not exceed 40 characters.
67
- # @param [Google::Apis::RequestOptions] options
68
- # Request-specific options
69
- #
70
- # @yield [result, err] Result & error if block supplied
71
- # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
72
- # @yieldparam err [StandardError] error object if request failed
73
- #
74
- # @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
75
- #
76
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
- # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def get_folder_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
80
- command = make_simple_command(:get, 'v1/{+name}', options)
81
- command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
82
- command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
83
- command.params['name'] = name unless name.nil?
84
- command.query['fields'] = fields unless fields.nil?
85
- command.query['quotaUser'] = quota_user unless quota_user.nil?
86
- execute_or_queue_command(command, &block)
87
- end
88
-
89
58
  # Creates and starts a Replay using the given ReplayConfig.
90
59
  # @param [String] parent
91
60
  # Required. The parent resource where this Replay will be created. This resource
@@ -340,37 +309,6 @@ module Google
340
309
  execute_or_queue_command(command, &block)
341
310
  end
342
311
 
343
- # Gets the latest state of a long-running operation. Clients can use this method
344
- # to poll the operation result at intervals as recommended by the API service.
345
- # @param [String] name
346
- # The name of the operation resource.
347
- # @param [String] fields
348
- # Selector specifying which fields to include in a partial response.
349
- # @param [String] quota_user
350
- # Available to use for quota purposes for server-side applications. Can be any
351
- # arbitrary string assigned to a user, but should not exceed 40 characters.
352
- # @param [Google::Apis::RequestOptions] options
353
- # Request-specific options
354
- #
355
- # @yield [result, err] Result & error if block supplied
356
- # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
357
- # @yieldparam err [StandardError] error object if request failed
358
- #
359
- # @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
360
- #
361
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
- # @raise [Google::Apis::AuthorizationError] Authorization is required
364
- def get_organization_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
365
- command = make_simple_command(:get, 'v1/{+name}', options)
366
- command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
367
- command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
368
- command.params['name'] = name unless name.nil?
369
- command.query['fields'] = fields unless fields.nil?
370
- command.query['quotaUser'] = quota_user unless quota_user.nil?
371
- execute_or_queue_command(command, &block)
372
- end
373
-
374
312
  # Creates and starts a Replay using the given ReplayConfig.
375
313
  # @param [String] parent
376
314
  # Required. The parent resource where this Replay will be created. This resource
@@ -554,37 +492,6 @@ module Google
554
492
  execute_or_queue_command(command, &block)
555
493
  end
556
494
 
557
- # Gets the latest state of a long-running operation. Clients can use this method
558
- # to poll the operation result at intervals as recommended by the API service.
559
- # @param [String] name
560
- # The name of the operation resource.
561
- # @param [String] fields
562
- # Selector specifying which fields to include in a partial response.
563
- # @param [String] quota_user
564
- # Available to use for quota purposes for server-side applications. Can be any
565
- # arbitrary string assigned to a user, but should not exceed 40 characters.
566
- # @param [Google::Apis::RequestOptions] options
567
- # Request-specific options
568
- #
569
- # @yield [result, err] Result & error if block supplied
570
- # @yieldparam result [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation] parsed result object
571
- # @yieldparam err [StandardError] error object if request failed
572
- #
573
- # @return [Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation]
574
- #
575
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
576
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
577
- # @raise [Google::Apis::AuthorizationError] Authorization is required
578
- def get_project_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
579
- command = make_simple_command(:get, 'v1/{+name}', options)
580
- command.response_representation = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
581
- command.response_class = Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation
582
- command.params['name'] = name unless name.nil?
583
- command.query['fields'] = fields unless fields.nil?
584
- command.query['quotaUser'] = quota_user unless quota_user.nil?
585
- execute_or_queue_command(command, &block)
586
- end
587
-
588
495
  # Creates and starts a Replay using the given ReplayConfig.
589
496
  # @param [String] parent
590
497
  # 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.24.0
4
+ version: 0.26.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: 2023-03-12 00:00:00.000000000 Z
11
+ date: 2023-08-06 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.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1/v0.26.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: []