google-cloud-dialogflow-cx-v3 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +1032 -0
  3. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +815 -0
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +586 -0
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/rest.rb +56 -0
  6. data/lib/google/cloud/dialogflow/cx/v3/agents.rb +6 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/bindings_override.rb +104 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +472 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +168 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest.rb +55 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +6 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +456 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +168 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest.rb +55 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +6 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +740 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +347 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest.rb +55 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/entity_types.rb +6 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +1028 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +815 -0
  22. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +585 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/environments/rest.rb +57 -0
  24. data/lib/google/cloud/dialogflow/cx/v3/environments.rb +6 -0
  25. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +821 -0
  26. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +467 -0
  27. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest.rb +55 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/experiments.rb +6 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +1182 -0
  30. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +815 -0
  31. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +646 -0
  32. data/lib/google/cloud/dialogflow/cx/v3/flows/rest.rb +56 -0
  33. data/lib/google/cloud/dialogflow/cx/v3/flows.rb +6 -0
  34. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +722 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +347 -0
  36. data/lib/google/cloud/dialogflow/cx/v3/intents/rest.rb +55 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/intents.rb +6 -0
  38. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +777 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +347 -0
  40. data/lib/google/cloud/dialogflow/cx/v3/pages/rest.rb +55 -0
  41. data/lib/google/cloud/dialogflow/cx/v3/pages.rb +6 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/rest.rb +55 -0
  43. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +673 -0
  44. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +347 -0
  45. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest.rb +55 -0
  46. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb +6 -0
  47. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +688 -0
  48. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +384 -0
  49. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest.rb +56 -0
  50. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types.rb +6 -0
  51. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +576 -0
  52. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +254 -0
  53. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest.rb +58 -0
  54. data/lib/google/cloud/dialogflow/cx/v3/sessions.rb +6 -0
  55. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +1304 -0
  56. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +815 -0
  57. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +765 -0
  58. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest.rb +57 -0
  59. data/lib/google/cloud/dialogflow/cx/v3/test_cases.rb +6 -0
  60. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +748 -0
  61. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +347 -0
  62. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest.rb +56 -0
  63. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups.rb +6 -0
  64. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  65. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +865 -0
  66. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +815 -0
  67. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +467 -0
  68. data/lib/google/cloud/dialogflow/cx/v3/versions/rest.rb +56 -0
  69. data/lib/google/cloud/dialogflow/cx/v3/versions.rb +6 -0
  70. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +677 -0
  71. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +347 -0
  72. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest.rb +55 -0
  73. data/lib/google/cloud/dialogflow/cx/v3/webhooks.rb +6 -0
  74. data/lib/google/cloud/dialogflow/cx/v3.rb +5 -0
  75. metadata +57 -2
