google-apis-policysimulator_v1beta 0.14.0 → 0.15.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 +4 -0
- data/lib/google/apis/policysimulator_v1beta/classes.rb +0 -1717
- data/lib/google/apis/policysimulator_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/policysimulator_v1beta/representations.rb +0 -633
- data/lib/google/apis/policysimulator_v1beta/service.rb +0 -673
- metadata +3 -3
@@ -88,122 +88,6 @@ module Google
|
|
88
88
|
execute_or_queue_command(command, &block)
|
89
89
|
end
|
90
90
|
|
91
|
-
# Creates and starts a Replay using the given ReplayConfig.
|
92
|
-
# @param [String] parent
|
93
|
-
# Required. The parent resource where this Replay will be created. This resource
|
94
|
-
# must be a project, folder, or organization with a location. Example: `projects/
|
95
|
-
# my-example-project/locations/global`
|
96
|
-
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
97
|
-
# @param [String] fields
|
98
|
-
# Selector specifying which fields to include in a partial response.
|
99
|
-
# @param [String] quota_user
|
100
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
101
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
102
|
-
# @param [Google::Apis::RequestOptions] options
|
103
|
-
# Request-specific options
|
104
|
-
#
|
105
|
-
# @yield [result, err] Result & error if block supplied
|
106
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
107
|
-
# @yieldparam err [StandardError] error object if request failed
|
108
|
-
#
|
109
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
110
|
-
#
|
111
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
-
def create_folder_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
-
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
116
|
-
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
117
|
-
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
118
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
119
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
120
|
-
command.params['parent'] = parent unless parent.nil?
|
121
|
-
command.query['fields'] = fields unless fields.nil?
|
122
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
-
execute_or_queue_command(command, &block)
|
124
|
-
end
|
125
|
-
|
126
|
-
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
127
|
-
# @param [String] name
|
128
|
-
# Required. The name of the Replay to retrieve, in the following format: ``
|
129
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
130
|
-
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
131
|
-
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
132
|
-
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
133
|
-
# @param [String] fields
|
134
|
-
# Selector specifying which fields to include in a partial response.
|
135
|
-
# @param [String] quota_user
|
136
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
137
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
138
|
-
# @param [Google::Apis::RequestOptions] options
|
139
|
-
# Request-specific options
|
140
|
-
#
|
141
|
-
# @yield [result, err] Result & error if block supplied
|
142
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
143
|
-
# @yieldparam err [StandardError] error object if request failed
|
144
|
-
#
|
145
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
146
|
-
#
|
147
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
-
def get_folder_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
151
|
-
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
152
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
153
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
154
|
-
command.params['name'] = name unless name.nil?
|
155
|
-
command.query['fields'] = fields unless fields.nil?
|
156
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
-
execute_or_queue_command(command, &block)
|
158
|
-
end
|
159
|
-
|
160
|
-
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
161
|
-
# available for at least 7 days.
|
162
|
-
# @param [String] parent
|
163
|
-
# Required. The parent resource, in the following format: ``projects|folders|
|
164
|
-
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
165
|
-
# ID of the project, folder, or organization that owns the Replay. Example: `
|
166
|
-
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
167
|
-
# direct children of the provided parent are listed. In other words, `Replay`
|
168
|
-
# objects that are children of a project will not be included when the parent is
|
169
|
-
# a folder of that project.
|
170
|
-
# @param [Fixnum] page_size
|
171
|
-
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
172
|
-
# value is 1000; values above 1000 are rounded down to 1000.
|
173
|
-
# @param [String] page_token
|
174
|
-
# A page token, received from a previous Simulator.ListReplays call. Provide
|
175
|
-
# this to retrieve the subsequent page. When paginating, all other parameters
|
176
|
-
# provided to Simulator.ListReplays must match the call that provided the page
|
177
|
-
# token.
|
178
|
-
# @param [String] fields
|
179
|
-
# Selector specifying which fields to include in a partial response.
|
180
|
-
# @param [String] quota_user
|
181
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
182
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
183
|
-
# @param [Google::Apis::RequestOptions] options
|
184
|
-
# Request-specific options
|
185
|
-
#
|
186
|
-
# @yield [result, err] Result & error if block supplied
|
187
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
188
|
-
# @yieldparam err [StandardError] error object if request failed
|
189
|
-
#
|
190
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
191
|
-
#
|
192
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
193
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
194
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
195
|
-
def list_folder_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
196
|
-
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
197
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
198
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
199
|
-
command.params['parent'] = parent unless parent.nil?
|
200
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
201
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
202
|
-
command.query['fields'] = fields unless fields.nil?
|
203
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
|
-
execute_or_queue_command(command, &block)
|
205
|
-
end
|
206
|
-
|
207
91
|
# Gets the latest state of a long-running operation. Clients can use this method
|
208
92
|
# to poll the operation result at intervals as recommended by the API service.
|
209
93
|
# @param [String] name
|
@@ -275,49 +159,6 @@ module Google
|
|
275
159
|
execute_or_queue_command(command, &block)
|
276
160
|
end
|
277
161
|
|
278
|
-
# Lists the results of running a Replay.
|
279
|
-
# @param [String] parent
|
280
|
-
# Required. The Replay whose results are listed, in the following format: ``
|
281
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
282
|
-
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
283
|
-
# 8e03-479ce1833c36`
|
284
|
-
# @param [Fixnum] page_size
|
285
|
-
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
286
|
-
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
287
|
-
# @param [String] page_token
|
288
|
-
# A page token, received from a previous Simulator.ListReplayResults call.
|
289
|
-
# Provide this token to retrieve the next page of results. When paginating, all
|
290
|
-
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
291
|
-
# call that provided the page token.
|
292
|
-
# @param [String] fields
|
293
|
-
# Selector specifying which fields to include in a partial response.
|
294
|
-
# @param [String] quota_user
|
295
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
296
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
297
|
-
# @param [Google::Apis::RequestOptions] options
|
298
|
-
# Request-specific options
|
299
|
-
#
|
300
|
-
# @yield [result, err] Result & error if block supplied
|
301
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
302
|
-
# @yieldparam err [StandardError] error object if request failed
|
303
|
-
#
|
304
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
305
|
-
#
|
306
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
307
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
308
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
309
|
-
def list_folder_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
310
|
-
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
311
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
312
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
313
|
-
command.params['parent'] = parent unless parent.nil?
|
314
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
315
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
316
|
-
command.query['fields'] = fields unless fields.nil?
|
317
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
318
|
-
execute_or_queue_command(command, &block)
|
319
|
-
end
|
320
|
-
|
321
162
|
# Gets the latest state of a long-running operation. Clients can use this method
|
322
163
|
# to poll the operation result at intervals as recommended by the API service.
|
323
164
|
# @param [String] name
|
@@ -389,159 +230,6 @@ module Google
|
|
389
230
|
execute_or_queue_command(command, &block)
|
390
231
|
end
|
391
232
|
|
392
|
-
# CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the
|
393
|
-
# proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay.
|
394
|
-
# The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The
|
395
|
-
# resources to scan are inferred from these specified changes.
|
396
|
-
# @param [String] parent
|
397
|
-
# Required. The organization under which this OrgPolicyViolationsPreview will be
|
398
|
-
# created. Example: `organizations/my-example-org/locations/global`
|
399
|
-
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
400
|
-
# @param [String] org_policy_violations_preview_id
|
401
|
-
# Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If
|
402
|
-
# not provided, a random ID will be generated.
|
403
|
-
# @param [String] fields
|
404
|
-
# Selector specifying which fields to include in a partial response.
|
405
|
-
# @param [String] quota_user
|
406
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
407
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
408
|
-
# @param [Google::Apis::RequestOptions] options
|
409
|
-
# Request-specific options
|
410
|
-
#
|
411
|
-
# @yield [result, err] Result & error if block supplied
|
412
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
413
|
-
# @yieldparam err [StandardError] error object if request failed
|
414
|
-
#
|
415
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
416
|
-
#
|
417
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
418
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
419
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
420
|
-
def create_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1beta_org_policy_violations_preview_object = nil, org_policy_violations_preview_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
421
|
-
command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
|
422
|
-
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
|
423
|
-
command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
424
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
425
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
426
|
-
command.params['parent'] = parent unless parent.nil?
|
427
|
-
command.query['orgPolicyViolationsPreviewId'] = org_policy_violations_preview_id unless org_policy_violations_preview_id.nil?
|
428
|
-
command.query['fields'] = fields unless fields.nil?
|
429
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
430
|
-
execute_or_queue_command(command, &block)
|
431
|
-
end
|
432
|
-
|
433
|
-
# GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for
|
434
|
-
# the proposed changes in the provided OrgPolicyViolationsPreview.
|
435
|
-
# OrgPolicyOverlay. The changes to OrgPolicy are specified by this `
|
436
|
-
# OrgPolicyOverlay`. The resources to scan are inferred from these specified
|
437
|
-
# changes.
|
438
|
-
# @param [String] parent
|
439
|
-
# Required. The organization under which this OrgPolicyViolationsPreview will be
|
440
|
-
# created. Example: `organizations/my-example-org/locations/global`
|
441
|
-
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
442
|
-
# @param [String] fields
|
443
|
-
# Selector specifying which fields to include in a partial response.
|
444
|
-
# @param [String] quota_user
|
445
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
446
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
447
|
-
# @param [Google::Apis::RequestOptions] options
|
448
|
-
# Request-specific options
|
449
|
-
#
|
450
|
-
# @yield [result, err] Result & error if block supplied
|
451
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
452
|
-
# @yieldparam err [StandardError] error object if request failed
|
453
|
-
#
|
454
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
455
|
-
#
|
456
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
457
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
458
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
459
|
-
def generate_organization_location_org_policy_violations_preview(parent, google_cloud_policysimulator_v1beta_org_policy_violations_preview_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
460
|
-
command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews:generate', options)
|
461
|
-
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
|
462
|
-
command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
463
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
464
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
465
|
-
command.params['parent'] = parent unless parent.nil?
|
466
|
-
command.query['fields'] = fields unless fields.nil?
|
467
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
468
|
-
execute_or_queue_command(command, &block)
|
469
|
-
end
|
470
|
-
|
471
|
-
# GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
|
472
|
-
# Each OrgPolicyViolationsPreview is available for at least 7 days.
|
473
|
-
# @param [String] name
|
474
|
-
# Required. The name of the OrgPolicyViolationsPreview to get.
|
475
|
-
# @param [String] fields
|
476
|
-
# Selector specifying which fields to include in a partial response.
|
477
|
-
# @param [String] quota_user
|
478
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
479
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
480
|
-
# @param [Google::Apis::RequestOptions] options
|
481
|
-
# Request-specific options
|
482
|
-
#
|
483
|
-
# @yield [result, err] Result & error if block supplied
|
484
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] parsed result object
|
485
|
-
# @yieldparam err [StandardError] error object if request failed
|
486
|
-
#
|
487
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview]
|
488
|
-
#
|
489
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
490
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
491
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
492
|
-
def get_organization_location_org_policy_violations_preview(name, fields: nil, quota_user: nil, options: nil, &block)
|
493
|
-
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
494
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
|
495
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
|
496
|
-
command.params['name'] = name unless name.nil?
|
497
|
-
command.query['fields'] = fields unless fields.nil?
|
498
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
499
|
-
execute_or_queue_command(command, &block)
|
500
|
-
end
|
501
|
-
|
502
|
-
# ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an
|
503
|
-
# organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
|
504
|
-
# @param [String] parent
|
505
|
-
# Required. The parent the violations are scoped to. Format: `organizations/`
|
506
|
-
# organization`/locations/`location`` Example: `organizations/my-example-org/
|
507
|
-
# locations/global`
|
508
|
-
# @param [Fixnum] page_size
|
509
|
-
# Optional. The maximum number of items to return. The service may return fewer
|
510
|
-
# than this value. If unspecified, at most 5 items will be returned. The maximum
|
511
|
-
# value is 10; values above 10 will be coerced to 10.
|
512
|
-
# @param [String] page_token
|
513
|
-
# Optional. A page token, received from a previous call. Provide this to
|
514
|
-
# retrieve the subsequent page. When paginating, all other parameters must match
|
515
|
-
# the call that provided the page token.
|
516
|
-
# @param [String] fields
|
517
|
-
# Selector specifying which fields to include in a partial response.
|
518
|
-
# @param [String] quota_user
|
519
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
520
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
521
|
-
# @param [Google::Apis::RequestOptions] options
|
522
|
-
# Request-specific options
|
523
|
-
#
|
524
|
-
# @yield [result, err] Result & error if block supplied
|
525
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse] parsed result object
|
526
|
-
# @yieldparam err [StandardError] error object if request failed
|
527
|
-
#
|
528
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse]
|
529
|
-
#
|
530
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
531
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
532
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
533
|
-
def list_organization_location_org_policy_violations_previews(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
534
|
-
command = make_simple_command(:get, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
|
535
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse::Representation
|
536
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse
|
537
|
-
command.params['parent'] = parent unless parent.nil?
|
538
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
539
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
540
|
-
command.query['fields'] = fields unless fields.nil?
|
541
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
542
|
-
execute_or_queue_command(command, &block)
|
543
|
-
end
|
544
|
-
|
545
233
|
# Gets the latest state of a long-running operation. Clients can use this method
|
546
234
|
# to poll the operation result at intervals as recommended by the API service.
|
547
235
|
# @param [String] name
|
@@ -573,165 +261,6 @@ module Google
|
|
573
261
|
execute_or_queue_command(command, &block)
|
574
262
|
end
|
575
263
|
|
576
|
-
# ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an
|
577
|
-
# OrgPolicyViolationsPreview.
|
578
|
-
# @param [String] parent
|
579
|
-
# Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from.
|
580
|
-
# Format: organizations/`organization`/locations/`location`/
|
581
|
-
# orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`
|
582
|
-
# @param [Fixnum] page_size
|
583
|
-
# Optional. The maximum number of items to return. The service may return fewer
|
584
|
-
# than this value. If unspecified, at most 50 items will be returned. The
|
585
|
-
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
586
|
-
# @param [String] page_token
|
587
|
-
# Optional. A page token, received from a previous call. Provide this to
|
588
|
-
# retrieve the subsequent page. When paginating, all other parameters must match
|
589
|
-
# the call that provided the page token.
|
590
|
-
# @param [String] fields
|
591
|
-
# Selector specifying which fields to include in a partial response.
|
592
|
-
# @param [String] quota_user
|
593
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
594
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
595
|
-
# @param [Google::Apis::RequestOptions] options
|
596
|
-
# Request-specific options
|
597
|
-
#
|
598
|
-
# @yield [result, err] Result & error if block supplied
|
599
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse] parsed result object
|
600
|
-
# @yieldparam err [StandardError] error object if request failed
|
601
|
-
#
|
602
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse]
|
603
|
-
#
|
604
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
605
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
606
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
607
|
-
def list_organization_location_org_policy_violations_preview_org_policy_violations(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
608
|
-
command = make_simple_command(:get, 'v1beta/{+parent}/orgPolicyViolations', options)
|
609
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse::Representation
|
610
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse
|
611
|
-
command.params['parent'] = parent unless parent.nil?
|
612
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
613
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
614
|
-
command.query['fields'] = fields unless fields.nil?
|
615
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
616
|
-
execute_or_queue_command(command, &block)
|
617
|
-
end
|
618
|
-
|
619
|
-
# Creates and starts a Replay using the given ReplayConfig.
|
620
|
-
# @param [String] parent
|
621
|
-
# Required. The parent resource where this Replay will be created. This resource
|
622
|
-
# must be a project, folder, or organization with a location. Example: `projects/
|
623
|
-
# my-example-project/locations/global`
|
624
|
-
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
625
|
-
# @param [String] fields
|
626
|
-
# Selector specifying which fields to include in a partial response.
|
627
|
-
# @param [String] quota_user
|
628
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
629
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
630
|
-
# @param [Google::Apis::RequestOptions] options
|
631
|
-
# Request-specific options
|
632
|
-
#
|
633
|
-
# @yield [result, err] Result & error if block supplied
|
634
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
635
|
-
# @yieldparam err [StandardError] error object if request failed
|
636
|
-
#
|
637
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
638
|
-
#
|
639
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
640
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
641
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
642
|
-
def create_organization_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
643
|
-
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
644
|
-
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
645
|
-
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
646
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
647
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
648
|
-
command.params['parent'] = parent unless parent.nil?
|
649
|
-
command.query['fields'] = fields unless fields.nil?
|
650
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
651
|
-
execute_or_queue_command(command, &block)
|
652
|
-
end
|
653
|
-
|
654
|
-
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
655
|
-
# @param [String] name
|
656
|
-
# Required. The name of the Replay to retrieve, in the following format: ``
|
657
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
658
|
-
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
659
|
-
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
660
|
-
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
661
|
-
# @param [String] fields
|
662
|
-
# Selector specifying which fields to include in a partial response.
|
663
|
-
# @param [String] quota_user
|
664
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
665
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
666
|
-
# @param [Google::Apis::RequestOptions] options
|
667
|
-
# Request-specific options
|
668
|
-
#
|
669
|
-
# @yield [result, err] Result & error if block supplied
|
670
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
671
|
-
# @yieldparam err [StandardError] error object if request failed
|
672
|
-
#
|
673
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
674
|
-
#
|
675
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
676
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
677
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
678
|
-
def get_organization_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
679
|
-
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
680
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
681
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
682
|
-
command.params['name'] = name unless name.nil?
|
683
|
-
command.query['fields'] = fields unless fields.nil?
|
684
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
685
|
-
execute_or_queue_command(command, &block)
|
686
|
-
end
|
687
|
-
|
688
|
-
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
689
|
-
# available for at least 7 days.
|
690
|
-
# @param [String] parent
|
691
|
-
# Required. The parent resource, in the following format: ``projects|folders|
|
692
|
-
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
693
|
-
# ID of the project, folder, or organization that owns the Replay. Example: `
|
694
|
-
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
695
|
-
# direct children of the provided parent are listed. In other words, `Replay`
|
696
|
-
# objects that are children of a project will not be included when the parent is
|
697
|
-
# a folder of that project.
|
698
|
-
# @param [Fixnum] page_size
|
699
|
-
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
700
|
-
# value is 1000; values above 1000 are rounded down to 1000.
|
701
|
-
# @param [String] page_token
|
702
|
-
# A page token, received from a previous Simulator.ListReplays call. Provide
|
703
|
-
# this to retrieve the subsequent page. When paginating, all other parameters
|
704
|
-
# provided to Simulator.ListReplays must match the call that provided the page
|
705
|
-
# token.
|
706
|
-
# @param [String] fields
|
707
|
-
# Selector specifying which fields to include in a partial response.
|
708
|
-
# @param [String] quota_user
|
709
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
710
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
711
|
-
# @param [Google::Apis::RequestOptions] options
|
712
|
-
# Request-specific options
|
713
|
-
#
|
714
|
-
# @yield [result, err] Result & error if block supplied
|
715
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
716
|
-
# @yieldparam err [StandardError] error object if request failed
|
717
|
-
#
|
718
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
719
|
-
#
|
720
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
721
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
722
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
723
|
-
def list_organization_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
724
|
-
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
725
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
726
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
727
|
-
command.params['parent'] = parent unless parent.nil?
|
728
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
729
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
730
|
-
command.query['fields'] = fields unless fields.nil?
|
731
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
732
|
-
execute_or_queue_command(command, &block)
|
733
|
-
end
|
734
|
-
|
735
264
|
# Gets the latest state of a long-running operation. Clients can use this method
|
736
265
|
# to poll the operation result at intervals as recommended by the API service.
|
737
266
|
# @param [String] name
|
@@ -803,49 +332,6 @@ module Google
|
|
803
332
|
execute_or_queue_command(command, &block)
|
804
333
|
end
|
805
334
|
|
806
|
-
# Lists the results of running a Replay.
|
807
|
-
# @param [String] parent
|
808
|
-
# Required. The Replay whose results are listed, in the following format: ``
|
809
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
810
|
-
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
811
|
-
# 8e03-479ce1833c36`
|
812
|
-
# @param [Fixnum] page_size
|
813
|
-
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
814
|
-
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
815
|
-
# @param [String] page_token
|
816
|
-
# A page token, received from a previous Simulator.ListReplayResults call.
|
817
|
-
# Provide this token to retrieve the next page of results. When paginating, all
|
818
|
-
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
819
|
-
# call that provided the page token.
|
820
|
-
# @param [String] fields
|
821
|
-
# Selector specifying which fields to include in a partial response.
|
822
|
-
# @param [String] quota_user
|
823
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
824
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
825
|
-
# @param [Google::Apis::RequestOptions] options
|
826
|
-
# Request-specific options
|
827
|
-
#
|
828
|
-
# @yield [result, err] Result & error if block supplied
|
829
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
830
|
-
# @yieldparam err [StandardError] error object if request failed
|
831
|
-
#
|
832
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
833
|
-
#
|
834
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
835
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
836
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
837
|
-
def list_organization_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
838
|
-
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
839
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
840
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
841
|
-
command.params['parent'] = parent unless parent.nil?
|
842
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
843
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
844
|
-
command.query['fields'] = fields unless fields.nil?
|
845
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
846
|
-
execute_or_queue_command(command, &block)
|
847
|
-
end
|
848
|
-
|
849
335
|
# Gets the latest state of a long-running operation. Clients can use this method
|
850
336
|
# to poll the operation result at intervals as recommended by the API service.
|
851
337
|
# @param [String] name
|
@@ -877,122 +363,6 @@ module Google
|
|
877
363
|
execute_or_queue_command(command, &block)
|
878
364
|
end
|
879
365
|
|
880
|
-
# Creates and starts a Replay using the given ReplayConfig.
|
881
|
-
# @param [String] parent
|
882
|
-
# Required. The parent resource where this Replay will be created. This resource
|
883
|
-
# must be a project, folder, or organization with a location. Example: `projects/
|
884
|
-
# my-example-project/locations/global`
|
885
|
-
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
886
|
-
# @param [String] fields
|
887
|
-
# Selector specifying which fields to include in a partial response.
|
888
|
-
# @param [String] quota_user
|
889
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
890
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
891
|
-
# @param [Google::Apis::RequestOptions] options
|
892
|
-
# Request-specific options
|
893
|
-
#
|
894
|
-
# @yield [result, err] Result & error if block supplied
|
895
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
896
|
-
# @yieldparam err [StandardError] error object if request failed
|
897
|
-
#
|
898
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
899
|
-
#
|
900
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
901
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
902
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
903
|
-
def create_project_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
904
|
-
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
905
|
-
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
906
|
-
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
907
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
908
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
909
|
-
command.params['parent'] = parent unless parent.nil?
|
910
|
-
command.query['fields'] = fields unless fields.nil?
|
911
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
912
|
-
execute_or_queue_command(command, &block)
|
913
|
-
end
|
914
|
-
|
915
|
-
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
916
|
-
# @param [String] name
|
917
|
-
# Required. The name of the Replay to retrieve, in the following format: ``
|
918
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
919
|
-
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
920
|
-
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
921
|
-
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
922
|
-
# @param [String] fields
|
923
|
-
# Selector specifying which fields to include in a partial response.
|
924
|
-
# @param [String] quota_user
|
925
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
926
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
927
|
-
# @param [Google::Apis::RequestOptions] options
|
928
|
-
# Request-specific options
|
929
|
-
#
|
930
|
-
# @yield [result, err] Result & error if block supplied
|
931
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
932
|
-
# @yieldparam err [StandardError] error object if request failed
|
933
|
-
#
|
934
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
935
|
-
#
|
936
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
937
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
938
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
939
|
-
def get_project_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
940
|
-
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
941
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
942
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
943
|
-
command.params['name'] = name unless name.nil?
|
944
|
-
command.query['fields'] = fields unless fields.nil?
|
945
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
946
|
-
execute_or_queue_command(command, &block)
|
947
|
-
end
|
948
|
-
|
949
|
-
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
950
|
-
# available for at least 7 days.
|
951
|
-
# @param [String] parent
|
952
|
-
# Required. The parent resource, in the following format: ``projects|folders|
|
953
|
-
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
954
|
-
# ID of the project, folder, or organization that owns the Replay. Example: `
|
955
|
-
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
956
|
-
# direct children of the provided parent are listed. In other words, `Replay`
|
957
|
-
# objects that are children of a project will not be included when the parent is
|
958
|
-
# a folder of that project.
|
959
|
-
# @param [Fixnum] page_size
|
960
|
-
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
961
|
-
# value is 1000; values above 1000 are rounded down to 1000.
|
962
|
-
# @param [String] page_token
|
963
|
-
# A page token, received from a previous Simulator.ListReplays call. Provide
|
964
|
-
# this to retrieve the subsequent page. When paginating, all other parameters
|
965
|
-
# provided to Simulator.ListReplays must match the call that provided the page
|
966
|
-
# token.
|
967
|
-
# @param [String] fields
|
968
|
-
# Selector specifying which fields to include in a partial response.
|
969
|
-
# @param [String] quota_user
|
970
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
971
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
972
|
-
# @param [Google::Apis::RequestOptions] options
|
973
|
-
# Request-specific options
|
974
|
-
#
|
975
|
-
# @yield [result, err] Result & error if block supplied
|
976
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
977
|
-
# @yieldparam err [StandardError] error object if request failed
|
978
|
-
#
|
979
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
980
|
-
#
|
981
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
982
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
983
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
984
|
-
def list_project_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
985
|
-
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
986
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
987
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
988
|
-
command.params['parent'] = parent unless parent.nil?
|
989
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
990
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
991
|
-
command.query['fields'] = fields unless fields.nil?
|
992
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
993
|
-
execute_or_queue_command(command, &block)
|
994
|
-
end
|
995
|
-
|
996
366
|
# Gets the latest state of a long-running operation. Clients can use this method
|
997
367
|
# to poll the operation result at intervals as recommended by the API service.
|
998
368
|
# @param [String] name
|
@@ -1063,49 +433,6 @@ module Google
|
|
1063
433
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1064
434
|
execute_or_queue_command(command, &block)
|
1065
435
|
end
|
1066
|
-
|
1067
|
-
# Lists the results of running a Replay.
|
1068
|
-
# @param [String] parent
|
1069
|
-
# Required. The Replay whose results are listed, in the following format: ``
|
1070
|
-
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
1071
|
-
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
1072
|
-
# 8e03-479ce1833c36`
|
1073
|
-
# @param [Fixnum] page_size
|
1074
|
-
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
1075
|
-
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
1076
|
-
# @param [String] page_token
|
1077
|
-
# A page token, received from a previous Simulator.ListReplayResults call.
|
1078
|
-
# Provide this token to retrieve the next page of results. When paginating, all
|
1079
|
-
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
1080
|
-
# call that provided the page token.
|
1081
|
-
# @param [String] fields
|
1082
|
-
# Selector specifying which fields to include in a partial response.
|
1083
|
-
# @param [String] quota_user
|
1084
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1085
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1086
|
-
# @param [Google::Apis::RequestOptions] options
|
1087
|
-
# Request-specific options
|
1088
|
-
#
|
1089
|
-
# @yield [result, err] Result & error if block supplied
|
1090
|
-
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
1091
|
-
# @yieldparam err [StandardError] error object if request failed
|
1092
|
-
#
|
1093
|
-
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
1094
|
-
#
|
1095
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1096
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1097
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1098
|
-
def list_project_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1099
|
-
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
1100
|
-
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
1101
|
-
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
1102
|
-
command.params['parent'] = parent unless parent.nil?
|
1103
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1104
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1105
|
-
command.query['fields'] = fields unless fields.nil?
|
1106
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1107
|
-
execute_or_queue_command(command, &block)
|
1108
|
-
end
|
1109
436
|
|
1110
437
|
protected
|
1111
438
|
|