@@ -56,6 +56,8 @@ class CompareComplyV1 < IBMCloudSdkCore::BaseService
5656    #   made with an expired token will fail. 
5757    # @option args iam_url [String] An optional URL for the IAM service API. Defaults to 
5858    #   'https://iam.cloud.ibm.com/identity/token'. 
59+     # @option args iam_client_id [String] An optional client id for the IAM service API. 
60+     # @option args iam_client_secret [String] An optional client secret for the IAM service API. 
5961    def  initialize ( args  =  { } ) 
6062      @__async_initialized__  =  false 
6163      defaults  =  { } 
@@ -64,6 +66,8 @@ def initialize(args = {})
6466      defaults [ :iam_apikey ]  =  nil 
6567      defaults [ :iam_access_token ]  =  nil 
6668      defaults [ :iam_url ]  =  nil 
69+       defaults [ :iam_client_id ]  =  nil 
70+       defaults [ :iam_client_secret ]  =  nil 
6771      args  =  defaults . merge ( args ) 
6872      args [ :vcap_services_name ]  =  "compare-comply" 
6973      super 
@@ -321,76 +325,6 @@ def add_feedback(feedback_data:, user_id: nil, comment: nil)
321325      response 
322326    end 
323327
324-     ## 
325-     # @!method delete_feedback(feedback_id:, model: nil) 
326-     # Delete a specified feedback entry. 
327-     # Deletes a feedback entry with a specified `feedback_id`. 
328-     # @param feedback_id [String] A string that specifies the feedback entry to be deleted from the document. 
329-     # @param model [String] The analysis model to be used by the service. For the **Element classification** 
330-     #   and **Compare two documents** methods, the default is `contracts`. For the 
331-     #   **Extract tables** method, the default is `tables`. These defaults apply to the 
332-     #   standalone methods as well as to the methods' use in batch-processing requests. 
333-     # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. 
334-     def  delete_feedback ( feedback_id :,  model : nil ) 
335-       raise  ArgumentError . new ( "feedback_id must be provided" )  if  feedback_id . nil? 
336- 
337-       headers  =  { 
338-       } 
339-       sdk_headers  =  Common . new . get_sdk_headers ( "compare-comply" ,  "V1" ,  "delete_feedback" ) 
340-       headers . merge! ( sdk_headers ) 
341- 
342-       params  =  { 
343-         "version"  =>  @version , 
344-         "model"  =>  model 
345-       } 
346- 
347-       method_url  =  "/v1/feedback/%s"  % [ ERB ::Util . url_encode ( feedback_id ) ] 
348- 
349-       response  =  request ( 
350-         method : "DELETE" , 
351-         url : method_url , 
352-         headers : headers , 
353-         params : params , 
354-         accept_json : true 
355-       ) 
356-       response 
357-     end 
358- 
359-     ## 
360-     # @!method get_feedback(feedback_id:, model: nil) 
361-     # List a specified feedback entry. 
362-     # Lists a feedback entry with a specified `feedback_id`. 
363-     # @param feedback_id [String] A string that specifies the feedback entry to be included in the output. 
364-     # @param model [String] The analysis model to be used by the service. For the **Element classification** 
365-     #   and **Compare two documents** methods, the default is `contracts`. For the 
366-     #   **Extract tables** method, the default is `tables`. These defaults apply to the 
367-     #   standalone methods as well as to the methods' use in batch-processing requests. 
368-     # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. 
369-     def  get_feedback ( feedback_id :,  model : nil ) 
370-       raise  ArgumentError . new ( "feedback_id must be provided" )  if  feedback_id . nil? 
371- 
372-       headers  =  { 
373-       } 
374-       sdk_headers  =  Common . new . get_sdk_headers ( "compare-comply" ,  "V1" ,  "get_feedback" ) 
375-       headers . merge! ( sdk_headers ) 
376- 
377-       params  =  { 
378-         "version"  =>  @version , 
379-         "model"  =>  model 
380-       } 
381- 
382-       method_url  =  "/v1/feedback/%s"  % [ ERB ::Util . url_encode ( feedback_id ) ] 
383- 
384-       response  =  request ( 
385-         method : "GET" , 
386-         url : method_url , 
387-         headers : headers , 
388-         params : params , 
389-         accept_json : true 
390-       ) 
391-       response 
392-     end 
393- 
394328    ## 
395329    # @!method 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) 
396330    # List the feedback in a document. 
@@ -474,6 +408,76 @@ def list_feedback(feedback_type: nil, before: nil, after: nil, document_title: n
474408      ) 
475409      response 
476410    end 
411+ 
412+     ## 
413+     # @!method get_feedback(feedback_id:, model: nil) 
414+     # Get a specified feedback entry. 
415+     # Gets a feedback entry with a specified `feedback_id`. 
416+     # @param feedback_id [String] A string that specifies the feedback entry to be included in the output. 
417+     # @param model [String] The analysis model to be used by the service. For the **Element classification** 
418+     #   and **Compare two documents** methods, the default is `contracts`. For the 
419+     #   **Extract tables** method, the default is `tables`. These defaults apply to the 
420+     #   standalone methods as well as to the methods' use in batch-processing requests. 
421+     # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. 
422+     def  get_feedback ( feedback_id :,  model : nil ) 
423+       raise  ArgumentError . new ( "feedback_id must be provided" )  if  feedback_id . nil? 
424+ 
425+       headers  =  { 
426+       } 
427+       sdk_headers  =  Common . new . get_sdk_headers ( "compare-comply" ,  "V1" ,  "get_feedback" ) 
428+       headers . merge! ( sdk_headers ) 
429+ 
430+       params  =  { 
431+         "version"  =>  @version , 
432+         "model"  =>  model 
433+       } 
434+ 
435+       method_url  =  "/v1/feedback/%s"  % [ ERB ::Util . url_encode ( feedback_id ) ] 
436+ 
437+       response  =  request ( 
438+         method : "GET" , 
439+         url : method_url , 
440+         headers : headers , 
441+         params : params , 
442+         accept_json : true 
443+       ) 
444+       response 
445+     end 
446+ 
447+     ## 
448+     # @!method delete_feedback(feedback_id:, model: nil) 
449+     # Delete a specified feedback entry. 
450+     # Deletes a feedback entry with a specified `feedback_id`. 
451+     # @param feedback_id [String] A string that specifies the feedback entry to be deleted from the document. 
452+     # @param model [String] The analysis model to be used by the service. For the **Element classification** 
453+     #   and **Compare two documents** methods, the default is `contracts`. For the 
454+     #   **Extract tables** method, the default is `tables`. These defaults apply to the 
455+     #   standalone methods as well as to the methods' use in batch-processing requests. 
456+     # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. 
457+     def  delete_feedback ( feedback_id :,  model : nil ) 
458+       raise  ArgumentError . new ( "feedback_id must be provided" )  if  feedback_id . nil? 
459+ 
460+       headers  =  { 
461+       } 
462+       sdk_headers  =  Common . new . get_sdk_headers ( "compare-comply" ,  "V1" ,  "delete_feedback" ) 
463+       headers . merge! ( sdk_headers ) 
464+ 
465+       params  =  { 
466+         "version"  =>  @version , 
467+         "model"  =>  model 
468+       } 
469+ 
470+       method_url  =  "/v1/feedback/%s"  % [ ERB ::Util . url_encode ( feedback_id ) ] 
471+ 
472+       response  =  request ( 
473+         method : "DELETE" , 
474+         url : method_url , 
475+         headers : headers , 
476+         params : params , 
477+         accept_json : true 
478+       ) 
479+       response 
480+     end 
477481    ######################### 
478482    # Batches 
479483    ######################### 
@@ -482,11 +486,12 @@ def list_feedback(feedback_type: nil, before: nil, after: nil, document_title: n
482486    # @!method create_batch(function:, input_credentials_file:, input_bucket_location:, input_bucket_name:, output_credentials_file:, output_bucket_location:, output_bucket_name:, model: nil) 
483487    # Submit a batch-processing request. 
484488    # Run Compare and Comply methods over a collection of input documents. 
489+     # 
485490    #   **Important:** Batch processing requires the use of the [IBM Cloud Object Storage 
486-     #   service](https://cloud.ibm.com/docs/services/cloud-object-storage/about-cos.html #about-ibm-cloud-object-storage). 
491+     #   service](https://cloud.ibm.com/docs/services/cloud-object-storage?topic=cloud-object-storage-about #about-ibm-cloud-object-storage). 
487492    #   The use of IBM Cloud Object Storage with Compare and Comply is discussed at [Using 
488493    #   batch 
489-     #   processing](https://cloud.ibm.com/docs/services/compare-comply/ batching.html #before-you-batch). 
494+     #   processing](https://cloud.ibm.com/docs/services/compare-comply?topic=compare-comply- batching#before-you-batch). 
490495    # @param function [String] The Compare and Comply method to run across the submitted input documents. 
491496    # @param input_credentials_file [File] A JSON file containing the input Cloud Object Storage credentials. At a minimum, 
492497    #   the credentials must enable `READ` permissions on the bucket defined by the 
@@ -567,24 +572,21 @@ def create_batch(function:, input_credentials_file:, input_bucket_location:, inp
567572    end 
568573
569574    ## 
570-     # @!method get_batch(batch_id:) 
571-     # Get information about a specific batch-processing job. 
572-     # Gets information about a batch-processing job with a specified ID. 
573-     # @param batch_id [String] The ID of the batch-processing job whose information you want to retrieve. 
575+     # @!method list_batches 
576+     # List submitted batch-processing jobs. 
577+     # Lists batch-processing jobs submitted by users. 
574578    # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. 
575-     def  get_batch ( batch_id :) 
576-       raise  ArgumentError . new ( "batch_id must be provided" )  if  batch_id . nil? 
577- 
579+     def  list_batches 
578580      headers  =  { 
579581      } 
580-       sdk_headers  =  Common . new . get_sdk_headers ( "compare-comply" ,  "V1" ,  "get_batch " ) 
582+       sdk_headers  =  Common . new . get_sdk_headers ( "compare-comply" ,  "V1" ,  "list_batches " ) 
581583      headers . merge! ( sdk_headers ) 
582584
583585      params  =  { 
584586        "version"  =>  @version 
585587      } 
586588
587-       method_url  =  "/v1/batches/%s"   %  [ ERB :: Util . url_encode ( batch_id ) ] 
589+       method_url  =  "/v1/batches"  
588590
589591      response  =  request ( 
590592        method : "GET" , 
@@ -597,21 +599,24 @@ def get_batch(batch_id:)
597599    end 
598600
599601    ## 
600-     # @!method list_batches 
601-     # List submitted batch-processing jobs. 
602-     # Lists batch-processing jobs submitted by users. 
602+     # @!method get_batch(batch_id:) 
603+     # Get information about a specific batch-processing job. 
604+     # Gets information about a batch-processing job with a specified ID. 
605+     # @param batch_id [String] The ID of the batch-processing job whose information you want to retrieve. 
603606    # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. 
604-     def  list_batches 
607+     def  get_batch ( batch_id :) 
608+       raise  ArgumentError . new ( "batch_id must be provided" )  if  batch_id . nil? 
609+ 
605610      headers  =  { 
606611      } 
607-       sdk_headers  =  Common . new . get_sdk_headers ( "compare-comply" ,  "V1" ,  "list_batches " ) 
612+       sdk_headers  =  Common . new . get_sdk_headers ( "compare-comply" ,  "V1" ,  "get_batch " ) 
608613      headers . merge! ( sdk_headers ) 
609614
610615      params  =  { 
611616        "version"  =>  @version 
612617      } 
613618
614-       method_url  =  "/v1/batches"  
619+       method_url  =  "/v1/batches/%s"   %  [ ERB :: Util . url_encode ( batch_id ) ] 
615620
616621      response  =  request ( 
617622        method : "GET" , 
0 commit comments