@@ -0,0 +1,1304 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/dialogflow/cx/v3/test_case_pb"
21
+ require "google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module Dialogflow
27
+ module CX
28
+ module V3
29
+ module TestCases
30
+ module Rest
31
+ ##
32
+ # REST client for the TestCases service.
33
+ #
34
+ # Service for managing {::Google::Cloud::Dialogflow::CX::V3::TestCase Test Cases} and
35
+ # {::Google::Cloud::Dialogflow::CX::V3::TestCaseResult Test Case Results}.
36
+ #
37
+ class Client
38
+ include Paths
39
+
40
+ # @private
41
+ attr_reader :test_cases_stub
42
+
43
+ ##
44
+ # Configure the TestCases Client class.
45
+ #
46
+ # See {::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client::Configuration}
47
+ # for a description of the configuration fields.
48
+ #
49
+ # @example
50
+ #
51
+ # # Modify the configuration for all TestCases clients
52
+ # ::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.configure do |config|
53
+ # config.timeout = 10.0
54
+ # end
55
+ #
56
+ # @yield [config] Configure the Client client.
57
+ # @yieldparam config [Client::Configuration]
58
+ #
59
+ # @return [Client::Configuration]
60
+ #
61
+ def self.configure
62
+ @configure ||= begin
63
+ namespace = ["Google", "Cloud", "Dialogflow", "CX", "V3"]
64
+ parent_config = while namespace.any?
65
+ parent_name = namespace.join "::"
66
+ parent_const = const_get parent_name
67
+ break parent_const.configure if parent_const.respond_to? :configure
68
+ namespace.pop
69
+ end
70
+ default_config = Client::Configuration.new parent_config
71
+
72
+ default_config.timeout = 60.0
73
+ default_config.retry_policy = {
74
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
75
+ }
76
+
77
+ default_config
78
+ end
79
+ yield @configure if block_given?
80
+ @configure
81
+ end
82
+
83
+ ##
84
+ # Configure the TestCases Client instance.
85
+ #
86
+ # The configuration is set to the derived mode, meaning that values can be changed,
87
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
88
+ # should be made on {Client.configure}.
89
+ #
90
+ # See {::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client::Configuration}
91
+ # for a description of the configuration fields.
92
+ #
93
+ # @yield [config] Configure the Client client.
94
+ # @yieldparam config [Client::Configuration]
95
+ #
96
+ # @return [Client::Configuration]
97
+ #
98
+ def configure
99
+ yield @config if block_given?
100
+ @config
101
+ end
102
+
103
+ ##
104
+ # Create a new TestCases REST client object.
105
+ #
106
+ # @example
107
+ #
108
+ # # Create a client using the default configuration
109
+ # client = ::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
110
+ #
111
+ # # Create a client using a custom configuration
112
+ # client = ::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new do |config|
113
+ # config.timeout = 10.0
114
+ # end
115
+ #
116
+ # @yield [config] Configure the TestCases client.
117
+ # @yieldparam config [Client::Configuration]
118
+ #
119
+ def initialize
120
+ # Create the configuration object
121
+ @config = Configuration.new Client.configure
122
+
123
+ # Yield the configuration if needed
124
+ yield @config if block_given?
125
+
126
+ # Create credentials
127
+ credentials = @config.credentials
128
+ # Use self-signed JWT if the endpoint is unchanged from default,
129
+ # but only if the default endpoint does not have a region prefix.
130
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
131
+ !@config.endpoint.split(".").first.include?("-")
132
+ credentials ||= Credentials.default scope: @config.scope,
133
+ enable_self_signed_jwt: enable_self_signed_jwt
134
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
135
+ credentials = Credentials.new credentials, scope: @config.scope
136
+ end
137
+
138
+ @quota_project_id = @config.quota_project
139
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
+
141
+ @operations_client = ::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Operations.new do |config|
142
+ config.credentials = credentials
143
+ config.quota_project = @quota_project_id
144
+ config.endpoint = @config.endpoint
145
+ end
146
+
147
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
148
+ config.credentials = credentials
149
+ config.quota_project = @quota_project_id
150
+ config.endpoint = @config.endpoint
151
+ config.bindings_override = @config.bindings_override
152
+ end
153
+
154
+ @test_cases_stub = ::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
155
+ end
156
+
157
+ ##
158
+ # Get the associated client for long-running operations.
159
+ #
160
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Operations]
161
+ #
162
+ attr_reader :operations_client
163
+
164
+ ##
165
+ # Get the associated client for mix-in of the Locations.
166
+ #
167
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
168
+ #
169
+ attr_reader :location_client
170
+
171
+ # Service calls
172
+
173
+ ##
174
+ # Fetches a list of test cases for a given agent.
175
+ #
176
+ # @overload list_test_cases(request, options = nil)
177
+ # Pass arguments to `list_test_cases` via a request object, either of type
178
+ # {::Google::Cloud::Dialogflow::CX::V3::ListTestCasesRequest} or an equivalent Hash.
179
+ #
180
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::ListTestCasesRequest, ::Hash]
181
+ # A request object representing the call parameters. Required. To specify no
182
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
183
+ # @param options [::Gapic::CallOptions, ::Hash]
184
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
185
+ #
186
+ # @overload list_test_cases(parent: nil, page_size: nil, page_token: nil, view: nil)
187
+ # Pass arguments to `list_test_cases` via keyword arguments. Note that at
188
+ # least one keyword argument is required. To specify no parameters, or to keep all
189
+ # the default parameter values, pass an empty Hash as a request object (see above).
190
+ #
191
+ # @param parent [::String]
192
+ # Required. The agent to list all pages for.
193
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
194
+ # @param page_size [::Integer]
195
+ # The maximum number of items to return in a single page. By default 20.
196
+ # Note that when TestCaseView = FULL, the maximum page size allowed is 20.
197
+ # When TestCaseView = BASIC, the maximum page size allowed is 500.
198
+ # @param page_token [::String]
199
+ # The next_page_token value returned from a previous list request.
200
+ # @param view [::Google::Cloud::Dialogflow::CX::V3::ListTestCasesRequest::TestCaseView]
201
+ # Specifies whether response should include all fields or just the metadata.
202
+ # @yield [result, operation] Access the result along with the TransportOperation object
203
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TestCase>]
204
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
205
+ #
206
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TestCase>]
207
+ #
208
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
209
+ def list_test_cases request, options = nil
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
211
+
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ListTestCasesRequest
213
+
214
+ # Converts hash and nil to an options object
215
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
216
+
217
+ # Customize the options with defaults
218
+ call_metadata = @config.rpcs.list_test_cases.metadata.to_h
219
+
220
+ # Set x-goog-api-client and x-goog-user-project headers
221
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
222
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
223
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
224
+ transports_version_send: [:rest]
225
+
226
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
+
228
+ options.apply_defaults timeout: @config.rpcs.list_test_cases.timeout,
229
+ metadata: call_metadata,
230
+ retry_policy: @config.rpcs.list_test_cases.retry_policy
231
+
232
+ options.apply_defaults timeout: @config.timeout,
233
+ metadata: @config.metadata,
234
+ retry_policy: @config.retry_policy
235
+
236
+ @test_cases_stub.list_test_cases request, options do |result, operation|
237
+ result = ::Gapic::Rest::PagedEnumerable.new @test_cases_stub, :list_test_cases, "test_cases", request, result, options
238
+ yield result, operation if block_given?
239
+ return result
240
+ end
241
+ rescue ::Gapic::Rest::Error => e
242
+ raise ::Google::Cloud::Error.from_error(e)
243
+ end
244
+
245
+ ##
246
+ # Batch deletes test cases.
247
+ #
248
+ # @overload batch_delete_test_cases(request, options = nil)
249
+ # Pass arguments to `batch_delete_test_cases` via a request object, either of type
250
+ # {::Google::Cloud::Dialogflow::CX::V3::BatchDeleteTestCasesRequest} or an equivalent Hash.
251
+ #
252
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::BatchDeleteTestCasesRequest, ::Hash]
253
+ # A request object representing the call parameters. Required. To specify no
254
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
255
+ # @param options [::Gapic::CallOptions, ::Hash]
256
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
257
+ #
258
+ # @overload batch_delete_test_cases(parent: nil, names: nil)
259
+ # Pass arguments to `batch_delete_test_cases` via keyword arguments. Note that at
260
+ # least one keyword argument is required. To specify no parameters, or to keep all
261
+ # the default parameter values, pass an empty Hash as a request object (see above).
262
+ #
263
+ # @param parent [::String]
264
+ # Required. The agent to delete test cases from.
265
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
266
+ # @param names [::Array<::String>]
267
+ # Required. Format of test case names: `projects/<Project ID>/locations/
268
+ # <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
269
+ # @yield [result, operation] Access the result along with the TransportOperation object
270
+ # @yieldparam result [::Google::Protobuf::Empty]
271
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
272
+ #
273
+ # @return [::Google::Protobuf::Empty]
274
+ #
275
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
276
+ def batch_delete_test_cases request, options = nil
277
+ raise ::ArgumentError, "request must be provided" if request.nil?
278
+
279
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::BatchDeleteTestCasesRequest
280
+
281
+ # Converts hash and nil to an options object
282
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
283
+
284
+ # Customize the options with defaults
285
+ call_metadata = @config.rpcs.batch_delete_test_cases.metadata.to_h
286
+
287
+ # Set x-goog-api-client and x-goog-user-project headers
288
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
289
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
290
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
291
+ transports_version_send: [:rest]
292
+
293
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
294
+
295
+ options.apply_defaults timeout: @config.rpcs.batch_delete_test_cases.timeout,
296
+ metadata: call_metadata,
297
+ retry_policy: @config.rpcs.batch_delete_test_cases.retry_policy
298
+
299
+ options.apply_defaults timeout: @config.timeout,
300
+ metadata: @config.metadata,
301
+ retry_policy: @config.retry_policy
302
+
303
+ @test_cases_stub.batch_delete_test_cases request, options do |result, operation|
304
+ yield result, operation if block_given?
305
+ return result
306
+ end
307
+ rescue ::Gapic::Rest::Error => e
308
+ raise ::Google::Cloud::Error.from_error(e)
309
+ end
310
+
311
+ ##
312
+ # Gets a test case.
313
+ #
314
+ # @overload get_test_case(request, options = nil)
315
+ # Pass arguments to `get_test_case` via a request object, either of type
316
+ # {::Google::Cloud::Dialogflow::CX::V3::GetTestCaseRequest} or an equivalent Hash.
317
+ #
318
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::GetTestCaseRequest, ::Hash]
319
+ # A request object representing the call parameters. Required. To specify no
320
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
321
+ # @param options [::Gapic::CallOptions, ::Hash]
322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
323
+ #
324
+ # @overload get_test_case(name: nil)
325
+ # Pass arguments to `get_test_case` via keyword arguments. Note that at
326
+ # least one keyword argument is required. To specify no parameters, or to keep all
327
+ # the default parameter values, pass an empty Hash as a request object (see above).
328
+ #
329
+ # @param name [::String]
330
+ # Required. The name of the testcase.
331
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
332
+ # ID>/testCases/<TestCase ID>`.
333
+ # @yield [result, operation] Access the result along with the TransportOperation object
334
+ # @yieldparam result [::Google::Cloud::Dialogflow::CX::V3::TestCase]
335
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
336
+ #
337
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
338
+ #
339
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
340
+ def get_test_case request, options = nil
341
+ raise ::ArgumentError, "request must be provided" if request.nil?
342
+
343
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::GetTestCaseRequest
344
+
345
+ # Converts hash and nil to an options object
346
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
347
+
348
+ # Customize the options with defaults
349
+ call_metadata = @config.rpcs.get_test_case.metadata.to_h
350
+
351
+ # Set x-goog-api-client and x-goog-user-project headers
352
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
354
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
355
+ transports_version_send: [:rest]
356
+
357
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
358
+
359
+ options.apply_defaults timeout: @config.rpcs.get_test_case.timeout,
360
+ metadata: call_metadata,
361
+ retry_policy: @config.rpcs.get_test_case.retry_policy
362
+
363
+ options.apply_defaults timeout: @config.timeout,
364
+ metadata: @config.metadata,
365
+ retry_policy: @config.retry_policy
366
+
367
+ @test_cases_stub.get_test_case request, options do |result, operation|
368
+ yield result, operation if block_given?
369
+ return result
370
+ end
371
+ rescue ::Gapic::Rest::Error => e
372
+ raise ::Google::Cloud::Error.from_error(e)
373
+ end
374
+
375
+ ##
376
+ # Creates a test case for the given agent.
377
+ #
378
+ # @overload create_test_case(request, options = nil)
379
+ # Pass arguments to `create_test_case` via a request object, either of type
380
+ # {::Google::Cloud::Dialogflow::CX::V3::CreateTestCaseRequest} or an equivalent Hash.
381
+ #
382
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::CreateTestCaseRequest, ::Hash]
383
+ # A request object representing the call parameters. Required. To specify no
384
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
385
+ # @param options [::Gapic::CallOptions, ::Hash]
386
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
387
+ #
388
+ # @overload create_test_case(parent: nil, test_case: nil)
389
+ # Pass arguments to `create_test_case` via keyword arguments. Note that at
390
+ # least one keyword argument is required. To specify no parameters, or to keep all
391
+ # the default parameter values, pass an empty Hash as a request object (see above).
392
+ #
393
+ # @param parent [::String]
394
+ # Required. The agent to create the test case for.
395
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
396
+ # @param test_case [::Google::Cloud::Dialogflow::CX::V3::TestCase, ::Hash]
397
+ # Required. The test case to create.
398
+ # @yield [result, operation] Access the result along with the TransportOperation object
399
+ # @yieldparam result [::Google::Cloud::Dialogflow::CX::V3::TestCase]
400
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
401
+ #
402
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
403
+ #
404
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
405
+ def create_test_case request, options = nil
406
+ raise ::ArgumentError, "request must be provided" if request.nil?
407
+
408
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::CreateTestCaseRequest
409
+
410
+ # Converts hash and nil to an options object
411
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
412
+
413
+ # Customize the options with defaults
414
+ call_metadata = @config.rpcs.create_test_case.metadata.to_h
415
+
416
+ # Set x-goog-api-client and x-goog-user-project headers
417
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
418
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
419
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
420
+ transports_version_send: [:rest]
421
+
422
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
423
+
424
+ options.apply_defaults timeout: @config.rpcs.create_test_case.timeout,
425
+ metadata: call_metadata,
426
+ retry_policy: @config.rpcs.create_test_case.retry_policy
427
+
428
+ options.apply_defaults timeout: @config.timeout,
429
+ metadata: @config.metadata,
430
+ retry_policy: @config.retry_policy
431
+
432
+ @test_cases_stub.create_test_case request, options do |result, operation|
433
+ yield result, operation if block_given?
434
+ return result
435
+ end
436
+ rescue ::Gapic::Rest::Error => e
437
+ raise ::Google::Cloud::Error.from_error(e)
438
+ end
439
+
440
+ ##
441
+ # Updates the specified test case.
442
+ #
443
+ # @overload update_test_case(request, options = nil)
444
+ # Pass arguments to `update_test_case` via a request object, either of type
445
+ # {::Google::Cloud::Dialogflow::CX::V3::UpdateTestCaseRequest} or an equivalent Hash.
446
+ #
447
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::UpdateTestCaseRequest, ::Hash]
448
+ # A request object representing the call parameters. Required. To specify no
449
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
450
+ # @param options [::Gapic::CallOptions, ::Hash]
451
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
452
+ #
453
+ # @overload update_test_case(test_case: nil, update_mask: nil)
454
+ # Pass arguments to `update_test_case` via keyword arguments. Note that at
455
+ # least one keyword argument is required. To specify no parameters, or to keep all
456
+ # the default parameter values, pass an empty Hash as a request object (see above).
457
+ #
458
+ # @param test_case [::Google::Cloud::Dialogflow::CX::V3::TestCase, ::Hash]
459
+ # Required. The test case to update.
460
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
461
+ # Required. The mask to specify which fields should be updated. The
462
+ # {::Google::Cloud::Dialogflow::CX::V3::TestCase#creation_time `creationTime`} and
463
+ # {::Google::Cloud::Dialogflow::CX::V3::TestCase#last_test_result `lastTestResult`}
464
+ # cannot be updated.
465
+ # @yield [result, operation] Access the result along with the TransportOperation object
466
+ # @yieldparam result [::Google::Cloud::Dialogflow::CX::V3::TestCase]
467
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
468
+ #
469
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
470
+ #
471
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
472
+ def update_test_case request, options = nil
473
+ raise ::ArgumentError, "request must be provided" if request.nil?
474
+
475
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::UpdateTestCaseRequest
476
+
477
+ # Converts hash and nil to an options object
478
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
479
+
480
+ # Customize the options with defaults
481
+ call_metadata = @config.rpcs.update_test_case.metadata.to_h
482
+
483
+ # Set x-goog-api-client and x-goog-user-project headers
484
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
485
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
486
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
487
+ transports_version_send: [:rest]
488
+
489
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
490
+
491
+ options.apply_defaults timeout: @config.rpcs.update_test_case.timeout,
492
+ metadata: call_metadata,
493
+ retry_policy: @config.rpcs.update_test_case.retry_policy
494
+
495
+ options.apply_defaults timeout: @config.timeout,
496
+ metadata: @config.metadata,
497
+ retry_policy: @config.retry_policy
498
+
499
+ @test_cases_stub.update_test_case request, options do |result, operation|
500
+ yield result, operation if block_given?
501
+ return result
502
+ end
503
+ rescue ::Gapic::Rest::Error => e
504
+ raise ::Google::Cloud::Error.from_error(e)
505
+ end
506
+
507
+ ##
508
+ # Kicks off a test case run.
509
+ #
510
+ # This method is a [long-running
511
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
512
+ # The returned `Operation` type has the following method-specific fields:
513
+ #
514
+ # - `metadata`:
515
+ # {::Google::Cloud::Dialogflow::CX::V3::RunTestCaseMetadata RunTestCaseMetadata}
516
+ # - `response`:
517
+ # {::Google::Cloud::Dialogflow::CX::V3::RunTestCaseResponse RunTestCaseResponse}
518
+ #
519
+ # @overload run_test_case(request, options = nil)
520
+ # Pass arguments to `run_test_case` via a request object, either of type
521
+ # {::Google::Cloud::Dialogflow::CX::V3::RunTestCaseRequest} or an equivalent Hash.
522
+ #
523
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::RunTestCaseRequest, ::Hash]
524
+ # A request object representing the call parameters. Required. To specify no
525
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
526
+ # @param options [::Gapic::CallOptions, ::Hash]
527
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
528
+ #
529
+ # @overload run_test_case(name: nil, environment: nil)
530
+ # Pass arguments to `run_test_case` via keyword arguments. Note that at
531
+ # least one keyword argument is required. To specify no parameters, or to keep all
532
+ # the default parameter values, pass an empty Hash as a request object (see above).
533
+ #
534
+ # @param name [::String]
535
+ # Required. Format of test case name to run: `projects/<Project
536
+ # ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
537
+ # @param environment [::String]
538
+ # Optional. Environment name. If not set, draft environment is assumed.
539
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
540
+ # ID>/environments/<Environment ID>`.
541
+ # @yield [result, operation] Access the result along with the TransportOperation object
542
+ # @yieldparam result [::Gapic::Operation]
543
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
544
+ #
545
+ # @return [::Gapic::Operation]
546
+ #
547
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
548
+ def run_test_case request, options = nil
549
+ raise ::ArgumentError, "request must be provided" if request.nil?
550
+
551
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::RunTestCaseRequest
552
+
553
+ # Converts hash and nil to an options object
554
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
555
+
556
+ # Customize the options with defaults
557
+ call_metadata = @config.rpcs.run_test_case.metadata.to_h
558
+
559
+ # Set x-goog-api-client and x-goog-user-project headers
560
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
561
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
562
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
563
+ transports_version_send: [:rest]
564
+
565
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
566
+
567
+ options.apply_defaults timeout: @config.rpcs.run_test_case.timeout,
568
+ metadata: call_metadata,
569
+ retry_policy: @config.rpcs.run_test_case.retry_policy
570
+
571
+ options.apply_defaults timeout: @config.timeout,
572
+ metadata: @config.metadata,
573
+ retry_policy: @config.retry_policy
574
+
575
+ @test_cases_stub.run_test_case request, options do |result, operation|
576
+ result = ::Gapic::Operation.new result, @operations_client, options: options
577
+ yield result, operation if block_given?
578
+ return result
579
+ end
580
+ rescue ::Gapic::Rest::Error => e
581
+ raise ::Google::Cloud::Error.from_error(e)
582
+ end
583
+
584
+ ##
585
+ # Kicks off a batch run of test cases.
586
+ #
587
+ # This method is a [long-running
588
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
589
+ # The returned `Operation` type has the following method-specific fields:
590
+ #
591
+ # - `metadata`:
592
+ # {::Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesMetadata BatchRunTestCasesMetadata}
593
+ # - `response`:
594
+ # {::Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesResponse BatchRunTestCasesResponse}
595
+ #
596
+ # @overload batch_run_test_cases(request, options = nil)
597
+ # Pass arguments to `batch_run_test_cases` via a request object, either of type
598
+ # {::Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesRequest} or an equivalent Hash.
599
+ #
600
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesRequest, ::Hash]
601
+ # A request object representing the call parameters. Required. To specify no
602
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
603
+ # @param options [::Gapic::CallOptions, ::Hash]
604
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
605
+ #
606
+ # @overload batch_run_test_cases(parent: nil, environment: nil, test_cases: nil)
607
+ # Pass arguments to `batch_run_test_cases` via keyword arguments. Note that at
608
+ # least one keyword argument is required. To specify no parameters, or to keep all
609
+ # the default parameter values, pass an empty Hash as a request object (see above).
610
+ #
611
+ # @param parent [::String]
612
+ # Required. Agent name. Format: `projects/<Project ID>/locations/<Location
613
+ # ID>/agents/ <AgentID>`.
614
+ # @param environment [::String]
615
+ # Optional. If not set, draft environment is assumed. Format:
616
+ # `projects/<Project ID>/locations/<Location ID>/agents/<Agent
617
+ # ID>/environments/<Environment ID>`.
618
+ # @param test_cases [::Array<::String>]
619
+ # Required. Format: `projects/<Project ID>/locations/<Location
620
+ # ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
621
+ # @yield [result, operation] Access the result along with the TransportOperation object
622
+ # @yieldparam result [::Gapic::Operation]
623
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
624
+ #
625
+ # @return [::Gapic::Operation]
626
+ #
627
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
628
+ def batch_run_test_cases request, options = nil
629
+ raise ::ArgumentError, "request must be provided" if request.nil?
630
+
631
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesRequest
632
+
633
+ # Converts hash and nil to an options object
634
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
635
+
636
+ # Customize the options with defaults
637
+ call_metadata = @config.rpcs.batch_run_test_cases.metadata.to_h
638
+
639
+ # Set x-goog-api-client and x-goog-user-project headers
640
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
641
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
642
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
643
+ transports_version_send: [:rest]
644
+
645
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
646
+
647
+ options.apply_defaults timeout: @config.rpcs.batch_run_test_cases.timeout,
648
+ metadata: call_metadata,
649
+ retry_policy: @config.rpcs.batch_run_test_cases.retry_policy
650
+
651
+ options.apply_defaults timeout: @config.timeout,
652
+ metadata: @config.metadata,
653
+ retry_policy: @config.retry_policy
654
+
655
+ @test_cases_stub.batch_run_test_cases request, options do |result, operation|
656
+ result = ::Gapic::Operation.new result, @operations_client, options: options
657
+ yield result, operation if block_given?
658
+ return result
659
+ end
660
+ rescue ::Gapic::Rest::Error => e
661
+ raise ::Google::Cloud::Error.from_error(e)
662
+ end
663
+
664
+ ##
665
+ # Calculates the test coverage for an agent.
666
+ #
667
+ # @overload calculate_coverage(request, options = nil)
668
+ # Pass arguments to `calculate_coverage` via a request object, either of type
669
+ # {::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest} or an equivalent Hash.
670
+ #
671
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest, ::Hash]
672
+ # A request object representing the call parameters. Required. To specify no
673
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
674
+ # @param options [::Gapic::CallOptions, ::Hash]
675
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
676
+ #
677
+ # @overload calculate_coverage(agent: nil, type: nil)
678
+ # Pass arguments to `calculate_coverage` via keyword arguments. Note that at
679
+ # least one keyword argument is required. To specify no parameters, or to keep all
680
+ # the default parameter values, pass an empty Hash as a request object (see above).
681
+ #
682
+ # @param agent [::String]
683
+ # Required. The agent to calculate coverage for.
684
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
685
+ # @param type [::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest::CoverageType]
686
+ # Required. The type of coverage requested.
687
+ # @yield [result, operation] Access the result along with the TransportOperation object
688
+ # @yieldparam result [::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageResponse]
689
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
690
+ #
691
+ # @return [::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageResponse]
692
+ #
693
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
694
+ def calculate_coverage request, options = nil
695
+ raise ::ArgumentError, "request must be provided" if request.nil?
696
+
697
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest
698
+
699
+ # Converts hash and nil to an options object
700
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
701
+
702
+ # Customize the options with defaults
703
+ call_metadata = @config.rpcs.calculate_coverage.metadata.to_h
704
+
705
+ # Set x-goog-api-client and x-goog-user-project headers
706
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
707
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
708
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
709
+ transports_version_send: [:rest]
710
+
711
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
712
+
713
+ options.apply_defaults timeout: @config.rpcs.calculate_coverage.timeout,
714
+ metadata: call_metadata,
715
+ retry_policy: @config.rpcs.calculate_coverage.retry_policy
716
+
717
+ options.apply_defaults timeout: @config.timeout,
718
+ metadata: @config.metadata,
719
+ retry_policy: @config.retry_policy
720
+
721
+ @test_cases_stub.calculate_coverage request, options do |result, operation|
722
+ yield result, operation if block_given?
723
+ return result
724
+ end
725
+ rescue ::Gapic::Rest::Error => e
726
+ raise ::Google::Cloud::Error.from_error(e)
727
+ end
728
+
729
+ ##
730
+ # Imports the test cases from a Cloud Storage bucket or a local file. It
731
+ # always creates new test cases and won't overwrite any existing ones. The
732
+ # provided ID in the imported test case is neglected.
733
+ #
734
+ # This method is a [long-running
735
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
736
+ # The returned `Operation` type has the following method-specific fields:
737
+ #
738
+ # - `metadata`:
739
+ # {::Google::Cloud::Dialogflow::CX::V3::ImportTestCasesMetadata ImportTestCasesMetadata}
740
+ # - `response`:
741
+ # {::Google::Cloud::Dialogflow::CX::V3::ImportTestCasesResponse ImportTestCasesResponse}
742
+ #
743
+ # @overload import_test_cases(request, options = nil)
744
+ # Pass arguments to `import_test_cases` via a request object, either of type
745
+ # {::Google::Cloud::Dialogflow::CX::V3::ImportTestCasesRequest} or an equivalent Hash.
746
+ #
747
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::ImportTestCasesRequest, ::Hash]
748
+ # A request object representing the call parameters. Required. To specify no
749
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
750
+ # @param options [::Gapic::CallOptions, ::Hash]
751
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
752
+ #
753
+ # @overload import_test_cases(parent: nil, gcs_uri: nil, content: nil)
754
+ # Pass arguments to `import_test_cases` via keyword arguments. Note that at
755
+ # least one keyword argument is required. To specify no parameters, or to keep all
756
+ # the default parameter values, pass an empty Hash as a request object (see above).
757
+ #
758
+ # @param parent [::String]
759
+ # Required. The agent to import test cases to.
760
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
761
+ # @param gcs_uri [::String]
762
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
763
+ # to import test cases from. The format of this URI must be
764
+ # `gs://<bucket-name>/<object-name>`.
765
+ #
766
+ # Dialogflow performs a read operation for the Cloud Storage object
767
+ # on the caller's behalf, so your request authentication must
768
+ # have read permissions for the object. For more information, see
769
+ # [Dialogflow access
770
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
771
+ # @param content [::String]
772
+ # Uncompressed raw byte content for test cases.
773
+ # @yield [result, operation] Access the result along with the TransportOperation object
774
+ # @yieldparam result [::Gapic::Operation]
775
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
776
+ #
777
+ # @return [::Gapic::Operation]
778
+ #
779
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
780
+ def import_test_cases request, options = nil
781
+ raise ::ArgumentError, "request must be provided" if request.nil?
782
+
783
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ImportTestCasesRequest
784
+
785
+ # Converts hash and nil to an options object
786
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
787
+
788
+ # Customize the options with defaults
789
+ call_metadata = @config.rpcs.import_test_cases.metadata.to_h
790
+
791
+ # Set x-goog-api-client and x-goog-user-project headers
792
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
793
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
794
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
795
+ transports_version_send: [:rest]
796
+
797
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
798
+
799
+ options.apply_defaults timeout: @config.rpcs.import_test_cases.timeout,
800
+ metadata: call_metadata,
801
+ retry_policy: @config.rpcs.import_test_cases.retry_policy
802
+
803
+ options.apply_defaults timeout: @config.timeout,
804
+ metadata: @config.metadata,
805
+ retry_policy: @config.retry_policy
806
+
807
+ @test_cases_stub.import_test_cases request, options do |result, operation|
808
+ result = ::Gapic::Operation.new result, @operations_client, options: options
809
+ yield result, operation if block_given?
810
+ return result
811
+ end
812
+ rescue ::Gapic::Rest::Error => e
813
+ raise ::Google::Cloud::Error.from_error(e)
814
+ end
815
+
816
+ ##
817
+ # Exports the test cases under the agent to a Cloud Storage bucket or a local
818
+ # file. Filter can be applied to export a subset of test cases.
819
+ #
820
+ # This method is a [long-running
821
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
822
+ # The returned `Operation` type has the following method-specific fields:
823
+ #
824
+ # - `metadata`:
825
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesMetadata ExportTestCasesMetadata}
826
+ # - `response`:
827
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesResponse ExportTestCasesResponse}
828
+ #
829
+ # @overload export_test_cases(request, options = nil)
830
+ # Pass arguments to `export_test_cases` via a request object, either of type
831
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest} or an equivalent Hash.
832
+ #
833
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest, ::Hash]
834
+ # A request object representing the call parameters. Required. To specify no
835
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
836
+ # @param options [::Gapic::CallOptions, ::Hash]
837
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
838
+ #
839
+ # @overload export_test_cases(parent: nil, gcs_uri: nil, data_format: nil, filter: nil)
840
+ # Pass arguments to `export_test_cases` via keyword arguments. Note that at
841
+ # least one keyword argument is required. To specify no parameters, or to keep all
842
+ # the default parameter values, pass an empty Hash as a request object (see above).
843
+ #
844
+ # @param parent [::String]
845
+ # Required. The agent where to export test cases from.
846
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
847
+ # @param gcs_uri [::String]
848
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
849
+ # export the test cases to. The format of this URI must be
850
+ # `gs://<bucket-name>/<object-name>`. If unspecified, the serialized test
851
+ # cases is returned inline.
852
+ #
853
+ # Dialogflow performs a write operation for the Cloud Storage object
854
+ # on the caller's behalf, so your request authentication must
855
+ # have write permissions for the object. For more information, see
856
+ # [Dialogflow access
857
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
858
+ # @param data_format [::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest::DataFormat]
859
+ # The data format of the exported test cases. If not specified, `BLOB` is
860
+ # assumed.
861
+ # @param filter [::String]
862
+ # The filter expression used to filter exported test cases, see
863
+ # [API Filtering](https://aip.dev/160). The expression is case insensitive
864
+ # and supports the following syntax:
865
+ #
866
+ # name = <value> [OR name = <value>] ...
867
+ #
868
+ # For example:
869
+ #
870
+ # * "name = t1 OR name = t2" matches the test case with the exact resource
871
+ # name "t1" or "t2".
872
+ # @yield [result, operation] Access the result along with the TransportOperation object
873
+ # @yieldparam result [::Gapic::Operation]
874
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
875
+ #
876
+ # @return [::Gapic::Operation]
877
+ #
878
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
879
+ def export_test_cases request, options = nil
880
+ raise ::ArgumentError, "request must be provided" if request.nil?
881
+
882
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest
883
+
884
+ # Converts hash and nil to an options object
885
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
886
+
887
+ # Customize the options with defaults
888
+ call_metadata = @config.rpcs.export_test_cases.metadata.to_h
889
+
890
+ # Set x-goog-api-client and x-goog-user-project headers
891
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
892
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
893
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
894
+ transports_version_send: [:rest]
895
+
896
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
897
+
898
+ options.apply_defaults timeout: @config.rpcs.export_test_cases.timeout,
899
+ metadata: call_metadata,
900
+ retry_policy: @config.rpcs.export_test_cases.retry_policy
901
+
902
+ options.apply_defaults timeout: @config.timeout,
903
+ metadata: @config.metadata,
904
+ retry_policy: @config.retry_policy
905
+
906
+ @test_cases_stub.export_test_cases request, options do |result, operation|
907
+ result = ::Gapic::Operation.new result, @operations_client, options: options
908
+ yield result, operation if block_given?
909
+ return result
910
+ end
911
+ rescue ::Gapic::Rest::Error => e
912
+ raise ::Google::Cloud::Error.from_error(e)
913
+ end
914
+
915
+ ##
916
+ # Fetches a list of results for a given test case.
917
+ #
918
+ # @overload list_test_case_results(request, options = nil)
919
+ # Pass arguments to `list_test_case_results` via a request object, either of type
920
+ # {::Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsRequest} or an equivalent Hash.
921
+ #
922
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsRequest, ::Hash]
923
+ # A request object representing the call parameters. Required. To specify no
924
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
925
+ # @param options [::Gapic::CallOptions, ::Hash]
926
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
927
+ #
928
+ # @overload list_test_case_results(parent: nil, page_size: nil, page_token: nil, filter: nil)
929
+ # Pass arguments to `list_test_case_results` via keyword arguments. Note that at
930
+ # least one keyword argument is required. To specify no parameters, or to keep all
931
+ # the default parameter values, pass an empty Hash as a request object (see above).
932
+ #
933
+ # @param parent [::String]
934
+ # Required. The test case to list results for.
935
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
936
+ # testCases/<TestCase ID>`. Specify a `-` as a wildcard for TestCase ID to
937
+ # list results across multiple test cases.
938
+ # @param page_size [::Integer]
939
+ # The maximum number of items to return in a single page. By default 100 and
940
+ # at most 1000.
941
+ # @param page_token [::String]
942
+ # The next_page_token value returned from a previous list request.
943
+ # @param filter [::String]
944
+ # The filter expression used to filter test case results. See
945
+ # [API Filtering](https://aip.dev/160).
946
+ #
947
+ # The expression is case insensitive. Only 'AND' is supported for logical
948
+ # operators. The supported syntax is listed below in detail:
949
+ #
950
+ # <field> <operator> <value> [AND <field> <operator> <value>] ...
951
+ # [AND latest]
952
+ #
953
+ # The supported fields and operators are:
954
+ # field operator
955
+ # `environment` `=`, `IN` (Use value `draft` for draft environment)
956
+ # `test_time` `>`, `<`
957
+ #
958
+ # `latest` only returns the latest test result in all results for each test
959
+ # case.
960
+ #
961
+ # Examples:
962
+ # * "environment=draft AND latest" matches the latest test result for each
963
+ # test case in the draft environment.
964
+ # * "environment IN (e1,e2)" matches any test case results with an
965
+ # environment resource name of either "e1" or "e2".
966
+ # * "test_time > 1602540713" matches any test case results with test time
967
+ # later than a unix timestamp in seconds 1602540713.
968
+ # @yield [result, operation] Access the result along with the TransportOperation object
969
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TestCaseResult>]
970
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
971
+ #
972
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TestCaseResult>]
973
+ #
974
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
975
+ def list_test_case_results request, options = nil
976
+ raise ::ArgumentError, "request must be provided" if request.nil?
977
+
978
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsRequest
979
+
980
+ # Converts hash and nil to an options object
981
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
982
+
983
+ # Customize the options with defaults
984
+ call_metadata = @config.rpcs.list_test_case_results.metadata.to_h
985
+
986
+ # Set x-goog-api-client and x-goog-user-project headers
987
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
988
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
989
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
990
+ transports_version_send: [:rest]
991
+
992
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
993
+
994
+ options.apply_defaults timeout: @config.rpcs.list_test_case_results.timeout,
995
+ metadata: call_metadata,
996
+ retry_policy: @config.rpcs.list_test_case_results.retry_policy
997
+
998
+ options.apply_defaults timeout: @config.timeout,
999
+ metadata: @config.metadata,
1000
+ retry_policy: @config.retry_policy
1001
+
1002
+ @test_cases_stub.list_test_case_results request, options do |result, operation|
1003
+ result = ::Gapic::Rest::PagedEnumerable.new @test_cases_stub, :list_test_case_results, "test_case_results", request, result, options
1004
+ yield result, operation if block_given?
1005
+ return result
1006
+ end
1007
+ rescue ::Gapic::Rest::Error => e
1008
+ raise ::Google::Cloud::Error.from_error(e)
1009
+ end
1010
+
1011
+ ##
1012
+ # Gets a test case result.
1013
+ #
1014
+ # @overload get_test_case_result(request, options = nil)
1015
+ # Pass arguments to `get_test_case_result` via a request object, either of type
1016
+ # {::Google::Cloud::Dialogflow::CX::V3::GetTestCaseResultRequest} or an equivalent Hash.
1017
+ #
1018
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::GetTestCaseResultRequest, ::Hash]
1019
+ # A request object representing the call parameters. Required. To specify no
1020
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1021
+ # @param options [::Gapic::CallOptions, ::Hash]
1022
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1023
+ #
1024
+ # @overload get_test_case_result(name: nil)
1025
+ # Pass arguments to `get_test_case_result` via keyword arguments. Note that at
1026
+ # least one keyword argument is required. To specify no parameters, or to keep all
1027
+ # the default parameter values, pass an empty Hash as a request object (see above).
1028
+ #
1029
+ # @param name [::String]
1030
+ # Required. The name of the testcase.
1031
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
1032
+ # ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
1033
+ # @yield [result, operation] Access the result along with the TransportOperation object
1034
+ # @yieldparam result [::Google::Cloud::Dialogflow::CX::V3::TestCaseResult]
1035
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1036
+ #
1037
+ # @return [::Google::Cloud::Dialogflow::CX::V3::TestCaseResult]
1038
+ #
1039
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1040
+ def get_test_case_result request, options = nil
1041
+ raise ::ArgumentError, "request must be provided" if request.nil?
1042
+
1043
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::GetTestCaseResultRequest
1044
+
1045
+ # Converts hash and nil to an options object
1046
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1047
+
1048
+ # Customize the options with defaults
1049
+ call_metadata = @config.rpcs.get_test_case_result.metadata.to_h
1050
+
1051
+ # Set x-goog-api-client and x-goog-user-project headers
1052
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1053
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1054
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
1055
+ transports_version_send: [:rest]
1056
+
1057
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1058
+
1059
+ options.apply_defaults timeout: @config.rpcs.get_test_case_result.timeout,
1060
+ metadata: call_metadata,
1061
+ retry_policy: @config.rpcs.get_test_case_result.retry_policy
1062
+
1063
+ options.apply_defaults timeout: @config.timeout,
1064
+ metadata: @config.metadata,
1065
+ retry_policy: @config.retry_policy
1066
+
1067
+ @test_cases_stub.get_test_case_result request, options do |result, operation|
1068
+ yield result, operation if block_given?
1069
+ return result
1070
+ end
1071
+ rescue ::Gapic::Rest::Error => e
1072
+ raise ::Google::Cloud::Error.from_error(e)
1073
+ end
1074
+
1075
+ ##
1076
+ # Configuration class for the TestCases REST API.
1077
+ #
1078
+ # This class represents the configuration for TestCases REST,
1079
+ # providing control over timeouts, retry behavior, logging, transport
1080
+ # parameters, and other low-level controls. Certain parameters can also be
1081
+ # applied individually to specific RPCs. See
1082
+ # {::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client::Configuration::Rpcs}
1083
+ # for a list of RPCs that can be configured independently.
1084
+ #
1085
+ # Configuration can be applied globally to all clients, or to a single client
1086
+ # on construction.
1087
+ #
1088
+ # @example
1089
+ #
1090
+ # # Modify the global config, setting the timeout for
1091
+ # # list_test_cases to 20 seconds,
1092
+ # # and all remaining timeouts to 10 seconds.
1093
+ # ::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.configure do |config|
1094
+ # config.timeout = 10.0
1095
+ # config.rpcs.list_test_cases.timeout = 20.0
1096
+ # end
1097
+ #
1098
+ # # Apply the above configuration only to a new client.
1099
+ # client = ::Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new do |config|
1100
+ # config.timeout = 10.0
1101
+ # config.rpcs.list_test_cases.timeout = 20.0
1102
+ # end
1103
+ #
1104
+ # @!attribute [rw] endpoint
1105
+ # The hostname or hostname:port of the service endpoint.
1106
+ # Defaults to `"dialogflow.googleapis.com"`.
1107
+ # @return [::String]
1108
+ # @!attribute [rw] credentials
1109
+ # Credentials to send with calls. You may provide any of the following types:
1110
+ # * (`String`) The path to a service account key file in JSON format
1111
+ # * (`Hash`) A service account key as a Hash
1112
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1113
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1114
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1115
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1116
+ # * (`nil`) indicating no credentials
1117
+ # @return [::Object]
1118
+ # @!attribute [rw] scope
1119
+ # The OAuth scopes
1120
+ # @return [::Array<::String>]
1121
+ # @!attribute [rw] lib_name
1122
+ # The library name as recorded in instrumentation and logging
1123
+ # @return [::String]
1124
+ # @!attribute [rw] lib_version
1125
+ # The library version as recorded in instrumentation and logging
1126
+ # @return [::String]
1127
+ # @!attribute [rw] timeout
1128
+ # The call timeout in seconds.
1129
+ # @return [::Numeric]
1130
+ # @!attribute [rw] metadata
1131
+ # Additional headers to be sent with the call.
1132
+ # @return [::Hash{::Symbol=>::String}]
1133
+ # @!attribute [rw] retry_policy
1134
+ # The retry policy. The value is a hash with the following keys:
1135
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1136
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1137
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1138
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1139
+ # trigger a retry.
1140
+ # @return [::Hash]
1141
+ # @!attribute [rw] quota_project
1142
+ # A separate project against which to charge quota.
1143
+ # @return [::String]
1144
+ #
1145
+ class Configuration
1146
+ extend ::Gapic::Config
1147
+
1148
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
1149
+ config_attr :credentials, nil do |value|
1150
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1151
+ allowed.any? { |klass| klass === value }
1152
+ end
1153
+ config_attr :scope, nil, ::String, ::Array, nil
1154
+ config_attr :lib_name, nil, ::String, nil
1155
+ config_attr :lib_version, nil, ::String, nil
1156
+ config_attr :timeout, nil, ::Numeric, nil
1157
+ config_attr :metadata, nil, ::Hash, nil
1158
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1159
+ config_attr :quota_project, nil, ::String, nil
1160
+
1161
+ # @private
1162
+ # Overrides for http bindings for the RPCs of this service
1163
+ # are only used when this service is used as mixin, and only
1164
+ # by the host service.
1165
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1166
+ config_attr :bindings_override, {}, ::Hash, nil
1167
+
1168
+ # @private
1169
+ def initialize parent_config = nil
1170
+ @parent_config = parent_config unless parent_config.nil?
1171
+
1172
+ yield self if block_given?
1173
+ end
1174
+
1175
+ ##
1176
+ # Configurations for individual RPCs
1177
+ # @return [Rpcs]
1178
+ #
1179
+ def rpcs
1180
+ @rpcs ||= begin
1181
+ parent_rpcs = nil
1182
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1183
+ Rpcs.new parent_rpcs
1184
+ end
1185
+ end
1186
+
1187
+ ##
1188
+ # Configuration RPC class for the TestCases API.
1189
+ #
1190
+ # Includes fields providing the configuration for each RPC in this service.
1191
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1192
+ # the following configuration fields:
1193
+ #
1194
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1195
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1196
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1197
+ # include the following keys:
1198
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1199
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1200
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1201
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1202
+ # trigger a retry.
1203
+ #
1204
+ class Rpcs
1205
+ ##
1206
+ # RPC-specific configuration for `list_test_cases`
1207
+ # @return [::Gapic::Config::Method]
1208
+ #
1209
+ attr_reader :list_test_cases
1210
+ ##
1211
+ # RPC-specific configuration for `batch_delete_test_cases`
1212
+ # @return [::Gapic::Config::Method]
1213
+ #
1214
+ attr_reader :batch_delete_test_cases
1215
+ ##
1216
+ # RPC-specific configuration for `get_test_case`
1217
+ # @return [::Gapic::Config::Method]
1218
+ #
1219
+ attr_reader :get_test_case
1220
+ ##
1221
+ # RPC-specific configuration for `create_test_case`
1222
+ # @return [::Gapic::Config::Method]
1223
+ #
1224
+ attr_reader :create_test_case
1225
+ ##
1226
+ # RPC-specific configuration for `update_test_case`
1227
+ # @return [::Gapic::Config::Method]
1228
+ #
1229
+ attr_reader :update_test_case
1230
+ ##
1231
+ # RPC-specific configuration for `run_test_case`
1232
+ # @return [::Gapic::Config::Method]
1233
+ #
1234
+ attr_reader :run_test_case
1235
+ ##
1236
+ # RPC-specific configuration for `batch_run_test_cases`
1237
+ # @return [::Gapic::Config::Method]
1238
+ #
1239
+ attr_reader :batch_run_test_cases
1240
+ ##
1241
+ # RPC-specific configuration for `calculate_coverage`
1242
+ # @return [::Gapic::Config::Method]
1243
+ #
1244
+ attr_reader :calculate_coverage
1245
+ ##
1246
+ # RPC-specific configuration for `import_test_cases`
1247
+ # @return [::Gapic::Config::Method]
1248
+ #
1249
+ attr_reader :import_test_cases
1250
+ ##
1251
+ # RPC-specific configuration for `export_test_cases`
1252
+ # @return [::Gapic::Config::Method]
1253
+ #
1254
+ attr_reader :export_test_cases
1255
+ ##
1256
+ # RPC-specific configuration for `list_test_case_results`
1257
+ # @return [::Gapic::Config::Method]
1258
+ #
1259
+ attr_reader :list_test_case_results
1260
+ ##
1261
+ # RPC-specific configuration for `get_test_case_result`
1262
+ # @return [::Gapic::Config::Method]
1263
+ #
1264
+ attr_reader :get_test_case_result
1265
+
1266
+ # @private
1267
+ def initialize parent_rpcs = nil
1268
+ list_test_cases_config = parent_rpcs.list_test_cases if parent_rpcs.respond_to? :list_test_cases
1269
+ @list_test_cases = ::Gapic::Config::Method.new list_test_cases_config
1270
+ batch_delete_test_cases_config = parent_rpcs.batch_delete_test_cases if parent_rpcs.respond_to? :batch_delete_test_cases
1271
+ @batch_delete_test_cases = ::Gapic::Config::Method.new batch_delete_test_cases_config
1272
+ get_test_case_config = parent_rpcs.get_test_case if parent_rpcs.respond_to? :get_test_case
1273
+ @get_test_case = ::Gapic::Config::Method.new get_test_case_config
1274
+ create_test_case_config = parent_rpcs.create_test_case if parent_rpcs.respond_to? :create_test_case
1275
+ @create_test_case = ::Gapic::Config::Method.new create_test_case_config
1276
+ update_test_case_config = parent_rpcs.update_test_case if parent_rpcs.respond_to? :update_test_case
1277
+ @update_test_case = ::Gapic::Config::Method.new update_test_case_config
1278
+ run_test_case_config = parent_rpcs.run_test_case if parent_rpcs.respond_to? :run_test_case
1279
+ @run_test_case = ::Gapic::Config::Method.new run_test_case_config
1280
+ batch_run_test_cases_config = parent_rpcs.batch_run_test_cases if parent_rpcs.respond_to? :batch_run_test_cases
1281
+ @batch_run_test_cases = ::Gapic::Config::Method.new batch_run_test_cases_config
1282
+ calculate_coverage_config = parent_rpcs.calculate_coverage if parent_rpcs.respond_to? :calculate_coverage
1283
+ @calculate_coverage = ::Gapic::Config::Method.new calculate_coverage_config
1284
+ import_test_cases_config = parent_rpcs.import_test_cases if parent_rpcs.respond_to? :import_test_cases
1285
+ @import_test_cases = ::Gapic::Config::Method.new import_test_cases_config
1286
+ export_test_cases_config = parent_rpcs.export_test_cases if parent_rpcs.respond_to? :export_test_cases
1287
+ @export_test_cases = ::Gapic::Config::Method.new export_test_cases_config
1288
+ list_test_case_results_config = parent_rpcs.list_test_case_results if parent_rpcs.respond_to? :list_test_case_results
1289
+ @list_test_case_results = ::Gapic::Config::Method.new list_test_case_results_config
1290
+ get_test_case_result_config = parent_rpcs.get_test_case_result if parent_rpcs.respond_to? :get_test_case_result
1291
+ @get_test_case_result = ::Gapic::Config::Method.new get_test_case_result_config
1292
+
1293
+ yield self if block_given?
1294
+ end
1295
+ end
1296
+ end
1297
+ end
1298
+ end
1299
+ end
1300
+ end
1301
+ end
1302
+ end
1303
+ end
1304
+ end