cheminee 0.1.35 → 0.1.36

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: b489a78e92999967bac81cd48a4b6470ecbc181bead072db956d786f4b684289
4
- data.tar.gz: '02818840a73cb71be8e156cd231aafcf6756b2d969bb027bb2e1b3b9a011db7b'
3
+ metadata.gz: 6af426bbcd4778f0d0da91851010456e7ec6262e66dcbf367fa67674b3bbee24
4
+ data.tar.gz: 0a38cf05b5f535ae644caff1ad0aa7d2876ebd7a1fdbe115829d568f3efc83c3
5
5
  SHA512:
6
- metadata.gz: 362e1a903b2bfcda17583fd21ebb5833f44266f84d72bc9a8a5afdc505e9d0a7337af2c0c0535525c1a67836618375c159cd55de04bac6b30216d4e810b3ae2b
7
- data.tar.gz: 23497cef82cb992182ef2c632998163513d280aeb9d17a35dc0108c3d36b09d6c1fc7c316a9b88653aff7584c08c4dc247dc8575f53fc8902be95d1ad0ef5ed3
6
+ metadata.gz: 75379d5f3605463f219e25963221c249f4fb76d0acb9b140186325aee1d07467fc0f8e6111ed7f67ae2e58c56b91aad93ac1a58a97f839eced55db6fb7f4f101
7
+ data.tar.gz: f1769ec639ac34b1f0c6748aa1a0a4ea2038f3fbec48755ed07fedea857994e298e03326c0b61c6b0e8e74c93cd764146b5a86ea335ed0e35afbef956a93539d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cheminee (0.1.35)
4
+ cheminee (0.1.36)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart
7
7
  marcel
