carbon_ruby_sdk 0.2.42 → 0.2.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +145 -3
  4. data/lib/carbon_ruby_sdk/api/data_sources_api.rb +196 -0
  5. data/lib/carbon_ruby_sdk/api/files_api.rb +4 -4
  6. data/lib/carbon_ruby_sdk/api/integrations_api.rb +48 -16
  7. data/lib/carbon_ruby_sdk/api/users_api.rb +71 -0
  8. data/lib/carbon_ruby_sdk/models/add_data_source_tags_input.rb +234 -0
  9. data/lib/carbon_ruby_sdk/models/authentication_property.rb +1 -5
  10. data/lib/carbon_ruby_sdk/models/azure_blob_auth_request.rb +14 -4
  11. data/lib/carbon_ruby_sdk/models/cold_storage_props.rb +1 -1
  12. data/lib/carbon_ruby_sdk/models/external_source_item.rb +11 -1
  13. data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +15 -5
  14. data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +15 -5
  15. data/lib/carbon_ruby_sdk/models/github_connect_request.rb +14 -4
  16. data/lib/carbon_ruby_sdk/models/guru_connect_request.rb +15 -5
  17. data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +15 -5
  18. data/lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb +15 -1
  19. data/lib/carbon_ruby_sdk/models/organization_user_data_source_filters.rb +12 -1
  20. data/lib/carbon_ruby_sdk/models/pagination.rb +15 -4
  21. data/lib/carbon_ruby_sdk/models/remove_data_source_tags_input.rb +242 -0
  22. data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +15 -5
  23. data/lib/carbon_ruby_sdk/models/s3_auth_request.rb +15 -5
  24. data/lib/carbon_ruby_sdk/models/sharepoint_authentication.rb +1 -5
  25. data/lib/carbon_ruby_sdk/models/sync_options.rb +15 -5
  26. data/lib/carbon_ruby_sdk/models/user_response.rb +18 -4
  27. data/lib/carbon_ruby_sdk/models/white_labeling_response.rb +18 -4
  28. data/lib/carbon_ruby_sdk/version.rb +1 -1
  29. data/lib/carbon_ruby_sdk.rb +2 -0
  30. data/spec/api/data_sources_api_spec.rb +22 -0
  31. data/spec/api/files_api_spec.rb +1 -1
  32. data/spec/api/users_api_spec.rb +10 -0
  33. data/spec/models/add_data_source_tags_input_spec.rb +34 -0
  34. data/spec/models/azure_blob_auth_request_spec.rb +6 -0
  35. data/spec/models/external_source_item_spec.rb +6 -0
  36. data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
  37. data/spec/models/gitbook_connect_request_spec.rb +6 -0
  38. data/spec/models/github_connect_request_spec.rb +6 -0
  39. data/spec/models/guru_connect_request_spec.rb +6 -0
  40. data/spec/models/o_auth_url_request_spec.rb +6 -0
  41. data/spec/models/organization_user_data_source_api_spec.rb +6 -0
  42. data/spec/models/organization_user_data_source_filters_spec.rb +6 -0
  43. data/spec/models/pagination_spec.rb +6 -0
  44. data/spec/models/remove_data_source_tags_input_spec.rb +40 -0
  45. data/spec/models/rss_feed_input_spec.rb +6 -0
  46. data/spec/models/s3_auth_request_spec.rb +6 -0
  47. data/spec/models/sync_options_spec.rb +6 -0
  48. data/spec/models/user_response_spec.rb +6 -0
  49. data/spec/models/white_labeling_response_spec.rb +6 -0
  50. metadata +8 -2
@@ -17,12 +17,16 @@ module Carbon
17
17
 
18
18
  attr_accessor :sync_source_items
19
19
 
20
+ # Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.
21
+ attr_accessor :data_source_tags
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
26
  :'account_name' => :'account_name',
24
27
  :'account_key' => :'account_key',
