cheminee 0.1.22 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +14 -6
- data/docs/ConvertedMolBlock.md +20 -0
- data/docs/DefaultApi.md +195 -4
- data/docs/DeleteIndexBulkResponseError.md +18 -0
- data/docs/DeleteIndexBulkResponseOk.md +18 -0
- data/docs/DeleteIndexBulkResponseOkStatus.md +20 -0
- data/docs/DeleteIndexError.md +18 -0
- data/lib/cheminee/api/default_api.rb +201 -2
- data/lib/cheminee/models/converted_mol_block.rb +223 -0
- data/lib/cheminee/models/delete_index_bulk_response_error.rb +221 -0
- data/lib/cheminee/models/delete_index_bulk_response_ok.rb +223 -0
- data/lib/cheminee/models/delete_index_bulk_response_ok_status.rb +223 -0
- data/lib/cheminee/models/delete_index_error.rb +221 -0
- data/lib/cheminee/version.rb +1 -1
- data/lib/cheminee.rb +5 -0
- data/pkg/cheminee-0.1.24.gem +0 -0
- data/spec/models/converted_mol_block_spec.rb +42 -0
- data/spec/models/delete_index_bulk_response_error_spec.rb +36 -0
- data/spec/models/delete_index_bulk_response_ok_spec.rb +36 -0
- data/spec/models/delete_index_bulk_response_ok_status_spec.rb +42 -0
- data/spec/models/delete_index_error_spec.rb +36 -0
- metadata +23 -3
- data/pkg/cheminee-0.1.22.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 854485ac1d20c954683f61e92e1bc9952994a24d685afc1d2b6766969e53a5e6
|
4
|
+
data.tar.gz: dc0960877899c6f7028a315c5302216494ab234fadc41d0a1ea839e26110d6ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 852d396deb881427dac19577060e466bcff53f36e2f0b54f58b2708c3cda8f8711a6c1391dfb843fd4f4f823980001d4081b28eec5c9c83fc5d431a1b9bac247
|
7
|
+
data.tar.gz: 404a9be53bedf13c1769f3dc65cea69060f6c8e94c4b5514703e35bf4434a6396cf2d3062af4f5e29842f279d2df4f33ef6b133b356631f223a9150e409f3739
|
data/Gemfile.lock
CHANGED
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.
|
10
|
+
- Package version: 0.1.24
|
11
11
|
- Generator version: 7.8.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.
|
28
|
+
gem install ./cheminee-0.1.24.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./cheminee-0.1.
|
31
|
+
(for development, run `gem install --dev ./cheminee-0.1.24.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.
|
37
|
+
gem 'cheminee', '~> 0.1.24'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -63,7 +63,7 @@ sanitize = 'sanitize_example' # String |
|
|
63
63
|
mol_block = [Cheminee::MolBlock.new({mol_block: 'mol_block_example'})] # Array<MolBlock> |
|
64
64
|
|
65
65
|
begin
|
66
|
-
#
|
66
|
+
#Convert a list of SMILES to molblocks
|
67
67
|
result = api_instance.v1_convert_mol_block_to_smiles_post(sanitize, mol_block)
|
68
68
|
p result
|
69
69
|
rescue Cheminee::ApiError => e
|
@@ -78,9 +78,12 @@ All URIs are relative to *http://localhost:4001/api*
|
|
78
78
|
|
79
79
|
Class | Method | HTTP request | Description
|
80
80
|
------------ | ------------- | ------------- | -------------
|
81
|
-
*Cheminee::DefaultApi* | [**v1_convert_mol_block_to_smiles_post**](docs/DefaultApi.md#v1_convert_mol_block_to_smiles_post) | **POST** /v1/convert/mol_block_to_smiles |
|
81
|
+
*Cheminee::DefaultApi* | [**v1_convert_mol_block_to_smiles_post**](docs/DefaultApi.md#v1_convert_mol_block_to_smiles_post) | **POST** /v1/convert/mol_block_to_smiles | Convert a list of SMILES to molblocks
|
82
|
+
*Cheminee::DefaultApi* | [**v1_convert_smiles_to_mol_block_post**](docs/DefaultApi.md#v1_convert_smiles_to_mol_block_post) | **POST** /v1/convert/smiles_to_mol_block | Convert a list of molblocks to SMILES
|
82
83
|
*Cheminee::DefaultApi* | [**v1_indexes_get**](docs/DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes | List indexes
|
84
|
+
*Cheminee::DefaultApi* | [**v1_indexes_index_bulk_delete_delete**](docs/DefaultApi.md#v1_indexes_index_bulk_delete_delete) | **DELETE** /v1/indexes/{index}/bulk_delete | Delete a list of smiles (after standardization) from an index
|
83
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
|
+
*Cheminee::DefaultApi* | [**v1_indexes_index_delete**](docs/DefaultApi.md#v1_indexes_index_delete) | **DELETE** /v1/indexes/{index} | Delete an index
|
84
87
|
*Cheminee::DefaultApi* | [**v1_indexes_index_get**](docs/DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | Get extended information about an index
|
85
88
|
*Cheminee::DefaultApi* | [**v1_indexes_index_post**](docs/DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index
|
86
89
|
*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
|
@@ -94,8 +97,13 @@ Class | Method | HTTP request | Description
|
|
94
97
|
|
95
98
|
- [Cheminee::BulkRequest](docs/BulkRequest.md)
|
96
99
|
- [Cheminee::BulkRequestDoc](docs/BulkRequestDoc.md)
|
100
|
+
- [Cheminee::ConvertedMolBlock](docs/ConvertedMolBlock.md)
|
97
101
|
- [Cheminee::ConvertedSmiles](docs/ConvertedSmiles.md)
|
98
102
|
- [Cheminee::CreateIndexError](docs/CreateIndexError.md)
|
103
|
+
- [Cheminee::DeleteIndexBulkResponseError](docs/DeleteIndexBulkResponseError.md)
|
104
|
+
- [Cheminee::DeleteIndexBulkResponseOk](docs/DeleteIndexBulkResponseOk.md)
|
105
|
+
- [Cheminee::DeleteIndexBulkResponseOkStatus](docs/DeleteIndexBulkResponseOkStatus.md)
|
106
|
+
- [Cheminee::DeleteIndexError](docs/DeleteIndexError.md)
|
99
107
|
- [Cheminee::GetIndexesResponseError](docs/GetIndexesResponseError.md)
|
100
108
|
- [Cheminee::IndexMeta](docs/IndexMeta.md)
|
101
109
|
- [Cheminee::IndexSchema](docs/IndexSchema.md)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Cheminee::ConvertedMolBlock
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **mol_block** | **String** | | [optional] |
|
8
|
+
| **error** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'cheminee'
|
14
|
+
|
15
|
+
instance = Cheminee::ConvertedMolBlock.new(
|
16
|
+
mol_block: null,
|
17
|
+
error: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/DefaultApi.md
CHANGED
@@ -4,9 +4,12 @@ All URIs are relative to *http://localhost:4001/api*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**v1_convert_mol_block_to_smiles_post**](DefaultApi.md#v1_convert_mol_block_to_smiles_post) | **POST** /v1/convert/mol_block_to_smiles |
|
7
|
+
| [**v1_convert_mol_block_to_smiles_post**](DefaultApi.md#v1_convert_mol_block_to_smiles_post) | **POST** /v1/convert/mol_block_to_smiles | Convert a list of SMILES to molblocks |
|
8
|
+
| [**v1_convert_smiles_to_mol_block_post**](DefaultApi.md#v1_convert_smiles_to_mol_block_post) | **POST** /v1/convert/smiles_to_mol_block | Convert a list of molblocks to SMILES |
|
8
9
|
| [**v1_indexes_get**](DefaultApi.md#v1_indexes_get) | **GET** /v1/indexes | List indexes |
|
10
|
+
| [**v1_indexes_index_bulk_delete_delete**](DefaultApi.md#v1_indexes_index_bulk_delete_delete) | **DELETE** /v1/indexes/{index}/bulk_delete | Delete a list of smiles (after standardization) from an index |
|
9
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
|
+
| [**v1_indexes_index_delete**](DefaultApi.md#v1_indexes_index_delete) | **DELETE** /v1/indexes/{index} | Delete an index |
|
10
13
|
| [**v1_indexes_index_get**](DefaultApi.md#v1_indexes_index_get) | **GET** /v1/indexes/{index} | Get extended information about an index |
|
11
14
|
| [**v1_indexes_index_post**](DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index |
|
12
15
|
| [**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 |
|
@@ -20,7 +23,7 @@ All URIs are relative to *http://localhost:4001/api*
|
|
20
23
|
|
21
24
|
> <Array<ConvertedSmiles>> v1_convert_mol_block_to_smiles_post(sanitize, mol_block)
|
22
25
|
|
23
|
-
|
26
|
+
Convert a list of SMILES to molblocks
|
24
27
|
|
25
28
|
### Examples
|
26
29
|
|
@@ -33,7 +36,7 @@ sanitize = 'sanitize_example' # String |
|
|
33
36
|
mol_block = [Cheminee::MolBlock.new({mol_block: 'mol_block_example'})] # Array<MolBlock> |
|
34
37
|
|
35
38
|
begin
|
36
|
-
#
|
39
|
+
# Convert a list of SMILES to molblocks
|
37
40
|
result = api_instance.v1_convert_mol_block_to_smiles_post(sanitize, mol_block)
|
38
41
|
p result
|
39
42
|
rescue Cheminee::ApiError => e
|
@@ -49,7 +52,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
49
52
|
|
50
53
|
```ruby
|
51
54
|
begin
|
52
|
-
#
|
55
|
+
# Convert a list of SMILES to molblocks
|
53
56
|
data, status_code, headers = api_instance.v1_convert_mol_block_to_smiles_post_with_http_info(sanitize, mol_block)
|
54
57
|
p status_code # => 2xx
|
55
58
|
p headers # => { ... }
|
@@ -80,6 +83,68 @@ No authorization required
|
|
80
83
|
- **Accept**: application/json; charset=utf-8
|
81
84
|
|
82
85
|
|
86
|
+
## v1_convert_smiles_to_mol_block_post
|
87
|
+
|
88
|
+
> <Array<ConvertedMolBlock>> v1_convert_smiles_to_mol_block_post(smiles)
|
89
|
+
|
90
|
+
Convert a list of molblocks to SMILES
|
91
|
+
|
92
|
+
### Examples
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
require 'time'
|
96
|
+
require 'cheminee'
|
97
|
+
|
98
|
+
api_instance = Cheminee::DefaultApi.new
|
99
|
+
smiles = [Cheminee::Smiles.new({smiles: 'smiles_example'})] # Array<Smiles> |
|
100
|
+
|
101
|
+
begin
|
102
|
+
# Convert a list of molblocks to SMILES
|
103
|
+
result = api_instance.v1_convert_smiles_to_mol_block_post(smiles)
|
104
|
+
p result
|
105
|
+
rescue Cheminee::ApiError => e
|
106
|
+
puts "Error when calling DefaultApi->v1_convert_smiles_to_mol_block_post: #{e}"
|
107
|
+
end
|
108
|
+
```
|
109
|
+
|
110
|
+
#### Using the v1_convert_smiles_to_mol_block_post_with_http_info variant
|
111
|
+
|
112
|
+
This returns an Array which contains the response data, status code and headers.
|
113
|
+
|
114
|
+
> <Array(<Array<ConvertedMolBlock>>, Integer, Hash)> v1_convert_smiles_to_mol_block_post_with_http_info(smiles)
|
115
|
+
|
116
|
+
```ruby
|
117
|
+
begin
|
118
|
+
# Convert a list of molblocks to SMILES
|
119
|
+
data, status_code, headers = api_instance.v1_convert_smiles_to_mol_block_post_with_http_info(smiles)
|
120
|
+
p status_code # => 2xx
|
121
|
+
p headers # => { ... }
|
122
|
+
p data # => <Array<ConvertedMolBlock>>
|
123
|
+
rescue Cheminee::ApiError => e
|
124
|
+
puts "Error when calling DefaultApi->v1_convert_smiles_to_mol_block_post_with_http_info: #{e}"
|
125
|
+
end
|
126
|
+
```
|
127
|
+
|
128
|
+
### Parameters
|
129
|
+
|
130
|
+
| Name | Type | Description | Notes |
|
131
|
+
| ---- | ---- | ----------- | ----- |
|
132
|
+
| **smiles** | [**Array<Smiles>**](Smiles.md) | | |
|
133
|
+
|
134
|
+
### Return type
|
135
|
+
|
136
|
+
[**Array<ConvertedMolBlock>**](ConvertedMolBlock.md)
|
137
|
+
|
138
|
+
### Authorization
|
139
|
+
|
140
|
+
No authorization required
|
141
|
+
|
142
|
+
### HTTP request headers
|
143
|
+
|
144
|
+
- **Content-Type**: application/json; charset=utf-8
|
145
|
+
- **Accept**: application/json; charset=utf-8
|
146
|
+
|
147
|
+
|
83
148
|
## v1_indexes_get
|
84
149
|
|
85
150
|
> <Array<IndexMeta>> v1_indexes_get
|
@@ -139,6 +204,70 @@ No authorization required
|
|
139
204
|
- **Accept**: application/json; charset=utf-8
|
140
205
|
|
141
206
|
|
207
|
+
## v1_indexes_index_bulk_delete_delete
|
208
|
+
|
209
|
+
> <DeleteIndexBulkResponseOk> v1_indexes_index_bulk_delete_delete(index, bulk_request)
|
210
|
+
|
211
|
+
Delete a list of smiles (after standardization) from an index
|
212
|
+
|
213
|
+
### Examples
|
214
|
+
|
215
|
+
```ruby
|
216
|
+
require 'time'
|
217
|
+
require 'cheminee'
|
218
|
+
|
219
|
+
api_instance = Cheminee::DefaultApi.new
|
220
|
+
index = 'index_example' # String |
|
221
|
+
bulk_request = Cheminee::BulkRequest.new({docs: [Cheminee::BulkRequestDoc.new({smiles: 'smiles_example'})]}) # BulkRequest |
|
222
|
+
|
223
|
+
begin
|
224
|
+
# Delete a list of smiles (after standardization) from an index
|
225
|
+
result = api_instance.v1_indexes_index_bulk_delete_delete(index, bulk_request)
|
226
|
+
p result
|
227
|
+
rescue Cheminee::ApiError => e
|
228
|
+
puts "Error when calling DefaultApi->v1_indexes_index_bulk_delete_delete: #{e}"
|
229
|
+
end
|
230
|
+
```
|
231
|
+
|
232
|
+
#### Using the v1_indexes_index_bulk_delete_delete_with_http_info variant
|
233
|
+
|
234
|
+
This returns an Array which contains the response data, status code and headers.
|
235
|
+
|
236
|
+
> <Array(<DeleteIndexBulkResponseOk>, Integer, Hash)> v1_indexes_index_bulk_delete_delete_with_http_info(index, bulk_request)
|
237
|
+
|
238
|
+
```ruby
|
239
|
+
begin
|
240
|
+
# Delete a list of smiles (after standardization) from an index
|
241
|
+
data, status_code, headers = api_instance.v1_indexes_index_bulk_delete_delete_with_http_info(index, bulk_request)
|
242
|
+
p status_code # => 2xx
|
243
|
+
p headers # => { ... }
|
244
|
+
p data # => <DeleteIndexBulkResponseOk>
|
245
|
+
rescue Cheminee::ApiError => e
|
246
|
+
puts "Error when calling DefaultApi->v1_indexes_index_bulk_delete_delete_with_http_info: #{e}"
|
247
|
+
end
|
248
|
+
```
|
249
|
+
|
250
|
+
### Parameters
|
251
|
+
|
252
|
+
| Name | Type | Description | Notes |
|
253
|
+
| ---- | ---- | ----------- | ----- |
|
254
|
+
| **index** | **String** | | |
|
255
|
+
| **bulk_request** | [**BulkRequest**](BulkRequest.md) | | |
|
256
|
+
|
257
|
+
### Return type
|
258
|
+
|
259
|
+
[**DeleteIndexBulkResponseOk**](DeleteIndexBulkResponseOk.md)
|
260
|
+
|
261
|
+
### Authorization
|
262
|
+
|
263
|
+
No authorization required
|
264
|
+
|
265
|
+
### HTTP request headers
|
266
|
+
|
267
|
+
- **Content-Type**: application/json; charset=utf-8
|
268
|
+
- **Accept**: application/json; charset=utf-8
|
269
|
+
|
270
|
+
|
142
271
|
## v1_indexes_index_bulk_index_post
|
143
272
|
|
144
273
|
> <PostIndexBulkResponseOk> v1_indexes_index_bulk_index_post(index, bulk_request)
|
@@ -203,6 +332,68 @@ No authorization required
|
|
203
332
|
- **Accept**: application/json; charset=utf-8
|
204
333
|
|
205
334
|
|
335
|
+
## v1_indexes_index_delete
|
336
|
+
|
337
|
+
> <IndexMeta> v1_indexes_index_delete(index)
|
338
|
+
|
339
|
+
Delete an index
|
340
|
+
|
341
|
+
### Examples
|
342
|
+
|
343
|
+
```ruby
|
344
|
+
require 'time'
|
345
|
+
require 'cheminee'
|
346
|
+
|
347
|
+
api_instance = Cheminee::DefaultApi.new
|
348
|
+
index = 'index_example' # String |
|
349
|
+
|
350
|
+
begin
|
351
|
+
# Delete an index
|
352
|
+
result = api_instance.v1_indexes_index_delete(index)
|
353
|
+
p result
|
354
|
+
rescue Cheminee::ApiError => e
|
355
|
+
puts "Error when calling DefaultApi->v1_indexes_index_delete: #{e}"
|
356
|
+
end
|
357
|
+
```
|
358
|
+
|
359
|
+
#### Using the v1_indexes_index_delete_with_http_info variant
|
360
|
+
|
361
|
+
This returns an Array which contains the response data, status code and headers.
|
362
|
+
|
363
|
+
> <Array(<IndexMeta>, Integer, Hash)> v1_indexes_index_delete_with_http_info(index)
|
364
|
+
|
365
|
+
```ruby
|
366
|
+
begin
|
367
|
+
# Delete an index
|
368
|
+
data, status_code, headers = api_instance.v1_indexes_index_delete_with_http_info(index)
|
369
|
+
p status_code # => 2xx
|
370
|
+
p headers # => { ... }
|
371
|
+
p data # => <IndexMeta>
|
372
|
+
rescue Cheminee::ApiError => e
|
373
|
+
puts "Error when calling DefaultApi->v1_indexes_index_delete_with_http_info: #{e}"
|
374
|
+
end
|
375
|
+
```
|
376
|
+
|
377
|
+
### Parameters
|
378
|
+
|
379
|
+
| Name | Type | Description | Notes |
|
380
|
+
| ---- | ---- | ----------- | ----- |
|
381
|
+
| **index** | **String** | | |
|
382
|
+
|
383
|
+
### Return type
|
384
|
+
|
385
|
+
[**IndexMeta**](IndexMeta.md)
|
386
|
+
|
387
|
+
### Authorization
|
388
|
+
|
389
|
+
No authorization required
|
390
|
+
|
391
|
+
### HTTP request headers
|
392
|
+
|
393
|
+
- **Content-Type**: Not defined
|
394
|
+
- **Accept**: application/json; charset=utf-8
|
395
|
+
|
396
|
+
|
206
397
|
## v1_indexes_index_get
|
207
398
|
|
208
399
|
> <IndexSchema> v1_indexes_index_get(index)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Cheminee::DeleteIndexBulkResponseError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **error** | **String** | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'cheminee'
|
13
|
+
|
14
|
+
instance = Cheminee::DeleteIndexBulkResponseError.new(
|
15
|
+
error: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Cheminee::DeleteIndexBulkResponseOk
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **statuses** | [**Array<DeleteIndexBulkResponseOkStatus>**](DeleteIndexBulkResponseOkStatus.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'cheminee'
|
13
|
+
|
14
|
+
instance = Cheminee::DeleteIndexBulkResponseOk.new(
|
15
|
+
statuses: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Cheminee::DeleteIndexBulkResponseOkStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **opcode** | **Integer** | | [optional] |
|
8
|
+
| **error** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'cheminee'
|
14
|
+
|
15
|
+
instance = Cheminee::DeleteIndexBulkResponseOkStatus.new(
|
16
|
+
opcode: null,
|
17
|
+
error: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Cheminee::DeleteIndexError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **error** | **String** | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'cheminee'
|
13
|
+
|
14
|
+
instance = Cheminee::DeleteIndexError.new(
|
15
|
+
error: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -19,7 +19,7 @@ module Cheminee
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
#
|
22
|
+
# Convert a list of SMILES to molblocks
|
23
23
|
# @param sanitize [String]
|
24
24
|
# @param mol_block [Array<MolBlock>]
|
25
25
|
# @param [Hash] opts the optional parameters
|
@@ -29,7 +29,7 @@ module Cheminee
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
#
|
32
|
+
# Convert a list of SMILES to molblocks
|
33
33
|
# @param sanitize [String]
|
34
34
|
# @param mol_block [Array<MolBlock>]
|
35
35
|
# @param [Hash] opts the optional parameters
|
@@ -92,6 +92,72 @@ module Cheminee
|
|
92
92
|
return data, status_code, headers
|
93
93
|
end
|
94
94
|
|
95
|
+
# Convert a list of molblocks to SMILES
|
96
|
+
# @param smiles [Array<Smiles>]
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [Array<ConvertedMolBlock>]
|
99
|
+
def v1_convert_smiles_to_mol_block_post(smiles, opts = {})
|
100
|
+
data, _status_code, _headers = v1_convert_smiles_to_mol_block_post_with_http_info(smiles, opts)
|
101
|
+
data
|
102
|
+
end
|
103
|
+
|
104
|
+
# Convert a list of molblocks to SMILES
|
105
|
+
# @param smiles [Array<Smiles>]
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @return [Array<(Array<ConvertedMolBlock>, Integer, Hash)>] Array<ConvertedMolBlock> data, response status code and response headers
|
108
|
+
def v1_convert_smiles_to_mol_block_post_with_http_info(smiles, opts = {})
|
109
|
+
if @api_client.config.debugging
|
110
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_convert_smiles_to_mol_block_post ...'
|
111
|
+
end
|
112
|
+
# verify the required parameter 'smiles' is set
|
113
|
+
if @api_client.config.client_side_validation && smiles.nil?
|
114
|
+
fail ArgumentError, "Missing the required parameter 'smiles' when calling DefaultApi.v1_convert_smiles_to_mol_block_post"
|
115
|
+
end
|
116
|
+
# resource path
|
117
|
+
local_var_path = '/v1/convert/smiles_to_mol_block'
|
118
|
+
|
119
|
+
# query parameters
|
120
|
+
query_params = opts[:query_params] || {}
|
121
|
+
|
122
|
+
# header parameters
|
123
|
+
header_params = opts[:header_params] || {}
|
124
|
+
# HTTP header 'Accept' (if needed)
|
125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8']) unless header_params['Accept']
|
126
|
+
# HTTP header 'Content-Type'
|
127
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
128
|
+
if !content_type.nil?
|
129
|
+
header_params['Content-Type'] = content_type
|
130
|
+
end
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = opts[:form_params] || {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(smiles)
|
137
|
+
|
138
|
+
# return_type
|
139
|
+
return_type = opts[:debug_return_type] || 'Array<ConvertedMolBlock>'
|
140
|
+
|
141
|
+
# auth_names
|
142
|
+
auth_names = opts[:debug_auth_names] || []
|
143
|
+
|
144
|
+
new_options = opts.merge(
|
145
|
+
:operation => :"DefaultApi.v1_convert_smiles_to_mol_block_post",
|
146
|
+
:header_params => header_params,
|
147
|
+
:query_params => query_params,
|
148
|
+
:form_params => form_params,
|
149
|
+
:body => post_body,
|
150
|
+
:auth_names => auth_names,
|
151
|
+
:return_type => return_type
|
152
|
+
)
|
153
|
+
|
154
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
155
|
+
if @api_client.config.debugging
|
156
|
+
@api_client.config.logger.debug "API called: DefaultApi#v1_convert_smiles_to_mol_block_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
157
|
+
end
|
158
|
+
return data, status_code, headers
|
159
|
+
end
|
160
|
+
|
95
161
|
# List indexes
|
96
162
|
# @param [Hash] opts the optional parameters
|
97
163
|
# @return [Array<IndexMeta>]
|
@@ -147,6 +213,78 @@ module Cheminee
|
|
147
213
|
return data, status_code, headers
|
148
214
|
end
|
149
215
|
|
216
|
+
# Delete a list of smiles (after standardization) from an index
|
217
|
+
# @param index [String]
|
218
|
+
# @param bulk_request [BulkRequest]
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @return [DeleteIndexBulkResponseOk]
|
221
|
+
def v1_indexes_index_bulk_delete_delete(index, bulk_request, opts = {})
|
222
|
+
data, _status_code, _headers = v1_indexes_index_bulk_delete_delete_with_http_info(index, bulk_request, opts)
|
223
|
+
data
|
224
|
+
end
|
225
|
+
|
226
|
+
# Delete a list of smiles (after standardization) from an index
|
227
|
+
# @param index [String]
|
228
|
+
# @param bulk_request [BulkRequest]
|
229
|
+
# @param [Hash] opts the optional parameters
|
230
|
+
# @return [Array<(DeleteIndexBulkResponseOk, Integer, Hash)>] DeleteIndexBulkResponseOk data, response status code and response headers
|
231
|
+
def v1_indexes_index_bulk_delete_delete_with_http_info(index, bulk_request, opts = {})
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_indexes_index_bulk_delete_delete ...'
|
234
|
+
end
|
235
|
+
# verify the required parameter 'index' is set
|
236
|
+
if @api_client.config.client_side_validation && index.nil?
|
237
|
+
fail ArgumentError, "Missing the required parameter 'index' when calling DefaultApi.v1_indexes_index_bulk_delete_delete"
|
238
|
+
end
|
239
|
+
# verify the required parameter 'bulk_request' is set
|
240
|
+
if @api_client.config.client_side_validation && bulk_request.nil?
|
241
|
+
fail ArgumentError, "Missing the required parameter 'bulk_request' when calling DefaultApi.v1_indexes_index_bulk_delete_delete"
|
242
|
+
end
|
243
|
+
# resource path
|
244
|
+
local_var_path = '/v1/indexes/{index}/bulk_delete'.sub('{' + 'index' + '}', CGI.escape(index.to_s))
|
245
|
+
|
246
|
+
# query parameters
|
247
|
+
query_params = opts[:query_params] || {}
|
248
|
+
|
249
|
+
# header parameters
|
250
|
+
header_params = opts[:header_params] || {}
|
251
|
+
# HTTP header 'Accept' (if needed)
|
252
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8']) unless header_params['Accept']
|
253
|
+
# HTTP header 'Content-Type'
|
254
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
255
|
+
if !content_type.nil?
|
256
|
+
header_params['Content-Type'] = content_type
|
257
|
+
end
|
258
|
+
|
259
|
+
# form parameters
|
260
|
+
form_params = opts[:form_params] || {}
|
261
|
+
|
262
|
+
# http body (model)
|
263
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bulk_request)
|
264
|
+
|
265
|
+
# return_type
|
266
|
+
return_type = opts[:debug_return_type] || 'DeleteIndexBulkResponseOk'
|
267
|
+
|
268
|
+
# auth_names
|
269
|
+
auth_names = opts[:debug_auth_names] || []
|
270
|
+
|
271
|
+
new_options = opts.merge(
|
272
|
+
:operation => :"DefaultApi.v1_indexes_index_bulk_delete_delete",
|
273
|
+
:header_params => header_params,
|
274
|
+
:query_params => query_params,
|
275
|
+
:form_params => form_params,
|
276
|
+
:body => post_body,
|
277
|
+
:auth_names => auth_names,
|
278
|
+
:return_type => return_type
|
279
|
+
)
|
280
|
+
|
281
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
282
|
+
if @api_client.config.debugging
|
283
|
+
@api_client.config.logger.debug "API called: DefaultApi#v1_indexes_index_bulk_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
284
|
+
end
|
285
|
+
return data, status_code, headers
|
286
|
+
end
|
287
|
+
|
150
288
|
# Index a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
|
151
289
|
# @param index [String]
|
152
290
|
# @param bulk_request [BulkRequest]
|
@@ -219,6 +357,67 @@ module Cheminee
|
|
219
357
|
return data, status_code, headers
|
220
358
|
end
|
221
359
|
|
360
|
+
# Delete an index
|
361
|
+
# @param index [String]
|
362
|
+
# @param [Hash] opts the optional parameters
|
363
|
+
# @return [IndexMeta]
|
364
|
+
def v1_indexes_index_delete(index, opts = {})
|
365
|
+
data, _status_code, _headers = v1_indexes_index_delete_with_http_info(index, opts)
|
366
|
+
data
|
367
|
+
end
|
368
|
+
|
369
|
+
# Delete an index
|
370
|
+
# @param index [String]
|
371
|
+
# @param [Hash] opts the optional parameters
|
372
|
+
# @return [Array<(IndexMeta, Integer, Hash)>] IndexMeta data, response status code and response headers
|
373
|
+
def v1_indexes_index_delete_with_http_info(index, opts = {})
|
374
|
+
if @api_client.config.debugging
|
375
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_indexes_index_delete ...'
|
376
|
+
end
|
377
|
+
# verify the required parameter 'index' is set
|
378
|
+
if @api_client.config.client_side_validation && index.nil?
|
379
|
+
fail ArgumentError, "Missing the required parameter 'index' when calling DefaultApi.v1_indexes_index_delete"
|
380
|
+
end
|
381
|
+
# resource path
|
382
|
+
local_var_path = '/v1/indexes/{index}'.sub('{' + 'index' + '}', CGI.escape(index.to_s))
|
383
|
+
|
384
|
+
# query parameters
|
385
|
+
query_params = opts[:query_params] || {}
|
386
|
+
|
387
|
+
# header parameters
|
388
|
+
header_params = opts[:header_params] || {}
|
389
|
+
# HTTP header 'Accept' (if needed)
|
390
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8']) unless header_params['Accept']
|
391
|
+
|
392
|
+
# form parameters
|
393
|
+
form_params = opts[:form_params] || {}
|
394
|
+
|
395
|
+
# http body (model)
|
396
|
+
post_body = opts[:debug_body]
|
397
|
+
|
398
|
+
# return_type
|
399
|
+
return_type = opts[:debug_return_type] || 'IndexMeta'
|
400
|
+
|
401
|
+
# auth_names
|
402
|
+
auth_names = opts[:debug_auth_names] || []
|
403
|
+
|
404
|
+
new_options = opts.merge(
|
405
|
+
:operation => :"DefaultApi.v1_indexes_index_delete",
|
406
|
+
:header_params => header_params,
|
407
|
+
:query_params => query_params,
|
408
|
+
:form_params => form_params,
|
409
|
+
:body => post_body,
|
410
|
+
:auth_names => auth_names,
|
411
|
+
:return_type => return_type
|
412
|
+
)
|
413
|
+
|
414
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
415
|
+
if @api_client.config.debugging
|
416
|
+
@api_client.config.logger.debug "API called: DefaultApi#v1_indexes_index_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
417
|
+
end
|
418
|
+
return data, status_code, headers
|
419
|
+
end
|
420
|
+
|
222
421
|
# Get extended information about an index
|
223
422
|
# @param index [String]
|
224
423
|
# @param [Hash] opts the optional parameters
|