cloudmersive-convert-api-client 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5250d24641786015fd4b492ae2195d748debf54d5b1c3936eb971df727c84e86
4
- data.tar.gz: c814edbd877803e291e582c450bf80a7fce4fd93ef7a8240fd7a4c2aedfe2443
3
+ metadata.gz: 0fb06985d77d4937f600db20556993ae54664ee4730a9c9c1c3d6200378c9ff3
4
+ data.tar.gz: b189f0de049e355ea6040f94dc68a623b1708e457f450efc2a84c0bedea00c49
5
5
  SHA512:
6
- metadata.gz: efdc934b048c161fa83083cb0b0fe3df67fdd0c65b5f89e0fa1b7787b7b5d40eae45caca8e5b005661046085e3cda77b7753d96569026098530b31cf5f234a02
7
- data.tar.gz: 005f958090275bfa95e5d627af496253207319804fb55205eab21cf51dca20c739a10d2e14053eb4be5b5a862337b43d2c9acda84f91c876b8af2847318fee65
6
+ metadata.gz: 48c751c4eaaac346c3f6a84a4b2b08d64a2500657a8685ad3033d4e00f966e397098afd87c6bafd5c799f44d72e4ec9b2a3ca72c05eccfb17974f1f16f0315ea
7
+ data.tar.gz: 545df66b68486752a1706584d96abddcb31ef5df5ff6610b368ce9091be74fe621e8a63a79780123ad7f4b4e1082276068810160e041bccdf330c7ec31b4781b
data/README.md CHANGED
@@ -7,7 +7,7 @@ Convert API lets you effortlessly convert file formats and types.
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.5.7
10
+ - Package version: 1.5.8
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-convert-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-convert-api-client-1.5.7.gem
26
+ gem install ./cloudmersive-convert-api-client-1.5.8.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-convert-api-client-1.5.7.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-convert-api-client-1.5.8.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-convert-api-client', '~> 1.5.7'
34
+ gem 'cloudmersive-convert-api-client', '~> 1.5.8'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -96,6 +96,8 @@ Class | Method | HTTP request | Description
96
96
  *CloudmersiveConvertApiClient::ConvertDataApi* | [**convert_data_xml_edit_replace_with_x_path**](docs/ConvertDataApi.md#convert_data_xml_edit_replace_with_x_path) | **POST** /convert/xml/edit/xpath/replace | Replaces XML nodes matching XPath expression with new node
97
97
  *CloudmersiveConvertApiClient::ConvertDataApi* | [**convert_data_xml_edit_set_value_with_x_path**](docs/ConvertDataApi.md#convert_data_xml_edit_set_value_with_x_path) | **POST** /convert/xml/edit/xpath/set-value | Sets the value contents of XML nodes matching XPath expression
98
98
  *CloudmersiveConvertApiClient::ConvertDataApi* | [**convert_data_xml_filter_with_x_path**](docs/ConvertDataApi.md#convert_data_xml_filter_with_x_path) | **POST** /convert/xml/select/xpath | Filter, select XML nodes using XPath expression, get results
99
+ *CloudmersiveConvertApiClient::ConvertDataApi* | [**convert_data_xml_query_with_x_query**](docs/ConvertDataApi.md#convert_data_xml_query_with_x_query) | **POST** /convert/xml/query/xquery | Query an XML file using XQuery query, get results
100
+ *CloudmersiveConvertApiClient::ConvertDataApi* | [**convert_data_xml_query_with_x_query_multi**](docs/ConvertDataApi.md#convert_data_xml_query_with_x_query_multi) | **POST** /convert/xml/query/xquery/multi | Query multiple XML files using XQuery query, get results
99
101
  *CloudmersiveConvertApiClient::ConvertDataApi* | [**convert_data_xml_remove_with_x_path**](docs/ConvertDataApi.md#convert_data_xml_remove_with_x_path) | **POST** /convert/xml/edit/xpath/remove | Remove, delete XML nodes and items matching XPath expression
100
102
  *CloudmersiveConvertApiClient::ConvertDataApi* | [**convert_data_xml_to_json**](docs/ConvertDataApi.md#convert_data_xml_to_json) | **POST** /convert/xml/to/json | Convert XML to JSON conversion
101
103
  *CloudmersiveConvertApiClient::ConvertDataApi* | [**convert_data_xml_transform_with_xslt_to_xml**](docs/ConvertDataApi.md#convert_data_xml_transform_with_xslt_to_xml) | **POST** /convert/xml/transform/xslt/to/xml | Transform XML document file with XSLT into a new XML document
@@ -336,7 +338,9 @@ Class | Method | HTTP request | Description
336
338
  - [CloudmersiveConvertApiClient::XlsxWorksheet](docs/XlsxWorksheet.md)
337
339
  - [CloudmersiveConvertApiClient::XmlAddAttributeWithXPathResult](docs/XmlAddAttributeWithXPathResult.md)
338
340
  - [CloudmersiveConvertApiClient::XmlAddChildWithXPathResult](docs/XmlAddChildWithXPathResult.md)
339
- - [CloudmersiveConvertApiClient::XmlFIlterWithXPathResult](docs/XmlFIlterWithXPathResult.md)
341
+ - [CloudmersiveConvertApiClient::XmlFilterWithXPathResult](docs/XmlFilterWithXPathResult.md)
342
+ - [CloudmersiveConvertApiClient::XmlQueryWithXQueryMultiResult](docs/XmlQueryWithXQueryMultiResult.md)
343
+ - [CloudmersiveConvertApiClient::XmlQueryWithXQueryResult](docs/XmlQueryWithXQueryResult.md)
340
344
  - [CloudmersiveConvertApiClient::XmlRemoveAllChildrenWithXPathResult](docs/XmlRemoveAllChildrenWithXPathResult.md)
341
345
  - [CloudmersiveConvertApiClient::XmlRemoveWithXPathResult](docs/XmlRemoveWithXPathResult.md)
342
346
  - [CloudmersiveConvertApiClient::XmlReplaceWithXPathResult](docs/XmlReplaceWithXPathResult.md)
@@ -14,6 +14,8 @@ Method | HTTP request | Description
14
14
  [**convert_data_xml_edit_replace_with_x_path**](ConvertDataApi.md#convert_data_xml_edit_replace_with_x_path) | **POST** /convert/xml/edit/xpath/replace | Replaces XML nodes matching XPath expression with new node
15
15
  [**convert_data_xml_edit_set_value_with_x_path**](ConvertDataApi.md#convert_data_xml_edit_set_value_with_x_path) | **POST** /convert/xml/edit/xpath/set-value | Sets the value contents of XML nodes matching XPath expression
16
16
  [**convert_data_xml_filter_with_x_path**](ConvertDataApi.md#convert_data_xml_filter_with_x_path) | **POST** /convert/xml/select/xpath | Filter, select XML nodes using XPath expression, get results
17
+ [**convert_data_xml_query_with_x_query**](ConvertDataApi.md#convert_data_xml_query_with_x_query) | **POST** /convert/xml/query/xquery | Query an XML file using XQuery query, get results
18
+ [**convert_data_xml_query_with_x_query_multi**](ConvertDataApi.md#convert_data_xml_query_with_x_query_multi) | **POST** /convert/xml/query/xquery/multi | Query multiple XML files using XQuery query, get results
17
19
  [**convert_data_xml_remove_with_x_path**](ConvertDataApi.md#convert_data_xml_remove_with_x_path) | **POST** /convert/xml/edit/xpath/remove | Remove, delete XML nodes and items matching XPath expression
18
20
  [**convert_data_xml_to_json**](ConvertDataApi.md#convert_data_xml_to_json) | **POST** /convert/xml/to/json | Convert XML to JSON conversion
19
21
  [**convert_data_xml_transform_with_xslt_to_xml**](ConvertDataApi.md#convert_data_xml_transform_with_xslt_to_xml) | **POST** /convert/xml/transform/xslt/to/xml | Transform XML document file with XSLT into a new XML document
@@ -536,7 +538,7 @@ Name | Type | Description | Notes
536
538
 
537
539
 
538
540
  # **convert_data_xml_filter_with_x_path**
539
- > XmlFIlterWithXPathResult convert_data_xml_filter_with_x_path(x_path_expression, input_file)
541
+ > XmlFilterWithXPathResult convert_data_xml_filter_with_x_path(x_path_expression, input_file)
540
542
 
541
543
  Filter, select XML nodes using XPath expression, get results
542
544
 
@@ -579,7 +581,7 @@ Name | Type | Description | Notes
579
581
 
580
582
  ### Return type
581
583
 
582
- [**XmlFIlterWithXPathResult**](XmlFIlterWithXPathResult.md)
584
+ [**XmlFilterWithXPathResult**](XmlFilterWithXPathResult.md)
583
585
 
584
586
  ### Authorization
585
587
 
@@ -592,6 +594,140 @@ Name | Type | Description | Notes
592
594
 
593
595
 
594
596
 
597
+ # **convert_data_xml_query_with_x_query**
598
+ > XmlQueryWithXQueryResult convert_data_xml_query_with_x_query(input_file, x_query)
599
+
600
+ Query an XML file using XQuery query, get results
601
+
602
+ Return the reuslts of querying a single XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for a single XML document as input. Provided XML document is automatically loaded as the default context; to access elements in the document, simply refer to them without a document reference, such as bookstore/book
603
+
604
+ ### Example
605
+ ```ruby
606
+ # load the gem
607
+ require 'cloudmersive-convert-api-client'
608
+ # setup authorization
609
+ CloudmersiveConvertApiClient.configure do |config|
610
+ # Configure API key authorization: Apikey
611
+ config.api_key['Apikey'] = 'YOUR API KEY'
612
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
613
+ #config.api_key_prefix['Apikey'] = 'Bearer'
614
+ end
615
+
616
+ api_instance = CloudmersiveConvertApiClient::ConvertDataApi.new
617
+
618
+ input_file = File.new("/path/to/file.txt") # File | Input XML file to perform the operation on.
619
+
620
+ x_query = "x_query_example" # String | Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
621
+
622
+
623
+ begin
624
+ #Query an XML file using XQuery query, get results
625
+ result = api_instance.convert_data_xml_query_with_x_query(input_file, x_query)
626
+ p result
627
+ rescue CloudmersiveConvertApiClient::ApiError => e
628
+ puts "Exception when calling ConvertDataApi->convert_data_xml_query_with_x_query: #{e}"
629
+ end
630
+ ```
631
+
632
+ ### Parameters
633
+
634
+ Name | Type | Description | Notes
635
+ ------------- | ------------- | ------------- | -------------
636
+ **input_file** | **File**| Input XML file to perform the operation on. |
637
+ **x_query** | **String**| Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported |
638
+
639
+ ### Return type
640
+
641
+ [**XmlQueryWithXQueryResult**](XmlQueryWithXQueryResult.md)
642
+
643
+ ### Authorization
644
+
645
+ [Apikey](../README.md#Apikey)
646
+
647
+ ### HTTP request headers
648
+
649
+ - **Content-Type**: Not defined
650
+ - **Accept**: application/json, text/json, application/xml, text/xml
651
+
652
+
653
+
654
+ # **convert_data_xml_query_with_x_query_multi**
655
+ > XmlQueryWithXQueryMultiResult convert_data_xml_query_with_x_query_multi(input_file1, x_query, opts)
656
+
657
+ Query multiple XML files using XQuery query, get results
658
+
659
+ Return the reuslts of querying an XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for multiple XML documents as input. You can refer to the contents of a given document by name, for example doc(\"books.xml\") or doc(\"restaurants.xml\") if you included two input files named books.xml and restaurants.xml. If input files contain no file name, they will default to file names input1.xml, input2.xml and so on.
660
+
661
+ ### Example
662
+ ```ruby
663
+ # load the gem
664
+ require 'cloudmersive-convert-api-client'
665
+ # setup authorization
666
+ CloudmersiveConvertApiClient.configure do |config|
667
+ # Configure API key authorization: Apikey
668
+ config.api_key['Apikey'] = 'YOUR API KEY'
669
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
670
+ #config.api_key_prefix['Apikey'] = 'Bearer'
671
+ end
672
+
673
+ api_instance = CloudmersiveConvertApiClient::ConvertDataApi.new
674
+
675
+ input_file1 = File.new("/path/to/file.txt") # File | First input XML file to perform the operation on.
676
+
677
+ x_query = "x_query_example" # String | Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
678
+
679
+ opts = {
680
+ input_file2: File.new("/path/to/file.txt"), # File | Second input XML file to perform the operation on.
681
+ input_file3: File.new("/path/to/file.txt"), # File | Third input XML file to perform the operation on.
682
+ input_file4: File.new("/path/to/file.txt"), # File | Fourth input XML file to perform the operation on.
683
+ input_file5: File.new("/path/to/file.txt"), # File | Fifth input XML file to perform the operation on.
684
+ input_file6: File.new("/path/to/file.txt"), # File | Sixth input XML file to perform the operation on.
685
+ input_file7: File.new("/path/to/file.txt"), # File | Seventh input XML file to perform the operation on.
686
+ input_file8: File.new("/path/to/file.txt"), # File | Eighth input XML file to perform the operation on.
687
+ input_file9: File.new("/path/to/file.txt"), # File | Ninth input XML file to perform the operation on.
688
+ input_file10: File.new("/path/to/file.txt") # File | Tenth input XML file to perform the operation on.
689
+ }
690
+
691
+ begin
692
+ #Query multiple XML files using XQuery query, get results
693
+ result = api_instance.convert_data_xml_query_with_x_query_multi(input_file1, x_query, opts)
694
+ p result
695
+ rescue CloudmersiveConvertApiClient::ApiError => e
696
+ puts "Exception when calling ConvertDataApi->convert_data_xml_query_with_x_query_multi: #{e}"
697
+ end
698
+ ```
699
+
700
+ ### Parameters
701
+
702
+ Name | Type | Description | Notes
703
+ ------------- | ------------- | ------------- | -------------
704
+ **input_file1** | **File**| First input XML file to perform the operation on. |
705
+ **x_query** | **String**| Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported |
706
+ **input_file2** | **File**| Second input XML file to perform the operation on. | [optional]
707
+ **input_file3** | **File**| Third input XML file to perform the operation on. | [optional]
708
+ **input_file4** | **File**| Fourth input XML file to perform the operation on. | [optional]
709
+ **input_file5** | **File**| Fifth input XML file to perform the operation on. | [optional]
710
+ **input_file6** | **File**| Sixth input XML file to perform the operation on. | [optional]
711
+ **input_file7** | **File**| Seventh input XML file to perform the operation on. | [optional]
712
+ **input_file8** | **File**| Eighth input XML file to perform the operation on. | [optional]
713
+ **input_file9** | **File**| Ninth input XML file to perform the operation on. | [optional]
714
+ **input_file10** | **File**| Tenth input XML file to perform the operation on. | [optional]
715
+
716
+ ### Return type
717
+
718
+ [**XmlQueryWithXQueryMultiResult**](XmlQueryWithXQueryMultiResult.md)
719
+
720
+ ### Authorization
721
+
722
+ [Apikey](../README.md#Apikey)
723
+
724
+ ### HTTP request headers
725
+
726
+ - **Content-Type**: Not defined
727
+ - **Accept**: application/json, text/json, application/xml, text/xml
728
+
729
+
730
+
595
731
  # **convert_data_xml_remove_with_x_path**
596
732
  > XmlRemoveWithXPathResult convert_data_xml_remove_with_x_path(x_path_expression, input_file)
597
733
 
@@ -1,4 +1,4 @@
1
- # CloudmersiveConvertApiClient::XmlFIlterWithXPathResult
1
+ # CloudmersiveConvertApiClient::XmlFilterWithXPathResult
2
2
 
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::XmlQueryWithXQueryMultiResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **resulting_xml** | **String** | Resulting XML result output | [optional]
8
+ **error_message** | **String** | If an error occurs, additional details on the error | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # CloudmersiveConvertApiClient::XmlQueryWithXQueryResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **resulting_xml** | **String** | Resulting XML result output | [optional]
8
+ **error_message** | **String** | If an error occurs, additional details on the error | [optional]
9
+
10
+
@@ -140,7 +140,9 @@ require 'cloudmersive-convert-api-client/models/xlsx_spreadsheet_row'
140
140
  require 'cloudmersive-convert-api-client/models/xlsx_worksheet'
141
141
  require 'cloudmersive-convert-api-client/models/xml_add_attribute_with_x_path_result'
142
142
  require 'cloudmersive-convert-api-client/models/xml_add_child_with_x_path_result'
143
- require 'cloudmersive-convert-api-client/models/xml_f_ilter_with_x_path_result'
143
+ require 'cloudmersive-convert-api-client/models/xml_filter_with_x_path_result'
144
+ require 'cloudmersive-convert-api-client/models/xml_query_with_x_query_multi_result'
145
+ require 'cloudmersive-convert-api-client/models/xml_query_with_x_query_result'
144
146
  require 'cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_path_result'
145
147
  require 'cloudmersive-convert-api-client/models/xml_remove_with_x_path_result'
146
148
  require 'cloudmersive-convert-api-client/models/xml_replace_with_x_path_result'
@@ -588,7 +588,7 @@ module CloudmersiveConvertApiClient
588
588
  # @param x_path_expression Valid XML XPath query expression
589
589
  # @param input_file Input file to perform the operation on.
590
590
  # @param [Hash] opts the optional parameters
591
- # @return [XmlFIlterWithXPathResult]
591
+ # @return [XmlFilterWithXPathResult]
592
592
  def convert_data_xml_filter_with_x_path(x_path_expression, input_file, opts = {})
593
593
  data, _status_code, _headers = convert_data_xml_filter_with_x_path_with_http_info(x_path_expression, input_file, opts)
594
594
  return data
@@ -599,7 +599,7 @@ module CloudmersiveConvertApiClient
599
599
  # @param x_path_expression Valid XML XPath query expression
600
600
  # @param input_file Input file to perform the operation on.
601
601
  # @param [Hash] opts the optional parameters
602
- # @return [Array<(XmlFIlterWithXPathResult, Fixnum, Hash)>] XmlFIlterWithXPathResult data, response status code and response headers
602
+ # @return [Array<(XmlFilterWithXPathResult, Fixnum, Hash)>] XmlFilterWithXPathResult data, response status code and response headers
603
603
  def convert_data_xml_filter_with_x_path_with_http_info(x_path_expression, input_file, opts = {})
604
604
  if @api_client.config.debugging
605
605
  @api_client.config.logger.debug "Calling API: ConvertDataApi.convert_data_xml_filter_with_x_path ..."
@@ -639,13 +639,162 @@ module CloudmersiveConvertApiClient
639
639
  :form_params => form_params,
640
640
  :body => post_body,
641
641
  :auth_names => auth_names,
642
- :return_type => 'XmlFIlterWithXPathResult')
642
+ :return_type => 'XmlFilterWithXPathResult')
643
643
  if @api_client.config.debugging
644
644
  @api_client.config.logger.debug "API called: ConvertDataApi#convert_data_xml_filter_with_x_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
645
645
  end
646
646
  return data, status_code, headers
647
647
  end
648
648
 
649
+ # Query an XML file using XQuery query, get results
650
+ # Return the reuslts of querying a single XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for a single XML document as input. Provided XML document is automatically loaded as the default context; to access elements in the document, simply refer to them without a document reference, such as bookstore/book
651
+ # @param input_file Input XML file to perform the operation on.
652
+ # @param x_query Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
653
+ # @param [Hash] opts the optional parameters
654
+ # @return [XmlQueryWithXQueryResult]
655
+ def convert_data_xml_query_with_x_query(input_file, x_query, opts = {})
656
+ data, _status_code, _headers = convert_data_xml_query_with_x_query_with_http_info(input_file, x_query, opts)
657
+ return data
658
+ end
659
+
660
+ # Query an XML file using XQuery query, get results
661
+ # Return the reuslts of querying a single XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for a single XML document as input. Provided XML document is automatically loaded as the default context; to access elements in the document, simply refer to them without a document reference, such as bookstore/book
662
+ # @param input_file Input XML file to perform the operation on.
663
+ # @param x_query Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
664
+ # @param [Hash] opts the optional parameters
665
+ # @return [Array<(XmlQueryWithXQueryResult, Fixnum, Hash)>] XmlQueryWithXQueryResult data, response status code and response headers
666
+ def convert_data_xml_query_with_x_query_with_http_info(input_file, x_query, opts = {})
667
+ if @api_client.config.debugging
668
+ @api_client.config.logger.debug "Calling API: ConvertDataApi.convert_data_xml_query_with_x_query ..."
669
+ end
670
+ # verify the required parameter 'input_file' is set
671
+ if @api_client.config.client_side_validation && input_file.nil?
672
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling ConvertDataApi.convert_data_xml_query_with_x_query"
673
+ end
674
+ # verify the required parameter 'x_query' is set
675
+ if @api_client.config.client_side_validation && x_query.nil?
676
+ fail ArgumentError, "Missing the required parameter 'x_query' when calling ConvertDataApi.convert_data_xml_query_with_x_query"
677
+ end
678
+ # resource path
679
+ local_var_path = "/convert/xml/query/xquery"
680
+
681
+ # query parameters
682
+ query_params = {}
683
+
684
+ # header parameters
685
+ header_params = {}
686
+ # HTTP header 'Accept' (if needed)
687
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
688
+ header_params[:'XQuery'] = x_query
689
+
690
+ # form parameters
691
+ form_params = {}
692
+ form_params["inputFile"] = input_file
693
+
694
+ # http body (model)
695
+ post_body = nil
696
+ auth_names = ['Apikey']
697
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
698
+ :header_params => header_params,
699
+ :query_params => query_params,
700
+ :form_params => form_params,
701
+ :body => post_body,
702
+ :auth_names => auth_names,
703
+ :return_type => 'XmlQueryWithXQueryResult')
704
+ if @api_client.config.debugging
705
+ @api_client.config.logger.debug "API called: ConvertDataApi#convert_data_xml_query_with_x_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
706
+ end
707
+ return data, status_code, headers
708
+ end
709
+
710
+ # Query multiple XML files using XQuery query, get results
711
+ # Return the reuslts of querying an XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for multiple XML documents as input. You can refer to the contents of a given document by name, for example doc(\"books.xml\") or doc(\"restaurants.xml\") if you included two input files named books.xml and restaurants.xml. If input files contain no file name, they will default to file names input1.xml, input2.xml and so on.
712
+ # @param input_file1 First input XML file to perform the operation on.
713
+ # @param x_query Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
714
+ # @param [Hash] opts the optional parameters
715
+ # @option opts [File] :input_file2 Second input XML file to perform the operation on.
716
+ # @option opts [File] :input_file3 Third input XML file to perform the operation on.
717
+ # @option opts [File] :input_file4 Fourth input XML file to perform the operation on.
718
+ # @option opts [File] :input_file5 Fifth input XML file to perform the operation on.
719
+ # @option opts [File] :input_file6 Sixth input XML file to perform the operation on.
720
+ # @option opts [File] :input_file7 Seventh input XML file to perform the operation on.
721
+ # @option opts [File] :input_file8 Eighth input XML file to perform the operation on.
722
+ # @option opts [File] :input_file9 Ninth input XML file to perform the operation on.
723
+ # @option opts [File] :input_file10 Tenth input XML file to perform the operation on.
724
+ # @return [XmlQueryWithXQueryMultiResult]
725
+ def convert_data_xml_query_with_x_query_multi(input_file1, x_query, opts = {})
726
+ data, _status_code, _headers = convert_data_xml_query_with_x_query_multi_with_http_info(input_file1, x_query, opts)
727
+ return data
728
+ end
729
+
730
+ # Query multiple XML files using XQuery query, get results
731
+ # Return the reuslts of querying an XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for multiple XML documents as input. You can refer to the contents of a given document by name, for example doc(\&quot;books.xml\&quot;) or doc(\&quot;restaurants.xml\&quot;) if you included two input files named books.xml and restaurants.xml. If input files contain no file name, they will default to file names input1.xml, input2.xml and so on.
732
+ # @param input_file1 First input XML file to perform the operation on.
733
+ # @param x_query Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
734
+ # @param [Hash] opts the optional parameters
735
+ # @option opts [File] :input_file2 Second input XML file to perform the operation on.
736
+ # @option opts [File] :input_file3 Third input XML file to perform the operation on.
737
+ # @option opts [File] :input_file4 Fourth input XML file to perform the operation on.
738
+ # @option opts [File] :input_file5 Fifth input XML file to perform the operation on.
739
+ # @option opts [File] :input_file6 Sixth input XML file to perform the operation on.
740
+ # @option opts [File] :input_file7 Seventh input XML file to perform the operation on.
741
+ # @option opts [File] :input_file8 Eighth input XML file to perform the operation on.
742
+ # @option opts [File] :input_file9 Ninth input XML file to perform the operation on.
743
+ # @option opts [File] :input_file10 Tenth input XML file to perform the operation on.
744
+ # @return [Array<(XmlQueryWithXQueryMultiResult, Fixnum, Hash)>] XmlQueryWithXQueryMultiResult data, response status code and response headers
745
+ def convert_data_xml_query_with_x_query_multi_with_http_info(input_file1, x_query, opts = {})
746
+ if @api_client.config.debugging
747
+ @api_client.config.logger.debug "Calling API: ConvertDataApi.convert_data_xml_query_with_x_query_multi ..."
748
+ end
749
+ # verify the required parameter 'input_file1' is set
750
+ if @api_client.config.client_side_validation && input_file1.nil?
751
+ fail ArgumentError, "Missing the required parameter 'input_file1' when calling ConvertDataApi.convert_data_xml_query_with_x_query_multi"
752
+ end
753
+ # verify the required parameter 'x_query' is set
754
+ if @api_client.config.client_side_validation && x_query.nil?
755
+ fail ArgumentError, "Missing the required parameter 'x_query' when calling ConvertDataApi.convert_data_xml_query_with_x_query_multi"
756
+ end
757
+ # resource path
758
+ local_var_path = "/convert/xml/query/xquery/multi"
759
+
760
+ # query parameters
761
+ query_params = {}
762
+
763
+ # header parameters
764
+ header_params = {}
765
+ # HTTP header 'Accept' (if needed)
766
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
767
+ header_params[:'XQuery'] = x_query
768
+
769
+ # form parameters
770
+ form_params = {}
771
+ form_params["inputFile1"] = input_file1
772
+ form_params["inputFile2"] = opts[:'input_file2'] if !opts[:'input_file2'].nil?
773
+ form_params["inputFile3"] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
774
+ form_params["inputFile4"] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
775
+ form_params["inputFile5"] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
776
+ form_params["inputFile6"] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
777
+ form_params["inputFile7"] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
778
+ form_params["inputFile8"] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
779
+ form_params["inputFile9"] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
780
+ form_params["inputFile10"] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
781
+
782
+ # http body (model)
783
+ post_body = nil
784
+ auth_names = ['Apikey']
785
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
786
+ :header_params => header_params,
787
+ :query_params => query_params,
788
+ :form_params => form_params,
789
+ :body => post_body,
790
+ :auth_names => auth_names,
791
+ :return_type => 'XmlQueryWithXQueryMultiResult')
792
+ if @api_client.config.debugging
793
+ @api_client.config.logger.debug "API called: ConvertDataApi#convert_data_xml_query_with_x_query_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
794
+ end
795
+ return data, status_code, headers
796
+ end
797
+
649
798
  # Remove, delete XML nodes and items matching XPath expression
650
799
  # Return the reuslts of editing an XML document by removing all of the nodes that match an input XPath expression
651
800
  # @param x_path_expression Valid XML XPath query expression
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CloudmersiveConvertApiClient
16
16
  # Result of performing a filter operation on XML input using XPath
17
- class XmlFIlterWithXPathResult
17
+ class XmlFilterWithXPathResult
18
18
  # True if the operation was successful, false otherwise
19
19
  attr_accessor :successful
20
20
 
@@ -0,0 +1,209 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveConvertApiClient
16
+ # Result of performing an XQuery operation on multiple XML documents.
17
+ class XmlQueryWithXQueryMultiResult
18
+ # True if the operation was successful, false otherwise
19
+ attr_accessor :successful
20
+
21
+ # Resulting XML result output
22
+ attr_accessor :resulting_xml
23
+
24
+ # If an error occurs, additional details on the error
25
+ attr_accessor :error_message
26
+
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'successful' => :'Successful',
32
+ :'resulting_xml' => :'ResultingXml',
33
+ :'error_message' => :'ErrorMessage'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'successful' => :'BOOLEAN',
41
+ :'resulting_xml' => :'String',
42
+ :'error_message' => :'String'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
+
54
+ if attributes.has_key?(:'Successful')
55
+ self.successful = attributes[:'Successful']
56
+ end
57
+
58
+ if attributes.has_key?(:'ResultingXml')
59
+ self.resulting_xml = attributes[:'ResultingXml']
60
+ end
61
+
62
+ if attributes.has_key?(:'ErrorMessage')
63
+ self.error_message = attributes[:'ErrorMessage']
64
+ end
65
+
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ return invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ return true
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ successful == o.successful &&
87
+ resulting_xml == o.resulting_xml &&
88
+ error_message == o.error_message
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [successful, resulting_xml, error_message].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.swagger_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ end
119
+
120
+ self
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def _deserialize(type, value)
128
+ case type.to_sym
129
+ when :DateTime
130
+ DateTime.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :BOOLEAN
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ temp_model = CloudmersiveConvertApiClient.const_get(type).new
161
+ temp_model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ next if value.nil?
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map{ |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+
207
+ end
208
+
209
+ end
@@ -0,0 +1,209 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveConvertApiClient
16
+ # Result of performing an XQuery operation on an XML document.
17
+ class XmlQueryWithXQueryResult
18
+ # True if the operation was successful, false otherwise
19
+ attr_accessor :successful
20
+
21
+ # Resulting XML result output
22
+ attr_accessor :resulting_xml
23
+
24
+ # If an error occurs, additional details on the error
25
+ attr_accessor :error_message
26
+
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'successful' => :'Successful',
32
+ :'resulting_xml' => :'ResultingXml',
33
+ :'error_message' => :'ErrorMessage'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'successful' => :'BOOLEAN',
41
+ :'resulting_xml' => :'String',
42
+ :'error_message' => :'String'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
+
54
+ if attributes.has_key?(:'Successful')
55
+ self.successful = attributes[:'Successful']
56
+ end
57
+
58
+ if attributes.has_key?(:'ResultingXml')
59
+ self.resulting_xml = attributes[:'ResultingXml']
60
+ end
61
+
62
+ if attributes.has_key?(:'ErrorMessage')
63
+ self.error_message = attributes[:'ErrorMessage']
64
+ end
65
+
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ return invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ return true
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ successful == o.successful &&
87
+ resulting_xml == o.resulting_xml &&
88
+ error_message == o.error_message
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [successful, resulting_xml, error_message].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.swagger_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ end
119
+
120
+ self
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def _deserialize(type, value)
128
+ case type.to_sym
129
+ when :DateTime
130
+ DateTime.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :BOOLEAN
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ temp_model = CloudmersiveConvertApiClient.const_get(type).new
161
+ temp_model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ next if value.nil?
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map{ |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+
207
+ end
208
+
209
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module CloudmersiveConvertApiClient
14
- VERSION = "1.5.7"
14
+ VERSION = "1.5.8"
15
15
  end
@@ -156,13 +156,48 @@ describe 'ConvertDataApi' do
156
156
  # @param x_path_expression Valid XML XPath query expression
157
157
  # @param input_file Input file to perform the operation on.
158
158
  # @param [Hash] opts the optional parameters
159
- # @return [XmlFIlterWithXPathResult]
159
+ # @return [XmlFilterWithXPathResult]
160
160
  describe 'convert_data_xml_filter_with_x_path test' do
161
161
  it "should work" do
162
162
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
163
163
  end
164
164
  end
165
165
 
166
+ # unit tests for convert_data_xml_query_with_x_query
167
+ # Query an XML file using XQuery query, get results
168
+ # Return the reuslts of querying a single XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for a single XML document as input. Provided XML document is automatically loaded as the default context; to access elements in the document, simply refer to them without a document reference, such as bookstore/book
169
+ # @param input_file Input XML file to perform the operation on.
170
+ # @param x_query Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
171
+ # @param [Hash] opts the optional parameters
172
+ # @return [XmlQueryWithXQueryResult]
173
+ describe 'convert_data_xml_query_with_x_query test' do
174
+ it "should work" do
175
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
176
+ end
177
+ end
178
+
179
+ # unit tests for convert_data_xml_query_with_x_query_multi
180
+ # Query multiple XML files using XQuery query, get results
181
+ # Return the reuslts of querying an XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for multiple XML documents as input. You can refer to the contents of a given document by name, for example doc(\&quot;books.xml\&quot;) or doc(\&quot;restaurants.xml\&quot;) if you included two input files named books.xml and restaurants.xml. If input files contain no file name, they will default to file names input1.xml, input2.xml and so on.
182
+ # @param input_file1 First input XML file to perform the operation on.
183
+ # @param x_query Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
184
+ # @param [Hash] opts the optional parameters
185
+ # @option opts [File] :input_file2 Second input XML file to perform the operation on.
186
+ # @option opts [File] :input_file3 Third input XML file to perform the operation on.
187
+ # @option opts [File] :input_file4 Fourth input XML file to perform the operation on.
188
+ # @option opts [File] :input_file5 Fifth input XML file to perform the operation on.
189
+ # @option opts [File] :input_file6 Sixth input XML file to perform the operation on.
190
+ # @option opts [File] :input_file7 Seventh input XML file to perform the operation on.
191
+ # @option opts [File] :input_file8 Eighth input XML file to perform the operation on.
192
+ # @option opts [File] :input_file9 Ninth input XML file to perform the operation on.
193
+ # @option opts [File] :input_file10 Tenth input XML file to perform the operation on.
194
+ # @return [XmlQueryWithXQueryMultiResult]
195
+ describe 'convert_data_xml_query_with_x_query_multi test' do
196
+ it "should work" do
197
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
198
+ end
199
+ end
200
+
166
201
  # unit tests for convert_data_xml_remove_with_x_path
167
202
  # Remove, delete XML nodes and items matching XPath expression
168
203
  # Return the reuslts of editing an XML document by removing all of the nodes that match an input XPath expression
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CloudmersiveConvertApiClient::XmlFIlterWithXPathResult
17
+ # Unit tests for CloudmersiveConvertApiClient::XmlFilterWithXPathResult
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'XmlFIlterWithXPathResult' do
20
+ describe 'XmlFilterWithXPathResult' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CloudmersiveConvertApiClient::XmlFIlterWithXPathResult.new
23
+ @instance = CloudmersiveConvertApiClient::XmlFilterWithXPathResult.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of XmlFIlterWithXPathResult' do
31
- it 'should create an instance of XmlFIlterWithXPathResult' do
32
- expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::XmlFIlterWithXPathResult)
30
+ describe 'test an instance of XmlFilterWithXPathResult' do
31
+ it 'should create an instance of XmlFilterWithXPathResult' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::XmlFilterWithXPathResult)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "successful"' do
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::XmlQueryWithXQueryMultiResult
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'XmlQueryWithXQueryMultiResult' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::XmlQueryWithXQueryMultiResult.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of XmlQueryWithXQueryMultiResult' do
31
+ it 'should create an instance of XmlQueryWithXQueryMultiResult' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::XmlQueryWithXQueryMultiResult)
33
+ end
34
+ end
35
+ describe 'test attribute "successful"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "resulting_xml"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "error_message"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
54
+
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #convertapi
3
+
4
+ #Convert API lets you effortlessly convert file formats and types.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::XmlQueryWithXQueryResult
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'XmlQueryWithXQueryResult' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::XmlQueryWithXQueryResult.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of XmlQueryWithXQueryResult' do
31
+ it 'should create an instance of XmlQueryWithXQueryResult' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::XmlQueryWithXQueryResult)
33
+ end
34
+ end
35
+ describe 'test attribute "successful"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "resulting_xml"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "error_message"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
54
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-convert-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-25 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -337,7 +337,9 @@ files:
337
337
  - "./docs/XlsxWorksheet.md"
338
338
  - "./docs/XmlAddAttributeWithXPathResult.md"
339
339
  - "./docs/XmlAddChildWithXPathResult.md"
340
- - "./docs/XmlFIlterWithXPathResult.md"
340
+ - "./docs/XmlFilterWithXPathResult.md"
341
+ - "./docs/XmlQueryWithXQueryMultiResult.md"
342
+ - "./docs/XmlQueryWithXQueryResult.md"
341
343
  - "./docs/XmlRemoveAllChildrenWithXPathResult.md"
342
344
  - "./docs/XmlRemoveWithXPathResult.md"
343
345
  - "./docs/XmlReplaceWithXPathResult.md"
@@ -482,7 +484,9 @@ files:
482
484
  - "./lib/cloudmersive-convert-api-client/models/xlsx_worksheet.rb"
483
485
  - "./lib/cloudmersive-convert-api-client/models/xml_add_attribute_with_x_path_result.rb"
484
486
  - "./lib/cloudmersive-convert-api-client/models/xml_add_child_with_x_path_result.rb"
485
- - "./lib/cloudmersive-convert-api-client/models/xml_f_ilter_with_x_path_result.rb"
487
+ - "./lib/cloudmersive-convert-api-client/models/xml_filter_with_x_path_result.rb"
488
+ - "./lib/cloudmersive-convert-api-client/models/xml_query_with_x_query_multi_result.rb"
489
+ - "./lib/cloudmersive-convert-api-client/models/xml_query_with_x_query_result.rb"
486
490
  - "./lib/cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_path_result.rb"
487
491
  - "./lib/cloudmersive-convert-api-client/models/xml_remove_with_x_path_result.rb"
488
492
  - "./lib/cloudmersive-convert-api-client/models/xml_replace_with_x_path_result.rb"
@@ -625,7 +629,9 @@ files:
625
629
  - "./spec/models/xlsx_worksheet_spec.rb"
626
630
  - "./spec/models/xml_add_attribute_with_x_path_result_spec.rb"
627
631
  - "./spec/models/xml_add_child_with_x_path_result_spec.rb"
628
- - "./spec/models/xml_f_ilter_with_x_path_result_spec.rb"
632
+ - "./spec/models/xml_filter_with_x_path_result_spec.rb"
633
+ - "./spec/models/xml_query_with_x_query_multi_result_spec.rb"
634
+ - "./spec/models/xml_query_with_x_query_result_spec.rb"
629
635
  - "./spec/models/xml_remove_all_children_with_x_path_result_spec.rb"
630
636
  - "./spec/models/xml_remove_with_x_path_result_spec.rb"
631
637
  - "./spec/models/xml_replace_with_x_path_result_spec.rb"