25
- :'sync_source_items' => :'sync_source_items'
28
+ :'sync_source_items' => :'sync_source_items',
29
+ :'data_source_tags' => :'data_source_tags'
26
30
  }
27
31
  end
28
32
 
@@ -36,7 +40,8 @@ module Carbon
36
40
  {
37
41
  :'account_name' => :'String',
38
42
  :'account_key' => :'String',
39
- :'sync_source_items' => :'Boolean'
43
+ :'sync_source_items' => :'Boolean',
44
+ :'data_source_tags' => :'Object'
40
45
  }
41
46
  end
42
47
 
@@ -74,6 +79,10 @@ module Carbon
74
79
  else
75
80
  self.sync_source_items = true
76
81
  end
82
+
83
+ if attributes.key?(:'data_source_tags')
84
+ self.data_source_tags = attributes[:'data_source_tags']
85
+ end
77
86
  end
78
87
 
79
88
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,7 +115,8 @@ module Carbon
106
115
  self.class == o.class &&
107
116
  account_name == o.account_name &&
108
117
  account_key == o.account_key &&
109
- sync_source_items == o.sync_source_items
118
+ sync_source_items == o.sync_source_items &&
119
+ data_source_tags == o.data_source_tags
110
120
  end
111
121
 
112
122
  # @see the `==` method
@@ -118,7 +128,7 @@ module Carbon
118
128
  # Calculates hash code according to all attributes.
119
129
  # @return [Integer] Hash code
120
130
  def hash
121
- [account_name, account_key, sync_source_items].hash
131
+ [account_name, account_key, sync_source_items, data_source_tags].hash
122
132
  end
123
133
 
124
134
  # Builds the object from hash
@@ -14,7 +14,7 @@ module Carbon
14
14
  # Enable cold storage for the file. If set to true, the file will be moved to cold storage after a certain period of inactivity. Default is false.
15
15
  attr_accessor :enable_cold_storage
16
16
 
17
- # Time in seconds after which the file will be moved to cold storage.
17
+ # Time in days after which the file will be moved to cold storage. Valid values are [1, 3, 7, 14, 30]
18
18
  attr_accessor :hot_storage_time_to_live
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -43,6 +43,8 @@ module Carbon
43
43
 
44
44
  attr_accessor :external_url
45
45
 
46
+ attr_accessor :file_format
47
+
46
48
  attr_accessor :created_at
47
49
 
48
50
  attr_accessor :updated_at
@@ -66,6 +68,7 @@ module Carbon
66
68
  :'item_type' => :'item_type',
67
69
  :'root_external_id' => :'root_external_id',
68
70
  :'external_url' => :'external_url',
71
+ :'file_format' => :'file_format',
69
72
  :'created_at' => :'created_at',
70
73
  :'updated_at' => :'updated_at'
71
74
  }
@@ -95,6 +98,7 @@ module Carbon
95
98
  :'item_type' => :'String',
96
99
  :'root_external_id' => :'String',
97
100
  :'external_url' => :'String',
101
+ :'file_format' => :'String',
98
102
  :'created_at' => :'Time',
99
103
  :'updated_at' => :'Time'
100
104
  }
@@ -110,6 +114,7 @@ module Carbon
110
114
  :'item_type',
111
115
  :'root_external_id',
112
116
  :'external_url',
117
+ :'file_format',
113
118
  ])
114
119
  end
115
120
 
@@ -192,6 +197,10 @@ module Carbon
192
197
  self.external_url = attributes[:'external_url']
193
198
  end
194
199
 
200
+ if attributes.key?(:'file_format')
201
+ self.file_format = attributes[:'file_format']
202
+ end
203
+
195
204
  if attributes.key?(:'created_at')
196
205
  self.created_at = attributes[:'created_at']
197
206
  end
@@ -290,6 +299,7 @@ module Carbon
290
299
  item_type == o.item_type &&
291
300
  root_external_id == o.root_external_id &&
292
301
  external_url == o.external_url &&
