google-apis-policysimulator_v1alpha 0.6.0 → 0.8.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/policysimulator_v1alpha/classes.rb +10 -168
- 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 +97 -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
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-policysimulator_v1alpha
|
2
2
|
|
3
|
+
### v0.8.0 (2023-03-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230304
|
6
|
+
|
7
|
+
### v0.7.0 (2023-02-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230219
|
10
|
+
|
3
11
|
### v0.6.0 (2023-02-15)
|
4
12
|
|
5
13
|
* Regenerated using generator version 0.12.0
|
@@ -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
|
@@ -447,22 +289,22 @@ module Google
|
|
447
289
|
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
|
448
290
|
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
449
291
|
# email address that represents a Google group. For example, `admins@example.com`
|
450
|
-
# . * `
|
451
|
-
#
|
452
|
-
#
|
453
|
-
#
|
454
|
-
# the
|
455
|
-
#
|
456
|
-
#
|
292
|
+
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
293
|
+
# users of that domain. For example, `google.com` or `example.com`. * `deleted:
|
294
|
+
# user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
|
295
|
+
# representing a user that has been recently deleted. For example, `alice@
|
296
|
+
# example.com?uid=123456789012345678901`. If the user is recovered, this value
|
297
|
+
# reverts to `user:`emailid`` and the recovered user retains the role in the
|
298
|
+
# binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
|
299
|
+
# (plus unique identifier) representing a service account that has been recently
|
300
|
+
# deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
457
301
|
# 123456789012345678901`. If the service account is undeleted, this value
|
458
302
|
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
459
303
|
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
460
304
|
# An email address (plus unique identifier) representing a Google group that has
|
461
305
|
# been recently deleted. For example, `admins@example.com?uid=
|
462
306
|
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
463
|
-
# group:`emailid`` and the recovered group retains the role in the binding.
|
464
|
-
# domain:`domain``: The G Suite domain (primary) that represents all the users
|
465
|
-
# of that domain. For example, `google.com` or `example.com`.
|
307
|
+
# group:`emailid`` and the recovered group retains the role in the binding.
|
466
308
|
# Corresponds to the JSON property `members`
|
467
309
|
# @return [Array<String>]
|
468
310
|
attr_accessor :members
|
@@ -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
|
@@ -55,6 +55,37 @@ module Google
|
|
55
55
|
@batch_path = 'batch'
|
56
56
|
end
|
57
57
|
|
58
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
59
|
+
# to poll the operation result at intervals as recommended by the API service.
|
60
|
+
# @param [String] name
|
61
|
+
# The name of the operation resource.
|
62
|
+
# @param [String] fields
|
63
|
+
# Selector specifying which fields to include in a partial response.
|
64
|
+
# @param [String] quota_user
|
65
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
66
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
68
|
+
# Request-specific options
|
69
|
+
#
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
71
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation] parsed result object
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
73
|
+
#
|
74
|
+
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation]
|
75
|
+
#
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
79
|
+
def get_folder_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
80
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
81
|
+
command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation
|
82
|
+
command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
|
83
|
+
command.params['name'] = name unless name.nil?
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
+
execute_or_queue_command(command, &block)
|
87
|
+
end
|
88
|
+
|
58
89
|
# Gets the latest state of a long-running operation. Clients can use this method
|
59
90
|
# to poll the operation result at intervals as recommended by the API service.
|
60
91
|
# @param [String] name
|
@@ -87,13 +118,7 @@ module Google
|
|
87
118
|
end
|
88
119
|
|
89
120
|
# Lists operations that match the specified filter in the request. If the server
|
90
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
91
|
-
# binding allows API services to override the binding to use different resource
|
92
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
93
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
94
|
-
# service configuration. For backwards compatibility, the default name includes
|
95
|
-
# the operations collection id, however overriding users must ensure the name
|
96
|
-
# binding is the parent resource, without the operations collection id.
|
121
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
97
122
|
# @param [String] name
|
98
123
|
# The name of the operation's parent resource.
|
99
124
|
# @param [String] filter
|
@@ -164,13 +189,7 @@ module Google
|
|
164
189
|
end
|
165
190
|
|
166
191
|
# Lists operations that match the specified filter in the request. If the server
|
167
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
168
|
-
# binding allows API services to override the binding to use different resource
|
169
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
170
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
171
|
-
# service configuration. For backwards compatibility, the default name includes
|
172
|
-
# the operations collection id, however overriding users must ensure the name
|
173
|
-
# binding is the parent resource, without the operations collection id.
|
192
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
174
193
|
# @param [String] name
|
175
194
|
# The name of the operation's parent resource.
|
176
195
|
# @param [String] filter
|
@@ -209,6 +228,37 @@ module Google
|
|
209
228
|
execute_or_queue_command(command, &block)
|
210
229
|
end
|
211
230
|
|
231
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
232
|
+
# to poll the operation result at intervals as recommended by the API service.
|
233
|
+
# @param [String] name
|
234
|
+
# The name of the operation resource.
|
235
|
+
# @param [String] fields
|
236
|
+
# Selector specifying which fields to include in a partial response.
|
237
|
+
# @param [String] quota_user
|
238
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
239
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
240
|
+
# @param [Google::Apis::RequestOptions] options
|
241
|
+
# Request-specific options
|
242
|
+
#
|
243
|
+
# @yield [result, err] Result & error if block supplied
|
244
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation] parsed result object
|
245
|
+
# @yieldparam err [StandardError] error object if request failed
|
246
|
+
#
|
247
|
+
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation]
|
248
|
+
#
|
249
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
250
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
251
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
252
|
+
def get_organization_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
253
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
254
|
+
command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation
|
255
|
+
command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
|
256
|
+
command.params['name'] = name unless name.nil?
|
257
|
+
command.query['fields'] = fields unless fields.nil?
|
258
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
259
|
+
execute_or_queue_command(command, &block)
|
260
|
+
end
|
261
|
+
|
212
262
|
# Gets the latest state of a long-running operation. Clients can use this method
|
213
263
|
# to poll the operation result at intervals as recommended by the API service.
|
214
264
|
# @param [String] name
|
@@ -241,13 +291,7 @@ module Google
|
|
241
291
|
end
|
242
292
|
|
243
293
|
# Lists operations that match the specified filter in the request. If the server
|
244
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
245
|
-
# binding allows API services to override the binding to use different resource
|
246
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
247
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
248
|
-
# service configuration. For backwards compatibility, the default name includes
|
249
|
-
# the operations collection id, however overriding users must ensure the name
|
250
|
-
# binding is the parent resource, without the operations collection id.
|
294
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
251
295
|
# @param [String] name
|
252
296
|
# The name of the operation's parent resource.
|
253
297
|
# @param [String] filter
|
@@ -286,6 +330,37 @@ module Google
|
|
286
330
|
execute_or_queue_command(command, &block)
|
287
331
|
end
|
288
332
|
|
333
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
334
|
+
# to poll the operation result at intervals as recommended by the API service.
|
335
|
+
# @param [String] name
|
336
|
+
# The name of the operation resource.
|
337
|
+
# @param [String] fields
|
338
|
+
# Selector specifying which fields to include in a partial response.
|
339
|
+
# @param [String] quota_user
|
340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
342
|
+
# @param [Google::Apis::RequestOptions] options
|
343
|
+
# Request-specific options
|
344
|
+
#
|
345
|
+
# @yield [result, err] Result & error if block supplied
|
346
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation] parsed result object
|
347
|
+
# @yieldparam err [StandardError] error object if request failed
|
348
|
+
#
|
349
|
+
# @return [Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation]
|
350
|
+
#
|
351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
354
|
+
def get_project_location_org_policy_violations_preview_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
355
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
356
|
+
command.response_representation = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation::Representation
|
357
|
+
command.response_class = Google::Apis::PolicysimulatorV1alpha::GoogleLongrunningOperation
|
358
|
+
command.params['name'] = name unless name.nil?
|
359
|
+
command.query['fields'] = fields unless fields.nil?
|
360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
361
|
+
execute_or_queue_command(command, &block)
|
362
|
+
end
|
363
|
+
|
289
364
|
# Gets the latest state of a long-running operation. Clients can use this method
|
290
365
|
# to poll the operation result at intervals as recommended by the API service.
|
291
366
|
# @param [String] name
|
@@ -318,13 +393,7 @@ module Google
|
|
318
393
|
end
|
319
394
|
|
320
395
|
# Lists operations that match the specified filter in the request. If the server
|
321
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
322
|
-
# binding allows API services to override the binding to use different resource
|
323
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
324
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
325
|
-
# service configuration. For backwards compatibility, the default name includes
|
326
|
-
# the operations collection id, however overriding users must ensure the name
|
327
|
-
# binding is the parent resource, without the operations collection id.
|
396
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
328
397
|
# @param [String] name
|
329
398
|
# The name of the operation's parent resource.
|
330
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: []
|