carbon_ruby_sdk 0.2.4 → 0.2.5
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 +7 -7
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +8 -8
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +2 -2
- data/lib/carbon_ruby_sdk/models/organization_response.rb +15 -1
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/sync_options.rb +1 -1
- data/lib/carbon_ruby_sdk/models/white_labeling_response.rb +18 -4
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/spec/models/organization_response_spec.rb +6 -0
- data/spec/models/white_labeling_response_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7706176e499f1533fc878b19eedf2ec5861f96ff958fe1e5b06a3165a880af2
|
|
4
|
+
data.tar.gz: 2bbd00bf0d604cc026a3c88b6db2760fc3385d471de31e4ff741d8377b27cc3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58edf104baac33bc87aa26f7bab3b5bbcc206234745f72bffc7bcd4569c07d25cd421c8d28e269db58116035f98930cf51ccb407a905dab8c87118cd769b6623
|
|
7
|
+
data.tar.gz: fa7538776a59eaa0f81583a91166d98d8712501f816ed55fb16abb7f6f7b70eb8e05aecf0968d0f307bff65810edc028a5917c630a341ce62e3a1badacd35a1b
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Connect external data to LLMs, no matter the source.
|
|
8
8
|
|
|
9
|
-
[](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.5)
|
|
10
10
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
@@ -86,7 +86,7 @@ Connect external data to LLMs, no matter the source.
|
|
|
86
86
|
Add to Gemfile:
|
|
87
87
|
|
|
88
88
|
```ruby
|
|
89
|
-
gem 'carbon_ruby_sdk', '~> 0.2.
|
|
89
|
+
gem 'carbon_ruby_sdk', '~> 0.2.5'
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1247,7 +1247,7 @@ result = carbon.integrations.connect_data_source(
|
|
|
1247
1247
|
"prepend_filename_to_chunks" => false,
|
|
1248
1248
|
"sync_files_on_connection" => true,
|
|
1249
1249
|
"set_page_as_boundary" => false,
|
|
1250
|
-
"request_id" => "
|
|
1250
|
+
"request_id" => "3faff6b4-cf31-42c5-b652-a4115dfbc64f",
|
|
1251
1251
|
"enable_file_picker" => true,
|
|
1252
1252
|
"sync_source_items" => true,
|
|
1253
1253
|
"incremental_sync" => false,
|
|
@@ -1466,7 +1466,7 @@ result = carbon.integrations.get_oauth_url(
|
|
|
1466
1466
|
set_page_as_boundary: false,
|
|
1467
1467
|
data_source_id: 1,
|
|
1468
1468
|
connecting_new_account: false,
|
|
1469
|
-
request_id: "
|
|
1469
|
+
request_id: "f3bc66ce-11ad-480a-97d3-8564f86ea2e4",
|
|
1470
1470
|
use_ocr: false,
|
|
1471
1471
|
parse_pdf_tables_with_ocr: false,
|
|
1472
1472
|
enable_file_picker: true,
|
|
@@ -1526,7 +1526,7 @@ Enable OCR for files that support it. Supported formats: pdf
|
|
|
1526
1526
|
##### parse_pdf_tables_with_ocr: `Boolean`<a id="parse_pdf_tables_with_ocr-boolean"></a>
|
|
1527
1527
|
##### enable_file_picker: `Boolean`<a id="enable_file_picker-boolean"></a>
|
|
1528
1528
|
Enable integration's file picker for sources that support it. Supported sources:
|
|
1529
|
-
|
|
1529
|
+
BOX, ONEDRIVE, DROPBOX, GOOGLE_DRIVE, SHAREPOINT
|
|
1530
1530
|
|
|
1531
1531
|
##### sync_source_items: `Boolean`<a id="sync_source_items-boolean"></a>
|
|
1532
1532
|
Enabling this flag will fetch all available content from the source to be listed
|
|
@@ -1788,7 +1788,7 @@ result = carbon.integrations.sync_confluence(
|
|
|
1788
1788
|
prepend_filename_to_chunks: false,
|
|
1789
1789
|
max_items_per_chunk: 1,
|
|
1790
1790
|
set_page_as_boundary: false,
|
|
1791
|
-
request_id: "
|
|
1791
|
+
request_id: "6ae9a1d5-64b6-4ec2-ab39-8869a383e3cf",
|
|
1792
1792
|
use_ocr: false,
|
|
1793
1793
|
parse_pdf_tables_with_ocr: false,
|
|
1794
1794
|
incremental_sync: false,
|
|
@@ -1891,7 +1891,7 @@ result = carbon.integrations.sync_files(
|
|
|
1891
1891
|
prepend_filename_to_chunks: false,
|
|
1892
1892
|
max_items_per_chunk: 1,
|
|
1893
1893
|
set_page_as_boundary: false,
|
|
1894
|
-
request_id: "
|
|
1894
|
+
request_id: "6ae9a1d5-64b6-4ec2-ab39-8869a383e3cf",
|
|
1895
1895
|
use_ocr: false,
|
|
1896
1896
|
parse_pdf_tables_with_ocr: false,
|
|
1897
1897
|
incremental_sync: false,
|
|
@@ -653,13 +653,13 @@ module Carbon
|
|
|
653
653
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
|
654
654
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
|
655
655
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
656
|
-
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources:
|
|
656
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: BOX, ONEDRIVE, DROPBOX, GOOGLE_DRIVE, SHAREPOINT
|
|
657
657
|
# @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
|
658
658
|
# @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
|
659
659
|
# @param file_sync_config [FileSyncConfigNullable]
|
|
660
660
|
# @param body [OAuthURLRequest]
|
|
661
661
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
662
|
-
def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: '
|
|
662
|
+
def get_oauth_url(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: 'f3bc66ce-11ad-480a-97d3-8564f86ea2e4', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
663
663
|
_body = {}
|
|
664
664
|
_body[:tags] = tags if tags != SENTINEL
|
|
665
665
|
_body[:scope] = scope if scope != SENTINEL
|
|
@@ -721,13 +721,13 @@ module Carbon
|
|
|
721
721
|
# @param request_id [String] This request id will be added to all files that get synced using the generated OAuth URL
|
|
722
722
|
# @param use_ocr [Boolean] Enable OCR for files that support it. Supported formats: pdf
|
|
723
723
|
# @param parse_pdf_tables_with_ocr [Boolean]
|
|
724
|
-
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources:
|
|
724
|
+
# @param enable_file_picker [Boolean] Enable integration's file picker for sources that support it. Supported sources: BOX, ONEDRIVE, DROPBOX, GOOGLE_DRIVE, SHAREPOINT
|
|
725
725
|
# @param sync_source_items [Boolean] Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
|
726
726
|
# @param incremental_sync [Boolean] Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX. It will be ignored for other data sources.
|
|
727
727
|
# @param file_sync_config [FileSyncConfigNullable]
|
|
728
728
|
# @param body [OAuthURLRequest]
|
|
729
729
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
730
|
-
def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: '
|
|
730
|
+
def get_oauth_url_with_http_info(service:, tags: SENTINEL, scope: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', zendesk_subdomain: SENTINEL, microsoft_tenant: SENTINEL, sharepoint_site_name: SENTINEL, confluence_subdomain: SENTINEL, generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, salesforce_domain: SENTINEL, sync_files_on_connection: true, set_page_as_boundary: false, data_source_id: SENTINEL, connecting_new_account: false, request_id: 'f3bc66ce-11ad-480a-97d3-8564f86ea2e4', use_ocr: false, parse_pdf_tables_with_ocr: false, enable_file_picker: true, sync_source_items: true, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
731
731
|
_body = {}
|
|
732
732
|
_body[:tags] = tags if tags != SENTINEL
|
|
733
733
|
_body[:scope] = scope if scope != SENTINEL
|
|
@@ -1523,7 +1523,7 @@ module Carbon
|
|
|
1523
1523
|
# @param file_sync_config [FileSyncConfigNullable]
|
|
1524
1524
|
# @param body [SyncFilesRequest]
|
|
1525
1525
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1526
|
-
def sync_confluence(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '
|
|
1526
|
+
def sync_confluence(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '6ae9a1d5-64b6-4ec2-ab39-8869a383e3cf', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
1527
1527
|
_body = {}
|
|
1528
1528
|
_body[:tags] = tags if tags != SENTINEL
|
|
1529
1529
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1571,7 +1571,7 @@ module Carbon
|
|
|
1571
1571
|
# @param file_sync_config [FileSyncConfigNullable]
|
|
1572
1572
|
# @param body [SyncFilesRequest]
|
|
1573
1573
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1574
|
-
def sync_confluence_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '
|
|
1574
|
+
def sync_confluence_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '6ae9a1d5-64b6-4ec2-ab39-8869a383e3cf', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
1575
1575
|
_body = {}
|
|
1576
1576
|
_body[:tags] = tags if tags != SENTINEL
|
|
1577
1577
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1779,7 +1779,7 @@ module Carbon
|
|
|
1779
1779
|
# @param file_sync_config [FileSyncConfigNullable]
|
|
1780
1780
|
# @param body [SyncFilesRequest]
|
|
1781
1781
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1782
|
-
def sync_files(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '
|
|
1782
|
+
def sync_files(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '6ae9a1d5-64b6-4ec2-ab39-8869a383e3cf', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
1783
1783
|
_body = {}
|
|
1784
1784
|
_body[:tags] = tags if tags != SENTINEL
|
|
1785
1785
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -1827,7 +1827,7 @@ module Carbon
|
|
|
1827
1827
|
# @param file_sync_config [FileSyncConfigNullable]
|
|
1828
1828
|
# @param body [SyncFilesRequest]
|
|
1829
1829
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
1830
|
-
def sync_files_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '
|
|
1830
|
+
def sync_files_with_http_info(data_source_id:, ids:, tags: SENTINEL, chunk_size: 1500, chunk_overlap: 20, skip_embedding_generation: false, embedding_model: 'OPENAI', generate_sparse_vectors: false, prepend_filename_to_chunks: false, max_items_per_chunk: SENTINEL, set_page_as_boundary: false, request_id: '6ae9a1d5-64b6-4ec2-ab39-8869a383e3cf', use_ocr: false, parse_pdf_tables_with_ocr: false, incremental_sync: false, file_sync_config: SENTINEL, extra: {})
|
|
1831
1831
|
_body = {}
|
|
1832
1832
|
_body[:tags] = tags if tags != SENTINEL
|
|
1833
1833
|
_body[:data_source_id] = data_source_id if data_source_id != SENTINEL
|
|
@@ -61,7 +61,7 @@ module Carbon
|
|
|
61
61
|
|
|
62
62
|
attr_accessor :parse_pdf_tables_with_ocr
|
|
63
63
|
|
|
64
|
-
# Enable integration's file picker for sources that support it. Supported sources:
|
|
64
|
+
# Enable integration's file picker for sources that support it. Supported sources: BOX, ONEDRIVE, DROPBOX, GOOGLE_DRIVE, SHAREPOINT
|
|
65
65
|
attr_accessor :enable_file_picker
|
|
66
66
|
|
|
67
67
|
# Enabling this flag will fetch all available content from the source to be listed via list items endpoint
|
|
@@ -279,7 +279,7 @@ module Carbon
|
|
|
279
279
|
if attributes.key?(:'request_id')
|
|
280
280
|
self.request_id = attributes[:'request_id']
|
|
281
281
|
else
|
|
282
|
-
self.request_id = '
|
|
282
|
+
self.request_id = 'f3bc66ce-11ad-480a-97d3-8564f86ea2e4'
|
|
283
283
|
end
|
|
284
284
|
|
|
285
285
|
if attributes.key?(:'use_ocr')
|
|
@@ -43,6 +43,8 @@ module Carbon
|
|
|
43
43
|
|
|
44
44
|
attr_accessor :global_user_config
|
|
45
45
|
|
|
46
|
+
attr_accessor :file_sync_usage
|
|
47
|
+
|
|
46
48
|
attr_accessor :created_at
|
|
47
49
|
|
|
48
50
|
attr_accessor :updated_at
|
|
@@ -66,6 +68,7 @@ module Carbon
|
|
|
66
68
|
:'period_ends_at' => :'period_ends_at',
|
|
67
69
|
:'cancel_at_period_end' => :'cancel_at_period_end',
|
|
68
70
|
:'global_user_config' => :'global_user_config',
|
|
71
|
+
:'file_sync_usage' => :'file_sync_usage',
|
|
69
72
|
:'created_at' => :'created_at',
|
|
70
73
|
:'updated_at' => :'updated_at'
|
|
71
74
|
}
|
|
@@ -95,6 +98,7 @@ module Carbon
|
|
|
95
98
|
:'period_ends_at' => :'Time',
|
|
96
99
|
:'cancel_at_period_end' => :'Boolean',
|
|
97
100
|
:'global_user_config' => :'Object',
|
|
101
|
+
:'file_sync_usage' => :'Object',
|
|
98
102
|
:'created_at' => :'Time',
|
|
99
103
|
:'updated_at' => :'Time'
|
|
100
104
|
}
|
|
@@ -191,6 +195,10 @@ module Carbon
|
|
|
191
195
|
self.global_user_config = attributes[:'global_user_config']
|
|
192
196
|
end
|
|
193
197
|
|
|
198
|
+
if attributes.key?(:'file_sync_usage')
|
|
199
|
+
self.file_sync_usage = attributes[:'file_sync_usage']
|
|
200
|
+
end
|
|
201
|
+
|
|
194
202
|
if attributes.key?(:'created_at')
|
|
195
203
|
self.created_at = attributes[:'created_at']
|
|
196
204
|
end
|
|
@@ -244,6 +252,10 @@ module Carbon
|
|
|
244
252
|
invalid_properties.push('invalid value for "global_user_config", global_user_config cannot be nil.')
|
|
245
253
|
end
|
|
246
254
|
|
|
255
|
+
if @file_sync_usage.nil?
|
|
256
|
+
invalid_properties.push('invalid value for "file_sync_usage", file_sync_usage cannot be nil.')
|
|
257
|
+
end
|
|
258
|
+
|
|
247
259
|
if @created_at.nil?
|
|
248
260
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
249
261
|
end
|
|
@@ -268,6 +280,7 @@ module Carbon
|
|
|
268
280
|
return false if @aggregate_num_files_by_source.nil?
|
|
269
281
|
return false if @aggregate_num_files_by_file_format.nil?
|
|
270
282
|
return false if @global_user_config.nil?
|
|
283
|
+
return false if @file_sync_usage.nil?
|
|
271
284
|
return false if @created_at.nil?
|
|
272
285
|
return false if @updated_at.nil?
|
|
273
286
|
true
|
|
@@ -294,6 +307,7 @@ module Carbon
|
|
|
294
307
|
period_ends_at == o.period_ends_at &&
|
|
295
308
|
cancel_at_period_end == o.cancel_at_period_end &&
|
|
296
309
|
global_user_config == o.global_user_config &&
|
|
310
|
+
file_sync_usage == o.file_sync_usage &&
|
|
297
311
|
created_at == o.created_at &&
|
|
298
312
|
updated_at == o.updated_at
|
|
299
313
|
end
|
|
@@ -307,7 +321,7 @@ module Carbon
|
|
|
307
321
|
# Calculates hash code according to all attributes.
|
|
308
322
|
# @return [Integer] Hash code
|
|
309
323
|
def hash
|
|
310
|
-
[id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, aggregate_num_files_by_source, aggregate_num_files_by_file_format, file_statistics_aggregated_at, period_ends_at, cancel_at_period_end, global_user_config, created_at, updated_at].hash
|
|
324
|
+
[id, name, nickname, remove_branding, custom_branding, custom_limits, aggregate_file_size, aggregate_num_characters, aggregate_num_tokens, aggregate_num_embeddings, aggregate_num_files_by_source, aggregate_num_files_by_file_format, file_statistics_aggregated_at, period_ends_at, cancel_at_period_end, global_user_config, file_sync_usage, created_at, updated_at].hash
|
|
311
325
|
end
|
|
312
326
|
|
|
313
327
|
# Builds the object from hash
|
|
@@ -187,7 +187,7 @@ module Carbon
|
|
|
187
187
|
if attributes.key?(:'request_id')
|
|
188
188
|
self.request_id = attributes[:'request_id']
|
|
189
189
|
else
|
|
190
|
-
self.request_id = '
|
|
190
|
+
self.request_id = '6ae9a1d5-64b6-4ec2-ab39-8869a383e3cf'
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
if attributes.key?(:'use_ocr')
|
|
@@ -182,7 +182,7 @@ module Carbon
|
|
|
182
182
|
if attributes.key?(:'request_id')
|
|
183
183
|
self.request_id = attributes[:'request_id']
|
|
184
184
|
else
|
|
185
|
-
self.request_id = '
|
|
185
|
+
self.request_id = '3faff6b4-cf31-42c5-b652-a4115dfbc64f'
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
if attributes.key?(:'enable_file_picker')
|
|
@@ -15,11 +15,14 @@ module Carbon
|
|
|
15
15
|
|
|
16
16
|
attr_accessor :integrations
|
|
17
17
|
|
|
18
|
+
attr_accessor :custom_limits
|
|
19
|
+
|
|
18
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
19
21
|
def self.attribute_map
|
|
20
22
|
{
|
|
21
23
|
:'remove_branding' => :'remove_branding',
|
|
22
|
-
:'integrations' => :'integrations'
|
|
24
|
+
:'integrations' => :'integrations',
|
|
25
|
+
:'custom_limits' => :'custom_limits'
|
|
23
26
|
}
|
|
24
27
|
end
|
|
25
28
|
|
|
@@ -32,7 +35,8 @@ module Carbon
|
|
|
32
35
|
def self.openapi_types
|
|
33
36
|
{
|
|
34
37
|
:'remove_branding' => :'Boolean',
|
|
35
|
-
:'integrations' => :'Object'
|
|
38
|
+
:'integrations' => :'Object',
|
|
39
|
+
:'custom_limits' => :'Object'
|
|
36
40
|
}
|
|
37
41
|
end
|
|
38
42
|
|
|
@@ -64,6 +68,10 @@ module Carbon
|
|
|
64
68
|
if attributes.key?(:'integrations')
|
|
65
69
|
self.integrations = attributes[:'integrations']
|
|
66
70
|
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'custom_limits')
|
|
73
|
+
self.custom_limits = attributes[:'custom_limits']
|
|
74
|
+
end
|
|
67
75
|
end
|
|
68
76
|
|
|
69
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -78,6 +86,10 @@ module Carbon
|
|
|
78
86
|
invalid_properties.push('invalid value for "integrations", integrations cannot be nil.')
|
|
79
87
|
end
|
|
80
88
|
|
|
89
|
+
if @custom_limits.nil?
|
|
90
|
+
invalid_properties.push('invalid value for "custom_limits", custom_limits cannot be nil.')
|
|
91
|
+
end
|
|
92
|
+
|
|
81
93
|
invalid_properties
|
|
82
94
|
end
|
|
83
95
|
|
|
@@ -86,6 +98,7 @@ module Carbon
|
|
|
86
98
|
def valid?
|
|
87
99
|
return false if @remove_branding.nil?
|
|
88
100
|
return false if @integrations.nil?
|
|
101
|
+
return false if @custom_limits.nil?
|
|
89
102
|
true
|
|
90
103
|
end
|
|
91
104
|
|
|
@@ -95,7 +108,8 @@ module Carbon
|
|
|
95
108
|
return true if self.equal?(o)
|
|
96
109
|
self.class == o.class &&
|
|
97
110
|
remove_branding == o.remove_branding &&
|
|
98
|
-
integrations == o.integrations
|
|
111
|
+
integrations == o.integrations &&
|
|
112
|
+
custom_limits == o.custom_limits
|
|
99
113
|
end
|
|
100
114
|
|
|
101
115
|
# @see the `==` method
|
|
@@ -107,7 +121,7 @@ module Carbon
|
|
|
107
121
|
# Calculates hash code according to all attributes.
|
|
108
122
|
# @return [Integer] Hash code
|
|
109
123
|
def hash
|
|
110
|
-
[remove_branding, integrations].hash
|
|
124
|
+
[remove_branding, integrations, custom_limits].hash
|
|
111
125
|
end
|
|
112
126
|
|
|
113
127
|
# Builds the object from hash
|
|
@@ -115,6 +115,12 @@ describe Carbon::OrganizationResponse do
|
|
|
115
115
|
end
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
+
describe 'test attribute "file_sync_usage"' do
|
|
119
|
+
it 'should work' do
|
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
118
124
|
describe 'test attribute "created_at"' do
|
|
119
125
|
it 'should work' do
|
|
120
126
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: carbon_ruby_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konfig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-06-
|
|
11
|
+
date: 2024-06-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|