302
+ file_format == o.file_format &&
293
303
  created_at == o.created_at &&
294
304
  updated_at == o.updated_at
295
305
  end
@@ -303,7 +313,7 @@ module Carbon
303
313
  # Calculates hash code according to all attributes.
304
314
  # @return [Integer] Hash code
305
315
  def hash
306
- [id, external_id, source, name, synced_at, is_selectable, is_expandable, organization_id, organization_supplied_user_id, organization_user_id, organization_user_data_source_id, organization_user_file_to_sync_id, parent_external_id, item_type, root_external_id, external_url, created_at, updated_at].hash
316
+ [id, external_id, source, name, synced_at, is_selectable, is_expandable, organization_id, organization_supplied_user_id, organization_user_id, organization_user_data_source_id, organization_user_file_to_sync_id, parent_external_id, item_type, root_external_id, external_url, file_format, created_at, updated_at].hash
307
317
  end
308
318
 
309
319
  # Builds the object from hash
@@ -38,6 +38,9 @@ module Carbon
38
38
 
39
39
  attr_accessor :file_sync_config
40
40
 
41
+ # Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.
42
+ attr_accessor :data_source_tags
43
+
41
44
  # Attribute mapping from ruby-style variable name to JSON key.
42
45
  def self.attribute_map
43
46
  {
@@ -53,7 +56,8 @@ module Carbon
53
56
  :'sync_files_on_connection' => :'sync_files_on_connection',
54
57
  :'request_id' => :'request_id',
55
58
  :'sync_source_items' => :'sync_source_items',
56
- :'file_sync_config' => :'file_sync_config'
59
+ :'file_sync_config' => :'file_sync_config',
60
+ :'data_source_tags' => :'data_source_tags'
57
61
  }
58
62
  end
59
63
 
@@ -77,7 +81,8 @@ module Carbon
77
81
  :'sync_files_on_connection' => :'Boolean',
78
82
  :'request_id' => :'String',
79
83
  :'sync_source_items' => :'Boolean',
80
- :'file_sync_config' => :'FileSyncConfigNullable'
84
+ :'file_sync_config' => :'FileSyncConfigNullable',
85
+ :'data_source_tags' => :'Object'
81
86
  }
82
87
  end
83
88
 
@@ -93,7 +98,7 @@ module Carbon
93
98
  :'prepend_filename_to_chunks',
94
99
  :'sync_files_on_connection',
95
100
  :'request_id',
96
- :'file_sync_config'
101
+ :'file_sync_config',
97
102
  ])
98
103
  end
99
104
 
@@ -179,6 +184,10 @@ module Carbon
179
184
  if attributes.key?(:'file_sync_config')
180
185
  self.file_sync_config = attributes[:'file_sync_config']
181
186
  end
187
+
188
+ if attributes.key?(:'data_source_tags')
189
+ self.data_source_tags = attributes[:'data_source_tags']
190
+ end
182
191
  end
183
192
 
184
193
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -221,7 +230,8 @@ module Carbon
221
230
  sync_files_on_connection == o.sync_files_on_connection &&
222
231
  request_id == o.request_id &&
223
232
  sync_source_items == o.sync_source_items &&
224
- file_sync_config == o.file_sync_config
233
+ file_sync_config == o.file_sync_config &&
234
+ data_source_tags == o.data_source_tags
225
235
  end
226
236
 
227
237
  # @see the `==` method
@@ -233,7 +243,7 @@ module Carbon
233
243
  # Calculates hash code according to all attributes.
234
244
  # @return [Integer] Hash code
235
245
  def hash
236
- [tags, domain, api_key, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id, sync_source_items, file_sync_config].hash
246
+ [tags, domain, api_key, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id, sync_source_items, file_sync_config, data_source_tags].hash
237
247
  end
238
248
 
239
249
  # Builds the object from hash
@@ -38,6 +38,9 @@ module Carbon
38
38
 
39
39
  attr_accessor :file_sync_config
40
40
 
