google-apis-policysimulator_v1beta1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47755099136c476ea8bd17c8ddfd521ed8dbd70a7e4db8b42d0433a2cc90f25b
4
- data.tar.gz: 3e691a9ea385a350e9cd55d3933fa03e0205c5205c1ae6cc938ca50d9044de6c
3
+ metadata.gz: e41876c624e0eeeb867f48ea2ae5c239f04910749d900601e881080b41c90d55
4
+ data.tar.gz: c1839b1dd6a88a477965cff59b71f2b073073fc28ee84ca3160bc96d45d001e9
5
5
  SHA512:
6
- metadata.gz: 3333628449a900f0b949bc3f11690bb6d446e67e0f47beca55a234a057fcea71767330a69130485f1ee5e48cacb63770c1f673103a79fc6f6c571eaa69296f35
7
- data.tar.gz: cb37f15787dd6967d404dc56386f42ce583c54a52c065c86b3ea695598c58b0fcb8aa578baa7384ec67a7a133bbb16f10b199cb3740954530c97d2f118adac7c
6
+ metadata.gz: 4bbf53b5c1fb6182d63ecbb96da804dd60ddc18ddb7c7cf65de77b9e047d67f48f8e00a6b56dc5169559422f4ab220983e98b4f4a6a33c157465f0b67a5fdee8
7
+ data.tar.gz: '06489f43c3b049a19d1d813635fc1a65e5fefb77ae82cb4f642c1ebef46fd94aa05a6b0aa6982bb80d813e953db4312f9397a996f91e02098c4fc6ae799711d1'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-policysimulator_v1beta1
2
2
 
3
+ ### v0.6.0 (2021-06-24)
4
+
5
+ * Regenerated using generator version 0.3.0
6
+
7
+ ### v0.5.0 (2021-05-19)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.4.0 (2021-03-23)
12
+
13
+ * Regenerated from discovery document revision 20210319
14
+
15
+ ### v0.3.0 (2021-03-10)
16
+
17
+ * Regenerated from discovery document revision 20210307
18
+ * Regenerated using generator version 0.2.0
19
+
20
+ ### v0.2.0 (2021-03-04)
21
+
22
+ * Unspecified changes
23
+
3
24
  ### v0.1.0 (2021-02-24)
4
25
 
5
26
  * Regenerated from discovery document revision 20210220
@@ -35,7 +35,7 @@ module Google
35
35
  # This is NOT the gem version.
36
36
  VERSION = 'V1beta1'
37
37
 
38
- # View and manage your data across Google Cloud Platform services
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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210220"
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.1.0
4
+ version: 0.6.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-01 00:00:00.000000000 Z
11
+ date: 2021-06-28 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.1'
19
+ version: '0.3'
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.3'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
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.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta1/v0.6.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: []
@@ -62,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
68
  requirements:
63
69
  - - ">="
64
70
  - !ruby/object:Gem::Version
65
- version: '2.4'
71
+ version: '2.5'
66
72
  required_rubygems_version: !ruby/object:Gem::Requirement
67
73
  requirements:
68
74
  - - ">="
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.11
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