ragie_ruby_sdk 1.0.20 → 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.
@@ -0,0 +1,22 @@
1
+ # RagieRubySdk::UpdatePartitionParams
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **context_aware** | **Boolean** | | [optional] |
8
+ | **description** | **String** | | [optional] |
9
+ | **metadata_schema** | [**Hash<String, CreatePartitionParamsMetadataSchemaValue>**](CreatePartitionParamsMetadataSchemaValue.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ragie_ruby_sdk'
15
+
16
+ instance = RagieRubySdk::UpdatePartitionParams.new(
17
+ context_aware: null,
18
+ description: null,
19
+ metadata_schema: null
20
+ )
21
+ ```
22
+
@@ -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&#39;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
@@ -17,6 +17,8 @@ module RagieRubySdk
17
17
  class CreatePartitionParams
18
18
  attr_accessor :name
19
19
 
20
+ attr_accessor :description
21
+
20
22
  attr_accessor :pages_hosted_limit_monthly
21
23
 
22
24
  attr_accessor :pages_processed_limit_monthly
@@ -47,6 +49,7 @@ module RagieRubySdk
47
49
  def self.attribute_map
48
50
  {
49
51
  :'name' => :'name',
52
+ :'description' => :'description',
50
53
  :'pages_hosted_limit_monthly' => :'pages_hosted_limit_monthly',
51
54
  :'pages_processed_limit_monthly' => :'pages_processed_limit_monthly',
52
55
  :'pages_hosted_limit_max' => :'pages_hosted_limit_max',
@@ -77,6 +80,7 @@ module RagieRubySdk
77
80
  def self.openapi_types
78
81
  {
79
82
  :'name' => :'String',
83
+ :'description' => :'String',
80
84
  :'pages_hosted_limit_monthly' => :'Integer',
81
85
  :'pages_processed_limit_monthly' => :'Integer',
82
86
  :'pages_hosted_limit_max' => :'Integer',
@@ -96,6 +100,7 @@ module RagieRubySdk
96
100
  # List of attributes with nullable: true
97
101
  def self.openapi_nullable
98
102
  Set.new([
103
+ :'description',
99
104
  :'pages_hosted_limit_monthly',
100
105
  :'pages_processed_limit_monthly',
101
106
  :'pages_hosted_limit_max',
@@ -134,6 +139,10 @@ module RagieRubySdk
134
139
  self.name = nil
135
140
  end
136
141
 
142
+ if attributes.key?(:'description')
143
+ self.description = attributes[:'description']
144
+ end
145
+
137
146
  if attributes.key?(:'pages_hosted_limit_monthly')
138
147
  self.pages_hosted_limit_monthly = attributes[:'pages_hosted_limit_monthly']
139
148
  end
@@ -405,6 +414,7 @@ module RagieRubySdk
405
414
  return true if self.equal?(o)
406
415
  self.class == o.class &&
407
416
  name == o.name &&
417
+ description == o.description &&
408
418
  pages_hosted_limit_monthly == o.pages_hosted_limit_monthly &&
409
419
  pages_processed_limit_monthly == o.pages_processed_limit_monthly &&
410
420
  pages_hosted_limit_max == o.pages_hosted_limit_max &&
@@ -429,7 +439,7 @@ module RagieRubySdk
429
439
  # Calculates hash code according to all attributes.
430
440
  # @return [Integer] Hash code
431
441
  def hash
432
- [name, pages_hosted_limit_monthly, pages_processed_limit_monthly, pages_hosted_limit_max, pages_processed_limit_max, audio_processed_limit_monthly, audio_processed_limit_max, video_processed_limit_monthly, video_processed_limit_max, media_streamed_limit_monthly, media_streamed_limit_max, media_hosted_limit_monthly, media_hosted_limit_max, metadata_schema].hash
442
+ [name, description, pages_hosted_limit_monthly, pages_processed_limit_monthly, pages_hosted_limit_max, pages_processed_limit_max, audio_processed_limit_monthly, audio_processed_limit_max, video_processed_limit_monthly, video_processed_limit_max, media_streamed_limit_monthly, media_streamed_limit_max, media_hosted_limit_monthly, media_hosted_limit_max, metadata_schema].hash
433
443
  end
434
444
 
435
445
  # Builds the object from hash
@@ -21,6 +21,12 @@ module RagieRubySdk
21
21
 
22
22
  attr_accessor :limit_exceeded_at
23
23
 
24
+ attr_accessor :description
25
+
26
+ attr_accessor :context_aware
27
+
28
+ attr_accessor :metadata_schema
29
+
24
30
  attr_accessor :limits
25
31
 
26
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -29,6 +35,9 @@ module RagieRubySdk
29
35
  :'name' => :'name',
30
36
  :'is_default' => :'is_default',
31
37
  :'limit_exceeded_at' => :'limit_exceeded_at',
38
+ :'description' => :'description',
39
+ :'context_aware' => :'context_aware',
40
+ :'metadata_schema' => :'metadata_schema',
32
41
  :'limits' => :'limits'
33
42
  }
34
43
  end
@@ -49,6 +58,9 @@ module RagieRubySdk
49
58
  :'name' => :'String',
50
59
  :'is_default' => :'Boolean',
51
60
  :'limit_exceeded_at' => :'Time',
61
+ :'description' => :'String',
62
+ :'context_aware' => :'Boolean',
63
+ :'metadata_schema' => :'Hash<String, CreatePartitionParamsMetadataSchemaValue>',
52
64
  :'limits' => :'PartitionLimits'
53
65
  }
54
66
  end
@@ -57,6 +69,8 @@ module RagieRubySdk
57
69
  def self.openapi_nullable
58
70
  Set.new([
59
71
  :'limit_exceeded_at',
72
+ :'description',
73
+ :'metadata_schema',
60
74
  ])
61
75
  end
62
76
 
@@ -92,6 +106,26 @@ module RagieRubySdk
92
106
  self.limit_exceeded_at = attributes[:'limit_exceeded_at']
93
107
  end
94
108
 
109
+ if attributes.key?(:'description')
110
+ self.description = attributes[:'description']
111
+ else
112
+ self.description = nil
113
+ end
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
+
95
129
  if attributes.key?(:'limits')
96
130
  self.limits = attributes[:'limits']
97
131
  else
@@ -112,6 +146,10 @@ module RagieRubySdk
112
146
  invalid_properties.push('invalid value for "is_default", is_default cannot be nil.')
113
147
  end
114
148
 
149
+ if @context_aware.nil?
150
+ invalid_properties.push('invalid value for "context_aware", context_aware cannot be nil.')
151
+ end
152
+
115
153
  if @limits.nil?
116
154
  invalid_properties.push('invalid value for "limits", limits cannot be nil.')
117
155
  end
@@ -125,6 +163,7 @@ module RagieRubySdk
125
163
  warn '[DEPRECATED] the `valid?` method is obsolete'
126
164
  return false if @name.nil?
127
165
  return false if @is_default.nil?
166
+ return false if @context_aware.nil?
128
167
  return false if @limits.nil?
129
168
  true
130
169
  end
@@ -149,6 +188,16 @@ module RagieRubySdk
149
188
  @is_default = is_default
150
189
  end
151
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
+
152
201
  # Custom attribute writer method with validation
153
202
  # @param [Object] limits Value to be assigned
154
203
  def limits=(limits)
@@ -167,6 +216,9 @@ module RagieRubySdk
167
216
  name == o.name &&
168
217
  is_default == o.is_default &&
169
218
  limit_exceeded_at == o.limit_exceeded_at &&
219
+ description == o.description &&
220
+ context_aware == o.context_aware &&
221
+ metadata_schema == o.metadata_schema &&
170
222
  limits == o.limits
171
223
  end
172
224
 
@@ -179,7 +231,7 @@ module RagieRubySdk
179
231
  # Calculates hash code according to all attributes.
180
232
  # @return [Integer] Hash code
181
233
  def hash
182
- [name, is_default, limit_exceeded_at, limits].hash
234
+ [name, is_default, limit_exceeded_at, description, context_aware, metadata_schema, limits].hash
183
235
  end
184
236
 
185
237
  # Builds the object from hash
@@ -21,6 +21,12 @@ module RagieRubySdk
21
21
 
22
22
  attr_accessor :limit_exceeded_at
23
23
 
24
+ attr_accessor :description
25
+
26
+ attr_accessor :context_aware
27
+
28
+ attr_accessor :metadata_schema
29
+
24
30
  attr_accessor :limits
25
31
 
26
32
  attr_accessor :stats
@@ -31,6 +37,9 @@ module RagieRubySdk
31
37
  :'name' => :'name',
32
38
  :'is_default' => :'is_default',
33
39
  :'limit_exceeded_at' => :'limit_exceeded_at',
40
+ :'description' => :'description',
41
+ :'context_aware' => :'context_aware',
42
+ :'metadata_schema' => :'metadata_schema',
34
43
  :'limits' => :'limits',
35
44
  :'stats' => :'stats'
36
45
  }
@@ -52,6 +61,9 @@ module RagieRubySdk
52
61
  :'name' => :'String',
53
62
  :'is_default' => :'Boolean',
54
63
  :'limit_exceeded_at' => :'Time',
64
+ :'description' => :'String',
65
+ :'context_aware' => :'Boolean',
66
+ :'metadata_schema' => :'Hash<String, CreatePartitionParamsMetadataSchemaValue>',
55
67
  :'limits' => :'PartitionLimits',
56
68
  :'stats' => :'PartitionStats'
57
69
  }
@@ -61,6 +73,8 @@ module RagieRubySdk
61
73
  def self.openapi_nullable
62
74
  Set.new([
63
75
  :'limit_exceeded_at',
76
+ :'description',
77
+ :'metadata_schema',
64
78
  ])
65
79
  end
66
80
 
@@ -96,6 +110,26 @@ module RagieRubySdk
96
110
  self.limit_exceeded_at = attributes[:'limit_exceeded_at']
97
111
  end
98
112
 
113
+ if attributes.key?(:'description')
114
+ self.description = attributes[:'description']
115
+ else
116
+ self.description = nil
117
+ end
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
+
99
133
  if attributes.key?(:'limits')
100
134
  self.limits = attributes[:'limits']
101
135
  else
@@ -122,6 +156,10 @@ module RagieRubySdk
122
156
  invalid_properties.push('invalid value for "is_default", is_default cannot be nil.')
123
157
  end
124
158
 
159
+ if @context_aware.nil?
160
+ invalid_properties.push('invalid value for "context_aware", context_aware cannot be nil.')
161
+ end
162
+
125
163
  if @limits.nil?
126
164
  invalid_properties.push('invalid value for "limits", limits cannot be nil.')
127
165
  end
@@ -139,6 +177,7 @@ module RagieRubySdk
139
177
  warn '[DEPRECATED] the `valid?` method is obsolete'
140
178
  return false if @name.nil?
141
179
  return false if @is_default.nil?
180
+ return false if @context_aware.nil?
142
181
  return false if @limits.nil?
143
182
  return false if @stats.nil?
144
183
  true
@@ -164,6 +203,16 @@ module RagieRubySdk
164
203
  @is_default = is_default
165
204
  end
166
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
+
167
216
  # Custom attribute writer method with validation
168
217
  # @param [Object] limits Value to be assigned
169
218
  def limits=(limits)
@@ -192,6 +241,9 @@ module RagieRubySdk
192
241
  name == o.name &&
193
242
  is_default == o.is_default &&
194
243
  limit_exceeded_at == o.limit_exceeded_at &&
244
+ description == o.description &&
245
+ context_aware == o.context_aware &&
246
+ metadata_schema == o.metadata_schema &&
195
247
  limits == o.limits &&
196
248
  stats == o.stats
197
249
  end
@@ -205,7 +257,7 @@ module RagieRubySdk
205
257
  # Calculates hash code according to all attributes.
206
258
  # @return [Integer] Hash code
207
259
  def hash
208
- [name, is_default, limit_exceeded_at, limits, stats].hash
260
+ [name, is_default, limit_exceeded_at, description, context_aware, metadata_schema, limits, stats].hash
209
261
  end
210
262
 
211
263
  # Builds the object from hash