41
+ # Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.
42
+ attr_accessor :data_source_tags
43
+
41
44
  # Attribute mapping from ruby-style variable name to JSON key.
42
45
  def self.attribute_map
43
46
  {
@@ -53,7 +56,8 @@ module Carbon
53
56
  :'sync_files_on_connection' => :'sync_files_on_connection',
54
57
  :'request_id' => :'request_id',
55
58
  :'sync_source_items' => :'sync_source_items',
56
- :'file_sync_config' => :'file_sync_config'
59
+ :'file_sync_config' => :'file_sync_config',
60
+ :'data_source_tags' => :'data_source_tags'
57
61
  }
58
62
  end
59
63
 
@@ -77,7 +81,8 @@ module Carbon
77
81
  :'sync_files_on_connection' => :'Boolean',
78
82
  :'request_id' => :'String',
79
83
  :'sync_source_items' => :'Boolean',
80
- :'file_sync_config' => :'FileSyncConfigNullable'
84
+ :'file_sync_config' => :'FileSyncConfigNullable',
85
+ :'data_source_tags' => :'Object'
81
86
  }
82
87
  end
83
88
 
@@ -92,7 +97,7 @@ module Carbon
92
97
  :'prepend_filename_to_chunks',
93
98
  :'sync_files_on_connection',
94
99
  :'request_id',
95
- :'file_sync_config'
100
+ :'file_sync_config',
96
101
  ])
97
102
  end
98
103
 
@@ -178,6 +183,10 @@ module Carbon
178
183
  if attributes.key?(:'file_sync_config')
179
184
  self.file_sync_config = attributes[:'file_sync_config']
180
185
  end
186
+
187
+ if attributes.key?(:'data_source_tags')
188
+ self.data_source_tags = attributes[:'data_source_tags']
189
+ end
181
190
  end
182
191
 
183
192
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -220,7 +229,8 @@ module Carbon
220
229
  sync_files_on_connection == o.sync_files_on_connection &&
221
230
  request_id == o.request_id &&
222
231
  sync_source_items == o.sync_source_items &&
223
- file_sync_config == o.file_sync_config
232
+ file_sync_config == o.file_sync_config &&
233
+ data_source_tags == o.data_source_tags
224
234
  end
225
235
 
226
236
  # @see the `==` method
@@ -232,7 +242,7 @@ module Carbon
232
242
  # Calculates hash code according to all attributes.
233
243
  # @return [Integer] Hash code
234
244
  def hash
235
- [tags, organization, access_token, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id, sync_source_items, file_sync_config].hash
245
+ [tags, organization, access_token, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id, sync_source_items, file_sync_config, data_source_tags].hash
236
246
  end
237
247
 
238
248
  # Builds the object from hash
@@ -18,12 +18,16 @@ module Carbon
18
18
  # Enabling this flag will fetch all available content from the source to be listed via list items endpoint
19
19
  attr_accessor :sync_source_items
20
20
 
21
+ # Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.
22
+ attr_accessor :data_source_tags
23
+
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
24
27
  :'username' => :'username',
25
28
  :'access_token' => :'access_token',
26
- :'sync_source_items' => :'sync_source_items'
29
+ :'sync_source_items' => :'sync_source_items',
30
+ :'data_source_tags' => :'data_source_tags'
27
31
  }
28
32
  end
29
33
 
@@ -37,7 +41,8 @@ module Carbon
37
41
  {
38
42
  :'username' => :'String',
39
43
  :'access_token' => :'String',
40
- :'sync_source_items' => :'Boolean'
44
+ :'sync_source_items' => :'Boolean',
45
+ :'data_source_tags' => :'Object'
41
46
  }
42
47
  end
43
48
 
@@ -75,6 +80,10 @@ module Carbon
75
80
  else
76
81
  self.sync_source_items = false
77
82
  end
83
+
84
+ if attributes.key?(:'data_source_tags')
85
+ self.data_source_tags = attributes[:'data_source_tags']
86
+ end
78
87
  end
