google-apis-policysimulator_v1beta 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/policysimulator_v1beta/classes.rb +641 -2
- data/lib/google/apis/policysimulator_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/policysimulator_v1beta/representations.rb +226 -0
- data/lib/google/apis/policysimulator_v1beta/service.rb +480 -2
- metadata +4 -4
@@ -86,6 +86,122 @@ module Google
|
|
86
86
|
execute_or_queue_command(command, &block)
|
87
87
|
end
|
88
88
|
|
89
|
+
# Creates and starts a Replay using the given ReplayConfig.
|
90
|
+
# @param [String] parent
|
91
|
+
# Required. The parent resource where this Replay will be created. This resource
|
92
|
+
# must be a project, folder, or organization with a location. Example: `projects/
|
93
|
+
# my-example-project/locations/global`
|
94
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def create_folder_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
114
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
115
|
+
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
116
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
117
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
118
|
+
command.params['parent'] = parent unless parent.nil?
|
119
|
+
command.query['fields'] = fields unless fields.nil?
|
120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
121
|
+
execute_or_queue_command(command, &block)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
125
|
+
# @param [String] name
|
126
|
+
# Required. The name of the Replay to retrieve, in the following format: ``
|
127
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
128
|
+
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
129
|
+
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
130
|
+
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
133
|
+
# @param [String] quota_user
|
134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
136
|
+
# @param [Google::Apis::RequestOptions] options
|
137
|
+
# Request-specific options
|
138
|
+
#
|
139
|
+
# @yield [result, err] Result & error if block supplied
|
140
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
144
|
+
#
|
145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
+
def get_folder_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
150
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
151
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
152
|
+
command.params['name'] = name unless name.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
158
|
+
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
159
|
+
# available for at least 7 days.
|
160
|
+
# @param [String] parent
|
161
|
+
# Required. The parent resource, in the following format: ``projects|folders|
|
162
|
+
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
163
|
+
# ID of the project, folder, or organization that owns the Replay. Example: `
|
164
|
+
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
165
|
+
# direct children of the provided parent are listed. In other words, `Replay`
|
166
|
+
# objects that are children of a project will not be included when the parent is
|
167
|
+
# a folder of that project.
|
168
|
+
# @param [Fixnum] page_size
|
169
|
+
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
170
|
+
# value is 1000; values above 1000 are rounded down to 1000.
|
171
|
+
# @param [String] page_token
|
172
|
+
# A page token, received from a previous Simulator.ListReplays call. Provide
|
173
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
174
|
+
# provided to Simulator.ListReplays must match the call that provided the page
|
175
|
+
# token.
|
176
|
+
# @param [String] fields
|
177
|
+
# Selector specifying which fields to include in a partial response.
|
178
|
+
# @param [String] quota_user
|
179
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
180
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
181
|
+
# @param [Google::Apis::RequestOptions] options
|
182
|
+
# Request-specific options
|
183
|
+
#
|
184
|
+
# @yield [result, err] Result & error if block supplied
|
185
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
186
|
+
# @yieldparam err [StandardError] error object if request failed
|
187
|
+
#
|
188
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
189
|
+
#
|
190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
193
|
+
def list_folder_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
194
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
195
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
196
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
197
|
+
command.params['parent'] = parent unless parent.nil?
|
198
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
199
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
200
|
+
command.query['fields'] = fields unless fields.nil?
|
201
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
202
|
+
execute_or_queue_command(command, &block)
|
203
|
+
end
|
204
|
+
|
89
205
|
# Gets the latest state of a long-running operation. Clients can use this method
|
90
206
|
# to poll the operation result at intervals as recommended by the API service.
|
91
207
|
# @param [String] name
|
@@ -157,6 +273,49 @@ module Google
|
|
157
273
|
execute_or_queue_command(command, &block)
|
158
274
|
end
|
159
275
|
|
276
|
+
# Lists the results of running a Replay.
|
277
|
+
# @param [String] parent
|
278
|
+
# Required. The Replay whose results are listed, in the following format: ``
|
279
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
280
|
+
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
281
|
+
# 8e03-479ce1833c36`
|
282
|
+
# @param [Fixnum] page_size
|
283
|
+
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
284
|
+
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
285
|
+
# @param [String] page_token
|
286
|
+
# A page token, received from a previous Simulator.ListReplayResults call.
|
287
|
+
# Provide this token to retrieve the next page of results. When paginating, all
|
288
|
+
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
289
|
+
# call that provided the page token.
|
290
|
+
# @param [String] fields
|
291
|
+
# Selector specifying which fields to include in a partial response.
|
292
|
+
# @param [String] quota_user
|
293
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
294
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
295
|
+
# @param [Google::Apis::RequestOptions] options
|
296
|
+
# Request-specific options
|
297
|
+
#
|
298
|
+
# @yield [result, err] Result & error if block supplied
|
299
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
300
|
+
# @yieldparam err [StandardError] error object if request failed
|
301
|
+
#
|
302
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
303
|
+
#
|
304
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
305
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
306
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
307
|
+
def list_folder_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
308
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
309
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
310
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
311
|
+
command.params['parent'] = parent unless parent.nil?
|
312
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
313
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
314
|
+
command.query['fields'] = fields unless fields.nil?
|
315
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
316
|
+
execute_or_queue_command(command, &block)
|
317
|
+
end
|
318
|
+
|
160
319
|
# Gets the latest state of a long-running operation. Clients can use this method
|
161
320
|
# to poll the operation result at intervals as recommended by the API service.
|
162
321
|
# @param [String] name
|
@@ -300,8 +459,9 @@ module Google
|
|
300
459
|
# ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an
|
301
460
|
# organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
|
302
461
|
# @param [String] parent
|
303
|
-
# Required. The parent the violations are scoped to. Format: organizations/`
|
304
|
-
# organization`
|
462
|
+
# Required. The parent the violations are scoped to. Format: `organizations/`
|
463
|
+
# organization`/locations/`location`` Example: `organizations/my-example-org/
|
464
|
+
# locations/global`
|
305
465
|
# @param [Fixnum] page_size
|
306
466
|
# The maximum number of items to return. The service may return fewer than this
|
307
467
|
# value. If unspecified, at most 5 items will be returned. The maximum value is
|
@@ -413,6 +573,122 @@ module Google
|
|
413
573
|
execute_or_queue_command(command, &block)
|
414
574
|
end
|
415
575
|
|
576
|
+
# Creates and starts a Replay using the given ReplayConfig.
|
577
|
+
# @param [String] parent
|
578
|
+
# Required. The parent resource where this Replay will be created. This resource
|
579
|
+
# must be a project, folder, or organization with a location. Example: `projects/
|
580
|
+
# my-example-project/locations/global`
|
581
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
582
|
+
# @param [String] fields
|
583
|
+
# Selector specifying which fields to include in a partial response.
|
584
|
+
# @param [String] quota_user
|
585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
587
|
+
# @param [Google::Apis::RequestOptions] options
|
588
|
+
# Request-specific options
|
589
|
+
#
|
590
|
+
# @yield [result, err] Result & error if block supplied
|
591
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
592
|
+
# @yieldparam err [StandardError] error object if request failed
|
593
|
+
#
|
594
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
595
|
+
#
|
596
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
597
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
598
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
599
|
+
def create_organization_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
600
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
601
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
602
|
+
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
603
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
604
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
605
|
+
command.params['parent'] = parent unless parent.nil?
|
606
|
+
command.query['fields'] = fields unless fields.nil?
|
607
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
608
|
+
execute_or_queue_command(command, &block)
|
609
|
+
end
|
610
|
+
|
611
|
+
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
612
|
+
# @param [String] name
|
613
|
+
# Required. The name of the Replay to retrieve, in the following format: ``
|
614
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
615
|
+
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
616
|
+
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
617
|
+
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
618
|
+
# @param [String] fields
|
619
|
+
# Selector specifying which fields to include in a partial response.
|
620
|
+
# @param [String] quota_user
|
621
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
622
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
623
|
+
# @param [Google::Apis::RequestOptions] options
|
624
|
+
# Request-specific options
|
625
|
+
#
|
626
|
+
# @yield [result, err] Result & error if block supplied
|
627
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
628
|
+
# @yieldparam err [StandardError] error object if request failed
|
629
|
+
#
|
630
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
631
|
+
#
|
632
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
633
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
634
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
635
|
+
def get_organization_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
636
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
637
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
638
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
639
|
+
command.params['name'] = name unless name.nil?
|
640
|
+
command.query['fields'] = fields unless fields.nil?
|
641
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
642
|
+
execute_or_queue_command(command, &block)
|
643
|
+
end
|
644
|
+
|
645
|
+
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
646
|
+
# available for at least 7 days.
|
647
|
+
# @param [String] parent
|
648
|
+
# Required. The parent resource, in the following format: ``projects|folders|
|
649
|
+
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
650
|
+
# ID of the project, folder, or organization that owns the Replay. Example: `
|
651
|
+
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
652
|
+
# direct children of the provided parent are listed. In other words, `Replay`
|
653
|
+
# objects that are children of a project will not be included when the parent is
|
654
|
+
# a folder of that project.
|
655
|
+
# @param [Fixnum] page_size
|
656
|
+
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
657
|
+
# value is 1000; values above 1000 are rounded down to 1000.
|
658
|
+
# @param [String] page_token
|
659
|
+
# A page token, received from a previous Simulator.ListReplays call. Provide
|
660
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
661
|
+
# provided to Simulator.ListReplays must match the call that provided the page
|
662
|
+
# token.
|
663
|
+
# @param [String] fields
|
664
|
+
# Selector specifying which fields to include in a partial response.
|
665
|
+
# @param [String] quota_user
|
666
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
667
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
668
|
+
# @param [Google::Apis::RequestOptions] options
|
669
|
+
# Request-specific options
|
670
|
+
#
|
671
|
+
# @yield [result, err] Result & error if block supplied
|
672
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
673
|
+
# @yieldparam err [StandardError] error object if request failed
|
674
|
+
#
|
675
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
676
|
+
#
|
677
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
678
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
679
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
680
|
+
def list_organization_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
681
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
682
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
683
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
684
|
+
command.params['parent'] = parent unless parent.nil?
|
685
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
686
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
687
|
+
command.query['fields'] = fields unless fields.nil?
|
688
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
689
|
+
execute_or_queue_command(command, &block)
|
690
|
+
end
|
691
|
+
|
416
692
|
# Gets the latest state of a long-running operation. Clients can use this method
|
417
693
|
# to poll the operation result at intervals as recommended by the API service.
|
418
694
|
# @param [String] name
|
@@ -484,6 +760,49 @@ module Google
|
|
484
760
|
execute_or_queue_command(command, &block)
|
485
761
|
end
|
486
762
|
|
763
|
+
# Lists the results of running a Replay.
|
764
|
+
# @param [String] parent
|
765
|
+
# Required. The Replay whose results are listed, in the following format: ``
|
766
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
767
|
+
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
768
|
+
# 8e03-479ce1833c36`
|
769
|
+
# @param [Fixnum] page_size
|
770
|
+
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
771
|
+
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
772
|
+
# @param [String] page_token
|
773
|
+
# A page token, received from a previous Simulator.ListReplayResults call.
|
774
|
+
# Provide this token to retrieve the next page of results. When paginating, all
|
775
|
+
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
776
|
+
# call that provided the page token.
|
777
|
+
# @param [String] fields
|
778
|
+
# Selector specifying which fields to include in a partial response.
|
779
|
+
# @param [String] quota_user
|
780
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
781
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
782
|
+
# @param [Google::Apis::RequestOptions] options
|
783
|
+
# Request-specific options
|
784
|
+
#
|
785
|
+
# @yield [result, err] Result & error if block supplied
|
786
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
787
|
+
# @yieldparam err [StandardError] error object if request failed
|
788
|
+
#
|
789
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
790
|
+
#
|
791
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
792
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
793
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
794
|
+
def list_organization_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
795
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
796
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
797
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
798
|
+
command.params['parent'] = parent unless parent.nil?
|
799
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
800
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
801
|
+
command.query['fields'] = fields unless fields.nil?
|
802
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
803
|
+
execute_or_queue_command(command, &block)
|
804
|
+
end
|
805
|
+
|
487
806
|
# Gets the latest state of a long-running operation. Clients can use this method
|
488
807
|
# to poll the operation result at intervals as recommended by the API service.
|
489
808
|
# @param [String] name
|
@@ -515,6 +834,122 @@ module Google
|
|
515
834
|
execute_or_queue_command(command, &block)
|
516
835
|
end
|
517
836
|
|
837
|
+
# Creates and starts a Replay using the given ReplayConfig.
|
838
|
+
# @param [String] parent
|
839
|
+
# Required. The parent resource where this Replay will be created. This resource
|
840
|
+
# must be a project, folder, or organization with a location. Example: `projects/
|
841
|
+
# my-example-project/locations/global`
|
842
|
+
# @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
|
843
|
+
# @param [String] fields
|
844
|
+
# Selector specifying which fields to include in a partial response.
|
845
|
+
# @param [String] quota_user
|
846
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
847
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
848
|
+
# @param [Google::Apis::RequestOptions] options
|
849
|
+
# Request-specific options
|
850
|
+
#
|
851
|
+
# @yield [result, err] Result & error if block supplied
|
852
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
|
853
|
+
# @yieldparam err [StandardError] error object if request failed
|
854
|
+
#
|
855
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
|
856
|
+
#
|
857
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
858
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
859
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
860
|
+
def create_project_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
861
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
|
862
|
+
command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
863
|
+
command.request_object = google_cloud_policysimulator_v1beta_replay_object
|
864
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
|
865
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
|
866
|
+
command.params['parent'] = parent unless parent.nil?
|
867
|
+
command.query['fields'] = fields unless fields.nil?
|
868
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
869
|
+
execute_or_queue_command(command, &block)
|
870
|
+
end
|
871
|
+
|
872
|
+
# Gets the specified Replay. Each `Replay` is available for at least 7 days.
|
873
|
+
# @param [String] name
|
874
|
+
# Required. The name of the Replay to retrieve, in the following format: ``
|
875
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
876
|
+
# id``, where ``resource-id`` is the ID of the project, folder, or organization
|
877
|
+
# that owns the `Replay`. Example: `projects/my-example-project/locations/global/
|
878
|
+
# replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
|
879
|
+
# @param [String] fields
|
880
|
+
# Selector specifying which fields to include in a partial response.
|
881
|
+
# @param [String] quota_user
|
882
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
883
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
884
|
+
# @param [Google::Apis::RequestOptions] options
|
885
|
+
# Request-specific options
|
886
|
+
#
|
887
|
+
# @yield [result, err] Result & error if block supplied
|
888
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
|
889
|
+
# @yieldparam err [StandardError] error object if request failed
|
890
|
+
#
|
891
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
|
892
|
+
#
|
893
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
894
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
895
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
896
|
+
def get_project_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
|
897
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
898
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
|
899
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
|
900
|
+
command.params['name'] = name unless name.nil?
|
901
|
+
command.query['fields'] = fields unless fields.nil?
|
902
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
903
|
+
execute_or_queue_command(command, &block)
|
904
|
+
end
|
905
|
+
|
906
|
+
# Lists each Replay in a project, folder, or organization. Each `Replay` is
|
907
|
+
# available for at least 7 days.
|
908
|
+
# @param [String] parent
|
909
|
+
# Required. The parent resource, in the following format: ``projects|folders|
|
910
|
+
# organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
|
911
|
+
# ID of the project, folder, or organization that owns the Replay. Example: `
|
912
|
+
# projects/my-example-project/locations/global` Only `Replay` objects that are
|
913
|
+
# direct children of the provided parent are listed. In other words, `Replay`
|
914
|
+
# objects that are children of a project will not be included when the parent is
|
915
|
+
# a folder of that project.
|
916
|
+
# @param [Fixnum] page_size
|
917
|
+
# The maximum number of Replay objects to return. Defaults to 50. The maximum
|
918
|
+
# value is 1000; values above 1000 are rounded down to 1000.
|
919
|
+
# @param [String] page_token
|
920
|
+
# A page token, received from a previous Simulator.ListReplays call. Provide
|
921
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
922
|
+
# provided to Simulator.ListReplays must match the call that provided the page
|
923
|
+
# token.
|
924
|
+
# @param [String] fields
|
925
|
+
# Selector specifying which fields to include in a partial response.
|
926
|
+
# @param [String] quota_user
|
927
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
928
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
929
|
+
# @param [Google::Apis::RequestOptions] options
|
930
|
+
# Request-specific options
|
931
|
+
#
|
932
|
+
# @yield [result, err] Result & error if block supplied
|
933
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
|
934
|
+
# @yieldparam err [StandardError] error object if request failed
|
935
|
+
#
|
936
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
|
937
|
+
#
|
938
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
939
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
940
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
941
|
+
def list_project_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
942
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
|
943
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
|
944
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
|
945
|
+
command.params['parent'] = parent unless parent.nil?
|
946
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
947
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
948
|
+
command.query['fields'] = fields unless fields.nil?
|
949
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
950
|
+
execute_or_queue_command(command, &block)
|
951
|
+
end
|
952
|
+
|
518
953
|
# Gets the latest state of a long-running operation. Clients can use this method
|
519
954
|
# to poll the operation result at intervals as recommended by the API service.
|
520
955
|
# @param [String] name
|
@@ -585,6 +1020,49 @@ module Google
|
|
585
1020
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
586
1021
|
execute_or_queue_command(command, &block)
|
587
1022
|
end
|
1023
|
+
|
1024
|
+
# Lists the results of running a Replay.
|
1025
|
+
# @param [String] parent
|
1026
|
+
# Required. The Replay whose results are listed, in the following format: ``
|
1027
|
+
# projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
|
1028
|
+
# id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
|
1029
|
+
# 8e03-479ce1833c36`
|
1030
|
+
# @param [Fixnum] page_size
|
1031
|
+
# The maximum number of ReplayResult objects to return. Defaults to 5000. The
|
1032
|
+
# maximum value is 5000; values above 5000 are rounded down to 5000.
|
1033
|
+
# @param [String] page_token
|
1034
|
+
# A page token, received from a previous Simulator.ListReplayResults call.
|
1035
|
+
# Provide this token to retrieve the next page of results. When paginating, all
|
1036
|
+
# other parameters provided to [Simulator.ListReplayResults[] must match the
|
1037
|
+
# call that provided the page token.
|
1038
|
+
# @param [String] fields
|
1039
|
+
# Selector specifying which fields to include in a partial response.
|
1040
|
+
# @param [String] quota_user
|
1041
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1042
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1043
|
+
# @param [Google::Apis::RequestOptions] options
|
1044
|
+
# Request-specific options
|
1045
|
+
#
|
1046
|
+
# @yield [result, err] Result & error if block supplied
|
1047
|
+
# @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
|
1048
|
+
# @yieldparam err [StandardError] error object if request failed
|
1049
|
+
#
|
1050
|
+
# @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
|
1051
|
+
#
|
1052
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1053
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1054
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1055
|
+
def list_project_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1056
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
|
1057
|
+
command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
|
1058
|
+
command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
|
1059
|
+
command.params['parent'] = parent unless parent.nil?
|
1060
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1061
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1062
|
+
command.query['fields'] = fields unless fields.nil?
|
1063
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1064
|
+
execute_or_queue_command(command, &block)
|
1065
|
+
end
|
588
1066
|
|
589
1067
|
protected
|
590
1068
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-policysimulator_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.5.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-policysimulator_v1beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Policy Simulator API V1beta
|