google-cloud-dialogflow-v2 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +176 -0
- data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +100 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +105 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +187 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +136 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +174 -0
- data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +199 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +104 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +32 -0
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +132 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +16 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +84 -0
- metadata +4 -4
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -210,6 +210,29 @@ module Google
|
|
210
210
|
# @return [::Gapic::Operation]
|
211
211
|
#
|
212
212
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
213
|
+
#
|
214
|
+
# @example Basic example
|
215
|
+
# require "google/cloud/dialogflow/v2"
|
216
|
+
#
|
217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
218
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::Dialogflow::V2::CreateConversationDatasetRequest.new
|
222
|
+
#
|
223
|
+
# # Call the create_conversation_dataset method.
|
224
|
+
# result = client.create_conversation_dataset request
|
225
|
+
#
|
226
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
227
|
+
# # check the status of an operation, cancel it, or wait for results.
|
228
|
+
# # Here is how to wait for a response.
|
229
|
+
# result.wait_until_done! timeout: 60
|
230
|
+
# if result.response?
|
231
|
+
# p result.response
|
232
|
+
# else
|
233
|
+
# puts "No response received."
|
234
|
+
# end
|
235
|
+
#
|
213
236
|
def create_conversation_dataset request, options = nil
|
214
237
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
215
238
|
|
@@ -275,6 +298,22 @@ module Google
|
|
275
298
|
# @return [::Google::Cloud::Dialogflow::V2::ConversationDataset]
|
276
299
|
#
|
277
300
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
301
|
+
#
|
302
|
+
# @example Basic example
|
303
|
+
# require "google/cloud/dialogflow/v2"
|
304
|
+
#
|
305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
306
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
|
307
|
+
#
|
308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
309
|
+
# request = Google::Cloud::Dialogflow::V2::GetConversationDatasetRequest.new
|
310
|
+
#
|
311
|
+
# # Call the get_conversation_dataset method.
|
312
|
+
# result = client.get_conversation_dataset request
|
313
|
+
#
|
314
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationDataset.
|
315
|
+
# p result
|
316
|
+
#
|
278
317
|
def get_conversation_dataset request, options = nil
|
279
318
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
280
319
|
|
@@ -344,6 +383,26 @@ module Google
|
|
344
383
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationDataset>]
|
345
384
|
#
|
346
385
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
386
|
+
#
|
387
|
+
# @example Basic example
|
388
|
+
# require "google/cloud/dialogflow/v2"
|
389
|
+
#
|
390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
391
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
|
392
|
+
#
|
393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
394
|
+
# request = Google::Cloud::Dialogflow::V2::ListConversationDatasetsRequest.new
|
395
|
+
#
|
396
|
+
# # Call the list_conversation_datasets method.
|
397
|
+
# result = client.list_conversation_datasets request
|
398
|
+
#
|
399
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
400
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
401
|
+
# result.each do |item|
|
402
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationDataset.
|
403
|
+
# p item
|
404
|
+
# end
|
405
|
+
#
|
347
406
|
def list_conversation_datasets request, options = nil
|
348
407
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
408
|
|
@@ -418,6 +477,29 @@ module Google
|
|
418
477
|
# @return [::Gapic::Operation]
|
419
478
|
#
|
420
479
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
480
|
+
#
|
481
|
+
# @example Basic example
|
482
|
+
# require "google/cloud/dialogflow/v2"
|
483
|
+
#
|
484
|
+
# # Create a client object. The client can be reused for multiple calls.
|
485
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
|
486
|
+
#
|
487
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
488
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteConversationDatasetRequest.new
|
489
|
+
#
|
490
|
+
# # Call the delete_conversation_dataset method.
|
491
|
+
# result = client.delete_conversation_dataset request
|
492
|
+
#
|
493
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
494
|
+
# # check the status of an operation, cancel it, or wait for results.
|
495
|
+
# # Here is how to wait for a response.
|
496
|
+
# result.wait_until_done! timeout: 60
|
497
|
+
# if result.response?
|
498
|
+
# p result.response
|
499
|
+
# else
|
500
|
+
# puts "No response received."
|
501
|
+
# end
|
502
|
+
#
|
421
503
|
def delete_conversation_dataset request, options = nil
|
422
504
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
423
505
|
|
@@ -496,6 +578,29 @@ module Google
|
|
496
578
|
# @return [::Gapic::Operation]
|
497
579
|
#
|
498
580
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
581
|
+
#
|
582
|
+
# @example Basic example
|
583
|
+
# require "google/cloud/dialogflow/v2"
|
584
|
+
#
|
585
|
+
# # Create a client object. The client can be reused for multiple calls.
|
586
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationDatasets::Rest::Client.new
|
587
|
+
#
|
588
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
589
|
+
# request = Google::Cloud::Dialogflow::V2::ImportConversationDataRequest.new
|
590
|
+
#
|
591
|
+
# # Call the import_conversation_data method.
|
592
|
+
# result = client.import_conversation_data request
|
593
|
+
#
|
594
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
595
|
+
# # check the status of an operation, cancel it, or wait for results.
|
596
|
+
# # Here is how to wait for a response.
|
597
|
+
# result.wait_until_done! timeout: 60
|
598
|
+
# if result.response?
|
599
|
+
# p result.response
|
600
|
+
# else
|
601
|
+
# puts "No response received."
|
602
|
+
# end
|
603
|
+
#
|
499
604
|
def import_conversation_data request, options = nil
|
500
605
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
501
606
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -156,7 +156,8 @@ module Google
|
|
156
156
|
credentials: credentials,
|
157
157
|
endpoint: @config.endpoint,
|
158
158
|
channel_args: @config.channel_args,
|
159
|
-
interceptors: @config.interceptors
|
159
|
+
interceptors: @config.interceptors,
|
160
|
+
channel_pool_config: @config.channel_pool
|
160
161
|
)
|
161
162
|
end
|
162
163
|
|
@@ -1177,6 +1178,14 @@ module Google
|
|
1177
1178
|
end
|
1178
1179
|
end
|
1179
1180
|
|
1181
|
+
##
|
1182
|
+
# Configuration for the channel pool
|
1183
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1184
|
+
#
|
1185
|
+
def channel_pool
|
1186
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1187
|
+
end
|
1188
|
+
|
1180
1189
|
##
|
1181
1190
|
# Configuration RPC class for the ConversationModels API.
|
1182
1191
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -207,6 +207,29 @@ module Google
|
|
207
207
|
# @return [::Gapic::Operation]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/dialogflow/v2"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::Dialogflow::V2::CreateConversationModelRequest.new
|
219
|
+
#
|
220
|
+
# # Call the create_conversation_model method.
|
221
|
+
# result = client.create_conversation_model request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
224
|
+
# # check the status of an operation, cancel it, or wait for results.
|
225
|
+
# # Here is how to wait for a response.
|
226
|
+
# result.wait_until_done! timeout: 60
|
227
|
+
# if result.response?
|
228
|
+
# p result.response
|
229
|
+
# else
|
230
|
+
# puts "No response received."
|
231
|
+
# end
|
232
|
+
#
|
210
233
|
def create_conversation_model request, options = nil
|
211
234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
235
|
|
@@ -271,6 +294,22 @@ module Google
|
|
271
294
|
# @return [::Google::Cloud::Dialogflow::V2::ConversationModel]
|
272
295
|
#
|
273
296
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
297
|
+
#
|
298
|
+
# @example Basic example
|
299
|
+
# require "google/cloud/dialogflow/v2"
|
300
|
+
#
|
301
|
+
# # Create a client object. The client can be reused for multiple calls.
|
302
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
303
|
+
#
|
304
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
305
|
+
# request = Google::Cloud::Dialogflow::V2::GetConversationModelRequest.new
|
306
|
+
#
|
307
|
+
# # Call the get_conversation_model method.
|
308
|
+
# result = client.get_conversation_model request
|
309
|
+
#
|
310
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationModel.
|
311
|
+
# p result
|
312
|
+
#
|
274
313
|
def get_conversation_model request, options = nil
|
275
314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
276
315
|
|
@@ -339,6 +378,26 @@ module Google
|
|
339
378
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationModel>]
|
340
379
|
#
|
341
380
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
381
|
+
#
|
382
|
+
# @example Basic example
|
383
|
+
# require "google/cloud/dialogflow/v2"
|
384
|
+
#
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
386
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
387
|
+
#
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
389
|
+
# request = Google::Cloud::Dialogflow::V2::ListConversationModelsRequest.new
|
390
|
+
#
|
391
|
+
# # Call the list_conversation_models method.
|
392
|
+
# result = client.list_conversation_models request
|
393
|
+
#
|
394
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
395
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
396
|
+
# result.each do |item|
|
397
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationModel.
|
398
|
+
# p item
|
399
|
+
# end
|
400
|
+
#
|
342
401
|
def list_conversation_models request, options = nil
|
343
402
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
403
|
|
@@ -412,6 +471,29 @@ module Google
|
|
412
471
|
# @return [::Gapic::Operation]
|
413
472
|
#
|
414
473
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
474
|
+
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/dialogflow/v2"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteConversationModelRequest.new
|
483
|
+
#
|
484
|
+
# # Call the delete_conversation_model method.
|
485
|
+
# result = client.delete_conversation_model request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
488
|
+
# # check the status of an operation, cancel it, or wait for results.
|
489
|
+
# # Here is how to wait for a response.
|
490
|
+
# result.wait_until_done! timeout: 60
|
491
|
+
# if result.response?
|
492
|
+
# p result.response
|
493
|
+
# else
|
494
|
+
# puts "No response received."
|
495
|
+
# end
|
496
|
+
#
|
415
497
|
def delete_conversation_model request, options = nil
|
416
498
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
417
499
|
|
@@ -488,6 +570,29 @@ module Google
|
|
488
570
|
# @return [::Gapic::Operation]
|
489
571
|
#
|
490
572
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
573
|
+
#
|
574
|
+
# @example Basic example
|
575
|
+
# require "google/cloud/dialogflow/v2"
|
576
|
+
#
|
577
|
+
# # Create a client object. The client can be reused for multiple calls.
|
578
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
579
|
+
#
|
580
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
581
|
+
# request = Google::Cloud::Dialogflow::V2::DeployConversationModelRequest.new
|
582
|
+
#
|
583
|
+
# # Call the deploy_conversation_model method.
|
584
|
+
# result = client.deploy_conversation_model request
|
585
|
+
#
|
586
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
587
|
+
# # check the status of an operation, cancel it, or wait for results.
|
588
|
+
# # Here is how to wait for a response.
|
589
|
+
# result.wait_until_done! timeout: 60
|
590
|
+
# if result.response?
|
591
|
+
# p result.response
|
592
|
+
# else
|
593
|
+
# puts "No response received."
|
594
|
+
# end
|
595
|
+
#
|
491
596
|
def deploy_conversation_model request, options = nil
|
492
597
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
493
598
|
|
@@ -564,6 +669,29 @@ module Google
|
|
564
669
|
# @return [::Gapic::Operation]
|
565
670
|
#
|
566
671
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
672
|
+
#
|
673
|
+
# @example Basic example
|
674
|
+
# require "google/cloud/dialogflow/v2"
|
675
|
+
#
|
676
|
+
# # Create a client object. The client can be reused for multiple calls.
|
677
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
678
|
+
#
|
679
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
680
|
+
# request = Google::Cloud::Dialogflow::V2::UndeployConversationModelRequest.new
|
681
|
+
#
|
682
|
+
# # Call the undeploy_conversation_model method.
|
683
|
+
# result = client.undeploy_conversation_model request
|
684
|
+
#
|
685
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
686
|
+
# # check the status of an operation, cancel it, or wait for results.
|
687
|
+
# # Here is how to wait for a response.
|
688
|
+
# result.wait_until_done! timeout: 60
|
689
|
+
# if result.response?
|
690
|
+
# p result.response
|
691
|
+
# else
|
692
|
+
# puts "No response received."
|
693
|
+
# end
|
694
|
+
#
|
567
695
|
def undeploy_conversation_model request, options = nil
|
568
696
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
569
697
|
|
@@ -629,6 +757,22 @@ module Google
|
|
629
757
|
# @return [::Google::Cloud::Dialogflow::V2::ConversationModelEvaluation]
|
630
758
|
#
|
631
759
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
760
|
+
#
|
761
|
+
# @example Basic example
|
762
|
+
# require "google/cloud/dialogflow/v2"
|
763
|
+
#
|
764
|
+
# # Create a client object. The client can be reused for multiple calls.
|
765
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
766
|
+
#
|
767
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
768
|
+
# request = Google::Cloud::Dialogflow::V2::GetConversationModelEvaluationRequest.new
|
769
|
+
#
|
770
|
+
# # Call the get_conversation_model_evaluation method.
|
771
|
+
# result = client.get_conversation_model_evaluation request
|
772
|
+
#
|
773
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationModelEvaluation.
|
774
|
+
# p result
|
775
|
+
#
|
632
776
|
def get_conversation_model_evaluation request, options = nil
|
633
777
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
634
778
|
|
@@ -697,6 +841,26 @@ module Google
|
|
697
841
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationModelEvaluation>]
|
698
842
|
#
|
699
843
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
844
|
+
#
|
845
|
+
# @example Basic example
|
846
|
+
# require "google/cloud/dialogflow/v2"
|
847
|
+
#
|
848
|
+
# # Create a client object. The client can be reused for multiple calls.
|
849
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
850
|
+
#
|
851
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
852
|
+
# request = Google::Cloud::Dialogflow::V2::ListConversationModelEvaluationsRequest.new
|
853
|
+
#
|
854
|
+
# # Call the list_conversation_model_evaluations method.
|
855
|
+
# result = client.list_conversation_model_evaluations request
|
856
|
+
#
|
857
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
858
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
859
|
+
# result.each do |item|
|
860
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationModelEvaluation.
|
861
|
+
# p item
|
862
|
+
# end
|
863
|
+
#
|
700
864
|
def list_conversation_model_evaluations request, options = nil
|
701
865
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
702
866
|
|
@@ -764,6 +928,29 @@ module Google
|
|
764
928
|
# @return [::Gapic::Operation]
|
765
929
|
#
|
766
930
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
931
|
+
#
|
932
|
+
# @example Basic example
|
933
|
+
# require "google/cloud/dialogflow/v2"
|
934
|
+
#
|
935
|
+
# # Create a client object. The client can be reused for multiple calls.
|
936
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationModels::Rest::Client.new
|
937
|
+
#
|
938
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
939
|
+
# request = Google::Cloud::Dialogflow::V2::CreateConversationModelEvaluationRequest.new
|
940
|
+
#
|
941
|
+
# # Call the create_conversation_model_evaluation method.
|
942
|
+
# result = client.create_conversation_model_evaluation request
|
943
|
+
#
|
944
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
945
|
+
# # check the status of an operation, cancel it, or wait for results.
|
946
|
+
# # Here is how to wait for a response.
|
947
|
+
# result.wait_until_done! timeout: 60
|
948
|
+
# if result.response?
|
949
|
+
# p result.response
|
950
|
+
# else
|
951
|
+
# puts "No response received."
|
952
|
+
# end
|
953
|
+
#
|
767
954
|
def create_conversation_model_evaluation request, options = nil
|
768
955
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
769
956
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|