google-apis-policysimulator_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module PolicysimulatorV1
18
+ # Version of the google-apis-policysimulator_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.2.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20210330"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,454 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module PolicysimulatorV1
24
+
25
+ class GoogleCloudPolicysimulatorV1AccessStateDiff
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleCloudPolicysimulatorV1AccessTuple
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudPolicysimulatorV1BindingExplanation
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudPolicysimulatorV1ExplainedAccess
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudPolicysimulatorV1ExplainedPolicy
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleCloudPolicysimulatorV1ListReplayResultsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleCloudPolicysimulatorV1Replay
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleCloudPolicysimulatorV1ReplayConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleCloudPolicysimulatorV1ReplayDiff
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudPolicysimulatorV1ReplayOperationMetadata
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudPolicysimulatorV1ReplayResult
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleCloudPolicysimulatorV1ReplayResultsSummary
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudPolicysimulatorV1beta1Replay
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudPolicysimulatorV1beta1ReplayConfig
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleIamV1AuditConfig
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleIamV1AuditLogConfig
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleIamV1Binding
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class GoogleIamV1Policy
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class GoogleLongrunningListOperationsResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class GoogleLongrunningOperation
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class GoogleRpcStatus
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class GoogleTypeDate
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class GoogleTypeExpr
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class GoogleCloudPolicysimulatorV1AccessStateDiff
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :access_change, as: 'accessChange'
185
+ property :baseline, as: 'baseline', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ExplainedAccess, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ExplainedAccess::Representation
186
+
187
+ property :simulated, as: 'simulated', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ExplainedAccess, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ExplainedAccess::Representation
188
+
189
+ end
190
+ end
191
+
192
+ class GoogleCloudPolicysimulatorV1AccessTuple
193
+ # @private
194
+ class Representation < Google::Apis::Core::JsonRepresentation
195
+ property :full_resource_name, as: 'fullResourceName'
196
+ property :permission, as: 'permission'
197
+ property :principal, as: 'principal'
198
+ end
199
+ end
200
+
201
+ class GoogleCloudPolicysimulatorV1BindingExplanation
202
+ # @private
203
+ class Representation < Google::Apis::Core::JsonRepresentation
204
+ property :access, as: 'access'
205
+ property :condition, as: 'condition', class: Google::Apis::PolicysimulatorV1::GoogleTypeExpr, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeExpr::Representation
206
+
207
+ hash :memberships, as: 'memberships', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership::Representation
208
+
209
+ property :relevance, as: 'relevance'
210
+ property :role, as: 'role'
211
+ property :role_permission, as: 'rolePermission'
212
+ property :role_permission_relevance, as: 'rolePermissionRelevance'
213
+ end
214
+ end
215
+
216
+ class GoogleCloudPolicysimulatorV1BindingExplanationAnnotatedMembership
217
+ # @private
218
+ class Representation < Google::Apis::Core::JsonRepresentation
219
+ property :membership, as: 'membership'
220
+ property :relevance, as: 'relevance'
221
+ end
222
+ end
223
+
224
+ class GoogleCloudPolicysimulatorV1ExplainedAccess
225
+ # @private
226
+ class Representation < Google::Apis::Core::JsonRepresentation
227
+ property :access_state, as: 'accessState'
228
+ collection :errors, as: 'errors', class: Google::Apis::PolicysimulatorV1::GoogleRpcStatus, decorator: Google::Apis::PolicysimulatorV1::GoogleRpcStatus::Representation
229
+
230
+ collection :policies, as: 'policies', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ExplainedPolicy, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ExplainedPolicy::Representation
231
+
232
+ end
233
+ end
234
+
235
+ class GoogleCloudPolicysimulatorV1ExplainedPolicy
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :access, as: 'access'
239
+ collection :binding_explanations, as: 'bindingExplanations', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1BindingExplanation, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1BindingExplanation::Representation
240
+
241
+ property :full_resource_name, as: 'fullResourceName'
242
+ property :policy, as: 'policy', class: Google::Apis::PolicysimulatorV1::GoogleIamV1Policy, decorator: Google::Apis::PolicysimulatorV1::GoogleIamV1Policy::Representation
243
+
244
+ property :relevance, as: 'relevance'
245
+ end
246
+ end
247
+
248
+ class GoogleCloudPolicysimulatorV1ListReplayResultsResponse
249
+ # @private
250
+ class Representation < Google::Apis::Core::JsonRepresentation
251
+ property :next_page_token, as: 'nextPageToken'
252
+ collection :replay_results, as: 'replayResults', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayResult, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayResult::Representation
253
+
254
+ end
255
+ end
256
+
257
+ class GoogleCloudPolicysimulatorV1Replay
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :config, as: 'config', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayConfig, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayConfig::Representation
261
+
262
+ property :name, as: 'name'
263
+ property :results_summary, as: 'resultsSummary', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayResultsSummary, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayResultsSummary::Representation
264
+
265
+ property :state, as: 'state'
266
+ end
267
+ end
268
+
269
+ class GoogleCloudPolicysimulatorV1ReplayConfig
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :log_source, as: 'logSource'
273
+ hash :policy_overlay, as: 'policyOverlay', class: Google::Apis::PolicysimulatorV1::GoogleIamV1Policy, decorator: Google::Apis::PolicysimulatorV1::GoogleIamV1Policy::Representation
274
+
275
+ end
276
+ end
277
+
278
+ class GoogleCloudPolicysimulatorV1ReplayDiff
279
+ # @private
280
+ class Representation < Google::Apis::Core::JsonRepresentation
281
+ property :access_diff, as: 'accessDiff', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1AccessStateDiff, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1AccessStateDiff::Representation
282
+
283
+ end
284
+ end
285
+
286
+ class GoogleCloudPolicysimulatorV1ReplayOperationMetadata
287
+ # @private
288
+ class Representation < Google::Apis::Core::JsonRepresentation
289
+ property :start_time, as: 'startTime'
290
+ end
291
+ end
292
+
293
+ class GoogleCloudPolicysimulatorV1ReplayResult
294
+ # @private
295
+ class Representation < Google::Apis::Core::JsonRepresentation
296
+ property :access_tuple, as: 'accessTuple', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1AccessTuple, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1AccessTuple::Representation
297
+
298
+ property :diff, as: 'diff', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayDiff, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayDiff::Representation
299
+
300
+ property :error, as: 'error', class: Google::Apis::PolicysimulatorV1::GoogleRpcStatus, decorator: Google::Apis::PolicysimulatorV1::GoogleRpcStatus::Representation
301
+
302
+ property :last_seen_date, as: 'lastSeenDate', class: Google::Apis::PolicysimulatorV1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeDate::Representation
303
+
304
+ property :name, as: 'name'
305
+ property :parent, as: 'parent'
306
+ end
307
+ end
308
+
309
+ class GoogleCloudPolicysimulatorV1ReplayResultsSummary
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :difference_count, as: 'differenceCount'
313
+ property :error_count, as: 'errorCount'
314
+ property :log_count, as: 'logCount'
315
+ property :newest_date, as: 'newestDate', class: Google::Apis::PolicysimulatorV1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeDate::Representation
316
+
317
+ property :oldest_date, as: 'oldestDate', class: Google::Apis::PolicysimulatorV1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeDate::Representation
318
+
319
+ property :unchanged_count, as: 'unchangedCount'
320
+ end
321
+ end
322
+
323
+ class GoogleCloudPolicysimulatorV1beta1Replay
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :config, as: 'config', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayConfig, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayConfig::Representation
327
+
328
+ property :name, as: 'name'
329
+ property :results_summary, as: 'resultsSummary', class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary, decorator: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary::Representation
330
+
331
+ property :state, as: 'state'
332
+ end
333
+ end
334
+
335
+ class GoogleCloudPolicysimulatorV1beta1ReplayConfig
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ property :log_source, as: 'logSource'
339
+ hash :policy_overlay, as: 'policyOverlay', class: Google::Apis::PolicysimulatorV1::GoogleIamV1Policy, decorator: Google::Apis::PolicysimulatorV1::GoogleIamV1Policy::Representation
340
+
341
+ end
342
+ end
343
+
344
+ class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ property :start_time, as: 'startTime'
348
+ end
349
+ end
350
+
351
+ class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ property :difference_count, as: 'differenceCount'
355
+ property :error_count, as: 'errorCount'
356
+ property :log_count, as: 'logCount'
357
+ property :newest_date, as: 'newestDate', class: Google::Apis::PolicysimulatorV1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeDate::Representation
358
+
359
+ property :oldest_date, as: 'oldestDate', class: Google::Apis::PolicysimulatorV1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeDate::Representation
360
+
361
+ property :unchanged_count, as: 'unchangedCount'
362
+ end
363
+ end
364
+
365
+ class GoogleIamV1AuditConfig
366
+ # @private
367
+ class Representation < Google::Apis::Core::JsonRepresentation
368
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::PolicysimulatorV1::GoogleIamV1AuditLogConfig, decorator: Google::Apis::PolicysimulatorV1::GoogleIamV1AuditLogConfig::Representation
369
+
370
+ property :service, as: 'service'
371
+ end
372
+ end
373
+
374
+ class GoogleIamV1AuditLogConfig
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ collection :exempted_members, as: 'exemptedMembers'
378
+ property :log_type, as: 'logType'
379
+ end
380
+ end
381
+
382
+ class GoogleIamV1Binding
383
+ # @private
384
+ class Representation < Google::Apis::Core::JsonRepresentation
385
+ property :condition, as: 'condition', class: Google::Apis::PolicysimulatorV1::GoogleTypeExpr, decorator: Google::Apis::PolicysimulatorV1::GoogleTypeExpr::Representation
386
+
387
+ collection :members, as: 'members'
388
+ property :role, as: 'role'
389
+ end
390
+ end
391
+
392
+ class GoogleIamV1Policy
393
+ # @private
394
+ class Representation < Google::Apis::Core::JsonRepresentation
395
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::PolicysimulatorV1::GoogleIamV1AuditConfig, decorator: Google::Apis::PolicysimulatorV1::GoogleIamV1AuditConfig::Representation
396
+
397
+ collection :bindings, as: 'bindings', class: Google::Apis::PolicysimulatorV1::GoogleIamV1Binding, decorator: Google::Apis::PolicysimulatorV1::GoogleIamV1Binding::Representation
398
+
399
+ property :etag, :base64 => true, as: 'etag'
400
+ property :version, as: 'version'
401
+ end
402
+ end
403
+
404
+ class GoogleLongrunningListOperationsResponse
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ property :next_page_token, as: 'nextPageToken'
408
+ collection :operations, as: 'operations', class: Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation, decorator: Google::Apis::PolicysimulatorV1::GoogleLongrunningOperation::Representation
409
+
410
+ end
411
+ end
412
+
413
+ class GoogleLongrunningOperation
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ property :done, as: 'done'
417
+ property :error, as: 'error', class: Google::Apis::PolicysimulatorV1::GoogleRpcStatus, decorator: Google::Apis::PolicysimulatorV1::GoogleRpcStatus::Representation
418
+
419
+ hash :metadata, as: 'metadata'
420
+ property :name, as: 'name'
421
+ hash :response, as: 'response'
422
+ end
423
+ end
424
+
425
+ class GoogleRpcStatus
426
+ # @private
427
+ class Representation < Google::Apis::Core::JsonRepresentation
428
+ property :code, as: 'code'
429
+ collection :details, as: 'details'
430
+ property :message, as: 'message'
431
+ end
432
+ end
433
+
434
+ class GoogleTypeDate
435
+ # @private
436
+ class Representation < Google::Apis::Core::JsonRepresentation
437
+ property :day, as: 'day'
438
+ property :month, as: 'month'
439
+ property :year, as: 'year'
440
+ end
441
+ end
442
+
443
+ class GoogleTypeExpr
444
+ # @private
445
+ class Representation < Google::Apis::Core::JsonRepresentation
446
+ property :description, as: 'description'
447
+ property :expression, as: 'expression'
448
+ property :location, as: 'location'
449
+ property :title, as: 'title'
450
+ end
451
+ end
452
+ end
453
+ end
454
+ end