79
88
 
80
89
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,7 +116,8 @@ module Carbon
107
116
  self.class == o.class &&
108
117
  username == o.username &&
109
118
  access_token == o.access_token &&
110
- sync_source_items == o.sync_source_items
119
+ sync_source_items == o.sync_source_items &&
120
+ data_source_tags == o.data_source_tags
111
121
  end
112
122
 
113
123
  # @see the `==` method
@@ -119,7 +129,7 @@ module Carbon
119
129
  # Calculates hash code according to all attributes.
120
130
  # @return [Integer] Hash code
121
131
  def hash
122
- [username, access_token, sync_source_items].hash
132
+ [username, access_token, sync_source_items, data_source_tags].hash
123
133
  end
124
134
 
125
135
  # Builds the object from hash
@@ -38,6 +38,9 @@ module Carbon
38
38
 
39
39
  attr_accessor :file_sync_config
40
40
 
41
+ # Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.
42
+ attr_accessor :data_source_tags
43
+
41
44
  # Attribute mapping from ruby-style variable name to JSON key.
42
45
  def self.attribute_map
43
46
  {
@@ -53,7 +56,8 @@ module Carbon
53
56
  :'sync_files_on_connection' => :'sync_files_on_connection',
54
57
  :'request_id' => :'request_id',
55
58
  :'sync_source_items' => :'sync_source_items',
56
- :'file_sync_config' => :'file_sync_config'
59
+ :'file_sync_config' => :'file_sync_config',
60
+ :'data_source_tags' => :'data_source_tags'
57
61
  }
58
62
  end
59
63
 
@@ -77,7 +81,8 @@ module Carbon
77
81
  :'sync_files_on_connection' => :'Boolean',
78
82
  :'request_id' => :'String',
79
83
  :'sync_source_items' => :'Boolean',
80
- :'file_sync_config' => :'FileSyncConfigNullable'
84
+ :'file_sync_config' => :'FileSyncConfigNullable',
85
+ :'data_source_tags' => :'Object'
81
86
  }
82
87
  end
83
88
 
@@ -92,7 +97,7 @@ module Carbon
92
97
  :'prepend_filename_to_chunks',
93
98
  :'sync_files_on_connection',
94
99
  :'request_id',
95
- :'file_sync_config'
100
+ :'file_sync_config',
96
101
  ])
97
102
  end
98
103
 
@@ -178,6 +183,10 @@ module Carbon
178
183
  if attributes.key?(:'file_sync_config')
179
184
  self.file_sync_config = attributes[:'file_sync_config']
180
185
  end
186
+
187
+ if attributes.key?(:'data_source_tags')
188
+ self.data_source_tags = attributes[:'data_source_tags']
189
+ end
181
190
  end
182
191
 
183
192
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -220,7 +229,8 @@ module Carbon
220
229
  sync_files_on_connection == o.sync_files_on_connection &&
221
230
  request_id == o.request_id &&
222
231
  sync_source_items == o.sync_source_items &&
223
- file_sync_config == o.file_sync_config
232
+ file_sync_config == o.file_sync_config &&
233
+ data_source_tags == o.data_source_tags
224
234
  end
225
235
 
226
236
  # @see the `==` method
@@ -232,7 +242,7 @@ module Carbon
232
242
  # Calculates hash code according to all attributes.
233
243
  # @return [Integer] Hash code
234
244
  def hash
235
- [tags, username, access_token, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id, sync_source_items, file_sync_config].hash
245
+ [tags, username, access_token, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, generate_sparse_vectors, prepend_filename_to_chunks, sync_files_on_connection, request_id, sync_source_items, file_sync_config, data_source_tags].hash
236
246
  end
237
247
 
238
248
  # Builds the object from hash
@@ -80,6 +80,9 @@ module Carbon
80
80
 
81
81
  attr_accessor :servicenow_credentials
82
82
 
