ragie_ruby_sdk 1.0.21 → 1.0.22
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 +6 -8
- data/docs/BetaApi.md +0 -140
- data/docs/Partition.md +4 -0
- data/docs/PartitionDetail.md +4 -0
- data/docs/PartitionsApi.md +64 -132
- data/docs/UpdatePartitionParams.md +22 -0
- data/lib/ragie_ruby_sdk/api/beta_api.rb +0 -126
- data/lib/ragie_ruby_sdk/api/partitions_api.rb +74 -126
- data/lib/ragie_ruby_sdk/models/partition.rb +41 -1
- data/lib/ragie_ruby_sdk/models/partition_detail.rb +41 -1
- data/lib/ragie_ruby_sdk/models/update_partition_params.rb +243 -0
- data/lib/ragie_ruby_sdk/version.rb +1 -1
- data/lib/ragie_ruby_sdk.rb +1 -0
- data/spec/api/beta_api_spec.rb +0 -24
- data/spec/api/partitions_api_spec.rb +13 -24
- data/spec/models/partition_detail_spec.rb +12 -0
- data/spec/models/partition_spec.rb +12 -0
- data/spec/models/update_partition_params_spec.rb +48 -0
- metadata +5 -1
|
@@ -292,132 +292,6 @@ 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
|
-
|
|
421
295
|
# List Authenticators
|
|
422
296
|
# 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.
|
|
423
297
|
# @param [Hash] opts the optional parameters
|
|
@@ -150,132 +150,6 @@ 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
|
-
|
|
279
153
|
# Get Partition
|
|
280
154
|
# 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.
|
|
281
155
|
# @param partition_id [String]
|
|
@@ -483,5 +357,79 @@ module RagieRubySdk
|
|
|
483
357
|
end
|
|
484
358
|
return data, status_code, headers
|
|
485
359
|
end
|
|
360
|
+
|
|
361
|
+
# Update Partition
|
|
362
|
+
# Updates a partition. This includes the partition's description and metadata schema.
|
|
363
|
+
# @param partition_id [String]
|
|
364
|
+
# @param update_partition_params [UpdatePartitionParams]
|
|
365
|
+
# @param [Hash] opts the optional parameters
|
|
366
|
+
# @return [PartitionDetail]
|
|
367
|
+
def update_partition_partitions_partition_id_patch(partition_id, update_partition_params, opts = {})
|
|
368
|
+
data, _status_code, _headers = update_partition_partitions_partition_id_patch_with_http_info(partition_id, update_partition_params, opts)
|
|
369
|
+
data
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# Update Partition
|
|
373
|
+
# Updates a partition. This includes the partition's description and metadata schema.
|
|
374
|
+
# @param partition_id [String]
|
|
375
|
+
# @param update_partition_params [UpdatePartitionParams]
|
|
376
|
+
# @param [Hash] opts the optional parameters
|
|
377
|
+
# @return [Array<(PartitionDetail, Integer, Hash)>] PartitionDetail data, response status code and response headers
|
|
378
|
+
def update_partition_partitions_partition_id_patch_with_http_info(partition_id, update_partition_params, opts = {})
|
|
379
|
+
if @api_client.config.debugging
|
|
380
|
+
@api_client.config.logger.debug 'Calling API: PartitionsApi.update_partition_partitions_partition_id_patch ...'
|
|
381
|
+
end
|
|
382
|
+
# verify the required parameter 'partition_id' is set
|
|
383
|
+
if @api_client.config.client_side_validation && partition_id.nil?
|
|
384
|
+
fail ArgumentError, "Missing the required parameter 'partition_id' when calling PartitionsApi.update_partition_partitions_partition_id_patch"
|
|
385
|
+
end
|
|
386
|
+
# verify the required parameter 'update_partition_params' is set
|
|
387
|
+
if @api_client.config.client_side_validation && update_partition_params.nil?
|
|
388
|
+
fail ArgumentError, "Missing the required parameter 'update_partition_params' when calling PartitionsApi.update_partition_partitions_partition_id_patch"
|
|
389
|
+
end
|
|
390
|
+
# resource path
|
|
391
|
+
local_var_path = '/partitions/{partition_id}'.sub('{' + 'partition_id' + '}', CGI.escape(partition_id.to_s))
|
|
392
|
+
|
|
393
|
+
# query parameters
|
|
394
|
+
query_params = opts[:query_params] || {}
|
|
395
|
+
|
|
396
|
+
# header parameters
|
|
397
|
+
header_params = opts[:header_params] || {}
|
|
398
|
+
# HTTP header 'Accept' (if needed)
|
|
399
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
400
|
+
# HTTP header 'Content-Type'
|
|
401
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
402
|
+
if !content_type.nil?
|
|
403
|
+
header_params['Content-Type'] = content_type
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# form parameters
|
|
407
|
+
form_params = opts[:form_params] || {}
|
|
408
|
+
|
|
409
|
+
# http body (model)
|
|
410
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_partition_params)
|
|
411
|
+
|
|
412
|
+
# return_type
|
|
413
|
+
return_type = opts[:debug_return_type] || 'PartitionDetail'
|
|
414
|
+
|
|
415
|
+
# auth_names
|
|
416
|
+
auth_names = opts[:debug_auth_names] || ['auth']
|
|
417
|
+
|
|
418
|
+
new_options = opts.merge(
|
|
419
|
+
:operation => :"PartitionsApi.update_partition_partitions_partition_id_patch",
|
|
420
|
+
:header_params => header_params,
|
|
421
|
+
:query_params => query_params,
|
|
422
|
+
:form_params => form_params,
|
|
423
|
+
:body => post_body,
|
|
424
|
+
:auth_names => auth_names,
|
|
425
|
+
:return_type => return_type
|
|
426
|
+
)
|
|
427
|
+
|
|
428
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
429
|
+
if @api_client.config.debugging
|
|
430
|
+
@api_client.config.logger.debug "API called: PartitionsApi#update_partition_partitions_partition_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
431
|
+
end
|
|
432
|
+
return data, status_code, headers
|
|
433
|
+
end
|
|
486
434
|
end
|
|
487
435
|
end
|
|
@@ -23,6 +23,10 @@ module RagieRubySdk
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :description
|
|
25
25
|
|
|
26
|
+
attr_accessor :context_aware
|
|
27
|
+
|
|
28
|
+
attr_accessor :metadata_schema
|
|
29
|
+
|
|
26
30
|
attr_accessor :limits
|
|
27
31
|
|
|
28
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -32,6 +36,8 @@ module RagieRubySdk
|
|
|
32
36
|
:'is_default' => :'is_default',
|
|
33
37
|
:'limit_exceeded_at' => :'limit_exceeded_at',
|
|
34
38
|
:'description' => :'description',
|
|
39
|
+
:'context_aware' => :'context_aware',
|
|
40
|
+
:'metadata_schema' => :'metadata_schema',
|
|
35
41
|
:'limits' => :'limits'
|
|
36
42
|
}
|
|
37
43
|
end
|
|
@@ -53,6 +59,8 @@ module RagieRubySdk
|
|
|
53
59
|
:'is_default' => :'Boolean',
|
|
54
60
|
:'limit_exceeded_at' => :'Time',
|
|
55
61
|
:'description' => :'String',
|
|
62
|
+
:'context_aware' => :'Boolean',
|
|
63
|
+
:'metadata_schema' => :'Hash<String, CreatePartitionParamsMetadataSchemaValue>',
|
|
56
64
|
:'limits' => :'PartitionLimits'
|
|
57
65
|
}
|
|
58
66
|
end
|
|
@@ -62,6 +70,7 @@ module RagieRubySdk
|
|
|
62
70
|
Set.new([
|
|
63
71
|
:'limit_exceeded_at',
|
|
64
72
|
:'description',
|
|
73
|
+
:'metadata_schema',
|
|
65
74
|
])
|
|
66
75
|
end
|
|
67
76
|
|
|
@@ -103,6 +112,20 @@ module RagieRubySdk
|
|
|
103
112
|
self.description = nil
|
|
104
113
|
end
|
|
105
114
|
|
|
115
|
+
if attributes.key?(:'context_aware')
|
|
116
|
+
self.context_aware = attributes[:'context_aware']
|
|
117
|
+
else
|
|
118
|
+
self.context_aware = nil
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'metadata_schema')
|
|
122
|
+
if (value = attributes[:'metadata_schema']).is_a?(Hash)
|
|
123
|
+
self.metadata_schema = value
|
|
124
|
+
end
|
|
125
|
+
else
|
|
126
|
+
self.metadata_schema = nil
|
|
127
|
+
end
|
|
128
|
+
|
|
106
129
|
if attributes.key?(:'limits')
|
|
107
130
|
self.limits = attributes[:'limits']
|
|
108
131
|
else
|
|
@@ -123,6 +146,10 @@ module RagieRubySdk
|
|
|
123
146
|
invalid_properties.push('invalid value for "is_default", is_default cannot be nil.')
|
|
124
147
|
end
|
|
125
148
|
|
|
149
|
+
if @context_aware.nil?
|
|
150
|
+
invalid_properties.push('invalid value for "context_aware", context_aware cannot be nil.')
|
|
151
|
+
end
|
|
152
|
+
|
|
126
153
|
if @limits.nil?
|
|
127
154
|
invalid_properties.push('invalid value for "limits", limits cannot be nil.')
|
|
128
155
|
end
|
|
@@ -136,6 +163,7 @@ module RagieRubySdk
|
|
|
136
163
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
137
164
|
return false if @name.nil?
|
|
138
165
|
return false if @is_default.nil?
|
|
166
|
+
return false if @context_aware.nil?
|
|
139
167
|
return false if @limits.nil?
|
|
140
168
|
true
|
|
141
169
|
end
|
|
@@ -160,6 +188,16 @@ module RagieRubySdk
|
|
|
160
188
|
@is_default = is_default
|
|
161
189
|
end
|
|
162
190
|
|
|
191
|
+
# Custom attribute writer method with validation
|
|
192
|
+
# @param [Object] context_aware Value to be assigned
|
|
193
|
+
def context_aware=(context_aware)
|
|
194
|
+
if context_aware.nil?
|
|
195
|
+
fail ArgumentError, 'context_aware cannot be nil'
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
@context_aware = context_aware
|
|
199
|
+
end
|
|
200
|
+
|
|
163
201
|
# Custom attribute writer method with validation
|
|
164
202
|
# @param [Object] limits Value to be assigned
|
|
165
203
|
def limits=(limits)
|
|
@@ -179,6 +217,8 @@ module RagieRubySdk
|
|
|
179
217
|
is_default == o.is_default &&
|
|
180
218
|
limit_exceeded_at == o.limit_exceeded_at &&
|
|
181
219
|
description == o.description &&
|
|
220
|
+
context_aware == o.context_aware &&
|
|
221
|
+
metadata_schema == o.metadata_schema &&
|
|
182
222
|
limits == o.limits
|
|
183
223
|
end
|
|
184
224
|
|
|
@@ -191,7 +231,7 @@ module RagieRubySdk
|
|
|
191
231
|
# Calculates hash code according to all attributes.
|
|
192
232
|
# @return [Integer] Hash code
|
|
193
233
|
def hash
|
|
194
|
-
[name, is_default, limit_exceeded_at, description, limits].hash
|
|
234
|
+
[name, is_default, limit_exceeded_at, description, context_aware, metadata_schema, limits].hash
|
|
195
235
|
end
|
|
196
236
|
|
|
197
237
|
# Builds the object from hash
|
|
@@ -23,6 +23,10 @@ module RagieRubySdk
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :description
|
|
25
25
|
|
|
26
|
+
attr_accessor :context_aware
|
|
27
|
+
|
|
28
|
+
attr_accessor :metadata_schema
|
|
29
|
+
|
|
26
30
|
attr_accessor :limits
|
|
27
31
|
|
|
28
32
|
attr_accessor :stats
|
|
@@ -34,6 +38,8 @@ module RagieRubySdk
|
|
|
34
38
|
:'is_default' => :'is_default',
|
|
35
39
|
:'limit_exceeded_at' => :'limit_exceeded_at',
|
|
36
40
|
:'description' => :'description',
|
|
41
|
+
:'context_aware' => :'context_aware',
|
|
42
|
+
:'metadata_schema' => :'metadata_schema',
|
|
37
43
|
:'limits' => :'limits',
|
|
38
44
|
:'stats' => :'stats'
|
|
39
45
|
}
|
|
@@ -56,6 +62,8 @@ module RagieRubySdk
|
|
|
56
62
|
:'is_default' => :'Boolean',
|
|
57
63
|
:'limit_exceeded_at' => :'Time',
|
|
58
64
|
:'description' => :'String',
|
|
65
|
+
:'context_aware' => :'Boolean',
|
|
66
|
+
:'metadata_schema' => :'Hash<String, CreatePartitionParamsMetadataSchemaValue>',
|
|
59
67
|
:'limits' => :'PartitionLimits',
|
|
60
68
|
:'stats' => :'PartitionStats'
|
|
61
69
|
}
|
|
@@ -66,6 +74,7 @@ module RagieRubySdk
|
|
|
66
74
|
Set.new([
|
|
67
75
|
:'limit_exceeded_at',
|
|
68
76
|
:'description',
|
|
77
|
+
:'metadata_schema',
|
|
69
78
|
])
|
|
70
79
|
end
|
|
71
80
|
|
|
@@ -107,6 +116,20 @@ module RagieRubySdk
|
|
|
107
116
|
self.description = nil
|
|
108
117
|
end
|
|
109
118
|
|
|
119
|
+
if attributes.key?(:'context_aware')
|
|
120
|
+
self.context_aware = attributes[:'context_aware']
|
|
121
|
+
else
|
|
122
|
+
self.context_aware = nil
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'metadata_schema')
|
|
126
|
+
if (value = attributes[:'metadata_schema']).is_a?(Hash)
|
|
127
|
+
self.metadata_schema = value
|
|
128
|
+
end
|
|
129
|
+
else
|
|
130
|
+
self.metadata_schema = nil
|
|
131
|
+
end
|
|
132
|
+
|
|
110
133
|
if attributes.key?(:'limits')
|
|
111
134
|
self.limits = attributes[:'limits']
|
|
112
135
|
else
|
|
@@ -133,6 +156,10 @@ module RagieRubySdk
|
|
|
133
156
|
invalid_properties.push('invalid value for "is_default", is_default cannot be nil.')
|
|
134
157
|
end
|
|
135
158
|
|
|
159
|
+
if @context_aware.nil?
|
|
160
|
+
invalid_properties.push('invalid value for "context_aware", context_aware cannot be nil.')
|
|
161
|
+
end
|
|
162
|
+
|
|
136
163
|
if @limits.nil?
|
|
137
164
|
invalid_properties.push('invalid value for "limits", limits cannot be nil.')
|
|
138
165
|
end
|
|
@@ -150,6 +177,7 @@ module RagieRubySdk
|
|
|
150
177
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
178
|
return false if @name.nil?
|
|
152
179
|
return false if @is_default.nil?
|
|
180
|
+
return false if @context_aware.nil?
|
|
153
181
|
return false if @limits.nil?
|
|
154
182
|
return false if @stats.nil?
|
|
155
183
|
true
|
|
@@ -175,6 +203,16 @@ module RagieRubySdk
|
|
|
175
203
|
@is_default = is_default
|
|
176
204
|
end
|
|
177
205
|
|
|
206
|
+
# Custom attribute writer method with validation
|
|
207
|
+
# @param [Object] context_aware Value to be assigned
|
|
208
|
+
def context_aware=(context_aware)
|
|
209
|
+
if context_aware.nil?
|
|
210
|
+
fail ArgumentError, 'context_aware cannot be nil'
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
@context_aware = context_aware
|
|
214
|
+
end
|
|
215
|
+
|
|
178
216
|
# Custom attribute writer method with validation
|
|
179
217
|
# @param [Object] limits Value to be assigned
|
|
180
218
|
def limits=(limits)
|
|
@@ -204,6 +242,8 @@ module RagieRubySdk
|
|
|
204
242
|
is_default == o.is_default &&
|
|
205
243
|
limit_exceeded_at == o.limit_exceeded_at &&
|
|
206
244
|
description == o.description &&
|
|
245
|
+
context_aware == o.context_aware &&
|
|
246
|
+
metadata_schema == o.metadata_schema &&
|
|
207
247
|
limits == o.limits &&
|
|
208
248
|
stats == o.stats
|
|
209
249
|
end
|
|
@@ -217,7 +257,7 @@ module RagieRubySdk
|
|
|
217
257
|
# Calculates hash code according to all attributes.
|
|
218
258
|
# @return [Integer] Hash code
|
|
219
259
|
def hash
|
|
220
|
-
[name, is_default, limit_exceeded_at, description, limits, stats].hash
|
|
260
|
+
[name, is_default, limit_exceeded_at, description, context_aware, metadata_schema, limits, stats].hash
|
|
221
261
|
end
|
|
222
262
|
|
|
223
263
|
# Builds the object from hash
|