google-apis-policysimulator_v1beta 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -413,6 +572,122 @@ module Google
413
572
  execute_or_queue_command(command, &block)
414
573
  end
415
574
 
575
+ # Creates and starts a Replay using the given ReplayConfig.
576
+ # @param [String] parent
577
+ # Required. The parent resource where this Replay will be created. This resource
578
+ # must be a project, folder, or organization with a location. Example: `projects/
579
+ # my-example-project/locations/global`
580
+ # @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
581
+ # @param [String] fields
582
+ # Selector specifying which fields to include in a partial response.
583
+ # @param [String] quota_user
584
+ # Available to use for quota purposes for server-side applications. Can be any
585
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
586
+ # @param [Google::Apis::RequestOptions] options
587
+ # Request-specific options
588
+ #
589
+ # @yield [result, err] Result & error if block supplied
590
+ # @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
591
+ # @yieldparam err [StandardError] error object if request failed
592
+ #
593
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
594
+ #
595
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
596
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
597
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
598
+ def create_organization_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
599
+ command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
600
+ command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
601
+ command.request_object = google_cloud_policysimulator_v1beta_replay_object
602
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
603
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
604
+ command.params['parent'] = parent unless parent.nil?
605
+ command.query['fields'] = fields unless fields.nil?
606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
607
+ execute_or_queue_command(command, &block)
608
+ end
609
+
610
+ # Gets the specified Replay. Each `Replay` is available for at least 7 days.
611
+ # @param [String] name
612
+ # Required. The name of the Replay to retrieve, in the following format: ``
613
+ # projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
614
+ # id``, where ``resource-id`` is the ID of the project, folder, or organization
615
+ # that owns the `Replay`. Example: `projects/my-example-project/locations/global/
616
+ # replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
617
+ # @param [String] fields
618
+ # Selector specifying which fields to include in a partial response.
619
+ # @param [String] quota_user
620
+ # Available to use for quota purposes for server-side applications. Can be any
621
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
622
+ # @param [Google::Apis::RequestOptions] options
623
+ # Request-specific options
624
+ #
625
+ # @yield [result, err] Result & error if block supplied
626
+ # @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
627
+ # @yieldparam err [StandardError] error object if request failed
628
+ #
629
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
630
+ #
631
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
632
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
633
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
634
+ def get_organization_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
635
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
636
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
637
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
638
+ command.params['name'] = name unless name.nil?
639
+ command.query['fields'] = fields unless fields.nil?
640
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
641
+ execute_or_queue_command(command, &block)
642
+ end
643
+
644
+ # Lists each Replay in a project, folder, or organization. Each `Replay` is
645
+ # available for at least 7 days.
646
+ # @param [String] parent
647
+ # Required. The parent resource, in the following format: ``projects|folders|
648
+ # organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
649
+ # ID of the project, folder, or organization that owns the Replay. Example: `
650
+ # projects/my-example-project/locations/global` Only `Replay` objects that are
651
+ # direct children of the provided parent are listed. In other words, `Replay`
652
+ # objects that are children of a project will not be included when the parent is
653
+ # a folder of that project.
654
+ # @param [Fixnum] page_size
655
+ # The maximum number of Replay objects to return. Defaults to 50. The maximum
656
+ # value is 1000; values above 1000 are rounded down to 1000.
657
+ # @param [String] page_token
658
+ # A page token, received from a previous Simulator.ListReplays call. Provide
659
+ # this to retrieve the subsequent page. When paginating, all other parameters
660
+ # provided to Simulator.ListReplays must match the call that provided the page
661
+ # token.
662
+ # @param [String] fields
663
+ # Selector specifying which fields to include in a partial response.
664
+ # @param [String] quota_user
665
+ # Available to use for quota purposes for server-side applications. Can be any
666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
667
+ # @param [Google::Apis::RequestOptions] options
668
+ # Request-specific options
669
+ #
670
+ # @yield [result, err] Result & error if block supplied
671
+ # @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
672
+ # @yieldparam err [StandardError] error object if request failed
673
+ #
674
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
675
+ #
676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
679
+ def list_organization_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
680
+ command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
681
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
682
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
683
+ command.params['parent'] = parent unless parent.nil?
684
+ command.query['pageSize'] = page_size unless page_size.nil?
685
+ command.query['pageToken'] = page_token unless page_token.nil?
686
+ command.query['fields'] = fields unless fields.nil?
687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
688
+ execute_or_queue_command(command, &block)
689
+ end
690
+
416
691
  # Gets the latest state of a long-running operation. Clients can use this method
417
692
  # to poll the operation result at intervals as recommended by the API service.
418
693
  # @param [String] name
@@ -484,6 +759,49 @@ module Google
484
759
  execute_or_queue_command(command, &block)
485
760
  end
486
761
 