83
+ # Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.
84
+ attr_accessor :data_source_tags
85
+
83
86
  # Attribute mapping from ruby-style variable name to JSON key.
84
87
  def self.attribute_map
85
88
  {
@@ -111,7 +114,8 @@ module Carbon
111
114
  :'file_sync_config' => :'file_sync_config',
112
115
  :'automatically_open_file_picker' => :'automatically_open_file_picker',
113
116
  :'gong_account_email' => :'gong_account_email',
114
- :'servicenow_credentials' => :'servicenow_credentials'
117
+ :'servicenow_credentials' => :'servicenow_credentials',
118
+ :'data_source_tags' => :'data_source_tags'
115
119
  }
116
120
  end
117
121
 
@@ -151,7 +155,8 @@ module Carbon
151
155
  :'file_sync_config' => :'FileSyncConfigNullable',
152
156
  :'automatically_open_file_picker' => :'Boolean',
153
157
  :'gong_account_email' => :'String',
154
- :'servicenow_credentials' => :'ServiceNowCredentialsNullable'
158
+ :'servicenow_credentials' => :'ServiceNowCredentialsNullable',
159
+ :'data_source_tags' => :'Object'
155
160
  }
156
161
  end
157
162
 
@@ -181,7 +186,7 @@ module Carbon
181
186
  :'file_sync_config',
182
187
  :'automatically_open_file_picker',
183
188
  :'gong_account_email',
184
- :'servicenow_credentials'
189
+ :'servicenow_credentials',
185
190
  ])
186
191
  end
187
192
 
@@ -343,6 +348,10 @@ module Carbon
343
348
  if attributes.key?(:'servicenow_credentials')
344
349
  self.servicenow_credentials = attributes[:'servicenow_credentials']
345
350
  end
351
+
352
+ if attributes.key?(:'data_source_tags')
353
+ self.data_source_tags = attributes[:'data_source_tags']
354
+ end
346
355
  end
347
356
 
348
357
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -396,7 +405,8 @@ module Carbon
396
405
  file_sync_config == o.file_sync_config &&
397
406
  automatically_open_file_picker == o.automatically_open_file_picker &&
398
407
  gong_account_email == o.gong_account_email &&
399
- servicenow_credentials == o.servicenow_credentials
408
+ servicenow_credentials == o.servicenow_credentials &&
409
+ data_source_tags == o.data_source_tags
400
410
  end
401
411
 
402
412
  # @see the `==` method
@@ -408,7 +418,7 @@ module Carbon
408
418
  # Calculates hash code according to all attributes.
409
419
  # @return [Integer] Hash code
410
420
  def hash
411
- [tags, scope, service, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, zendesk_subdomain, microsoft_tenant, sharepoint_site_name, confluence_subdomain, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, salesforce_domain, sync_files_on_connection, set_page_as_boundary, data_source_id, connecting_new_account, request_id, use_ocr, parse_pdf_tables_with_ocr, enable_file_picker, sync_source_items, incremental_sync, file_sync_config, automatically_open_file_picker, gong_account_email, servicenow_credentials].hash
421
+ [tags, scope, service, chunk_size, chunk_overlap, skip_embedding_generation, embedding_model, zendesk_subdomain, microsoft_tenant, sharepoint_site_name, confluence_subdomain, generate_sparse_vectors, prepend_filename_to_chunks, max_items_per_chunk, salesforce_domain, sync_files_on_connection, set_page_as_boundary, data_source_id, connecting_new_account, request_id, use_ocr, parse_pdf_tables_with_ocr, enable_file_picker, sync_source_items, incremental_sync, file_sync_config, automatically_open_file_picker, gong_account_email, servicenow_credentials, data_source_tags].hash
412
422
  end
413
423
 
414
424
  # Builds the object from hash
@@ -11,6 +11,8 @@ require 'time'
11
11
 
12
12
  module Carbon
13
13
  class OrganizationUserDataSourceAPI
14
+ attr_accessor :tags
15
+
14
16
  attr_accessor :id
