carbon_ruby_sdk 0.1.32 → 0.1.34
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/Gemfile.lock +1 -1
- data/README.md +41 -13
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +42 -22
- data/lib/carbon_ruby_sdk/models/data_source_type.rb +2 -1
- data/lib/carbon_ruby_sdk/models/data_source_type_nullable.rb +2 -1
- data/lib/carbon_ruby_sdk/models/fetch_urls_response.rb +14 -4
- data/lib/carbon_ruby_sdk/models/{helpdesk_file_sync_config.rb → file_sync_config.rb} +28 -14
- data/lib/carbon_ruby_sdk/models/{helpdesk_file_sync_config_nullable.rb → file_sync_config_nullable.rb} +28 -14
- data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +1 -1
- data/lib/carbon_ruby_sdk/models/gmail_sync_input.rb +26 -5
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +3 -3
- data/lib/carbon_ruby_sdk/models/outlook_sync_input.rb +26 -5
- data/lib/carbon_ruby_sdk/models/s3_file_sync_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/sync_files_request.rb +2 -2
- data/lib/carbon_ruby_sdk/models/sync_options.rb +2 -2
- data/lib/carbon_ruby_sdk/models/user_file.rb +15 -11
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +2 -4
- data/spec/models/fetch_urls_response_spec.rb +6 -0
- data/spec/models/file_sync_config_nullable_spec.rb +40 -0
- data/spec/models/file_sync_config_spec.rb +40 -0
- data/spec/models/gmail_sync_input_spec.rb +12 -0
- data/spec/models/outlook_sync_input_spec.rb +12 -0
- data/spec/models/s3_file_sync_input_spec.rb +6 -0
- data/spec/models/user_file_spec.rb +2 -2
- metadata +8 -14
- data/lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config.rb +0 -217
- data/lib/carbon_ruby_sdk/models/helpdesk_global_file_sync_config_nullable.rb +0 -218
- data/spec/models/helpdesk_file_sync_config_nullable_spec.rb +0 -34
- data/spec/models/helpdesk_file_sync_config_spec.rb +0 -34
- data/spec/models/helpdesk_global_file_sync_config_nullable_spec.rb +0 -28
- data/spec/models/helpdesk_global_file_sync_config_spec.rb +0 -28
@@ -10,16 +10,22 @@ require 'date'
|
|
10
10
|
require 'time'
|
11
11
|
|
12
12
|
module Carbon
|
13
|
-
class
|
14
|
-
|
13
|
+
class FileSyncConfig
|
14
|
+
# File types to automatically sync when the data source connects. Only a subset of file types can be controlled. If not supported, then they will always be synced
|
15
|
+
attr_accessor :auto_synced_source_types
|
15
16
|
|
17
|
+
# Automatically sync attachments from files where supported. Currently applies to Helpdesk Tickets
|
16
18
|
attr_accessor :sync_attachments
|
17
19
|
|
20
|
+
# Detect audio language before transcription for audio files
|
21
|
+
attr_accessor :detect_audio_language
|
22
|
+
|
18
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
19
24
|
def self.attribute_map
|
20
25
|
{
|
21
|
-
:'
|
22
|
-
:'sync_attachments' => :'sync_attachments'
|
26
|
+
:'auto_synced_source_types' => :'auto_synced_source_types',
|
27
|
+
:'sync_attachments' => :'sync_attachments',
|
28
|
+
:'detect_audio_language' => :'detect_audio_language'
|
23
29
|
}
|
24
30
|
end
|
25
31
|
|
@@ -31,8 +37,9 @@ module Carbon
|
|
31
37
|
# Attribute type mapping.
|
32
38
|
def self.openapi_types
|
33
39
|
{
|
34
|
-
:'
|
35
|
-
:'sync_attachments' => :'Boolean'
|
40
|
+
:'auto_synced_source_types' => :'Array<HelpdeskFileTypes>',
|
41
|
+
:'sync_attachments' => :'Boolean',
|
42
|
+
:'detect_audio_language' => :'Boolean'
|
36
43
|
}
|
37
44
|
end
|
38
45
|
|
@@ -46,20 +53,20 @@ module Carbon
|
|
46
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
54
|
def initialize(attributes = {})
|
48
55
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::FileSyncConfig` initialize method"
|
50
57
|
end
|
51
58
|
|
52
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::FileSyncConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
63
|
end
|
57
64
|
h[k.to_sym] = v
|
58
65
|
}
|
59
66
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
if (value = attributes[:'
|
62
|
-
self.
|
67
|
+
if attributes.key?(:'auto_synced_source_types')
|
68
|
+
if (value = attributes[:'auto_synced_source_types']).is_a?(Array)
|
69
|
+
self.auto_synced_source_types = value
|
63
70
|
end
|
64
71
|
end
|
65
72
|
|
@@ -68,6 +75,12 @@ module Carbon
|
|
68
75
|
else
|
69
76
|
self.sync_attachments = false
|
70
77
|
end
|
78
|
+
|
79
|
+
if attributes.key?(:'detect_audio_language')
|
80
|
+
self.detect_audio_language = attributes[:'detect_audio_language']
|
81
|
+
else
|
82
|
+
self.detect_audio_language = false
|
83
|
+
end
|
71
84
|
end
|
72
85
|
|
73
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -88,8 +101,9 @@ module Carbon
|
|
88
101
|
def ==(o)
|
89
102
|
return true if self.equal?(o)
|
90
103
|
self.class == o.class &&
|
91
|
-
|
92
|
-
sync_attachments == o.sync_attachments
|
104
|
+
auto_synced_source_types == o.auto_synced_source_types &&
|
105
|
+
sync_attachments == o.sync_attachments &&
|
106
|
+
detect_audio_language == o.detect_audio_language
|
93
107
|
end
|
94
108
|
|
95
109
|
# @see the `==` method
|
@@ -101,7 +115,7 @@ module Carbon
|
|
101
115
|
# Calculates hash code according to all attributes.
|
102
116
|
# @return [Integer] Hash code
|
103
117
|
def hash
|
104
|
-
[
|
118
|
+
[auto_synced_source_types, sync_attachments, detect_audio_language].hash
|
105
119
|
end
|
106
120
|
|
107
121
|
# Builds the object from hash
|
@@ -11,16 +11,22 @@ require 'time'
|
|
11
11
|
|
12
12
|
module Carbon
|
13
13
|
# Used to configure file syncing for certain connectors when sync_files_on_connection is set to true
|
14
|
-
class
|
15
|
-
|
14
|
+
class FileSyncConfigNullable
|
15
|
+
# File types to automatically sync when the data source connects. Only a subset of file types can be controlled. If not supported, then they will always be synced
|
16
|
+
attr_accessor :auto_synced_source_types
|
16
17
|
|
18
|
+
# Automatically sync attachments from files where supported. Currently applies to Helpdesk Tickets
|
17
19
|
attr_accessor :sync_attachments
|
18
20
|
|
21
|
+
# Detect audio language before transcription for audio files
|
22
|
+
attr_accessor :detect_audio_language
|
23
|
+
|
19
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
25
|
def self.attribute_map
|
21
26
|
{
|
22
|
-
:'
|
23
|
-
:'sync_attachments' => :'sync_attachments'
|
27
|
+
:'auto_synced_source_types' => :'auto_synced_source_types',
|
28
|
+
:'sync_attachments' => :'sync_attachments',
|
29
|
+
:'detect_audio_language' => :'detect_audio_language'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
@@ -32,8 +38,9 @@ module Carbon
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
35
|
-
:'
|
36
|
-
:'sync_attachments' => :'Boolean'
|
41
|
+
:'auto_synced_source_types' => :'Array<HelpdeskFileTypes>',
|
42
|
+
:'sync_attachments' => :'Boolean',
|
43
|
+
:'detect_audio_language' => :'Boolean'
|
37
44
|
}
|
38
45
|
end
|
39
46
|
|
@@ -47,20 +54,20 @@ module Carbon
|
|
47
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
55
|
def initialize(attributes = {})
|
49
56
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::FileSyncConfigNullable` initialize method"
|
51
58
|
end
|
52
59
|
|
53
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::FileSyncConfigNullable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
64
|
end
|
58
65
|
h[k.to_sym] = v
|
59
66
|
}
|
60
67
|
|
61
|
-
if attributes.key?(:'
|
62
|
-
if (value = attributes[:'
|
63
|
-
self.
|
68
|
+
if attributes.key?(:'auto_synced_source_types')
|
69
|
+
if (value = attributes[:'auto_synced_source_types']).is_a?(Array)
|
70
|
+
self.auto_synced_source_types = value
|
64
71
|
end
|
65
72
|
end
|
66
73
|
|
@@ -69,6 +76,12 @@ module Carbon
|
|
69
76
|
else
|
70
77
|
self.sync_attachments = false
|
71
78
|
end
|
79
|
+
|
80
|
+
if attributes.key?(:'detect_audio_language')
|
81
|
+
self.detect_audio_language = attributes[:'detect_audio_language']
|
82
|
+
else
|
83
|
+
self.detect_audio_language = false
|
84
|
+
end
|
72
85
|
end
|
73
86
|
|
74
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -89,8 +102,9 @@ module Carbon
|
|
89
102
|
def ==(o)
|
90
103
|
return true if self.equal?(o)
|
91
104
|
self.class == o.class &&
|
92
|
-
|
93
|
-
sync_attachments == o.sync_attachments
|
105
|
+
auto_synced_source_types == o.auto_synced_source_types &&
|
106
|
+
sync_attachments == o.sync_attachments &&
|
107
|
+
detect_audio_language == o.detect_audio_language
|
94
108
|
end
|
95
109
|
|
96
110
|
# @see the `==` method
|
@@ -102,7 +116,7 @@ module Carbon
|
|
102
116
|
# Calculates hash code according to all attributes.
|
103
117
|
# @return [Integer] Hash code
|
104
118
|
def hash
|
105
|
-
[
|
119
|
+
[auto_synced_source_types, sync_attachments, detect_audio_language].hash
|
106
120
|
end
|
107
121
|
|
108
122
|
# Builds the object from hash
|
@@ -33,6 +33,10 @@ module Carbon
|
|
33
33
|
|
34
34
|
attr_accessor :sync_attachments
|
35
35
|
|
36
|
+
attr_accessor :file_sync_config
|
37
|
+
|
38
|
+
attr_accessor :incremental_sync
|
39
|
+
|
36
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
41
|
def self.attribute_map
|
38
42
|
{
|
@@ -46,7 +50,9 @@ module Carbon
|
|
46
50
|
:'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
|
47
51
|
:'data_source_id' => :'data_source_id',
|
48
52
|
:'request_id' => :'request_id',
|
49
|
-
:'sync_attachments' => :'sync_attachments'
|
53
|
+
:'sync_attachments' => :'sync_attachments',
|
54
|
+
:'file_sync_config' => :'file_sync_config',
|
55
|
+
:'incremental_sync' => :'incremental_sync'
|
50
56
|
}
|
51
57
|
end
|
52
58
|
|
@@ -68,7 +74,9 @@ module Carbon
|
|
68
74
|
:'prepend_filename_to_chunks' => :'Boolean',
|
69
75
|
:'data_source_id' => :'Integer',
|
70
76
|
:'request_id' => :'String',
|
71
|
-
:'sync_attachments' => :'Boolean'
|
77
|
+
:'sync_attachments' => :'Boolean',
|
78
|
+
:'file_sync_config' => :'FileSyncConfigNullable',
|
79
|
+
:'incremental_sync' => :'Boolean'
|
72
80
|
}
|
73
81
|
end
|
74
82
|
|
@@ -83,7 +91,8 @@ module Carbon
|
|
83
91
|
:'prepend_filename_to_chunks',
|
84
92
|
:'data_source_id',
|
85
93
|
:'request_id',
|
86
|
-
:'sync_attachments'
|
94
|
+
:'sync_attachments',
|
95
|
+
:'file_sync_config',
|
87
96
|
])
|
88
97
|
end
|
89
98
|
|
@@ -159,6 +168,16 @@ module Carbon
|
|
159
168
|
else
|
160
169
|
self.sync_attachments = false
|
161
170
|
end
|
171
|
+
|
172
|
+
if attributes.key?(:'file_sync_config')
|
173
|
+
self.file_sync_config = attributes[:'file_sync_config']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'incremental_sync')
|
177
|
+
self.incremental_sync = attributes[:'incremental_sync']
|
178
|
+
else
|
179
|
+
self.incremental_sync = false
|
180
|
+
end
|
162
181
|
end
|
163
182
|
|
164
183
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,7 +213,9 @@ module Carbon
|
|
194
213
|
prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
|
195
214
|
data_source_id == o.data_source_id &&
|
196
215
|
request_id == o.request_id &&
|
197
|
-
sync_attachments == o.sync_attachments
|
216
|
+
sync_attachments == o.sync_attachments &&
|
217
|
+
file_sync_config == o.file_sync_config &&
|
218
|
+
incremental_sync == o.incremental_sync
|
198
219
|
end
|
199
220
|
|
200
221
|
# @see the `==` method
|
@@ -206,7 +227,7 @@ module Carbon
|
|
206
227
|
# Calculates hash code according to all attributes.
|
207
228
|
# @return [Integer] Hash code
|
208
229
|
def hash
|
209
|
-
[tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments].hash
|
230
|
+
[tags, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments, file_sync_config, incremental_sync].hash
|
210
231
|
end
|
211
232
|
|
212
233
|
# Builds the object from hash
|
@@ -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: ONEDRIVE, GOOGLE_DRIVE, DROPBOX, SHAREPOINT, BOX
|
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
|
@@ -137,7 +137,7 @@ module Carbon
|
|
137
137
|
:'enable_file_picker' => :'Boolean',
|
138
138
|
:'sync_source_items' => :'Boolean',
|
139
139
|
:'incremental_sync' => :'Boolean',
|
140
|
-
:'file_sync_config' => :'
|
140
|
+
:'file_sync_config' => :'FileSyncConfigNullable'
|
141
141
|
}
|
142
142
|
end
|
143
143
|
|
@@ -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 = 'eb3e536e-fa3e-4f8e-9a22-25f70393e759'
|
283
283
|
end
|
284
284
|
|
285
285
|
if attributes.key?(:'use_ocr')
|
@@ -35,6 +35,10 @@ module Carbon
|
|
35
35
|
|
36
36
|
attr_accessor :sync_attachments
|
37
37
|
|
38
|
+
attr_accessor :file_sync_config
|
39
|
+
|
40
|
+
attr_accessor :incremental_sync
|
41
|
+
|
38
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
43
|
def self.attribute_map
|
40
44
|
{
|
@@ -49,7 +53,9 @@ module Carbon
|
|
49
53
|
:'prepend_filename_to_chunks' => :'prepend_filename_to_chunks',
|
50
54
|
:'data_source_id' => :'data_source_id',
|
51
55
|
:'request_id' => :'request_id',
|
52
|
-
:'sync_attachments' => :'sync_attachments'
|
56
|
+
:'sync_attachments' => :'sync_attachments',
|
57
|
+
:'file_sync_config' => :'file_sync_config',
|
58
|
+
:'incremental_sync' => :'incremental_sync'
|
53
59
|
}
|
54
60
|
end
|
55
61
|
|
@@ -72,7 +78,9 @@ module Carbon
|
|
72
78
|
:'prepend_filename_to_chunks' => :'Boolean',
|
73
79
|
:'data_source_id' => :'Integer',
|
74
80
|
:'request_id' => :'String',
|
75
|
-
:'sync_attachments' => :'Boolean'
|
81
|
+
:'sync_attachments' => :'Boolean',
|
82
|
+
:'file_sync_config' => :'FileSyncConfigNullable',
|
83
|
+
:'incremental_sync' => :'Boolean'
|
76
84
|
}
|
77
85
|
end
|
78
86
|
|
@@ -88,7 +96,8 @@ module Carbon
|
|
88
96
|
:'prepend_filename_to_chunks',
|
89
97
|
:'data_source_id',
|
90
98
|
:'request_id',
|
91
|
-
:'sync_attachments'
|
99
|
+
:'sync_attachments',
|
100
|
+
:'file_sync_config',
|
92
101
|
])
|
93
102
|
end
|
94
103
|
|
@@ -170,6 +179,16 @@ module Carbon
|
|
170
179
|
else
|
171
180
|
self.sync_attachments = false
|
172
181
|
end
|
182
|
+
|
183
|
+
if attributes.key?(:'file_sync_config')
|
184
|
+
self.file_sync_config = attributes[:'file_sync_config']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.key?(:'incremental_sync')
|
188
|
+
self.incremental_sync = attributes[:'incremental_sync']
|
189
|
+
else
|
190
|
+
self.incremental_sync = false
|
191
|
+
end
|
173
192
|
end
|
174
193
|
|
175
194
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -206,7 +225,9 @@ module Carbon
|
|
206
225
|
prepend_filename_to_chunks == o.prepend_filename_to_chunks &&
|
207
226
|
data_source_id == o.data_source_id &&
|
208
227
|
request_id == o.request_id &&
|
209
|
-
sync_attachments == o.sync_attachments
|
228
|
+
sync_attachments == o.sync_attachments &&
|
229
|
+
file_sync_config == o.file_sync_config &&
|
230
|
+
incremental_sync == o.incremental_sync
|
210
231
|
end
|
211
232
|
|
212
233
|
# @see the `==` method
|
@@ -218,7 +239,7 @@ module Carbon
|
|
218
239
|
# Calculates hash code according to all attributes.
|
219
240
|
# @return [Integer] Hash code
|
220
241
|
def hash
|
221
|
-
[tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments].hash
|
242
|
+
[tags, folder, filters, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, data_source_id, request_id, sync_attachments, file_sync_config, incremental_sync].hash
|
222
243
|
end
|
223
244
|
|
224
245
|
# Builds the object from hash
|
@@ -40,6 +40,8 @@ module Carbon
|
|
40
40
|
|
41
41
|
attr_accessor :parse_pdf_tables_with_ocr
|
42
42
|
|
43
|
+
attr_accessor :file_sync_config
|
44
|
+
|
43
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
46
|
def self.attribute_map
|
45
47
|
{
|
@@ -56,7 +58,8 @@ module Carbon
|
|
56
58
|
:'data_source_id' => :'data_source_id',
|
57
59
|
:'request_id' => :'request_id',
|
58
60
|
:'use_ocr' => :'use_ocr',
|
59
|
-
:'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr'
|
61
|
+
:'parse_pdf_tables_with_ocr' => :'parse_pdf_tables_with_ocr',
|
62
|
+
:'file_sync_config' => :'file_sync_config'
|
60
63
|
}
|
61
64
|
end
|
62
65
|
|
@@ -81,7 +84,8 @@ module Carbon
|
|
81
84
|
:'data_source_id' => :'Integer',
|
82
85
|
:'request_id' => :'String',
|
83
86
|
:'use_ocr' => :'Boolean',
|
84
|
-
:'parse_pdf_tables_with_ocr' => :'Boolean'
|
87
|
+
:'parse_pdf_tables_with_ocr' => :'Boolean',
|
88
|
+
:'file_sync_config' => :'FileSyncConfigNullable'
|
85
89
|
}
|
86
90
|
end
|
87
91
|
|
@@ -98,7 +102,8 @@ module Carbon
|
|
98
102
|
:'data_source_id',
|
99
103
|
:'request_id',
|
100
104
|
:'use_ocr',
|
101
|
-
:'parse_pdf_tables_with_ocr'
|
105
|
+
:'parse_pdf_tables_with_ocr',
|
106
|
+
:'file_sync_config'
|
102
107
|
])
|
103
108
|
end
|
104
109
|
|
@@ -192,6 +197,10 @@ module Carbon
|
|
192
197
|
else
|
193
198
|
self.parse_pdf_tables_with_ocr = false
|
194
199
|
end
|
200
|
+
|
201
|
+
if attributes.key?(:'file_sync_config')
|
202
|
+
self.file_sync_config = attributes[:'file_sync_config']
|
203
|
+
end
|
195
204
|
end
|
196
205
|
|
197
206
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -230,7 +239,8 @@ module Carbon
|
|
230
239
|
data_source_id == o.data_source_id &&
|
231
240
|
request_id == o.request_id &&
|
232
241
|
use_ocr == o.use_ocr &&
|
233
|
-
parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr
|
242
|
+
parse_pdf_tables_with_ocr == o.parse_pdf_tables_with_ocr &&
|
243
|
+
file_sync_config == o.file_sync_config
|
234
244
|
end
|
235
245
|
|
236
246
|
# @see the `==` method
|
@@ -242,7 +252,7 @@ module Carbon
|
|
242
252
|
# Calculates hash code according to all attributes.
|
243
253
|
# @return [Integer] Hash code
|
244
254
|
def hash
|
245
|
-
[tags, ids, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, set_page_as_boundary, data_source_id, request_id, use_ocr, parse_pdf_tables_with_ocr].hash
|
255
|
+
[tags, ids, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, set_page_as_boundary, data_source_id, request_id, use_ocr, parse_pdf_tables_with_ocr, file_sync_config].hash
|
246
256
|
end
|
247
257
|
|
248
258
|
# Builds the object from hash
|
@@ -90,7 +90,7 @@ module Carbon
|
|
90
90
|
:'use_ocr' => :'Boolean',
|
91
91
|
:'parse_pdf_tables_with_ocr' => :'Boolean',
|
92
92
|
:'incremental_sync' => :'Boolean',
|
93
|
-
:'file_sync_config' => :'
|
93
|
+
:'file_sync_config' => :'FileSyncConfigNullable'
|
94
94
|
}
|
95
95
|
end
|
96
96
|
|
@@ -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 = '27036d05-9737-4197-b0c6-e9fb9f60f976'
|
191
191
|
end
|
192
192
|
|
193
193
|
if attributes.key?(:'use_ocr')
|
@@ -88,7 +88,7 @@ module Carbon
|
|
88
88
|
:'enable_file_picker' => :'Boolean',
|
89
89
|
:'sync_source_items' => :'Boolean',
|
90
90
|
:'incremental_sync' => :'Boolean',
|
91
|
-
:'file_sync_config' => :'
|
91
|
+
:'file_sync_config' => :'FileSyncConfigNullable'
|
92
92
|
}
|
93
93
|
end
|
94
94
|
|
@@ -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 = '18ef9025-4c76-443c-a115-ba77b17afd8b'
|
186
186
|
end
|
187
187
|
|
188
188
|
if attributes.key?(:'enable_file_picker')
|
@@ -67,10 +67,10 @@ module Carbon
|
|
67
67
|
|
68
68
|
attr_accessor :generate_sparse_vectors
|
69
69
|
|
70
|
-
attr_accessor :audio_properties
|
71
|
-
|
72
70
|
attr_accessor :request_id
|
73
71
|
|
72
|
+
attr_accessor :sync_properties
|
73
|
+
|
74
74
|
attr_accessor :created_at
|
75
75
|
|
76
76
|
attr_accessor :updated_at
|
@@ -106,8 +106,8 @@ module Carbon
|
|
106
106
|
:'skip_embedding_generation' => :'skip_embedding_generation',
|
107
107
|
:'source_created_at' => :'source_created_at',
|
108
108
|
:'generate_sparse_vectors' => :'generate_sparse_vectors',
|
109
|
-
:'audio_properties' => :'audio_properties',
|
110
109
|
:'request_id' => :'request_id',
|
110
|
+
:'sync_properties' => :'sync_properties',
|
111
111
|
:'created_at' => :'created_at',
|
112
112
|
:'updated_at' => :'updated_at'
|
113
113
|
}
|
@@ -149,8 +149,8 @@ module Carbon
|
|
149
149
|
:'skip_embedding_generation' => :'Boolean',
|
150
150
|
:'source_created_at' => :'Time',
|
151
151
|
:'generate_sparse_vectors' => :'Boolean',
|
152
|
-
:'audio_properties' => :'Object',
|
153
152
|
:'request_id' => :'String',
|
153
|
+
:'sync_properties' => :'Object',
|
154
154
|
:'created_at' => :'Time',
|
155
155
|
:'updated_at' => :'Time'
|
156
156
|
}
|
@@ -179,7 +179,6 @@ module Carbon
|
|
179
179
|
:'additional_presigned_urls',
|
180
180
|
:'source_created_at',
|
181
181
|
:'generate_sparse_vectors',
|
182
|
-
:'audio_properties',
|
183
182
|
:'request_id',
|
184
183
|
])
|
185
184
|
end
|
@@ -313,14 +312,14 @@ module Carbon
|
|
313
312
|
self.generate_sparse_vectors = attributes[:'generate_sparse_vectors']
|
314
313
|
end
|
315
314
|
|
316
|
-
if attributes.key?(:'audio_properties')
|
317
|
-
self.audio_properties = attributes[:'audio_properties']
|
318
|
-
end
|
319
|
-
|
320
315
|
if attributes.key?(:'request_id')
|
321
316
|
self.request_id = attributes[:'request_id']
|
322
317
|
end
|
323
318
|
|
319
|
+
if attributes.key?(:'sync_properties')
|
320
|
+
self.sync_properties = attributes[:'sync_properties']
|
321
|
+
end
|
322
|
+
|
324
323
|
if attributes.key?(:'created_at')
|
325
324
|
self.created_at = attributes[:'created_at']
|
326
325
|
end
|
@@ -366,6 +365,10 @@ module Carbon
|
|
366
365
|
invalid_properties.push('invalid value for "skip_embedding_generation", skip_embedding_generation cannot be nil.')
|
367
366
|
end
|
368
367
|
|
368
|
+
if @sync_properties.nil?
|
369
|
+
invalid_properties.push('invalid value for "sync_properties", sync_properties cannot be nil.')
|
370
|
+
end
|
371
|
+
|
369
372
|
if @created_at.nil?
|
370
373
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
371
374
|
end
|
@@ -388,6 +391,7 @@ module Carbon
|
|
388
391
|
return false if @sync_status.nil?
|
389
392
|
return false if @ocr_properties.nil?
|
390
393
|
return false if @skip_embedding_generation.nil?
|
394
|
+
return false if @sync_properties.nil?
|
391
395
|
return false if @created_at.nil?
|
392
396
|
return false if @updated_at.nil?
|
393
397
|
true
|
@@ -426,8 +430,8 @@ module Carbon
|
|
426
430
|
skip_embedding_generation == o.skip_embedding_generation &&
|
427
431
|
source_created_at == o.source_created_at &&
|
428
432
|
generate_sparse_vectors == o.generate_sparse_vectors &&
|
429
|
-
audio_properties == o.audio_properties &&
|
430
433
|
request_id == o.request_id &&
|
434
|
+
sync_properties == o.sync_properties &&
|
431
435
|
created_at == o.created_at &&
|
432
436
|
updated_at == o.updated_at
|
433
437
|
end
|
@@ -441,7 +445,7 @@ module Carbon
|
|
441
445
|
# Calculates hash code according to all attributes.
|
442
446
|
# @return [Integer] Hash code
|
443
447
|
def hash
|
444
|
-
[tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, ocr_job_started_at, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors,
|
448
|
+
[tags, id, source, organization_id, organization_supplied_user_id, organization_user_data_source_id, external_file_id, external_url, sync_status, sync_error_message, last_sync, file_statistics, file_metadata, embedding_properties, chunk_size, chunk_overlap, chunk_properties, ocr_properties, ocr_job_started_at, name, parent_id, enable_auto_sync, presigned_url, parsed_text_url, additional_presigned_urls, skip_embedding_generation, source_created_at, generate_sparse_vectors, request_id, sync_properties, created_at, updated_at].hash
|
445
449
|
end
|
446
450
|
|
447
451
|
# Builds the object from hash
|
data/lib/carbon_ruby_sdk.rb
CHANGED
@@ -55,6 +55,8 @@ require 'carbon_ruby_sdk/models/file_formats'
|
|
55
55
|
require 'carbon_ruby_sdk/models/file_formats_nullable'
|
56
56
|
require 'carbon_ruby_sdk/models/file_statistics'
|
57
57
|
require 'carbon_ruby_sdk/models/file_statistics_nullable'
|
58
|
+
require 'carbon_ruby_sdk/models/file_sync_config'
|
59
|
+
require 'carbon_ruby_sdk/models/file_sync_config_nullable'
|
58
60
|
require 'carbon_ruby_sdk/models/fresh_desk_connect_request'
|
59
61
|
require 'carbon_ruby_sdk/models/freskdesk_authentication'
|
60
62
|
require 'carbon_ruby_sdk/models/generic_success_response'
|
@@ -67,11 +69,7 @@ require 'carbon_ruby_sdk/models/github_connect_request'
|
|
67
69
|
require 'carbon_ruby_sdk/models/github_fetch_repos_request'
|
68
70
|
require 'carbon_ruby_sdk/models/gmail_sync_input'
|
69
71
|
require 'carbon_ruby_sdk/models/http_validation_error'
|
70
|
-
require 'carbon_ruby_sdk/models/helpdesk_file_sync_config'
|
71
|
-
require 'carbon_ruby_sdk/models/helpdesk_file_sync_config_nullable'
|
72
72
|
require 'carbon_ruby_sdk/models/helpdesk_file_types'
|
73
|
-
require 'carbon_ruby_sdk/models/helpdesk_global_file_sync_config'
|
74
|
-
require 'carbon_ruby_sdk/models/helpdesk_global_file_sync_config_nullable'
|
75
73
|
require 'carbon_ruby_sdk/models/hybrid_search_tuning_params'
|
76
74
|
require 'carbon_ruby_sdk/models/hybrid_search_tuning_params_nullable'
|
77
75
|
require 'carbon_ruby_sdk/models/ids_property'
|