762
+ # Lists the results of running a Replay.
763
+ # @param [String] parent
764
+ # Required. The Replay whose results are listed, in the following format: ``
765
+ # projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
766
+ # id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
767
+ # 8e03-479ce1833c36`
768
+ # @param [Fixnum] page_size
769
+ # The maximum number of ReplayResult objects to return. Defaults to 5000. The
770
+ # maximum value is 5000; values above 5000 are rounded down to 5000.
771
+ # @param [String] page_token
772
+ # A page token, received from a previous Simulator.ListReplayResults call.
773
+ # Provide this token to retrieve the next page of results. When paginating, all
774
+ # other parameters provided to [Simulator.ListReplayResults[] must match the
775
+ # call that provided the page token.
776
+ # @param [String] fields
777
+ # Selector specifying which fields to include in a partial response.
778
+ # @param [String] quota_user
779
+ # Available to use for quota purposes for server-side applications. Can be any
780
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
781
+ # @param [Google::Apis::RequestOptions] options
782
+ # Request-specific options
783
+ #
784
+ # @yield [result, err] Result & error if block supplied
785
+ # @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
786
+ # @yieldparam err [StandardError] error object if request failed
787
+ #
788
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
789
+ #
790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
793
+ def list_organization_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
794
+ command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
795
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
796
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
797
+ command.params['parent'] = parent unless parent.nil?
798
+ command.query['pageSize'] = page_size unless page_size.nil?
799
+ command.query['pageToken'] = page_token unless page_token.nil?
800
+ command.query['fields'] = fields unless fields.nil?
801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
802
+ execute_or_queue_command(command, &block)
803
+ end
804
+
487
805
  # Gets the latest state of a long-running operation. Clients can use this method
488
806
  # to poll the operation result at intervals as recommended by the API service.
489
807
  # @param [String] name
@@ -515,6 +833,122 @@ module Google
515
833
  execute_or_queue_command(command, &block)
516
834
  end
517
835
 
