google-apis-policysimulator_v1beta1 0.2.0 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41e4379053b3247f29c627e74d0296b6ca1c819538064a0eb0795813b53a7420
|
4
|
+
data.tar.gz: b46e00494e020d8a4c5cfffecec901e4de9a0c6b3db3ab8cef308f29a219da52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe1d6cd8a30611884496da57f062e4697c7f6eeb7acf1d995c07f7e0fd364546d03d14f74353ab0e5877ad03cf8d7f2e7847176e389b8b479bb81c43487fef6e
|
7
|
+
data.tar.gz: 28a5cba1e7033f3e57e519573a4cf8f8609715843b6833d5929ea63b7fcf67e7e4a3e615626283316736dd044ad21189a345d800715c8eaf2723c8e6016d0da7
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,164 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PolicysimulatorV1beta1
|
24
24
|
|
25
|
+
# A resource describing a `Replay`, or simulation.
|
26
|
+
class GoogleCloudPolicysimulatorV1Replay
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The configuration used for a Replay.
|
30
|
+
# Corresponds to the JSON property `config`
|
31
|
+
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1ReplayConfig]
|
32
|
+
attr_accessor :config
|
33
|
+
|
34
|
+
# Output only. The resource name of the `Replay`, which has the following format:
|
35
|
+
# ``projects|folders|organizations`/`resource-id`/locations/global/replays/`
|
36
|
+
# replay-id``, where ``resource-id`` is the ID of the project, folder, or
|
37
|
+
# organization that owns the Replay. Example: `projects/my-example-project/
|
38
|
+
# locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
39
|
+
# Corresponds to the JSON property `name`
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :name
|
42
|
+
|
43
|
+
# Summary statistics about the replayed log entries.
|
44
|
+
# Corresponds to the JSON property `resultsSummary`
|
45
|
+
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1ReplayResultsSummary]
|
46
|
+
attr_accessor :results_summary
|
47
|
+
|
48
|
+
# Output only. The current state of the `Replay`.
|
49
|
+
# Corresponds to the JSON property `state`
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :state
|
52
|
+
|
53
|
+
def initialize(**args)
|
54
|
+
update!(**args)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Update properties of this object
|
58
|
+
def update!(**args)
|
59
|
+
@config = args[:config] if args.key?(:config)
|
60
|
+
@name = args[:name] if args.key?(:name)
|
61
|
+
@results_summary = args[:results_summary] if args.key?(:results_summary)
|
62
|
+
@state = args[:state] if args.key?(:state)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# The configuration used for a Replay.
|
67
|
+
class GoogleCloudPolicysimulatorV1ReplayConfig
|
68
|
+
include Google::Apis::Core::Hashable
|
69
|
+
|
70
|
+
# The logs to use as input for the Replay.
|
71
|
+
# Corresponds to the JSON property `logSource`
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :log_source
|
74
|
+
|
75
|
+
# A mapping of the resources that you want to simulate policies for and the
|
76
|
+
# policies that you want to simulate. Keys are the full resource names for the
|
77
|
+
# resources. For example, `//cloudresourcemanager.googleapis.com/projects/my-
|
78
|
+
# project`. For examples of full resource names for Google Cloud services, see
|
79
|
+
# https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values
|
80
|
+
# are Policy objects representing the policies that you want to simulate.
|
81
|
+
# Replays automatically take into account any IAM policies inherited through the
|
82
|
+
# resource hierarchy, and any policies set on descendant resources. You do not
|
83
|
+
# need to include these policies in the policy overlay.
|
84
|
+
# Corresponds to the JSON property `policyOverlay`
|
85
|
+
# @return [Hash<String,Google::Apis::PolicysimulatorV1beta1::GoogleIamV1Policy>]
|
86
|
+
attr_accessor :policy_overlay
|
87
|
+
|
88
|
+
def initialize(**args)
|
89
|
+
update!(**args)
|
90
|
+
end
|
91
|
+
|
92
|
+
# Update properties of this object
|
93
|
+
def update!(**args)
|
94
|
+
@log_source = args[:log_source] if args.key?(:log_source)
|
95
|
+
@policy_overlay = args[:policy_overlay] if args.key?(:policy_overlay)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# Metadata about a Replay operation.
|
100
|
+
class GoogleCloudPolicysimulatorV1ReplayOperationMetadata
|
101
|
+
include Google::Apis::Core::Hashable
|
102
|
+
|
103
|
+
# Time when the request was received.
|
104
|
+
# Corresponds to the JSON property `startTime`
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :start_time
|
107
|
+
|
108
|
+
def initialize(**args)
|
109
|
+
update!(**args)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Update properties of this object
|
113
|
+
def update!(**args)
|
114
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# Summary statistics about the replayed log entries.
|
119
|
+
class GoogleCloudPolicysimulatorV1ReplayResultsSummary
|
120
|
+
include Google::Apis::Core::Hashable
|
121
|
+
|
122
|
+
# The number of replayed log entries with a difference between baseline and
|
123
|
+
# simulated policies.
|
124
|
+
# Corresponds to the JSON property `differenceCount`
|
125
|
+
# @return [Fixnum]
|
126
|
+
attr_accessor :difference_count
|
127
|
+
|
128
|
+
# The number of log entries that could not be replayed.
|
129
|
+
# Corresponds to the JSON property `errorCount`
|
130
|
+
# @return [Fixnum]
|
131
|
+
attr_accessor :error_count
|
132
|
+
|
133
|
+
# The total number of log entries replayed.
|
134
|
+
# Corresponds to the JSON property `logCount`
|
135
|
+
# @return [Fixnum]
|
136
|
+
attr_accessor :log_count
|
137
|
+
|
138
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
139
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
140
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
141
|
+
# following: * A full date, with non-zero year, month, and day values * A month
|
142
|
+
# and day value, with a zero year, such as an anniversary * A year on its own,
|
143
|
+
# with zero month and day values * A year and month value, with a zero day, such
|
144
|
+
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
145
|
+
# google.protobuf.Timestamp`.
|
146
|
+
# Corresponds to the JSON property `newestDate`
|
147
|
+
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate]
|
148
|
+
attr_accessor :newest_date
|
149
|
+
|
150
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
151
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
152
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
153
|
+
# following: * A full date, with non-zero year, month, and day values * A month
|
154
|
+
# and day value, with a zero year, such as an anniversary * A year on its own,
|
155
|
+
# with zero month and day values * A year and month value, with a zero day, such
|
156
|
+
# as a credit card expiration date Related types are google.type.TimeOfDay and `
|
157
|
+
# google.protobuf.Timestamp`.
|
158
|
+
# Corresponds to the JSON property `oldestDate`
|
159
|
+
# @return [Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate]
|
160
|
+
attr_accessor :oldest_date
|
161
|
+
|
162
|
+
# The number of replayed log entries with no difference between baseline and
|
163
|
+
# simulated policies.
|
164
|
+
# Corresponds to the JSON property `unchangedCount`
|
165
|
+
# @return [Fixnum]
|
166
|
+
attr_accessor :unchanged_count
|
167
|
+
|
168
|
+
def initialize(**args)
|
169
|
+
update!(**args)
|
170
|
+
end
|
171
|
+
|
172
|
+
# Update properties of this object
|
173
|
+
def update!(**args)
|
174
|
+
@difference_count = args[:difference_count] if args.key?(:difference_count)
|
175
|
+
@error_count = args[:error_count] if args.key?(:error_count)
|
176
|
+
@log_count = args[:log_count] if args.key?(:log_count)
|
177
|
+
@newest_date = args[:newest_date] if args.key?(:newest_date)
|
178
|
+
@oldest_date = args[:oldest_date] if args.key?(:oldest_date)
|
179
|
+
@unchanged_count = args[:unchanged_count] if args.key?(:unchanged_count)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
25
183
|
# A summary and comparison of the member's access under the current (baseline)
|
26
184
|
# policies and the proposed (simulated) policies for a single access tuple.
|
27
185
|
class GoogleCloudPolicysimulatorV1beta1AccessStateDiff
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PolicysimulatorV1beta1
|
18
18
|
# Version of the google-apis-policysimulator_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210307"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,30 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PolicysimulatorV1beta1
|
24
24
|
|
25
|
+
class GoogleCloudPolicysimulatorV1Replay
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class GoogleCloudPolicysimulatorV1ReplayConfig
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class GoogleCloudPolicysimulatorV1ReplayOperationMetadata
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GoogleCloudPolicysimulatorV1ReplayResultsSummary
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
25
49
|
class GoogleCloudPolicysimulatorV1beta1AccessStateDiff
|
26
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
51
|
|
@@ -154,6 +178,48 @@ module Google
|
|
154
178
|
include Google::Apis::Core::JsonObjectSupport
|
155
179
|
end
|
156
180
|
|
181
|
+
class GoogleCloudPolicysimulatorV1Replay
|
182
|
+
# @private
|
183
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
184
|
+
property :config, as: 'config', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1ReplayConfig, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1ReplayConfig::Representation
|
185
|
+
|
186
|
+
property :name, as: 'name'
|
187
|
+
property :results_summary, as: 'resultsSummary', class: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1ReplayResultsSummary, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1ReplayResultsSummary::Representation
|
188
|
+
|
189
|
+
property :state, as: 'state'
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class GoogleCloudPolicysimulatorV1ReplayConfig
|
194
|
+
# @private
|
195
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
196
|
+
property :log_source, as: 'logSource'
|
197
|
+
hash :policy_overlay, as: 'policyOverlay', class: Google::Apis::PolicysimulatorV1beta1::GoogleIamV1Policy, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleIamV1Policy::Representation
|
198
|
+
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
class GoogleCloudPolicysimulatorV1ReplayOperationMetadata
|
203
|
+
# @private
|
204
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
205
|
+
property :start_time, as: 'startTime'
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
class GoogleCloudPolicysimulatorV1ReplayResultsSummary
|
210
|
+
# @private
|
211
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
212
|
+
property :difference_count, as: 'differenceCount'
|
213
|
+
property :error_count, as: 'errorCount'
|
214
|
+
property :log_count, as: 'logCount'
|
215
|
+
property :newest_date, as: 'newestDate', class: Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate::Representation
|
216
|
+
|
217
|
+
property :oldest_date, as: 'oldestDate', class: Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate, decorator: Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate::Representation
|
218
|
+
|
219
|
+
property :unchanged_count, as: 'unchangedCount'
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
157
223
|
class GoogleCloudPolicysimulatorV1beta1AccessStateDiff
|
158
224
|
# @private
|
159
225
|
class Representation < Google::Apis::Core::JsonRepresentation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-policysimulator_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2021-03-
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-policysimulator_v1beta1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta1/v0.3.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-policysimulator_v1beta1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|