15
17
 
16
18
  attr_accessor :data_source_external_id
@@ -48,6 +50,7 @@ module Carbon
48
50
  # Attribute mapping from ruby-style variable name to JSON key.
49
51
  def self.attribute_map
50
52
  {
53
+ :'tags' => :'tags',
51
54
  :'id' => :'id',
52
55
  :'data_source_external_id' => :'data_source_external_id',
53
56
  :'data_source_type' => :'data_source_type',
@@ -76,6 +79,7 @@ module Carbon
76
79
  # Attribute type mapping.
77
80
  def self.openapi_types
78
81
  {
82
+ :'tags' => :'Object',
79
83
  :'id' => :'Integer',
80
84
  :'data_source_external_id' => :'String',
81
85
  :'data_source_type' => :'DataSourceType',
@@ -122,6 +126,10 @@ module Carbon
122
126
  h[k.to_sym] = v
123
127
  }
124
128
 
129
+ if attributes.key?(:'tags')
130
+ self.tags = attributes[:'tags']
131
+ end
132
+
125
133
  if attributes.key?(:'id')
126
134
  self.id = attributes[:'id']
127
135
  end
@@ -195,6 +203,10 @@ module Carbon
195
203
  # @return Array for valid properties with the reasons
196
204
  def list_invalid_properties
197
205
  invalid_properties = Array.new
206
+ if @tags.nil?
207
+ invalid_properties.push('invalid value for "tags", tags cannot be nil.')
208
+ end
209
+
198
210
  if @id.nil?
199
211
  invalid_properties.push('invalid value for "id", id cannot be nil.')
200
212
  end
@@ -249,6 +261,7 @@ module Carbon
249
261
  # Check to see if the all the properties in the model are valid
250
262
  # @return true if the model is valid
251
263
  def valid?
264
+ return false if @tags.nil?
252
265
  return false if @id.nil?
253
266
  return false if @data_source_type.nil?
254
267
  return false if @sync_status.nil?
@@ -269,6 +282,7 @@ module Carbon
269
282
  def ==(o)
270
283
  return true if self.equal?(o)
271
284
  self.class == o.class &&
285
+ tags == o.tags &&
272
286
  id == o.id &&
273
287
  data_source_external_id == o.data_source_external_id &&
274
288
  data_source_type == o.data_source_type &&
@@ -297,7 +311,7 @@ module Carbon
297
311
  # Calculates hash code according to all attributes.
298
312
  # @return [Integer] Hash code
299
313
  def hash
300
- [id, data_source_external_id, data_source_type, token, sync_status, source_items_synced_at, organization_user_id, organization_id, organization_supplied_user_id, revoked_access, last_synced_at, last_sync_action, enable_auto_sync, created_at, updated_at, files_synced_at, data_source_metadata].hash
314
+ [tags, id, data_source_external_id, data_source_type, token, sync_status, source_items_synced_at, organization_user_id, organization_id, organization_supplied_user_id, revoked_access, last_synced_at, last_sync_action, enable_auto_sync, created_at, updated_at, files_synced_at, data_source_metadata].hash
301
315
  end
302
316
 
303
317
  # Builds the object from hash
@@ -11,6 +11,9 @@ require 'time'
11
11
 
12
12
  module Carbon
13
13
  class OrganizationUserDataSourceFilters
14
+ # Tags to filter by. Supports logical AND and OR operations. Input should be like below: { \"OR\": [ { \"key\": \"subject\", \"value\": \"holy-bible\", \"negate\": false }, { \"key\": \"person-of-interest\", \"value\": \"jesus christ\", \"negate\": false }, { \"key\": \"genre\", \"value\": \"fiction\", \"negate\": true } { \"AND\": [ { \"key\": \"subject\", \"value\": \"tao-te-ching\", \"negate\": true }, { \"key\": \"author\", \"value\": \"lao-tzu\", \"negate\": false } ] } ] } For a single filter, the filter block can be placed within either an \"AND\" or \"OR\" block.
15
+ attr_accessor :tags
16
+
14
17
  attr_accessor :source
15
18
 
16
19
  attr_accessor :ids
@@ -20,6 +23,7 @@ module Carbon
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
26
+ :'tags' => :'tags',
23
27
  :'source' => :'source',
24
28
  :'ids' => :'ids',
25
29
  :'revoked_access' => :'revoked_access'
@@ -34,6 +38,7 @@ module Carbon
34
38
  # Attribute type mapping.
35
39
  def self.openapi_types
36
40
  {
41
+ :'tags' => :'Object',
37
42
  :'source' => :'DataSourceTypeNullable',
38
43
  :'ids' => :'Array<Integer>',
39
44
  :'revoked_access' => :'Boolean'
@@ -43,6 +48,7 @@ module Carbon
43
48
  # List of attributes with nullable: true
44
49
  def self.openapi_nullable
45
50
  Set.new([
51
+ :'tags',
46
52
  :'source',
47
53
  :'ids',
48
54
  :'revoked_access'
@@ -64,6 +70,10 @@ module Carbon
64
70
  h[k.to_sym] = v
65
71
  }
66
72
 
73
+ if attributes.key?(:'tags')
74
+ self.tags = attributes[:'tags']
75
+ end
76
+
67
77
  if attributes.key?(:'source')
68
78
  self.source = attributes[:'source']
69
79
  end
@@ -97,6 +107,7 @@ module Carbon
97
107
  def ==(o)
98
108
  return true if self.equal?(o)
99
109
  self.class == o.class &&
110
+ tags == o.tags &&
100
111
  source == o.source &&
101
112
  ids == o.ids &&
102
113
  revoked_access == o.revoked_access
@@ -111,7 +122,7 @@ module Carbon
111
122
  # Calculates hash code according to all attributes.
112
123
  # @return [Integer] Hash code
113
124
  def hash
114
- [source, ids, revoked_access].hash
125
+ [tags, source, ids, revoked_access].hash
115
126
  end
116
127
 
117
128
  # Builds the object from hash
@@ -15,11 +15,14 @@ module Carbon
15
15
 
16
16
  attr_accessor :offset
17
17
 
18
+ attr_accessor :starting_id
19
+
18
20
  # Attribute mapping from ruby-style variable name to JSON key.
19
21
  def self.attribute_map
20
22
  {
21
23
  :'limit' => :'limit',
22
- :'offset' => :'offset'
24
+ :'offset' => :'offset',
25
+ :'starting_id' => :'starting_id'
23
26
  }
24
27
  end
25
28
 
@@ -32,7 +35,8 @@ module Carbon
32
35
  def self.openapi_types
33
36
  {
34
37
  :'limit' => :'Integer',
35
- :'offset' => :'Integer'
38
+ :'offset' => :'Integer',
39
+ :'starting_id' => :'Integer'
36
40
  }
37
41
  end
38
42
 
@@ -68,6 +72,12 @@ module Carbon
68
72
  else
69
73
  self.offset = 0
70
74
  end
75
+
76
+ if attributes.key?(:'starting_id')
77
+ self.starting_id = attributes[:'starting_id']
78
+ else
79
+ self.starting_id = 0
80
+ end
71
81
  end
72
82
 
73
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -89,7 +99,8 @@ module Carbon
89
99
  return true if self.equal?(o)
90
100
  self.class == o.class &&
91
101
  limit == o.limit &&
92
- offset == o.offset
102
+ offset == o.offset &&
103
+ starting_id == o.starting_id
93
104
  end
94
105
 
95
106
  # @see the `==` method
@@ -101,7 +112,7 @@ module Carbon
101
112
  # Calculates hash code according to all attributes.
102
113
  # @return [Integer] Hash code
103
114
  def hash
104
- [limit, offset].hash
115
+ [limit, offset, starting_id].hash
105
116
  end
106
117
 
107
118
  # Builds the object from hash