836
+ # Creates and starts a Replay using the given ReplayConfig.
837
+ # @param [String] parent
838
+ # Required. The parent resource where this Replay will be created. This resource
839
+ # must be a project, folder, or organization with a location. Example: `projects/
840
+ # my-example-project/locations/global`
841
+ # @param [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] google_cloud_policysimulator_v1beta_replay_object
842
+ # @param [String] fields
843
+ # Selector specifying which fields to include in a partial response.
844
+ # @param [String] quota_user
845
+ # Available to use for quota purposes for server-side applications. Can be any
846
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
847
+ # @param [Google::Apis::RequestOptions] options
848
+ # Request-specific options
849
+ #
850
+ # @yield [result, err] Result & error if block supplied
851
+ # @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation] parsed result object
852
+ # @yieldparam err [StandardError] error object if request failed
853
+ #
854
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation]
855
+ #
856
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
857
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
858
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
859
+ def create_project_location_replay(parent, google_cloud_policysimulator_v1beta_replay_object = nil, fields: nil, quota_user: nil, options: nil, &block)
860
+ command = make_simple_command(:post, 'v1beta/{+parent}/replays', options)
861
+ command.request_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
862
+ command.request_object = google_cloud_policysimulator_v1beta_replay_object
863
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation::Representation
864
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleLongrunningOperation
865
+ command.params['parent'] = parent unless parent.nil?
866
+ command.query['fields'] = fields unless fields.nil?
867
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
868
+ execute_or_queue_command(command, &block)
869
+ end
870
+
871
+ # Gets the specified Replay. Each `Replay` is available for at least 7 days.
872
+ # @param [String] name
873
+ # Required. The name of the Replay to retrieve, in the following format: ``
874
+ # projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
875
+ # id``, where ``resource-id`` is the ID of the project, folder, or organization
876
+ # that owns the `Replay`. Example: `projects/my-example-project/locations/global/
877
+ # replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
878
+ # @param [String] fields
879
+ # Selector specifying which fields to include in a partial response.
880
+ # @param [String] quota_user
881
+ # Available to use for quota purposes for server-side applications. Can be any
882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
883
+ # @param [Google::Apis::RequestOptions] options
884
+ # Request-specific options
885
+ #
886
+ # @yield [result, err] Result & error if block supplied
887
+ # @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay] parsed result object
888
+ # @yieldparam err [StandardError] error object if request failed
889
+ #
890
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay]
891
+ #
892
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
893
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
894
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
895
+ def get_project_location_replay(name, fields: nil, quota_user: nil, options: nil, &block)
896
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
897
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay::Representation
898
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay
899
+ command.params['name'] = name unless name.nil?
900
+ command.query['fields'] = fields unless fields.nil?
901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
902
+ execute_or_queue_command(command, &block)
903
+ end
904
+
905
+ # Lists each Replay in a project, folder, or organization. Each `Replay` is
906
+ # available for at least 7 days.
907
+ # @param [String] parent
908
+ # Required. The parent resource, in the following format: ``projects|folders|
909
+ # organizations`/`resource-id`/locations/global`, where ``resource-id`` is the
910
+ # ID of the project, folder, or organization that owns the Replay. Example: `
911
+ # projects/my-example-project/locations/global` Only `Replay` objects that are
912
+ # direct children of the provided parent are listed. In other words, `Replay`
913
+ # objects that are children of a project will not be included when the parent is
914
+ # a folder of that project.
915
+ # @param [Fixnum] page_size
916
+ # The maximum number of Replay objects to return. Defaults to 50. The maximum
917
+ # value is 1000; values above 1000 are rounded down to 1000.
918
+ # @param [String] page_token
919
+ # A page token, received from a previous Simulator.ListReplays call. Provide
920
+ # this to retrieve the subsequent page. When paginating, all other parameters
921
+ # provided to Simulator.ListReplays must match the call that provided the page
922
+ # token.
923
+ # @param [String] fields
924
+ # Selector specifying which fields to include in a partial response.
925
+ # @param [String] quota_user
926
+ # Available to use for quota purposes for server-side applications. Can be any
927
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
928
+ # @param [Google::Apis::RequestOptions] options
929
+ # Request-specific options
930
+ #
931
+ # @yield [result, err] Result & error if block supplied
932
+ # @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse] parsed result object
933
+ # @yieldparam err [StandardError] error object if request failed
934
+ #
935
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse]
936
+ #
937
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
938
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
939
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
940
+ def list_project_location_replays(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
941
+ command = make_simple_command(:get, 'v1beta/{+parent}/replays', options)
942
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse::Representation
943
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplaysResponse
944
+ command.params['parent'] = parent unless parent.nil?
945
+ command.query['pageSize'] = page_size unless page_size.nil?
946
+ command.query['pageToken'] = page_token unless page_token.nil?
947
+ command.query['fields'] = fields unless fields.nil?
948
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
949
+ execute_or_queue_command(command, &block)
950
+ end
951
+
518
952
  # Gets the latest state of a long-running operation. Clients can use this method
519
953
  # to poll the operation result at intervals as recommended by the API service.
520
954
  # @param [String] name
@@ -585,6 +1019,49 @@ module Google
585
1019
  command.query['quotaUser'] = quota_user unless quota_user.nil?
586
1020
  execute_or_queue_command(command, &block)
587
1021
  end
1022
+
1023
+ # Lists the results of running a Replay.
1024
+ # @param [String] parent
1025
+ # Required. The Replay whose results are listed, in the following format: ``
1026
+ # projects|folders|organizations`/`resource-id`/locations/global/replays/`replay-
1027
+ # id`` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-
1028
+ # 8e03-479ce1833c36`
1029
+ # @param [Fixnum] page_size
1030
+ # The maximum number of ReplayResult objects to return. Defaults to 5000. The
1031
+ # maximum value is 5000; values above 5000 are rounded down to 5000.
1032
+ # @param [String] page_token
1033
+ # A page token, received from a previous Simulator.ListReplayResults call.
1034
+ # Provide this token to retrieve the next page of results. When paginating, all
1035
+ # other parameters provided to [Simulator.ListReplayResults[] must match the
1036
+ # call that provided the page token.
1037
+ # @param [String] fields
1038
+ # Selector specifying which fields to include in a partial response.
1039
+ # @param [String] quota_user
1040
+ # Available to use for quota purposes for server-side applications. Can be any
1041
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1042
+ # @param [Google::Apis::RequestOptions] options
1043
+ # Request-specific options
1044
+ #
1045
+ # @yield [result, err] Result & error if block supplied
1046
+ # @yieldparam result [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse] parsed result object
1047
+ # @yieldparam err [StandardError] error object if request failed
1048
+ #
1049
+ # @return [Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse]
1050
+ #
1051
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1052
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1053
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1054
+ def list_project_location_replay_results(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1055
+ command = make_simple_command(:get, 'v1beta/{+parent}/results', options)
1056
+ command.response_representation = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse::Representation
1057
+ command.response_class = Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaListReplayResultsResponse
1058
+ command.params['parent'] = parent unless parent.nil?
1059
+ command.query['pageSize'] = page_size unless page_size.nil?
1060
+ command.query['pageToken'] = page_token unless page_token.nil?
1061
+ command.query['fields'] = fields unless fields.nil?
1062
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1063
+ execute_or_queue_command(command, &block)
1064
+ end
588
1065
 
589
1066
  protected
590
1067
 
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.2.0
4
+ version: 0.4.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-08-06 00:00:00.000000000 Z
11
+ date: 2023-09-10 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.2.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-policysimulator_v1beta/v0.4.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.2
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