google-apis-policysimulator_v1beta1 0.2.0 → 0.7.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 +21 -0
- data/lib/google/apis/policysimulator_v1beta1.rb +1 -1
- data/lib/google/apis/policysimulator_v1beta1/classes.rb +158 -0
- data/lib/google/apis/policysimulator_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/policysimulator_v1beta1/representations.rb +66 -0
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42b614803fed640be6c67bf2310b8ddc63330e521d380f3ca70226591b94611c
|
4
|
+
data.tar.gz: fb9ba561b67dae197b7bb44fcb0a5087af7e6047c35f6c8d5cf5be7a297f1375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6be3d7bb7dae123a6c50d7c1c9c556812ce5d155ece290e0853b0808596610f87c61963833af80d8516ca26318d09f63fb74b52b749ebbf09f8389736b4d2b69
|
7
|
+
data.tar.gz: b7a5342f7aa57a1359d99a9a01bf9071368041b4d93d915ba4a94b235dd3e128c87d8ec011aa1f1cac97871b9f20345836c2171fb12d70a2ee8aae7efc0db328
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-policysimulator_v1beta1
|
2
2
|
|
3
|
+
### v0.7.0 (2021-06-29)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.4.0
|
6
|
+
|
7
|
+
### v0.6.0 (2021-06-24)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.3.0
|
10
|
+
|
11
|
+
### v0.5.0 (2021-05-19)
|
12
|
+
|
13
|
+
* Unspecified changes
|
14
|
+
|
15
|
+
### v0.4.0 (2021-03-23)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210319
|
18
|
+
|
19
|
+
### v0.3.0 (2021-03-10)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210307
|
22
|
+
* Regenerated using generator version 0.2.0
|
23
|
+
|
3
24
|
### v0.2.0 (2021-03-04)
|
4
25
|
|
5
26
|
* Unspecified changes
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# This is NOT the gem version.
|
36
36
|
VERSION = 'V1beta1'
|
37
37
|
|
38
|
-
#
|
38
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
39
39
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
40
40
|
end
|
41
41
|
end
|
@@ -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.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210319"
|
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,29 +1,35 @@
|
|
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.7.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-
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Policy Simulator API V1beta1. Simple
|
28
34
|
REST clients are Ruby client libraries that provide access to Google services via
|
29
35
|
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta1/v0.7.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-policysimulator_v1beta1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Policy Simulator API V1beta1
|