google-apis-policysimulator_v1beta 0.16.0 → 0.18.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 +9 -0
- data/lib/google/apis/policysimulator_v1beta/classes.rb +1403 -0
- data/lib/google/apis/policysimulator_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/policysimulator_v1beta/representations.rb +513 -0
- data/lib/google/apis/policysimulator_v1beta/service.rb +766 -0
- metadata +3 -3
@@ -57,6 +57,37 @@ module Google
|
|
57
57
|
@batch_path = 'batch'
|
58
58
|
end
|
59
59
|
|
60
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
61
|
+
# to poll the operation result at intervals as recommended by the API service.
|
62
|
+
# @param [String] name
|
63
|
+
# The name of the operation resource.
|
64
|
+
# @param [String] fields
|
65
|
+
# Selector specifying which fields to include in a partial response.
|
66
|
+
# @param [String] quota_user
|
67
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
+
# @param [Google::Apis::RequestOptions] options
|
70
|
+
# Request-specific options
|
71
|
+
#
|
72
|
+
# @yield [result, err] Result & error if block supplied
|
73
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
77
|
+
#
|
78
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
+
def get_folder_location_access_policy_simulation_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
83
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
84
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
85
|
+
command.params['name'] = name unless name.nil?
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
+
execute_or_queue_command(command, &block)
|
89
|
+
end
|
90
|
+
|
60
91
|
# Gets the latest state of a long-running operation. Clients can use this method
|
61
92
|
# to poll the operation result at intervals as recommended by the API service.
|
62
93
|
# @param [String] name
|
@@ -88,6 +119,122 @@ module Google
|
|
88
119
|
execute_or_queue_command(command, &block)
|
89
120
|
end
|
90
121
|
|
122
|
+
# Creates and starts a Replay using the given ReplayConfig.
|
123
|
+
# @param [String] parent
|
124
|
+
# Required. The parent resource where this Replay will be created. This resource
|
125
|
+
# must be a project, folder, or organization with a location. Example: `projects/
|
126
|
+
# my-example-project/locations/global`
|
127
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
128
|
+
# @param [String] fields
|
129
|
+
# Selector specifying which fields to include in a partial response.
|
130
|
+
# @param [String] quota_user
|
131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
133
|
+
# @param [Google::Apis::RequestOptions] options
|
134
|
+
# Request-specific options
|
135
|
+
#
|
136
|
+
# @yield [result, err] Result & error if block supplied
|
137
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
138
|
+
# @yieldparam err [StandardError] error object if request failed
|
139
|
+
#
|
140
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
141
|
+
#
|
142
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
143
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
144
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
145
|
+
def create_folder_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
146
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
147
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
148
|
+
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
149
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
150
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
151
|
+
command.params['parent'] = parent unless parent.nil?
|
152
|
+
command.query['fields'] = fields unless fields.nil?
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
154
|
+
execute_or_queue_command(command, &block)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
158
|
+
# @param [String] name
|
159
|
+
# Required. The name of the Replay to retrieve, in the following format: ``
|
160
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
161
|
+
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
162
|
+
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
163
|
+
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
164
|
+
# @param [String] fields
|
165
|
+
# Selector specifying which fields to include in a partial response.
|
166
|
+
# @param [String] quota_user
|
167
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
168
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
169
|
+
# @param [Google::Apis::RequestOptions] options
|
170
|
+
# Request-specific options
|
171
|
+
#
|
172
|
+
# @yield [result, err] Result & error if block supplied
|
173
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
174
|
+
# @yieldparam err [StandardError] error object if request failed
|
175
|
+
#
|
176
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
177
|
+
#
|
178
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
179
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
180
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
181
|
+
def get_folder_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
182
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
183
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
184
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
185
|
+
command.params['name'] = name unless name.nil?
|
186
|
+
command.query['fields'] = fields unless fields.nil?
|
187
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
188
|
+
execute_or_queue_command(command, &block)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
192
|
+
# available for at least 7 days.
|
193
|
+
# @param [String] parent
|
194
|
+
# Required. The parent resource, in the following format: ``projects|folders|
|
195
|
+
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
196
|
+
# ID of the project, folder, or organization that owns the Replay. Example: `
|
197
|
+
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
198
|
+
# direct children of the provided parent are listed. In other words, `Replay`
|
199
|
+
# objects that are children of a project will not be included when the parent is
|
200
|
+
# a folder of that project.
|
201
|
+
# @param [Fixnum] page_size
|
202
|
+
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
203
|
+
# value is 1000; values above 1000 are rounded down to 1000.
|
204
|
+
# @param [String] page_token
|
205
|
+
# A page token, received from a previous Simulator.ListReplays call. Provide
|
206
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
207
|
+
# provided to Simulator.ListReplays must match the call that provided the page
|
208
|
+
# token.
|
209
|
+
# @param [String] fields
|
210
|
+
# Selector specifying which fields to include in a partial response.
|
211
|
+
# @param [String] quota_user
|
212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
214
|
+
# @param [Google::Apis::RequestOptions] options
|
215
|
+
# Request-specific options
|
216
|
+
#
|
217
|
+
# @yield [result, err] Result & error if block supplied
|
218
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
219
|
+
# @yieldparam err [StandardError] error object if request failed
|
220
|
+
#
|
221
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
222
|
+
#
|
223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
226
|
+
def list_folder_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
227
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
228
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
229
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
230
|
+
command.params['parent'] = parent unless parent.nil?
|
231
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
232
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
233
|
+
command.query['fields'] = fields unless fields.nil?
|
234
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
235
|
+
execute_or_queue_command(command, &block)
|
236
|
+
end
|
237
|
+
|
91
238
|
# Gets the latest state of a long-running operation. Clients can use this method
|
92
239
|
# to poll the operation result at intervals as recommended by the API service.
|
93
240
|
# @param [String] name
|
@@ -159,6 +306,49 @@ module Google
|
|
159
306
|
execute_or_queue_command(command, &block)
|
160
307
|
end
|
161
308
|
|
309
|
+
# Lists the results of running a Replay.
|
310
|
+
# @param [String] parent
|
311
|
+
# Required. The Replay whose results are listed, in the following format: ``
|
312
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
313
|
+
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
314
|
+
# 8e03-479ce1833c36`
|
315
|
+
# @param [Fixnum] page_size
|
316
|
+
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
317
|
+
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
318
|
+
# @param [String] page_token
|
319
|
+
# A page token, received from a previous Simulator.ListReplayResults call.
|
320
|
+
# Provide this token to retrieve the next page of results. When paginating, all
|
321
|
+
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
322
|
+
# call that provided the page token.
|
323
|
+
# @param [String] fields
|
324
|
+
# Selector specifying which fields to include in a partial response.
|
325
|
+
# @param [String] quota_user
|
326
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
327
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
328
|
+
# @param [Google::Apis::RequestOptions] options
|
329
|
+
# Request-specific options
|
330
|
+
#
|
331
|
+
# @yield [result, err] Result & error if block supplied
|
332
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
333
|
+
# @yieldparam err [StandardError] error object if request failed
|
334
|
+
#
|
335
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
336
|
+
#
|
337
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
338
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
339
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
340
|
+
def list_folder_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
341
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
342
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
343
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
344
|
+
command.params['parent'] = parent unless parent.nil?
|
345
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
346
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
347
|
+
command.query['fields'] = fields unless fields.nil?
|
348
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
349
|
+
execute_or_queue_command(command, &block)
|
350
|
+
end
|
351
|
+
|
162
352
|
# Gets the latest state of a long-running operation. Clients can use this method
|
163
353
|
# to poll the operation result at intervals as recommended by the API service.
|
164
354
|
# @param [String] name
|
@@ -230,6 +420,190 @@ module Google
|
|
230
420
|
execute_or_queue_command(command, &block)
|
231
421
|
end
|
232
422
|
|
423
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
424
|
+
# to poll the operation result at intervals as recommended by the API service.
|
425
|
+
# @param [String] name
|
426
|
+
# The name of the operation resource.
|
427
|
+
# @param [String] fields
|
428
|
+
# Selector specifying which fields to include in a partial response.
|
429
|
+
# @param [String] quota_user
|
430
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
431
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
432
|
+
# @param [Google::Apis::RequestOptions] options
|
433
|
+
# Request-specific options
|
434
|
+
#
|
435
|
+
# @yield [result, err] Result & error if block supplied
|
436
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
437
|
+
# @yieldparam err [StandardError] error object if request failed
|
438
|
+
#
|
439
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
440
|
+
#
|
441
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
442
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
443
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
444
|
+
def get_organization_location_access_policy_simulation_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
445
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
446
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
447
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
448
|
+
command.params['name'] = name unless name.nil?
|
449
|
+
command.query['fields'] = fields unless fields.nil?
|
450
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
451
|
+
execute_or_queue_command(command, &block)
|
452
|
+
end
|
453
|
+
|
454
|
+
# CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the
|
455
|
+
# proposed changes in the provided OrgPolicyViolationsPreview.OrgPolicyOverlay.
|
456
|
+
# The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The
|
457
|
+
# resources to scan are inferred from these specified changes.
|
458
|
+
# @param [String] parent
|
459
|
+
# Required. The organization under which this OrgPolicyViolationsPreview will be
|
460
|
+
# created. Example: `organizations/my-example-org/locations/global`
|
461
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
462
|
+
# @param [String] org_policy_violations_preview_id
|
463
|
+
# Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If
|
464
|
+
# not provided, a random ID will be generated.
|
465
|
+
# @param [String] fields
|
466
|
+
# Selector specifying which fields to include in a partial response.
|
467
|
+
# @param [String] quota_user
|
468
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
469
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
470
|
+
# @param [Google::Apis::RequestOptions] options
|
471
|
+
# Request-specific options
|
472
|
+
#
|
473
|
+
# @yield [result, err] Result & error if block supplied
|
474
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
475
|
+
# @yieldparam err [StandardError] error object if request failed
|
476
|
+
#
|
477
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
478
|
+
#
|
479
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
480
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
481
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
482
|
+
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)
|
483
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
|
484
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
|
485
|
+
command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
486
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
487
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
488
|
+
command.params['parent'] = parent unless parent.nil?
|
489
|
+
command.query['orgPolicyViolationsPreviewId'] = org_policy_violations_preview_id unless org_policy_violations_preview_id.nil?
|
490
|
+
command.query['fields'] = fields unless fields.nil?
|
491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
492
|
+
execute_or_queue_command(command, &block)
|
493
|
+
end
|
494
|
+
|
495
|
+
# GenerateOrgPolicyViolationsPreview generates an OrgPolicyViolationsPreview for
|
496
|
+
# the proposed changes in the provided OrgPolicyViolationsPreview.
|
497
|
+
# OrgPolicyOverlay. The changes to OrgPolicy are specified by this `
|
498
|
+
# OrgPolicyOverlay`. The resources to scan are inferred from these specified
|
499
|
+
# changes.
|
500
|
+
# @param [String] parent
|
501
|
+
# Required. The organization under which this OrgPolicyViolationsPreview will be
|
502
|
+
# created. Example: `organizations/my-example-org/locations/global`
|
503
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
504
|
+
# @param [String] fields
|
505
|
+
# Selector specifying which fields to include in a partial response.
|
506
|
+
# @param [String] quota_user
|
507
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
508
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
509
|
+
# @param [Google::Apis::RequestOptions] options
|
510
|
+
# Request-specific options
|
511
|
+
#
|
512
|
+
# @yield [result, err] Result & error if block supplied
|
513
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
514
|
+
# @yieldparam err [StandardError] error object if request failed
|
515
|
+
#
|
516
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
517
|
+
#
|
518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
521
|
+
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)
|
522
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/orgPolicyViolationsPreviews:generate', options)
|
523
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
|
524
|
+
command.request_object = google_cloud_policysimulator_v1beta_org_policy_violations_preview_object
|
525
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
526
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
527
|
+
command.params['parent'] = parent unless parent.nil?
|
528
|
+
command.query['fields'] = fields unless fields.nil?
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
530
|
+
execute_or_queue_command(command, &block)
|
531
|
+
end
|
532
|
+
|
533
|
+
# GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview.
|
534
|
+
# Each OrgPolicyViolationsPreview is available for at least 7 days.
|
535
|
+
# @param [String] name
|
536
|
+
# Required. The name of the OrgPolicyViolationsPreview to get.
|
537
|
+
# @param [String] fields
|
538
|
+
# Selector specifying which fields to include in a partial response.
|
539
|
+
# @param [String] quota_user
|
540
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
541
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
542
|
+
# @param [Google::Apis::RequestOptions] options
|
543
|
+
# Request-specific options
|
544
|
+
#
|
545
|
+
# @yield [result, err] Result & error if block supplied
|
546
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview] parsed result object
|
547
|
+
# @yieldparam err [StandardError] error object if request failed
|
548
|
+
#
|
549
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview]
|
550
|
+
#
|
551
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
552
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
553
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
554
|
+
def get_organization_location_org_policy_violations_preview(name, fields: nil, quota_user: nil, options: nil, &block)
|
555
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
556
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview::Representation
|
557
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview
|
558
|
+
command.params['name'] = name unless name.nil?
|
559
|
+
command.query['fields'] = fields unless fields.nil?
|
560
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
561
|
+
execute_or_queue_command(command, &block)
|
562
|
+
end
|
563
|
+
|
564
|
+
# ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an
|
565
|
+
# organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
|
566
|
+
# @param [String] parent
|
567
|
+
# Required. The parent the violations are scoped to. Format: `organizations/`
|
568
|
+
# organization`/locations/`location`` Example: `organizations/my-example-org/
|
569
|
+
# locations/global`
|
570
|
+
# @param [Fixnum] page_size
|
571
|
+
# Optional. The maximum number of items to return. The service may return fewer
|
572
|
+
# than this value. If unspecified, at most 5 items will be returned. The maximum
|
573
|
+
# value is 10; values above 10 will be coerced to 10.
|
574
|
+
# @param [String] page_token
|
575
|
+
# Optional. A page token, received from a previous call. Provide this to
|
576
|
+
# retrieve the subsequent page. When paginating, all other parameters must match
|
577
|
+
# the call that provided the page token.
|
578
|
+
# @param [String] fields
|
579
|
+
# Selector specifying which fields to include in a partial response.
|
580
|
+
# @param [String] quota_user
|
581
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
582
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
583
|
+
# @param [Google::Apis::RequestOptions] options
|
584
|
+
# Request-specific options
|
585
|
+
#
|
586
|
+
# @yield [result, err] Result & error if block supplied
|
587
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse] parsed result object
|
588
|
+
# @yieldparam err [StandardError] error object if request failed
|
589
|
+
#
|
590
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse]
|
591
|
+
#
|
592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
595
|
+
def list_organization_location_org_policy_violations_previews(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
596
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/orgPolicyViolationsPreviews', options)
|
597
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse::Representation
|
598
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsPreviewsResponse
|
599
|
+
command.params['parent'] = parent unless parent.nil?
|
600
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
601
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
602
|
+
command.query['fields'] = fields unless fields.nil?
|
603
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
604
|
+
execute_or_queue_command(command, &block)
|
605
|
+
end
|
606
|
+
|
233
607
|
# Gets the latest state of a long-running operation. Clients can use this method
|
234
608
|
# to poll the operation result at intervals as recommended by the API service.
|
235
609
|
# @param [String] name
|
@@ -261,6 +635,165 @@ module Google
|
|
261
635
|
execute_or_queue_command(command, &block)
|
262
636
|
end
|
263
637
|
|
638
|
+
# ListOrgPolicyViolations lists the OrgPolicyViolations that are present in an
|
639
|
+
# OrgPolicyViolationsPreview.
|
640
|
+
# @param [String] parent
|
641
|
+
# Required. The OrgPolicyViolationsPreview to get OrgPolicyViolations from.
|
642
|
+
# Format: organizations/`organization`/locations/`location`/
|
643
|
+
# orgPolicyViolationsPreviews/`orgPolicyViolationsPreview`
|
644
|
+
# @param [Fixnum] page_size
|
645
|
+
# Optional. The maximum number of items to return. The service may return fewer
|
646
|
+
# than this value. If unspecified, at most 1000 items will be returned. The
|
647
|
+
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
648
|
+
# @param [String] page_token
|
649
|
+
# Optional. A page token, received from a previous call. Provide this to
|
650
|
+
# retrieve the subsequent page. When paginating, all other parameters must match
|
651
|
+
# the call that provided the page token.
|
652
|
+
# @param [String] fields
|
653
|
+
# Selector specifying which fields to include in a partial response.
|
654
|
+
# @param [String] quota_user
|
655
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
656
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
657
|
+
# @param [Google::Apis::RequestOptions] options
|
658
|
+
# Request-specific options
|
659
|
+
#
|
660
|
+
# @yield [result, err] Result & error if block supplied
|
661
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse] parsed result object
|
662
|
+
# @yieldparam err [StandardError] error object if request failed
|
663
|
+
#
|
664
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse]
|
665
|
+
#
|
666
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
667
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
668
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
669
|
+
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)
|
670
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/orgPolicyViolations', options)
|
671
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse::Representation
|
672
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListOrgPolicyViolationsResponse
|
673
|
+
command.params['parent'] = parent unless parent.nil?
|
674
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
675
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
676
|
+
command.query['fields'] = fields unless fields.nil?
|
677
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
678
|
+
execute_or_queue_command(command, &block)
|
679
|
+
end
|
680
|
+
|
681
|
+
# Creates and starts a Replay using the given ReplayConfig.
|
682
|
+
# @param [String] parent
|
683
|
+
# Required. The parent resource where this Replay will be created. This resource
|
684
|
+
# must be a project, folder, or organization with a location. Example: `projects/
|
685
|
+
# my-example-project/locations/global`
|
686
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
687
|
+
# @param [String] fields
|
688
|
+
# Selector specifying which fields to include in a partial response.
|
689
|
+
# @param [String] quota_user
|
690
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
691
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
692
|
+
# @param [Google::Apis::RequestOptions] options
|
693
|
+
# Request-specific options
|
694
|
+
#
|
695
|
+
# @yield [result, err] Result & error if block supplied
|
696
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
697
|
+
# @yieldparam err [StandardError] error object if request failed
|
698
|
+
#
|
699
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
700
|
+
#
|
701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
704
|
+
def create_organization_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
705
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
706
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
707
|
+
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
708
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
709
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
710
|
+
command.params['parent'] = parent unless parent.nil?
|
711
|
+
command.query['fields'] = fields unless fields.nil?
|
712
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
713
|
+
execute_or_queue_command(command, &block)
|
714
|
+
end
|
715
|
+
|
716
|
+
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
717
|
+
# @param [String] name
|
718
|
+
# Required. The name of the Replay to retrieve, in the following format: ``
|
719
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
720
|
+
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
721
|
+
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
722
|
+
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
723
|
+
# @param [String] fields
|
724
|
+
# Selector specifying which fields to include in a partial response.
|
725
|
+
# @param [String] quota_user
|
726
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
727
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
728
|
+
# @param [Google::Apis::RequestOptions] options
|
729
|
+
# Request-specific options
|
730
|
+
#
|
731
|
+
# @yield [result, err] Result & error if block supplied
|
732
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
733
|
+
# @yieldparam err [StandardError] error object if request failed
|
734
|
+
#
|
735
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
736
|
+
#
|
737
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
738
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
739
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
740
|
+
def get_organization_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
741
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
742
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
743
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
744
|
+
command.params['name'] = name unless name.nil?
|
745
|
+
command.query['fields'] = fields unless fields.nil?
|
746
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
747
|
+
execute_or_queue_command(command, &block)
|
748
|
+
end
|
749
|
+
|
750
|
+
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
751
|
+
# available for at least 7 days.
|
752
|
+
# @param [String] parent
|
753
|
+
# Required. The parent resource, in the following format: ``projects|folders|
|
754
|
+
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
755
|
+
# ID of the project, folder, or organization that owns the Replay. Example: `
|
756
|
+
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
757
|
+
# direct children of the provided parent are listed. In other words, `Replay`
|
758
|
+
# objects that are children of a project will not be included when the parent is
|
759
|
+
# a folder of that project.
|
760
|
+
# @param [Fixnum] page_size
|
761
|
+
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
762
|
+
# value is 1000; values above 1000 are rounded down to 1000.
|
763
|
+
# @param [String] page_token
|
764
|
+
# A page token, received from a previous Simulator.ListReplays call. Provide
|
765
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
766
|
+
# provided to Simulator.ListReplays must match the call that provided the page
|
767
|
+
# token.
|
768
|
+
# @param [String] fields
|
769
|
+
# Selector specifying which fields to include in a partial response.
|
770
|
+
# @param [String] quota_user
|
771
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
772
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
773
|
+
# @param [Google::Apis::RequestOptions] options
|
774
|
+
# Request-specific options
|
775
|
+
#
|
776
|
+
# @yield [result, err] Result & error if block supplied
|
777
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
778
|
+
# @yieldparam err [StandardError] error object if request failed
|
779
|
+
#
|
780
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
781
|
+
#
|
782
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
783
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
784
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
785
|
+
def list_organization_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
786
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
787
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
788
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
789
|
+
command.params['parent'] = parent unless parent.nil?
|
790
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
791
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
792
|
+
command.query['fields'] = fields unless fields.nil?
|
793
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
794
|
+
execute_or_queue_command(command, &block)
|
795
|
+
end
|
796
|
+
|
264
797
|
# Gets the latest state of a long-running operation. Clients can use this method
|
265
798
|
# to poll the operation result at intervals as recommended by the API service.
|
266
799
|
# @param [String] name
|
@@ -332,6 +865,80 @@ module Google
|
|
332
865
|
execute_or_queue_command(command, &block)
|
333
866
|
end
|
334
867
|
|
868
|
+
# Lists the results of running a Replay.
|
869
|
+
# @param [String] parent
|
870
|
+
# Required. The Replay whose results are listed, in the following format: ``
|
871
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
872
|
+
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
873
|
+
# 8e03-479ce1833c36`
|
874
|
+
# @param [Fixnum] page_size
|
875
|
+
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
876
|
+
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
877
|
+
# @param [String] page_token
|
878
|
+
# A page token, received from a previous Simulator.ListReplayResults call.
|
879
|
+
# Provide this token to retrieve the next page of results. When paginating, all
|
880
|
+
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
881
|
+
# call that provided the page token.
|
882
|
+
# @param [String] fields
|
883
|
+
# Selector specifying which fields to include in a partial response.
|
884
|
+
# @param [String] quota_user
|
885
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
886
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
887
|
+
# @param [Google::Apis::RequestOptions] options
|
888
|
+
# Request-specific options
|
889
|
+
#
|
890
|
+
# @yield [result, err] Result & error if block supplied
|
891
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
892
|
+
# @yieldparam err [StandardError] error object if request failed
|
893
|
+
#
|
894
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
895
|
+
#
|
896
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
897
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
898
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
899
|
+
def list_organization_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
900
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
901
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
902
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
903
|
+
command.params['parent'] = parent unless parent.nil?
|
904
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
905
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
906
|
+
command.query['fields'] = fields unless fields.nil?
|
907
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
908
|
+
execute_or_queue_command(command, &block)
|
909
|
+
end
|
910
|
+
|
911
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
912
|
+
# to poll the operation result at intervals as recommended by the API service.
|
913
|
+
# @param [String] name
|
914
|
+
# The name of the operation resource.
|
915
|
+
# @param [String] fields
|
916
|
+
# Selector specifying which fields to include in a partial response.
|
917
|
+
# @param [String] quota_user
|
918
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
919
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
920
|
+
# @param [Google::Apis::RequestOptions] options
|
921
|
+
# Request-specific options
|
922
|
+
#
|
923
|
+
# @yield [result, err] Result & error if block supplied
|
924
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
925
|
+
# @yieldparam err [StandardError] error object if request failed
|
926
|
+
#
|
927
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
928
|
+
#
|
929
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
930
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
931
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
932
|
+
def get_project_location_access_policy_simulation_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
933
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
934
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
935
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
936
|
+
command.params['name'] = name unless name.nil?
|
937
|
+
command.query['fields'] = fields unless fields.nil?
|
938
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
939
|
+
execute_or_queue_command(command, &block)
|
940
|
+
end
|
941
|
+
|
335
942
|
# Gets the latest state of a long-running operation. Clients can use this method
|
336
943
|
# to poll the operation result at intervals as recommended by the API service.
|
337
944
|
# @param [String] name
|
@@ -363,6 +970,122 @@ module Google
|
|
363
970
|
execute_or_queue_command(command, &block)
|
364
971
|
end
|
365
972
|
|
973
|
+
# Creates and starts a Replay using the given ReplayConfig.
|
974
|
+
# @param [String] parent
|
975
|
+
# Required. The parent resource where this Replay will be created. This resource
|
976
|
+
# must be a project, folder, or organization with a location. Example: `projects/
|
977
|
+
# my-example-project/locations/global`
|
978
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
979
|
+
# @param [String] fields
|
980
|
+
# Selector specifying which fields to include in a partial response.
|
981
|
+
# @param [String] quota_user
|
982
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
983
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
984
|
+
# @param [Google::Apis::RequestOptions] options
|
985
|
+
# Request-specific options
|
986
|
+
#
|
987
|
+
# @yield [result, err] Result & error if block supplied
|
988
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
989
|
+
# @yieldparam err [StandardError] error object if request failed
|
990
|
+
#
|
991
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
992
|
+
#
|
993
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
994
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
995
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
996
|
+
def create_project_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
997
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
998
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
999
|
+
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
1000
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
1001
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
1002
|
+
command.params['parent'] = parent unless parent.nil?
|
1003
|
+
command.query['fields'] = fields unless fields.nil?
|
1004
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1005
|
+
execute_or_queue_command(command, &block)
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
1009
|
+
# @param [String] name
|
1010
|
+
# Required. The name of the Replay to retrieve, in the following format: ``
|
1011
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
1012
|
+
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
1013
|
+
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
1014
|
+
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
1015
|
+
# @param [String] fields
|
1016
|
+
# Selector specifying which fields to include in a partial response.
|
1017
|
+
# @param [String] quota_user
|
1018
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1019
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1020
|
+
# @param [Google::Apis::RequestOptions] options
|
1021
|
+
# Request-specific options
|
1022
|
+
#
|
1023
|
+
# @yield [result, err] Result & error if block supplied
|
1024
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
1025
|
+
# @yieldparam err [StandardError] error object if request failed
|
1026
|
+
#
|
1027
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
1028
|
+
#
|
1029
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1030
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1031
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1032
|
+
def get_project_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
1033
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
1034
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
1035
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
1036
|
+
command.params['name'] = name unless name.nil?
|
1037
|
+
command.query['fields'] = fields unless fields.nil?
|
1038
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1039
|
+
execute_or_queue_command(command, &block)
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
1043
|
+
# available for at least 7 days.
|
1044
|
+
# @param [String] parent
|
1045
|
+
# Required. The parent resource, in the following format: ``projects|folders|
|
1046
|
+
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
1047
|
+
# ID of the project, folder, or organization that owns the Replay. Example: `
|
1048
|
+
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
1049
|
+
# direct children of the provided parent are listed. In other words, `Replay`
|
1050
|
+
# objects that are children of a project will not be included when the parent is
|
1051
|
+
# a folder of that project.
|
1052
|
+
# @param [Fixnum] page_size
|
1053
|
+
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
1054
|
+
# value is 1000; values above 1000 are rounded down to 1000.
|
1055
|
+
# @param [String] page_token
|
1056
|
+
# A page token, received from a previous Simulator.ListReplays call. Provide
|
1057
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
1058
|
+
# provided to Simulator.ListReplays must match the call that provided the page
|
1059
|
+
# token.
|
1060
|
+
# @param [String] fields
|
1061
|
+
# Selector specifying which fields to include in a partial response.
|
1062
|
+
# @param [String] quota_user
|
1063
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1064
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1065
|
+
# @param [Google::Apis::RequestOptions] options
|
1066
|
+
# Request-specific options
|
1067
|
+
#
|
1068
|
+
# @yield [result, err] Result & error if block supplied
|
1069
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
1070
|
+
# @yieldparam err [StandardError] error object if request failed
|
1071
|
+
#
|
1072
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
1073
|
+
#
|
1074
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1075
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1076
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1077
|
+
def list_project_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1078
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
1079
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
1080
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
1081
|
+
command.params['parent'] = parent unless parent.nil?
|
1082
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1083
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1084
|
+
command.query['fields'] = fields unless fields.nil?
|
1085
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1086
|
+
execute_or_queue_command(command, &block)
|
1087
|
+
end
|
1088
|
+
|
366
1089
|
# Gets the latest state of a long-running operation. Clients can use this method
|
367
1090
|
# to poll the operation result at intervals as recommended by the API service.
|
368
1091
|
# @param [String] name
|
@@ -433,6 +1156,49 @@ module Google
|
|
433
1156
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
434
1157
|
execute_or_queue_command(command, &block)
|
435
1158
|
end
|
1159
|
+
|
1160
|
+
# Lists the results of running a Replay.
|
1161
|
+
# @param [String] parent
|
1162
|
+
# Required. The Replay whose results are listed, in the following format: ``
|
1163
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
1164
|
+
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
1165
|
+
# 8e03-479ce1833c36`
|
1166
|
+
# @param [Fixnum] page_size
|
1167
|
+
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
1168
|
+
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
1169
|
+
# @param [String] page_token
|
1170
|
+
# A page token, received from a previous Simulator.ListReplayResults call.
|
1171
|
+
# Provide this token to retrieve the next page of results. When paginating, all
|
1172
|
+
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
1173
|
+
# call that provided the page token.
|
1174
|
+
# @param [String] fields
|
1175
|
+
# Selector specifying which fields to include in a partial response.
|
1176
|
+
# @param [String] quota_user
|
1177
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1178
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1179
|
+
# @param [Google::Apis::RequestOptions] options
|
1180
|
+
# Request-specific options
|
1181
|
+
#
|
1182
|
+
# @yield [result, err] Result & error if block supplied
|
1183
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
1184
|
+
# @yieldparam err [StandardError] error object if request failed
|
1185
|
+
#
|
1186
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
1187
|
+
#
|
1188
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1189
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1190
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1191
|
+
def list_project_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1192
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
1193
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
1194
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
1195
|
+
command.params['parent'] = parent unless parent.nil?
|
1196
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1197
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1198
|
+
command.query['fields'] = fields unless fields.nil?
|
1199
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1200
|
+
execute_or_queue_command(command, &block)
|
1201
|
+
end
|
436
1202
|
|
437
1203
|
protected
|
438
1204
|
|