data/README.md CHANGED
@@ -7,7 +7,7 @@ Cheminée: The Chemical Structure Search Engine
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 0.1.35
10
+ - Package version: 0.1.36
11
11
  - Generator version: 7.9.0-SNAPSHOT
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
  For more information, please visit [https://github.com/rdkit-rs/cheminee](https://github.com/rdkit-rs/cheminee)
@@ -25,16 +25,16 @@ gem build cheminee.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./cheminee-0.1.35.gem
28
+ gem install ./cheminee-0.1.36.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./cheminee-0.1.35.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./cheminee-0.1.36.gem` to install the development dependencies)
32
32
 
33
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
34
 
35
35
  Finally add this to the Gemfile:
36
36
 
37
- gem 'cheminee', '~> 0.1.35'
37
+ gem 'cheminee', '~> 0.1.36'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -85,6 +85,7 @@ Class | Method | HTTP request | Description
85
85
  *Cheminee::DefaultApi* | [**v1_indexes_index_bulk_index_post**](docs/DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index | Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
86
86
  *Cheminee::DefaultApi* | [**v1_indexes_index_delete**](docs/DefaultApi.md#v1_indexes_index_delete) | **DELETE** /v1/indexes/{index} | Delete an index
87
87
  *Cheminee::DefaultApi* | [**v1_indexes_index_get**](docs/DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | Get extended information about an index
88
+ *Cheminee::DefaultApi* | [**v1_indexes_index_merge_post**](docs/DefaultApi.md#v1_indexes_index_merge_post) | **POST** /v1/indexes/{index}/merge | Merge segments inside the index
88
89
  *Cheminee::DefaultApi* | [**v1_indexes_index_post**](docs/DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index
89
90
  *Cheminee::DefaultApi* | [**v1_indexes_index_search_basic_get**](docs/DefaultApi.md#v1_indexes_index_search_basic_get) | **GET** /v1/indexes/{index}/search/basic | Perform basic query search against index
90
91
  *Cheminee::DefaultApi* | [**v1_indexes_index_search_identity_get**](docs/DefaultApi.md#v1_indexes_index_search_identity_get) | **GET** /v1/indexes/{index}/search/identity | Perform identity search (i.e. exact match) against index
data/docs/DefaultApi.md CHANGED
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost:4001/api*
11
11
  | [**v1_indexes_index_bulk_index_post**](DefaultApi.md#v1_indexes_index_bulk_index_post) | **POST** /v1/indexes/{index}/bulk_index | Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable |
12
12
  | [**v1_indexes_index_delete**](DefaultApi.md#v1_indexes_index_delete) | **DELETE** /v1/indexes/{index} | Delete an index |
13
13
  | [**v1_indexes_index_get**](DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | Get extended information about an index |
14
+ | [**v1_indexes_index_merge_post**](DefaultApi.md#v1_indexes_index_merge_post) | **POST** /v1/indexes/{index}/merge | Merge segments inside the index |
14
15
  | [**v1_indexes_index_post**](DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index |
15
16
  | [**v1_indexes_index_search_basic_get**](DefaultApi.md#v1_indexes_index_search_basic_get) | **GET** /v1/indexes/{index}/search/basic | Perform basic query search against index |
16
17
  | [**v1_indexes_index_search_identity_get**](DefaultApi.md#v1_indexes_index_search_identity_get) | **GET** /v1/indexes/{index}/search/identity | Perform identity search (i.e. exact match) against index |
@@ -457,9 +458,71 @@ No authorization required
457
458
  - **Accept**: application/json
458
459
 
459
460
 
461
+ ## v1_indexes_index_merge_post
462
+
463
+ > String v1_indexes_index_merge_post(index)
464
+
465
+ Merge segments inside the index
466
+
467
+ ### Examples
468
+
469
+ ```ruby
470
+ require 'time'
471
+ require 'cheminee'
472
+
473
+ api_instance = Cheminee::DefaultApi.new
474
+ index = 'index_example' # String |
475
+
476
+ begin
477
+ # Merge segments inside the index
478
+ result = api_instance.v1_indexes_index_merge_post(index)
479
+ p result
480
+ rescue Cheminee::ApiError => e
481
+ puts "Error when calling DefaultApi->v1_indexes_index_merge_post: #{e}"
482
+ end
483
+ ```
484
+
485
+ #### Using the v1_indexes_index_merge_post_with_http_info variant
486
+
487
+ This returns an Array which contains the response data, status code and headers.
488
+
489
+ > <Array(String, Integer, Hash)> v1_indexes_index_merge_post_with_http_info(index)
490
+
491
+ ```ruby
492
+ begin
493
+ # Merge segments inside the index
494
+ data, status_code, headers = api_instance.v1_indexes_index_merge_post_with_http_info(index)
495
+ p status_code # => 2xx
496
+ p headers # => { ... }
497
+ p data # => String
498
+ rescue Cheminee::ApiError => e
499
+ puts "Error when calling DefaultApi->v1_indexes_index_merge_post_with_http_info: #{e}"
500
+ end
501
+ ```
502
+
503
+ ### Parameters
504
+
505
+ | Name | Type | Description | Notes |
506
+ | ---- | ---- | ----------- | ----- |
507
+ | **index** | **String** | | |
508
+
509
+ ### Return type
510
+
511
+ **String**
512
+
513
+ ### Authorization
514
+
515
+ No authorization required
516
+
517
+ ### HTTP request headers
518
+
519
+ - **Content-Type**: Not defined
520
+ - **Accept**: application/json, application/json; charset=utf-8
521
+
522
+
460
523
  ## v1_indexes_index_post
461
524
 
462
- > <IndexMeta> v1_indexes_index_post(index, schema, opts)
525
+ > <IndexMeta> v1_indexes_index_post(index, schema)
463
526
 
464
527
  Create an index
465
528
 
@@ -472,13 +535,10 @@ require 'cheminee'
472
535
  api_instance = Cheminee::DefaultApi.new
473
536
  index = 'index_example' # String |
474
537
  schema = 'schema_example' # String |
475
- opts = {
476
- sort_by: 'sort_by_example' # String |
477
- }
478
538
 
479
539
  begin
480
540
  # Create an index
481
- result = api_instance.v1_indexes_index_post(index, schema, opts)
541
+ result = api_instance.v1_indexes_index_post(index, schema)
482
542
  p result
483
543
  rescue Cheminee::ApiError => e
484
544
  puts "Error when calling DefaultApi->v1_indexes_index_post: #{e}"
@@ -489,12 +549,12 @@ end
489
549
 
490
550
  This returns an Array which contains the response data, status code and headers.
491
551
 
492
- > <Array(<IndexMeta>, Integer, Hash)> v1_indexes_index_post_with_http_info(index, schema, opts)
552
+ > <Array(<IndexMeta>, Integer, Hash)> v1_indexes_index_post_with_http_info(index, schema)
493
553
 
494
554
  ```ruby
495
555
  begin
496
556
  # Create an index
497
- data, status_code, headers = api_instance.v1_indexes_index_post_with_http_info(index, schema, opts)
557
+ data, status_code, headers = api_instance.v1_indexes_index_post_with_http_info(index, schema)
498
558
  p status_code # => 2xx
499
559
  p headers # => { ... }
500
560
  p data # => <IndexMeta>
@@ -509,7 +569,6 @@ end
509
569
  | ---- | ---- | ----------- | ----- |
510
570
  | **index** | **String** | | |
511
571
  | **schema** | **String** | | |
512
- | **sort_by** | **String** | | [optional] |
513
572
 
514
573
  ### Return type
515
574
 
@@ -479,11 +479,71 @@ module Cheminee
479
479
  return data, status_code, headers
480
480
  end
481
481
 
482
+ # Merge segments inside the index
483
+ # @param index [String]
484
+ # @param [Hash] opts the optional parameters
485
+ # @return [String]
486
+ def v1_indexes_index_merge_post(index, opts = {})
487
+ data, _status_code, _headers = v1_indexes_index_merge_post_with_http_info(index, opts)
488
+ data
489
+ end
490
+
491
+ # Merge segments inside the index
492
+ # @param index [String]
493
+ # @param [Hash] opts the optional parameters
494
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
495
+ def v1_indexes_index_merge_post_with_http_info(index, opts = {})
496
+ if @api_client.config.debugging
497
+ @api_client.config.logger.debug 'Calling API: DefaultApi.v1_indexes_index_merge_post ...'
498
+ end
499
+ # verify the required parameter 'index' is set
500
+ if @api_client.config.client_side_validation && index.nil?
501
+ fail ArgumentError, "Missing the required parameter 'index' when calling DefaultApi.v1_indexes_index_merge_post"
502
+ end
503
+ # resource path
504
+ local_var_path = '/v1/indexes/{index}/merge'.sub('{' + 'index' + '}', CGI.escape(index.to_s))
505
+
506
+ # query parameters
507
+ query_params = opts[:query_params] || {}
508
+
509
+ # header parameters
510
+ header_params = opts[:header_params] || {}
511
+ # HTTP header 'Accept' (if needed)
512
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8']) unless header_params['Accept']
513
+
514
+ # form parameters
515
+ form_params = opts[:form_params] || {}
516
+
517
+ # http body (model)
518
+ post_body = opts[:debug_body]
519
+
520
+ # return_type
521
+ return_type = opts[:debug_return_type] || 'String'
522
+
523
+ # auth_names
524
+ auth_names = opts[:debug_auth_names] || []
525
+
526
+ new_options = opts.merge(
527
+ :operation => :"DefaultApi.v1_indexes_index_merge_post",
528
+ :header_params => header_params,
529
+ :query_params => query_params,
530
+ :form_params => form_params,
531
+ :body => post_body,
532
+ :auth_names => auth_names,
533
+ :return_type => return_type
534
+ )
535
+
536
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
537
+ if @api_client.config.debugging
538
+ @api_client.config.logger.debug "API called: DefaultApi#v1_indexes_index_merge_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
539
+ end
540
+ return data, status_code, headers
541
+ end
542
+
482
543
  # Create an index
483
544
  # @param index [String]
484
545
  # @param schema [String]
485
546
  # @param [Hash] opts the optional parameters
486
- # @option opts [String] :sort_by
487
547
  # @return [IndexMeta]
488
548
  def v1_indexes_index_post(index, schema, opts = {})
489
549
  data, _status_code, _headers = v1_indexes_index_post_with_http_info(index, schema, opts)
@@ -494,7 +554,6 @@ module Cheminee
494
554
  # @param index [String]
495
555
  # @param schema [String]
496
556
  # @param [Hash] opts the optional parameters
497
- # @option opts [String] :sort_by
498
557
  # @return [Array<(IndexMeta, Integer, Hash)>] IndexMeta data, response status code and response headers
499
558
  def v1_indexes_index_post_with_http_info(index, schema, opts = {})
500
559
  if @api_client.config.debugging
@@ -514,7 +573,6 @@ module Cheminee
514
573
  # query parameters
515
574
  query_params = opts[:query_params] || {}
516
575
  query_params[:'schema'] = schema
517
- query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
518
576
 
519
577
  # header parameters
520
578
  header_params = opts[:header_params] || {}
@@ -11,5 +11,5 @@ Generator version: 7.9.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module Cheminee
14
- VERSION = '0.1.35'
14
+ VERSION = '0.1.36'
15
15
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheminee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.35
4
+ version: 0.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xavier Lange
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-26 00:00:00.000000000 Z
11
+ date: 2024-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -154,7 +154,7 @@ files:
154
154
  - lib/cheminee/version.rb
155
155
  - openapi-generator-config.json
156
156
  - openapi.json
157
- - pkg/cheminee-0.1.35.gem
157
+ - pkg/cheminee-0.1.36.gem
158
158
  - spec/api/default_api_spec.rb
159
159
  - spec/api_client_spec.rb
160
160
  - spec/configuration_spec.rb
Binary file