ibm_watson 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -69,6 +69,7 @@ module IBMWatson
69
69
  args[:vcap_services_name] = "compare-comply"
70
70
  super
71
71
  @version = args[:version]
72
+ args[:display_name] = "Compare Comply"
72
73
  end
73
74
 
74
75
  #########################
@@ -78,7 +79,7 @@ module IBMWatson
78
79
  ##
79
80
  # @!method convert_to_html(file:, model_id: nil, file_content_type: nil, filename: nil)
80
81
  # Convert file to HTML.
81
- # Uploads an input file. The response includes an HTML version of the document.
82
+ # Convert an uploaded file to HTML.
82
83
  # @param file [File] The file to convert.
83
84
  # @param model_id [String] The analysis model to be used by the service. For the `/v1/element_classification`
84
85
  # and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables`
@@ -92,6 +93,7 @@ module IBMWatson
92
93
 
93
94
  headers = {
94
95
  }
96
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=convert_to_html"
95
97
 
96
98
  params = {
97
99
  "version" => @version,
@@ -125,8 +127,7 @@ module IBMWatson
125
127
  ##
126
128
  # @!method classify_elements(file:, model_id: nil, file_content_type: nil, filename: nil)
127
129
  # Classify the elements of a document.
128
- # Uploads a file. The response includes an analysis of the document's structural and
129
- # semantic elements.
130
+ # Analyze an uploaded file's structural and semantic elements.
130
131
  # @param file [File] The file to classify.
131
132
  # @param model_id [String] The analysis model to be used by the service. For the `/v1/element_classification`
132
133
  # and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables`
@@ -140,6 +141,7 @@ module IBMWatson
140
141
 
141
142
  headers = {
142
143
  }
144
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=classify_elements"
143
145
 
144
146
  params = {
145
147
  "version" => @version,
@@ -173,7 +175,7 @@ module IBMWatson
173
175
  ##
174
176
  # @!method extract_tables(file:, model_id: nil, file_content_type: nil, filename: nil)
175
177
  # Extract a document's tables.
176
- # Uploads a file. The response includes an analysis of the document's tables.
178
+ # Extract and analyze an uploaded file's tables.
177
179
  # @param file [File] The file on which to run table extraction.
178
180
  # @param model_id [String] The analysis model to be used by the service. For the `/v1/element_classification`
179
181
  # and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables`
@@ -187,6 +189,7 @@ module IBMWatson
187
189
 
188
190
  headers = {
189
191
  }
192
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=extract_tables"
190
193
 
191
194
  params = {
192
195
  "version" => @version,
@@ -220,8 +223,7 @@ module IBMWatson
220
223
  ##
221
224
  # @!method compare_documents(file_1:, file_2:, file_1_label: nil, file_2_label: nil, model_id: nil, file_1_content_type: nil, file_1_filename: nil, file_2_content_type: nil, file_2_filename: nil)
222
225
  # Compare two documents.
223
- # Uploads two input files. The response includes JSON comparing the two documents.
224
- # Uploaded files must be in the same file format.
226
+ # Compare two uploaded input files. Uploaded files must be in the same file format.
225
227
  # @param file_1 [File] The first file to compare.
226
228
  # @param file_2 [File] The second file to compare.
227
229
  # @param file_1_label [String] A text label for the first file.
@@ -242,6 +244,7 @@ module IBMWatson
242
244
 
243
245
  headers = {
244
246
  }
247
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=compare_documents"
245
248
 
246
249
  params = {
247
250
  "version" => @version,
@@ -297,6 +300,7 @@ module IBMWatson
297
300
 
298
301
  headers = {
299
302
  }
303
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=add_feedback"
300
304
 
301
305
  params = {
302
306
  "version" => @version
@@ -369,6 +373,7 @@ module IBMWatson
369
373
  def list_feedback(feedback_type: nil, before: nil, after: nil, document_title: nil, model_id: nil, model_version: nil, category_removed: nil, category_added: nil, category_not_changed: nil, type_removed: nil, type_added: nil, type_not_changed: nil, page_limit: nil, cursor: nil, sort: nil, include_total: nil)
370
374
  headers = {
371
375
  }
376
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=list_feedback"
372
377
 
373
378
  params = {
374
379
  "version" => @version,
@@ -405,7 +410,7 @@ module IBMWatson
405
410
  ##
406
411
  # @!method get_feedback(feedback_id:, model_id: nil)
407
412
  # List a specified feedback entry.
408
- # @param feedback_id [String] An string that specifies the feedback entry to be included in the output.
413
+ # @param feedback_id [String] A string that specifies the feedback entry to be included in the output.
409
414
  # @param model_id [String] The analysis model to be used by the service. For the `/v1/element_classification`
410
415
  # and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables`
411
416
  # method, the default is `tables`. These defaults apply to the standalone methods as
@@ -416,6 +421,7 @@ module IBMWatson
416
421
 
417
422
  headers = {
418
423
  }
424
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=get_feedback"
419
425
 
420
426
  params = {
421
427
  "version" => @version,
@@ -437,7 +443,7 @@ module IBMWatson
437
443
  ##
438
444
  # @!method delete_feedback(feedback_id:, model_id: nil)
439
445
  # Deletes a specified feedback entry.
440
- # @param feedback_id [String] An string that specifies the feedback entry to be deleted from the document.
446
+ # @param feedback_id [String] A string that specifies the feedback entry to be deleted from the document.
441
447
  # @param model_id [String] The analysis model to be used by the service. For the `/v1/element_classification`
442
448
  # and `/v1/comparison` methods, the default is `contracts`. For the `/v1/tables`
443
449
  # method, the default is `tables`. These defaults apply to the standalone methods as
@@ -448,6 +454,7 @@ module IBMWatson
448
454
 
449
455
  headers = {
450
456
  }
457
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=delete_feedback"
451
458
 
452
459
  params = {
453
460
  "version" => @version,
@@ -474,10 +481,10 @@ module IBMWatson
474
481
  # Submit a batch-processing request.
475
482
  # Run Compare and Comply methods over a collection of input documents.
476
483
  # **Important:** Batch processing requires the use of the [IBM Cloud Object Storage
477
- # service](https://console.bluemix.net/docs/services/cloud-object-storage/about-cos.html#about-ibm-cloud-object-storage).
484
+ # service](https://cloud.ibm.com/docs/services/cloud-object-storage/about-cos.html#about-ibm-cloud-object-storage).
478
485
  # The use of IBM Cloud Object Storage with Compare and Comply is discussed at [Using
479
486
  # batch
480
- # processing](https://console.bluemix.net/docs/services/compare-comply/batching.html#before-you-batch).
487
+ # processing](https://cloud.ibm.com/docs/services/compare-comply/batching.html#before-you-batch).
481
488
  # @param function [String] The Compare and Comply method to run across the submitted input documents.
482
489
  # @param input_credentials_file [File] A JSON file containing the input Cloud Object Storage credentials. At a minimum,
483
490
  # the credentials must enable `READ` permissions on the bucket defined by the
@@ -517,6 +524,7 @@ module IBMWatson
517
524
 
518
525
  headers = {
519
526
  }
527
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=create_batch"
520
528
 
521
529
  params = {
522
530
  "version" => @version,
@@ -561,12 +569,13 @@ module IBMWatson
561
569
 
562
570
  ##
563
571
  # @!method list_batches
564
- # Gets the list of submitted batch-processing jobs.
565
- # Gets the list of batch-processing jobs submitted by users.
572
+ # List submitted batch-processing jobs.
573
+ # List the batch-processing jobs submitted by users.
566
574
  # @return [DetailedResponse] A `DetailedResponse` object representing the response.
567
575
  def list_batches
568
576
  headers = {
569
577
  }
578
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=list_batches"
570
579
 
571
580
  params = {
572
581
  "version" => @version
@@ -586,8 +595,8 @@ module IBMWatson
586
595
 
587
596
  ##
588
597
  # @!method get_batch(batch_id:)
589
- # Gets information about a specific batch-processing request.
590
- # Gets information about a batch-processing request with a specified ID.
598
+ # Get information about a specific batch-processing request.
599
+ # Get information about a batch-processing request with a specified ID.
591
600
  # @param batch_id [String] The ID of the batch-processing request whose information you want to retrieve.
592
601
  # @return [DetailedResponse] A `DetailedResponse` object representing the response.
593
602
  def get_batch(batch_id:)
@@ -595,6 +604,7 @@ module IBMWatson
595
604
 
596
605
  headers = {
597
606
  }
607
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=get_batch"
598
608
 
599
609
  params = {
600
610
  "version" => @version
@@ -614,8 +624,8 @@ module IBMWatson
614
624
 
615
625
  ##
616
626
  # @!method update_batch(batch_id:, action:, model_id: nil)
617
- # Updates a pending or active batch-processing request.
618
- # Updates a pending or active batch-processing request. You can rescan the input
627
+ # Update a pending or active batch-processing request.
628
+ # Update a pending or active batch-processing request. You can rescan the input
619
629
  # bucket to check for new documents or cancel a request.
620
630
  # @param batch_id [String] The ID of the batch-processing request you want to update.
621
631
  # @param action [String] The action you want to perform on the specified batch-processing request.
@@ -631,6 +641,7 @@ module IBMWatson
631
641
 
632
642
  headers = {
633
643
  }
644
+ headers["X-IBMCloud-SDK-Analytics"] = "service_name=compare-comply;service_version=V1;operation_id=update_batch"
634
645
 
635
646
  params = {
636
647
  "version" => @version,