google-apis-policysimulator_v1alpha 0.7.0 → 0.8.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 +4 -0
- data/lib/google/apis/policysimulator_v1alpha/classes.rb +0 -158
- data/lib/google/apis/policysimulator_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/policysimulator_v1alpha/representations.rb +0 -66
- data/lib/google/apis/policysimulator_v1alpha/service.rb +4 -28
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d41c6c15b59f496f241e96ed30bc4cf0934f324c0a08d4a915dc22a48909cec
|
4
|
+
data.tar.gz: e3d8bb1c850d5405168a175a1b4a294327c3754fddbcb429e6b3a528046ab566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5629e39830db53441226b25e31928e931baee2f2abe37d40bf293bdca9ad406826d219281444e2a4f9438731fe0926891caa45f97ce7be7f2874138b21ddb005
|
7
|
+
data.tar.gz: 68db75e6eedb0cdab05ab971706cbf1e39710ba46aa8ee5ea816e051c9054f12859b1e6a56fb8112d40b5b9ba0750d497cb41da9ff9eb1ecc51258fbb245e773
|
data/CHANGELOG.md
CHANGED
@@ -180,164 +180,6 @@ module Google
|
|
180
180
|
end
|
181
181
|
end
|
182
182
|
|
183
|
-
# A resource describing a `Replay`, or simulation.
|
184
|
-
class GoogleCloudPolicysimulatorV1beta1Replay
|
185
|
-
include Google::Apis::Core::Hashable
|
186
|
-
|
187
|
-
# The configuration used for a Replay.
|
188
|
-
# Corresponds to the JSON property `config`
|
189
|
-
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1beta1ReplayConfig]
|
190
|
-
attr_accessor :config
|
191
|
-
|
192
|
-
# Output only. The resource name of the `Replay`, which has the following format:
|
193
|
-
# ``projects|folders|organizations`/`resource-id`/locations/global/replays/`
|
194
|
-
# replay-id``, where ``resource-id`` is the ID of the project, folder, or
|
195
|
-
# organization that owns the Replay. Example: `projects/my-example-project/
|
196
|
-
# locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
197
|
-
# Corresponds to the JSON property `name`
|
198
|
-
# @return [String]
|
199
|
-
attr_accessor :name
|
200
|
-
|
201
|
-
# Summary statistics about the replayed log entries.
|
202
|
-
# Corresponds to the JSON property `resultsSummary`
|
203
|
-
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary]
|
204
|
-
attr_accessor :results_summary
|
205
|
-
|
206
|
-
# Output only. The current state of the `Replay`.
|
207
|
-
# Corresponds to the JSON property `state`
|
208
|
-
# @return [String]
|
209
|
-
attr_accessor :state
|
210
|
-
|
211
|
-
def initialize(**args)
|
212
|
-
update!(**args)
|
213
|
-
end
|
214
|
-
|
215
|
-
# Update properties of this object
|
216
|
-
def update!(**args)
|
217
|
-
@config = args[:config] if args.key?(:config)
|
218
|
-
@name = args[:name] if args.key?(:name)
|
219
|
-
@results_summary = args[:results_summary] if args.key?(:results_summary)
|
220
|
-
@state = args[:state] if args.key?(:state)
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
# The configuration used for a Replay.
|
225
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayConfig
|
226
|
-
include Google::Apis::Core::Hashable
|
227
|
-
|
228
|
-
# The logs to use as input for the Replay.
|
229
|
-
# Corresponds to the JSON property `logSource`
|
230
|
-
# @return [String]
|
231
|
-
attr_accessor :log_source
|
232
|
-
|
233
|
-
# A mapping of the resources that you want to simulate policies for and the
|
234
|
-
# policies that you want to simulate. Keys are the full resource names for the
|
235
|
-
# resources. For example, `//cloudresourcemanager.googleapis.com/projects/my-
|
236
|
-
# project`. For examples of full resource names for Google Cloud services, see
|
237
|
-
# https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values
|
238
|
-
# are Policy objects representing the policies that you want to simulate.
|
239
|
-
# Replays automatically take into account any IAM policies inherited through the
|
240
|
-
# resource hierarchy, and any policies set on descendant resources. You do not
|
241
|
-
# need to include these policies in the policy overlay.
|
242
|
-
# Corresponds to the JSON property `policyOverlay`
|
243
|
-
# @return [Hash<String,Google::Apis::PolicysimulatorV1alpha::GoogleIamV1Policy>]
|
244
|
-
attr_accessor :policy_overlay
|
245
|
-
|
246
|
-
def initialize(**args)
|
247
|
-
update!(**args)
|
248
|
-
end
|
249
|
-
|
250
|
-
# Update properties of this object
|
251
|
-
def update!(**args)
|
252
|
-
@log_source = args[:log_source] if args.key?(:log_source)
|
253
|
-
@policy_overlay = args[:policy_overlay] if args.key?(:policy_overlay)
|
254
|
-
end
|
255
|
-
end
|
256
|
-
|
257
|
-
# Metadata about a Replay operation.
|
258
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
259
|
-
include Google::Apis::Core::Hashable
|
260
|
-
|
261
|
-
# Time when the request was received.
|
262
|
-
# Corresponds to the JSON property `startTime`
|
263
|
-
# @return [String]
|
264
|
-
attr_accessor :start_time
|
265
|
-
|
266
|
-
def initialize(**args)
|
267
|
-
update!(**args)
|
268
|
-
end
|
269
|
-
|
270
|
-
# Update properties of this object
|
271
|
-
def update!(**args)
|
272
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
273
|
-
end
|
274
|
-
end
|
275
|
-
|
276
|
-
# Summary statistics about the replayed log entries.
|
277
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
278
|
-
include Google::Apis::Core::Hashable
|
279
|
-
|
280
|
-
# The number of replayed log entries with a difference between baseline and
|
281
|
-
# simulated policies.
|
282
|
-
# Corresponds to the JSON property `differenceCount`
|
283
|
-
# @return [Fixnum]
|
284
|
-
attr_accessor :difference_count
|
285
|
-
|
286
|
-
# The number of log entries that could not be replayed.
|
287
|
-
# Corresponds to the JSON property `errorCount`
|
288
|
-
# @return [Fixnum]
|
289
|
-
attr_accessor :error_count
|
290
|
-
|
291
|
-
# The total number of log entries replayed.
|
292
|
-
# Corresponds to the JSON property `logCount`
|
293
|
-
# @return [Fixnum]
|
294
|
-
attr_accessor :log_count
|
295
|
-
|
296
|
-
# Represents a whole or partial calendar date, such as a birthday. The time of
|
297
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
298
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
299
|
-
# following: * A full date, with non-zero year, month, and day values. * A month
|
300
|
-
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
301
|
-
# with a zero month and a zero day. * A year and month, with a zero day (for
|
302
|
-
# example, a credit card expiration date). Related types: * google.type.
|
303
|
-
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
304
|
-
# Corresponds to the JSON property `newestDate`
|
305
|
-
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleTypeDate]
|
306
|
-
attr_accessor :newest_date
|
307
|
-
|
308
|
-
# Represents a whole or partial calendar date, such as a birthday. The time of
|
309
|
-
# day and time zone are either specified elsewhere or are insignificant. The
|
310
|
-
# date is relative to the Gregorian Calendar. This can represent one of the
|
311
|
-
# following: * A full date, with non-zero year, month, and day values. * A month
|
312
|
-
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
313
|
-
# with a zero month and a zero day. * A year and month, with a zero day (for
|
314
|
-
# example, a credit card expiration date). Related types: * google.type.
|
315
|
-
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
316
|
-
# Corresponds to the JSON property `oldestDate`
|
317
|
-
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleTypeDate]
|
318
|
-
attr_accessor :oldest_date
|
319
|
-
|
320
|
-
# The number of replayed log entries with no difference between baseline and
|
321
|
-
# simulated policies.
|
322
|
-
# Corresponds to the JSON property `unchangedCount`
|
323
|
-
# @return [Fixnum]
|
324
|
-
attr_accessor :unchanged_count
|
325
|
-
|
326
|
-
def initialize(**args)
|
327
|
-
update!(**args)
|
328
|
-
end
|
329
|
-
|
330
|
-
# Update properties of this object
|
331
|
-
def update!(**args)
|
332
|
-
@difference_count = args[:difference_count] if args.key?(:difference_count)
|
333
|
-
@error_count = args[:error_count] if args.key?(:error_count)
|
334
|
-
@log_count = args[:log_count] if args.key?(:log_count)
|
335
|
-
@newest_date = args[:newest_date] if args.key?(:newest_date)
|
336
|
-
@oldest_date = args[:oldest_date] if args.key?(:oldest_date)
|
337
|
-
@unchanged_count = args[:unchanged_count] if args.key?(:unchanged_count)
|
338
|
-
end
|
339
|
-
end
|
340
|
-
|
341
183
|
# Specifies the audit configuration for a service. The configuration determines
|
342
184
|
# which permission types are logged, and what identities, if any, are exempted
|
343
185
|
# 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 PolicysimulatorV1alpha
|
18
18
|
# Version of the google-apis-policysimulator_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.8.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 = "
|
25
|
+
REVISION = "20230304"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,30 +46,6 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class GoogleCloudPolicysimulatorV1beta1Replay
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayConfig
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
49
|
class GoogleIamV1AuditConfig
|
74
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
51
|
|
@@ -166,48 +142,6 @@ module Google
|
|
166
142
|
end
|
167
143
|
end
|
168
144
|
|
169
|
-
class GoogleCloudPolicysimulatorV1beta1Replay
|
170
|
-
# @private
|
171
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
172
|
-
property :config, as: 'config', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1beta1ReplayConfig, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1beta1ReplayConfig::Representation
|
173
|
-
|
174
|
-
property :name, as: 'name'
|
175
|
-
property :results_summary, as: 'resultsSummary', class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary::Representation
|
176
|
-
|
177
|
-
property :state, as: 'state'
|
178
|
-
end
|
179
|
-
end
|
180
|
-
|
181
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayConfig
|
182
|
-
# @private
|
183
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
184
|
-
property :log_source, as: 'logSource'
|
185
|
-
hash :policy_overlay, as: 'policyOverlay', class: Google::Apis::PolicysimulatorV1alpha::GoogleIamV1Policy, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleIamV1Policy::Representation
|
186
|
-
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata
|
191
|
-
# @private
|
192
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
-
property :start_time, as: 'startTime'
|
194
|
-
end
|
195
|
-
end
|
196
|
-
|
197
|
-
class GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary
|
198
|
-
# @private
|
199
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
-
property :difference_count, as: 'differenceCount'
|
201
|
-
property :error_count, as: 'errorCount'
|
202
|
-
property :log_count, as: 'logCount'
|
203
|
-
property :newest_date, as: 'newestDate', class: Google::Apis::PolicysimulatorV1alpha::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleTypeDate::Representation
|
204
|
-
|
205
|
-
property :oldest_date, as: 'oldestDate', class: Google::Apis::PolicysimulatorV1alpha::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1alpha::GoogleTypeDate::Representation
|
206
|
-
|
207
|
-
property :unchanged_count, as: 'unchangedCount'
|
208
|
-
end
|
209
|
-
end
|
210
|
-
|
211
145
|
class GoogleIamV1AuditConfig
|
212
146
|
# @private
|
213
147
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -118,13 +118,7 @@ module Google
|
|
118
118
|
end
|
119
119
|
|
120
120
|
# Lists operations that match the specified filter in the request. If the server
|
121
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
122
|
-
# binding allows API services to override the binding to use different resource
|
123
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
124
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
125
|
-
# service configuration. For backwards compatibility, the default name includes
|
126
|
-
# the operations collection id, however overriding users must ensure the name
|
127
|
-
# binding is the parent resource, without the operations collection id.
|
121
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
128
122
|
# @param [String] name
|
129
123
|
# The name of the operation's parent resource.
|
130
124
|
# @param [String] filter
|
@@ -195,13 +189,7 @@ module Google
|
|
195
189
|
end
|
196
190
|
|
197
191
|
# Lists operations that match the specified filter in the request. If the server
|
198
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
199
|
-
# binding allows API services to override the binding to use different resource
|
200
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
201
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
202
|
-
# service configuration. For backwards compatibility, the default name includes
|
203
|
-
# the operations collection id, however overriding users must ensure the name
|
204
|
-
# binding is the parent resource, without the operations collection id.
|
192
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
205
193
|
# @param [String] name
|
206
194
|
# The name of the operation's parent resource.
|
207
195
|
# @param [String] filter
|
@@ -303,13 +291,7 @@ module Google
|
|
303
291
|
end
|
304
292
|
|
305
293
|
# Lists operations that match the specified filter in the request. If the server
|
306
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
307
|
-
# binding allows API services to override the binding to use different resource
|
308
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
309
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
310
|
-
# service configuration. For backwards compatibility, the default name includes
|
311
|
-
# the operations collection id, however overriding users must ensure the name
|
312
|
-
# binding is the parent resource, without the operations collection id.
|
294
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
313
295
|
# @param [String] name
|
314
296
|
# The name of the operation's parent resource.
|
315
297
|
# @param [String] filter
|
@@ -411,13 +393,7 @@ module Google
|
|
411
393
|
end
|
412
394
|
|
413
395
|
# Lists operations that match the specified filter in the request. If the server
|
414
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
415
|
-
# binding allows API services to override the binding to use different resource
|
416
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
417
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
418
|
-
# service configuration. For backwards compatibility, the default name includes
|
419
|
-
# the operations collection id, however overriding users must ensure the name
|
420
|
-
# binding is the parent resource, without the operations collection id.
|
396
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
421
397
|
# @param [String] name
|
422
398
|
# The name of the operation's parent resource.
|
423
399
|
# @param [String] filter
|
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.8.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-
|
11
|
+
date: 2023-03-26 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_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.8.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: []
|