ragie_ruby_sdk 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/docs/BetaApi.md +140 -0
- data/docs/PartitionsApi.md +140 -0
- data/lib/ragie_ruby_sdk/api/beta_api.rb +126 -0
- data/lib/ragie_ruby_sdk/api/partitions_api.rb +126 -0
- data/lib/ragie_ruby_sdk/models/metadata_value.rb +1 -0
- data/lib/ragie_ruby_sdk/version.rb +1 -1
- data/spec/api/beta_api_spec.rb +24 -0
- data/spec/api/partitions_api_spec.rb +24 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4670e0e080e4f52c9da25a8b4944e47b4374df52c13b3ae0ec2a30a177d082ec
|
|
4
|
+
data.tar.gz: 05bf09d2c59c93e357ec1a294055b6ce28a5f6ace9b91060304f4ba0412e181f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9e5c8c5da161485ab75e995a0594616896141d662ff75cfd526b00dc6760c0c76358329492417b318d558f3bc64891a4a8b0ed040461bb90910d6ea22672599
|
|
7
|
+
data.tar.gz: 8b277c80c3e8c51c7d5c6401c51ee1bd0461bc39c7e31a54bbb534fc73c70c1619dab4af46ac5932abc9118893c018867e3829282b8e8c02ab39026ef2dea1c3
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 1.0.0
|
|
10
|
-
- Package version: 1.0.
|
|
10
|
+
- Package version: 1.0.15
|
|
11
11
|
- Generator version: 7.17.0-SNAPSHOT
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build ragie_ruby_sdk.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./ragie_ruby_sdk-1.0.
|
|
27
|
+
gem install ./ragie_ruby_sdk-1.0.15.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./ragie_ruby_sdk-1.0.
|
|
30
|
+
(for development, run `gem install --dev ./ragie_ruby_sdk-1.0.15.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'ragie_ruby_sdk', '~> 1.0.
|
|
36
|
+
gem 'ragie_ruby_sdk', '~> 1.0.15'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -94,6 +94,8 @@ Class | Method | HTTP request | Description
|
|
|
94
94
|
*RagieRubySdk::BetaApi* | [**create_authenticator_connection**](docs/BetaApi.md#create_authenticator_connection) | **POST** /authenticators/{authenticator_id}/connection | Create Authenticator Connection
|
|
95
95
|
*RagieRubySdk::BetaApi* | [**create_connection**](docs/BetaApi.md#create_connection) | **POST** /connection | Create Connection
|
|
96
96
|
*RagieRubySdk::BetaApi* | [**delete_authenticator_connection**](docs/BetaApi.md#delete_authenticator_connection) | **DELETE** /authenticators/{authenticator_id} | Delete Authenticator
|
|
97
|
+
*RagieRubySdk::BetaApi* | [**disable_mcp_partitions_partition_id_mcp_delete**](docs/BetaApi.md#disable_mcp_partitions_partition_id_mcp_delete) | **DELETE** /partitions/{partition_id}/mcp | Disable Mcp
|
|
98
|
+
*RagieRubySdk::BetaApi* | [**enable_mcp_partitions_partition_id_mcp_post**](docs/BetaApi.md#enable_mcp_partitions_partition_id_mcp_post) | **POST** /partitions/{partition_id}/mcp | Enable Mcp
|
|
97
99
|
*RagieRubySdk::BetaApi* | [**list_authenticators**](docs/BetaApi.md#list_authenticators) | **GET** /authenticators | List Authenticators
|
|
98
100
|
*RagieRubySdk::ConnectionsApi* | [**create_connection**](docs/ConnectionsApi.md#create_connection) | **POST** /connection | Create Connection
|
|
99
101
|
*RagieRubySdk::ConnectionsApi* | [**create_oauth_redirect_url_connections_oauth_post**](docs/ConnectionsApi.md#create_oauth_redirect_url_connections_oauth_post) | **POST** /connections/oauth | Create Oauth Redirect Url
|
|
@@ -135,6 +137,8 @@ Class | Method | HTTP request | Description
|
|
|
135
137
|
*RagieRubySdk::EntitiesApi* | [**update_instruction**](docs/EntitiesApi.md#update_instruction) | **PUT** /instructions/{instruction_id} | Update Instruction
|
|
136
138
|
*RagieRubySdk::PartitionsApi* | [**create_partition_partitions_post**](docs/PartitionsApi.md#create_partition_partitions_post) | **POST** /partitions | Create Partition
|
|
137
139
|
*RagieRubySdk::PartitionsApi* | [**delete_partition_partitions_partition_id_delete**](docs/PartitionsApi.md#delete_partition_partitions_partition_id_delete) | **DELETE** /partitions/{partition_id} | Delete Partition
|
|
140
|
+
*RagieRubySdk::PartitionsApi* | [**disable_mcp_partitions_partition_id_mcp_delete**](docs/PartitionsApi.md#disable_mcp_partitions_partition_id_mcp_delete) | **DELETE** /partitions/{partition_id}/mcp | Disable Mcp
|
|
141
|
+
*RagieRubySdk::PartitionsApi* | [**enable_mcp_partitions_partition_id_mcp_post**](docs/PartitionsApi.md#enable_mcp_partitions_partition_id_mcp_post) | **POST** /partitions/{partition_id}/mcp | Enable Mcp
|
|
138
142
|
*RagieRubySdk::PartitionsApi* | [**get_partition_partitions_partition_id_get**](docs/PartitionsApi.md#get_partition_partitions_partition_id_get) | **GET** /partitions/{partition_id} | Get Partition
|
|
139
143
|
*RagieRubySdk::PartitionsApi* | [**list_partitions_partitions_get**](docs/PartitionsApi.md#list_partitions_partitions_get) | **GET** /partitions | List Partitions
|
|
140
144
|
*RagieRubySdk::PartitionsApi* | [**set_partition_limits_partitions_partition_id_limits_put**](docs/PartitionsApi.md#set_partition_limits_partitions_partition_id_limits_put) | **PUT** /partitions/{partition_id}/limits | Set Partition Limits
|
data/docs/BetaApi.md
CHANGED
|
@@ -8,6 +8,8 @@ All URIs are relative to *https://api.ragie.ai*
|
|
|
8
8
|
| [**create_authenticator_connection**](BetaApi.md#create_authenticator_connection) | **POST** /authenticators/{authenticator_id}/connection | Create Authenticator Connection |
|
|
9
9
|
| [**create_connection**](BetaApi.md#create_connection) | **POST** /connection | Create Connection |
|
|
10
10
|
| [**delete_authenticator_connection**](BetaApi.md#delete_authenticator_connection) | **DELETE** /authenticators/{authenticator_id} | Delete Authenticator |
|
|
11
|
+
| [**disable_mcp_partitions_partition_id_mcp_delete**](BetaApi.md#disable_mcp_partitions_partition_id_mcp_delete) | **DELETE** /partitions/{partition_id}/mcp | Disable Mcp |
|
|
12
|
+
| [**enable_mcp_partitions_partition_id_mcp_post**](BetaApi.md#enable_mcp_partitions_partition_id_mcp_post) | **POST** /partitions/{partition_id}/mcp | Enable Mcp |
|
|
11
13
|
| [**list_authenticators**](BetaApi.md#list_authenticators) | **GET** /authenticators | List Authenticators |
|
|
12
14
|
|
|
13
15
|
|
|
@@ -289,6 +291,144 @@ end
|
|
|
289
291
|
- **Accept**: application/json
|
|
290
292
|
|
|
291
293
|
|
|
294
|
+
## disable_mcp_partitions_partition_id_mcp_delete
|
|
295
|
+
|
|
296
|
+
> Object disable_mcp_partitions_partition_id_mcp_delete(partition_id)
|
|
297
|
+
|
|
298
|
+
Disable Mcp
|
|
299
|
+
|
|
300
|
+
Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
301
|
+
|
|
302
|
+
### Examples
|
|
303
|
+
|
|
304
|
+
```ruby
|
|
305
|
+
require 'time'
|
|
306
|
+
require 'ragie_ruby_sdk'
|
|
307
|
+
# setup authorization
|
|
308
|
+
RagieRubySdk.configure do |config|
|
|
309
|
+
# Configure Bearer authorization: auth
|
|
310
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
api_instance = RagieRubySdk::BetaApi.new
|
|
314
|
+
partition_id = 'partition_id_example' # String |
|
|
315
|
+
|
|
316
|
+
begin
|
|
317
|
+
# Disable Mcp
|
|
318
|
+
result = api_instance.disable_mcp_partitions_partition_id_mcp_delete(partition_id)
|
|
319
|
+
p result
|
|
320
|
+
rescue RagieRubySdk::ApiError => e
|
|
321
|
+
puts "Error when calling BetaApi->disable_mcp_partitions_partition_id_mcp_delete: #{e}"
|
|
322
|
+
end
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### Using the disable_mcp_partitions_partition_id_mcp_delete_with_http_info variant
|
|
326
|
+
|
|
327
|
+
This returns an Array which contains the response data, status code and headers.
|
|
328
|
+
|
|
329
|
+
> <Array(Object, Integer, Hash)> disable_mcp_partitions_partition_id_mcp_delete_with_http_info(partition_id)
|
|
330
|
+
|
|
331
|
+
```ruby
|
|
332
|
+
begin
|
|
333
|
+
# Disable Mcp
|
|
334
|
+
data, status_code, headers = api_instance.disable_mcp_partitions_partition_id_mcp_delete_with_http_info(partition_id)
|
|
335
|
+
p status_code # => 2xx
|
|
336
|
+
p headers # => { ... }
|
|
337
|
+
p data # => Object
|
|
338
|
+
rescue RagieRubySdk::ApiError => e
|
|
339
|
+
puts "Error when calling BetaApi->disable_mcp_partitions_partition_id_mcp_delete_with_http_info: #{e}"
|
|
340
|
+
end
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
### Parameters
|
|
344
|
+
|
|
345
|
+
| Name | Type | Description | Notes |
|
|
346
|
+
| ---- | ---- | ----------- | ----- |
|
|
347
|
+
| **partition_id** | **String** | | |
|
|
348
|
+
|
|
349
|
+
### Return type
|
|
350
|
+
|
|
351
|
+
**Object**
|
|
352
|
+
|
|
353
|
+
### Authorization
|
|
354
|
+
|
|
355
|
+
[auth](../README.md#auth)
|
|
356
|
+
|
|
357
|
+
### HTTP request headers
|
|
358
|
+
|
|
359
|
+
- **Content-Type**: Not defined
|
|
360
|
+
- **Accept**: application/json
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
## enable_mcp_partitions_partition_id_mcp_post
|
|
364
|
+
|
|
365
|
+
> Object enable_mcp_partitions_partition_id_mcp_post(partition_id)
|
|
366
|
+
|
|
367
|
+
Enable Mcp
|
|
368
|
+
|
|
369
|
+
Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
370
|
+
|
|
371
|
+
### Examples
|
|
372
|
+
|
|
373
|
+
```ruby
|
|
374
|
+
require 'time'
|
|
375
|
+
require 'ragie_ruby_sdk'
|
|
376
|
+
# setup authorization
|
|
377
|
+
RagieRubySdk.configure do |config|
|
|
378
|
+
# Configure Bearer authorization: auth
|
|
379
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
api_instance = RagieRubySdk::BetaApi.new
|
|
383
|
+
partition_id = 'partition_id_example' # String |
|
|
384
|
+
|
|
385
|
+
begin
|
|
386
|
+
# Enable Mcp
|
|
387
|
+
result = api_instance.enable_mcp_partitions_partition_id_mcp_post(partition_id)
|
|
388
|
+
p result
|
|
389
|
+
rescue RagieRubySdk::ApiError => e
|
|
390
|
+
puts "Error when calling BetaApi->enable_mcp_partitions_partition_id_mcp_post: #{e}"
|
|
391
|
+
end
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
#### Using the enable_mcp_partitions_partition_id_mcp_post_with_http_info variant
|
|
395
|
+
|
|
396
|
+
This returns an Array which contains the response data, status code and headers.
|
|
397
|
+
|
|
398
|
+
> <Array(Object, Integer, Hash)> enable_mcp_partitions_partition_id_mcp_post_with_http_info(partition_id)
|
|
399
|
+
|
|
400
|
+
```ruby
|
|
401
|
+
begin
|
|
402
|
+
# Enable Mcp
|
|
403
|
+
data, status_code, headers = api_instance.enable_mcp_partitions_partition_id_mcp_post_with_http_info(partition_id)
|
|
404
|
+
p status_code # => 2xx
|
|
405
|
+
p headers # => { ... }
|
|
406
|
+
p data # => Object
|
|
407
|
+
rescue RagieRubySdk::ApiError => e
|
|
408
|
+
puts "Error when calling BetaApi->enable_mcp_partitions_partition_id_mcp_post_with_http_info: #{e}"
|
|
409
|
+
end
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
### Parameters
|
|
413
|
+
|
|
414
|
+
| Name | Type | Description | Notes |
|
|
415
|
+
| ---- | ---- | ----------- | ----- |
|
|
416
|
+
| **partition_id** | **String** | | |
|
|
417
|
+
|
|
418
|
+
### Return type
|
|
419
|
+
|
|
420
|
+
**Object**
|
|
421
|
+
|
|
422
|
+
### Authorization
|
|
423
|
+
|
|
424
|
+
[auth](../README.md#auth)
|
|
425
|
+
|
|
426
|
+
### HTTP request headers
|
|
427
|
+
|
|
428
|
+
- **Content-Type**: Not defined
|
|
429
|
+
- **Accept**: application/json
|
|
430
|
+
|
|
431
|
+
|
|
292
432
|
## list_authenticators
|
|
293
433
|
|
|
294
434
|
> <AuthenticatorList> list_authenticators(opts)
|
data/docs/PartitionsApi.md
CHANGED
|
@@ -6,6 +6,8 @@ All URIs are relative to *https://api.ragie.ai*
|
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**create_partition_partitions_post**](PartitionsApi.md#create_partition_partitions_post) | **POST** /partitions | Create Partition |
|
|
8
8
|
| [**delete_partition_partitions_partition_id_delete**](PartitionsApi.md#delete_partition_partitions_partition_id_delete) | **DELETE** /partitions/{partition_id} | Delete Partition |
|
|
9
|
+
| [**disable_mcp_partitions_partition_id_mcp_delete**](PartitionsApi.md#disable_mcp_partitions_partition_id_mcp_delete) | **DELETE** /partitions/{partition_id}/mcp | Disable Mcp |
|
|
10
|
+
| [**enable_mcp_partitions_partition_id_mcp_post**](PartitionsApi.md#enable_mcp_partitions_partition_id_mcp_post) | **POST** /partitions/{partition_id}/mcp | Enable Mcp |
|
|
9
11
|
| [**get_partition_partitions_partition_id_get**](PartitionsApi.md#get_partition_partitions_partition_id_get) | **GET** /partitions/{partition_id} | Get Partition |
|
|
10
12
|
| [**list_partitions_partitions_get**](PartitionsApi.md#list_partitions_partitions_get) | **GET** /partitions | List Partitions |
|
|
11
13
|
| [**set_partition_limits_partitions_partition_id_limits_put**](PartitionsApi.md#set_partition_limits_partitions_partition_id_limits_put) | **PUT** /partitions/{partition_id}/limits | Set Partition Limits |
|
|
@@ -149,6 +151,144 @@ end
|
|
|
149
151
|
- **Accept**: application/json
|
|
150
152
|
|
|
151
153
|
|
|
154
|
+
## disable_mcp_partitions_partition_id_mcp_delete
|
|
155
|
+
|
|
156
|
+
> Object disable_mcp_partitions_partition_id_mcp_delete(partition_id)
|
|
157
|
+
|
|
158
|
+
Disable Mcp
|
|
159
|
+
|
|
160
|
+
Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
161
|
+
|
|
162
|
+
### Examples
|
|
163
|
+
|
|
164
|
+
```ruby
|
|
165
|
+
require 'time'
|
|
166
|
+
require 'ragie_ruby_sdk'
|
|
167
|
+
# setup authorization
|
|
168
|
+
RagieRubySdk.configure do |config|
|
|
169
|
+
# Configure Bearer authorization: auth
|
|
170
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
api_instance = RagieRubySdk::PartitionsApi.new
|
|
174
|
+
partition_id = 'partition_id_example' # String |
|
|
175
|
+
|
|
176
|
+
begin
|
|
177
|
+
# Disable Mcp
|
|
178
|
+
result = api_instance.disable_mcp_partitions_partition_id_mcp_delete(partition_id)
|
|
179
|
+
p result
|
|
180
|
+
rescue RagieRubySdk::ApiError => e
|
|
181
|
+
puts "Error when calling PartitionsApi->disable_mcp_partitions_partition_id_mcp_delete: #{e}"
|
|
182
|
+
end
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
#### Using the disable_mcp_partitions_partition_id_mcp_delete_with_http_info variant
|
|
186
|
+
|
|
187
|
+
This returns an Array which contains the response data, status code and headers.
|
|
188
|
+
|
|
189
|
+
> <Array(Object, Integer, Hash)> disable_mcp_partitions_partition_id_mcp_delete_with_http_info(partition_id)
|
|
190
|
+
|
|
191
|
+
```ruby
|
|
192
|
+
begin
|
|
193
|
+
# Disable Mcp
|
|
194
|
+
data, status_code, headers = api_instance.disable_mcp_partitions_partition_id_mcp_delete_with_http_info(partition_id)
|
|
195
|
+
p status_code # => 2xx
|
|
196
|
+
p headers # => { ... }
|
|
197
|
+
p data # => Object
|
|
198
|
+
rescue RagieRubySdk::ApiError => e
|
|
199
|
+
puts "Error when calling PartitionsApi->disable_mcp_partitions_partition_id_mcp_delete_with_http_info: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
| Name | Type | Description | Notes |
|
|
206
|
+
| ---- | ---- | ----------- | ----- |
|
|
207
|
+
| **partition_id** | **String** | | |
|
|
208
|
+
|
|
209
|
+
### Return type
|
|
210
|
+
|
|
211
|
+
**Object**
|
|
212
|
+
|
|
213
|
+
### Authorization
|
|
214
|
+
|
|
215
|
+
[auth](../README.md#auth)
|
|
216
|
+
|
|
217
|
+
### HTTP request headers
|
|
218
|
+
|
|
219
|
+
- **Content-Type**: Not defined
|
|
220
|
+
- **Accept**: application/json
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## enable_mcp_partitions_partition_id_mcp_post
|
|
224
|
+
|
|
225
|
+
> Object enable_mcp_partitions_partition_id_mcp_post(partition_id)
|
|
226
|
+
|
|
227
|
+
Enable Mcp
|
|
228
|
+
|
|
229
|
+
Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
230
|
+
|
|
231
|
+
### Examples
|
|
232
|
+
|
|
233
|
+
```ruby
|
|
234
|
+
require 'time'
|
|
235
|
+
require 'ragie_ruby_sdk'
|
|
236
|
+
# setup authorization
|
|
237
|
+
RagieRubySdk.configure do |config|
|
|
238
|
+
# Configure Bearer authorization: auth
|
|
239
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
api_instance = RagieRubySdk::PartitionsApi.new
|
|
243
|
+
partition_id = 'partition_id_example' # String |
|
|
244
|
+
|
|
245
|
+
begin
|
|
246
|
+
# Enable Mcp
|
|
247
|
+
result = api_instance.enable_mcp_partitions_partition_id_mcp_post(partition_id)
|
|
248
|
+
p result
|
|
249
|
+
rescue RagieRubySdk::ApiError => e
|
|
250
|
+
puts "Error when calling PartitionsApi->enable_mcp_partitions_partition_id_mcp_post: #{e}"
|
|
251
|
+
end
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
#### Using the enable_mcp_partitions_partition_id_mcp_post_with_http_info variant
|
|
255
|
+
|
|
256
|
+
This returns an Array which contains the response data, status code and headers.
|
|
257
|
+
|
|
258
|
+
> <Array(Object, Integer, Hash)> enable_mcp_partitions_partition_id_mcp_post_with_http_info(partition_id)
|
|
259
|
+
|
|
260
|
+
```ruby
|
|
261
|
+
begin
|
|
262
|
+
# Enable Mcp
|
|
263
|
+
data, status_code, headers = api_instance.enable_mcp_partitions_partition_id_mcp_post_with_http_info(partition_id)
|
|
264
|
+
p status_code # => 2xx
|
|
265
|
+
p headers # => { ... }
|
|
266
|
+
p data # => Object
|
|
267
|
+
rescue RagieRubySdk::ApiError => e
|
|
268
|
+
puts "Error when calling PartitionsApi->enable_mcp_partitions_partition_id_mcp_post_with_http_info: #{e}"
|
|
269
|
+
end
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Parameters
|
|
273
|
+
|
|
274
|
+
| Name | Type | Description | Notes |
|
|
275
|
+
| ---- | ---- | ----------- | ----- |
|
|
276
|
+
| **partition_id** | **String** | | |
|
|
277
|
+
|
|
278
|
+
### Return type
|
|
279
|
+
|
|
280
|
+
**Object**
|
|
281
|
+
|
|
282
|
+
### Authorization
|
|
283
|
+
|
|
284
|
+
[auth](../README.md#auth)
|
|
285
|
+
|
|
286
|
+
### HTTP request headers
|
|
287
|
+
|
|
288
|
+
- **Content-Type**: Not defined
|
|
289
|
+
- **Accept**: application/json
|
|
290
|
+
|
|
291
|
+
|
|
152
292
|
## get_partition_partitions_partition_id_get
|
|
153
293
|
|
|
154
294
|
> <PartitionDetail> get_partition_partitions_partition_id_get(partition_id)
|
|
@@ -292,6 +292,132 @@ module RagieRubySdk
|
|
|
292
292
|
return data, status_code, headers
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
+
# Disable Mcp
|
|
296
|
+
# Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
297
|
+
# @param partition_id [String]
|
|
298
|
+
# @param [Hash] opts the optional parameters
|
|
299
|
+
# @return [Object]
|
|
300
|
+
def disable_mcp_partitions_partition_id_mcp_delete(partition_id, opts = {})
|
|
301
|
+
data, _status_code, _headers = disable_mcp_partitions_partition_id_mcp_delete_with_http_info(partition_id, opts)
|
|
302
|
+
data
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Disable Mcp
|
|
306
|
+
# Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
307
|
+
# @param partition_id [String]
|
|
308
|
+
# @param [Hash] opts the optional parameters
|
|
309
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
310
|
+
def disable_mcp_partitions_partition_id_mcp_delete_with_http_info(partition_id, opts = {})
|
|
311
|
+
if @api_client.config.debugging
|
|
312
|
+
@api_client.config.logger.debug 'Calling API: BetaApi.disable_mcp_partitions_partition_id_mcp_delete ...'
|
|
313
|
+
end
|
|
314
|
+
# verify the required parameter 'partition_id' is set
|
|
315
|
+
if @api_client.config.client_side_validation && partition_id.nil?
|
|
316
|
+
fail ArgumentError, "Missing the required parameter 'partition_id' when calling BetaApi.disable_mcp_partitions_partition_id_mcp_delete"
|
|
317
|
+
end
|
|
318
|
+
# resource path
|
|
319
|
+
local_var_path = '/partitions/{partition_id}/mcp'.sub('{' + 'partition_id' + '}', CGI.escape(partition_id.to_s))
|
|
320
|
+
|
|
321
|
+
# query parameters
|
|
322
|
+
query_params = opts[:query_params] || {}
|
|
323
|
+
|
|
324
|
+
# header parameters
|
|
325
|
+
header_params = opts[:header_params] || {}
|
|
326
|
+
# HTTP header 'Accept' (if needed)
|
|
327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
328
|
+
|
|
329
|
+
# form parameters
|
|
330
|
+
form_params = opts[:form_params] || {}
|
|
331
|
+
|
|
332
|
+
# http body (model)
|
|
333
|
+
post_body = opts[:debug_body]
|
|
334
|
+
|
|
335
|
+
# return_type
|
|
336
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
337
|
+
|
|
338
|
+
# auth_names
|
|
339
|
+
auth_names = opts[:debug_auth_names] || ['auth']
|
|
340
|
+
|
|
341
|
+
new_options = opts.merge(
|
|
342
|
+
:operation => :"BetaApi.disable_mcp_partitions_partition_id_mcp_delete",
|
|
343
|
+
:header_params => header_params,
|
|
344
|
+
:query_params => query_params,
|
|
345
|
+
:form_params => form_params,
|
|
346
|
+
:body => post_body,
|
|
347
|
+
:auth_names => auth_names,
|
|
348
|
+
:return_type => return_type
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
352
|
+
if @api_client.config.debugging
|
|
353
|
+
@api_client.config.logger.debug "API called: BetaApi#disable_mcp_partitions_partition_id_mcp_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
354
|
+
end
|
|
355
|
+
return data, status_code, headers
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Enable Mcp
|
|
359
|
+
# Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
360
|
+
# @param partition_id [String]
|
|
361
|
+
# @param [Hash] opts the optional parameters
|
|
362
|
+
# @return [Object]
|
|
363
|
+
def enable_mcp_partitions_partition_id_mcp_post(partition_id, opts = {})
|
|
364
|
+
data, _status_code, _headers = enable_mcp_partitions_partition_id_mcp_post_with_http_info(partition_id, opts)
|
|
365
|
+
data
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Enable Mcp
|
|
369
|
+
# Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
370
|
+
# @param partition_id [String]
|
|
371
|
+
# @param [Hash] opts the optional parameters
|
|
372
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
373
|
+
def enable_mcp_partitions_partition_id_mcp_post_with_http_info(partition_id, opts = {})
|
|
374
|
+
if @api_client.config.debugging
|
|
375
|
+
@api_client.config.logger.debug 'Calling API: BetaApi.enable_mcp_partitions_partition_id_mcp_post ...'
|
|
376
|
+
end
|
|
377
|
+
# verify the required parameter 'partition_id' is set
|
|
378
|
+
if @api_client.config.client_side_validation && partition_id.nil?
|
|
379
|
+
fail ArgumentError, "Missing the required parameter 'partition_id' when calling BetaApi.enable_mcp_partitions_partition_id_mcp_post"
|
|
380
|
+
end
|
|
381
|
+
# resource path
|
|
382
|
+
local_var_path = '/partitions/{partition_id}/mcp'.sub('{' + 'partition_id' + '}', CGI.escape(partition_id.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']) 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] || 'Object'
|
|
400
|
+
|
|
401
|
+
# auth_names
|
|
402
|
+
auth_names = opts[:debug_auth_names] || ['auth']
|
|
403
|
+
|
|
404
|
+
new_options = opts.merge(
|
|
405
|
+
:operation => :"BetaApi.enable_mcp_partitions_partition_id_mcp_post",
|
|
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(:POST, local_var_path, new_options)
|
|
415
|
+
if @api_client.config.debugging
|
|
416
|
+
@api_client.config.logger.debug "API called: BetaApi#enable_mcp_partitions_partition_id_mcp_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
417
|
+
end
|
|
418
|
+
return data, status_code, headers
|
|
419
|
+
end
|
|
420
|
+
|
|
295
421
|
# List Authenticators
|
|
296
422
|
# List all authenticators sorted by created_at in descending order. Results are paginated with a max limit of 100. When more authenticators are available, a `cursor` will be provided. Use the `cursor` parameter to retrieve the subsequent page.
|
|
297
423
|
# @param [Hash] opts the optional parameters
|
|
@@ -150,6 +150,132 @@ module RagieRubySdk
|
|
|
150
150
|
return data, status_code, headers
|
|
151
151
|
end
|
|
152
152
|
|
|
153
|
+
# Disable Mcp
|
|
154
|
+
# Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
155
|
+
# @param partition_id [String]
|
|
156
|
+
# @param [Hash] opts the optional parameters
|
|
157
|
+
# @return [Object]
|
|
158
|
+
def disable_mcp_partitions_partition_id_mcp_delete(partition_id, opts = {})
|
|
159
|
+
data, _status_code, _headers = disable_mcp_partitions_partition_id_mcp_delete_with_http_info(partition_id, opts)
|
|
160
|
+
data
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Disable Mcp
|
|
164
|
+
# Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
165
|
+
# @param partition_id [String]
|
|
166
|
+
# @param [Hash] opts the optional parameters
|
|
167
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
168
|
+
def disable_mcp_partitions_partition_id_mcp_delete_with_http_info(partition_id, opts = {})
|
|
169
|
+
if @api_client.config.debugging
|
|
170
|
+
@api_client.config.logger.debug 'Calling API: PartitionsApi.disable_mcp_partitions_partition_id_mcp_delete ...'
|
|
171
|
+
end
|
|
172
|
+
# verify the required parameter 'partition_id' is set
|
|
173
|
+
if @api_client.config.client_side_validation && partition_id.nil?
|
|
174
|
+
fail ArgumentError, "Missing the required parameter 'partition_id' when calling PartitionsApi.disable_mcp_partitions_partition_id_mcp_delete"
|
|
175
|
+
end
|
|
176
|
+
# resource path
|
|
177
|
+
local_var_path = '/partitions/{partition_id}/mcp'.sub('{' + 'partition_id' + '}', CGI.escape(partition_id.to_s))
|
|
178
|
+
|
|
179
|
+
# query parameters
|
|
180
|
+
query_params = opts[:query_params] || {}
|
|
181
|
+
|
|
182
|
+
# header parameters
|
|
183
|
+
header_params = opts[:header_params] || {}
|
|
184
|
+
# HTTP header 'Accept' (if needed)
|
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
186
|
+
|
|
187
|
+
# form parameters
|
|
188
|
+
form_params = opts[:form_params] || {}
|
|
189
|
+
|
|
190
|
+
# http body (model)
|
|
191
|
+
post_body = opts[:debug_body]
|
|
192
|
+
|
|
193
|
+
# return_type
|
|
194
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
195
|
+
|
|
196
|
+
# auth_names
|
|
197
|
+
auth_names = opts[:debug_auth_names] || ['auth']
|
|
198
|
+
|
|
199
|
+
new_options = opts.merge(
|
|
200
|
+
:operation => :"PartitionsApi.disable_mcp_partitions_partition_id_mcp_delete",
|
|
201
|
+
:header_params => header_params,
|
|
202
|
+
:query_params => query_params,
|
|
203
|
+
:form_params => form_params,
|
|
204
|
+
:body => post_body,
|
|
205
|
+
:auth_names => auth_names,
|
|
206
|
+
:return_type => return_type
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
210
|
+
if @api_client.config.debugging
|
|
211
|
+
@api_client.config.logger.debug "API called: PartitionsApi#disable_mcp_partitions_partition_id_mcp_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
212
|
+
end
|
|
213
|
+
return data, status_code, headers
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Enable Mcp
|
|
217
|
+
# Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
218
|
+
# @param partition_id [String]
|
|
219
|
+
# @param [Hash] opts the optional parameters
|
|
220
|
+
# @return [Object]
|
|
221
|
+
def enable_mcp_partitions_partition_id_mcp_post(partition_id, opts = {})
|
|
222
|
+
data, _status_code, _headers = enable_mcp_partitions_partition_id_mcp_post_with_http_info(partition_id, opts)
|
|
223
|
+
data
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Enable Mcp
|
|
227
|
+
# Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
228
|
+
# @param partition_id [String]
|
|
229
|
+
# @param [Hash] opts the optional parameters
|
|
230
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
231
|
+
def enable_mcp_partitions_partition_id_mcp_post_with_http_info(partition_id, opts = {})
|
|
232
|
+
if @api_client.config.debugging
|
|
233
|
+
@api_client.config.logger.debug 'Calling API: PartitionsApi.enable_mcp_partitions_partition_id_mcp_post ...'
|
|
234
|
+
end
|
|
235
|
+
# verify the required parameter 'partition_id' is set
|
|
236
|
+
if @api_client.config.client_side_validation && partition_id.nil?
|
|
237
|
+
fail ArgumentError, "Missing the required parameter 'partition_id' when calling PartitionsApi.enable_mcp_partitions_partition_id_mcp_post"
|
|
238
|
+
end
|
|
239
|
+
# resource path
|
|
240
|
+
local_var_path = '/partitions/{partition_id}/mcp'.sub('{' + 'partition_id' + '}', CGI.escape(partition_id.to_s))
|
|
241
|
+
|
|
242
|
+
# query parameters
|
|
243
|
+
query_params = opts[:query_params] || {}
|
|
244
|
+
|
|
245
|
+
# header parameters
|
|
246
|
+
header_params = opts[:header_params] || {}
|
|
247
|
+
# HTTP header 'Accept' (if needed)
|
|
248
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
249
|
+
|
|
250
|
+
# form parameters
|
|
251
|
+
form_params = opts[:form_params] || {}
|
|
252
|
+
|
|
253
|
+
# http body (model)
|
|
254
|
+
post_body = opts[:debug_body]
|
|
255
|
+
|
|
256
|
+
# return_type
|
|
257
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
258
|
+
|
|
259
|
+
# auth_names
|
|
260
|
+
auth_names = opts[:debug_auth_names] || ['auth']
|
|
261
|
+
|
|
262
|
+
new_options = opts.merge(
|
|
263
|
+
:operation => :"PartitionsApi.enable_mcp_partitions_partition_id_mcp_post",
|
|
264
|
+
:header_params => header_params,
|
|
265
|
+
:query_params => query_params,
|
|
266
|
+
:form_params => form_params,
|
|
267
|
+
:body => post_body,
|
|
268
|
+
:auth_names => auth_names,
|
|
269
|
+
:return_type => return_type
|
|
270
|
+
)
|
|
271
|
+
|
|
272
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
273
|
+
if @api_client.config.debugging
|
|
274
|
+
@api_client.config.logger.debug "API called: PartitionsApi#enable_mcp_partitions_partition_id_mcp_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
275
|
+
end
|
|
276
|
+
return data, status_code, headers
|
|
277
|
+
end
|
|
278
|
+
|
|
153
279
|
# Get Partition
|
|
154
280
|
# Get a partition by its ID. Includes usage information such as the number of documents and pages hosted and processed. The partition's limits are also included.
|
|
155
281
|
# @param partition_id [String]
|
data/spec/api/beta_api_spec.rb
CHANGED
|
@@ -81,6 +81,30 @@ describe 'BetaApi' do
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
# unit tests for disable_mcp_partitions_partition_id_mcp_delete
|
|
85
|
+
# Disable Mcp
|
|
86
|
+
# Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
87
|
+
# @param partition_id
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [Object]
|
|
90
|
+
describe 'disable_mcp_partitions_partition_id_mcp_delete test' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# unit tests for enable_mcp_partitions_partition_id_mcp_post
|
|
97
|
+
# Enable Mcp
|
|
98
|
+
# Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
99
|
+
# @param partition_id
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [Object]
|
|
102
|
+
describe 'enable_mcp_partitions_partition_id_mcp_post test' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
84
108
|
# unit tests for list_authenticators
|
|
85
109
|
# List Authenticators
|
|
86
110
|
# List all authenticators sorted by created_at in descending order. Results are paginated with a max limit of 100. When more authenticators are available, a `cursor` will be provided. Use the `cursor` parameter to retrieve the subsequent page.
|
|
@@ -56,6 +56,30 @@ describe 'PartitionsApi' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
# unit tests for disable_mcp_partitions_partition_id_mcp_delete
|
|
60
|
+
# Disable Mcp
|
|
61
|
+
# Disables context-aware descriptions for a partition. This will stop automatically generating descriptions for the partition.
|
|
62
|
+
# @param partition_id
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [Object]
|
|
65
|
+
describe 'disable_mcp_partitions_partition_id_mcp_delete test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for enable_mcp_partitions_partition_id_mcp_post
|
|
72
|
+
# Enable Mcp
|
|
73
|
+
# Enables context-aware descriptions for a partition. This will allow the automatically generate a desccription for based on the documents in the partition.
|
|
74
|
+
# @param partition_id
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [Object]
|
|
77
|
+
describe 'enable_mcp_partitions_partition_id_mcp_post test' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
59
83
|
# unit tests for get_partition_partitions_partition_id_get
|
|
60
84
|
# Get Partition
|
|
61
85
|
# Get a partition by its ID. Includes usage information such as the number of documents and pages hosted and processed. The partition's limits are also included.
|