carbon_ruby_sdk 0.2.41 → 0.2.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +273 -3
- data/lib/carbon_ruby_sdk/api/data_sources_api.rb +196 -0
- data/lib/carbon_ruby_sdk/api/files_api.rb +4 -4
- data/lib/carbon_ruby_sdk/api/integrations_api.rb +48 -16
- data/lib/carbon_ruby_sdk/api/users_api.rb +71 -0
- data/lib/carbon_ruby_sdk/api/white_label_api.rb +393 -0
- data/lib/carbon_ruby_sdk/models/add_data_source_tags_input.rb +234 -0
- data/lib/carbon_ruby_sdk/models/azure_blob_auth_request.rb +14 -4
- data/lib/carbon_ruby_sdk/models/cold_storage_props.rb +1 -1
- data/lib/carbon_ruby_sdk/models/credentials.rb +244 -0
- data/lib/carbon_ruby_sdk/models/delete_white_label_request.rb +222 -0
- data/lib/carbon_ruby_sdk/models/external_source_item.rb +11 -1
- data/lib/carbon_ruby_sdk/models/fresh_desk_connect_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/gitbook_connect_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/github_connect_request.rb +14 -4
- data/lib/carbon_ruby_sdk/models/google_drive_credentials.rb +254 -0
- data/lib/carbon_ruby_sdk/models/google_drive_white_label_input.rb +230 -0
- data/lib/carbon_ruby_sdk/models/guru_connect_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/list_white_label_request.rb +246 -0
- data/lib/carbon_ruby_sdk/models/o_auth_url_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/one_drive_sharepoint_credentials.rb +264 -0
- data/lib/carbon_ruby_sdk/models/one_drive_sharepoint_white_label_input.rb +234 -0
- data/lib/carbon_ruby_sdk/models/one_drive_sharepoint_white_label_input_data_source_type.rb +36 -0
- data/lib/carbon_ruby_sdk/models/organization_user_data_source_api.rb +15 -1
- data/lib/carbon_ruby_sdk/models/organization_user_data_source_filters.rb +12 -1
- data/lib/carbon_ruby_sdk/models/remove_data_source_tags_input.rb +242 -0
- data/lib/carbon_ruby_sdk/models/rss_feed_input.rb +15 -5
- data/lib/carbon_ruby_sdk/models/s3_auth_request.rb +15 -5
- data/lib/carbon_ruby_sdk/models/sync_options.rb +15 -5
- data/lib/carbon_ruby_sdk/models/user_response.rb +18 -4
- data/lib/carbon_ruby_sdk/models/white_label_create_request_inner.rb +255 -0
- data/lib/carbon_ruby_sdk/models/white_label_filters.rb +230 -0
- data/lib/carbon_ruby_sdk/models/white_label_input.rb +234 -0
- data/lib/carbon_ruby_sdk/models/white_label_input_data_source_type.rb +48 -0
- data/lib/carbon_ruby_sdk/models/white_label_order_by_columns.rb +36 -0
- data/lib/carbon_ruby_sdk/models/white_label_update_request.rb +255 -0
- data/lib/carbon_ruby_sdk/models/white_labeling_response.rb +18 -4
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +19 -0
- data/spec/api/data_sources_api_spec.rb +22 -0
- data/spec/api/files_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +10 -0
- data/spec/api/white_label_api_spec.rb +73 -0
- data/spec/models/add_data_source_tags_input_spec.rb +34 -0
- data/spec/models/azure_blob_auth_request_spec.rb +6 -0
- data/spec/models/credentials_spec.rb +40 -0
- data/spec/models/delete_white_label_request_spec.rb +28 -0
- data/spec/models/external_source_item_spec.rb +6 -0
- data/spec/models/fresh_desk_connect_request_spec.rb +6 -0
- data/spec/models/gitbook_connect_request_spec.rb +6 -0
- data/spec/models/github_connect_request_spec.rb +6 -0
- data/spec/models/google_drive_credentials_spec.rb +46 -0
- data/spec/models/google_drive_white_label_input_spec.rb +34 -0
- data/spec/models/guru_connect_request_spec.rb +6 -0
- data/spec/models/list_white_label_request_spec.rb +46 -0
- data/spec/models/o_auth_url_request_spec.rb +6 -0
- data/spec/models/one_drive_sharepoint_credentials_spec.rb +52 -0
- data/spec/models/one_drive_sharepoint_white_label_input_data_source_type_spec.rb +22 -0
- data/spec/models/one_drive_sharepoint_white_label_input_spec.rb +34 -0
- data/spec/models/organization_user_data_source_api_spec.rb +6 -0
- data/spec/models/organization_user_data_source_filters_spec.rb +6 -0
- data/spec/models/remove_data_source_tags_input_spec.rb +40 -0
- data/spec/models/rss_feed_input_spec.rb +6 -0
- data/spec/models/s3_auth_request_spec.rb +6 -0
- data/spec/models/sync_options_spec.rb +6 -0
- data/spec/models/user_response_spec.rb +6 -0
- data/spec/models/white_label_create_request_inner_spec.rb +34 -0
- data/spec/models/white_label_filters_spec.rb +34 -0
- data/spec/models/white_label_input_data_source_type_spec.rb +22 -0
- data/spec/models/white_label_input_spec.rb +34 -0
- data/spec/models/white_label_order_by_columns_spec.rb +22 -0
- data/spec/models/white_label_update_request_spec.rb +34 -0
- data/spec/models/white_labeling_response_spec.rb +6 -0
- metadata +53 -2
@@ -0,0 +1,255 @@
|
|
1
|
+
=begin
|
2
|
+
#Carbon
|
3
|
+
|
4
|
+
#Connect external data to LLMs, no matter the source.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'date'
|
10
|
+
require 'time'
|
11
|
+
|
12
|
+
module Carbon
|
13
|
+
class WhiteLabelUpdateRequest
|
14
|
+
attr_accessor :data_source_type
|
15
|
+
|
16
|
+
attr_accessor :credentials
|
17
|
+
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
19
|
+
def self.attribute_map
|
20
|
+
{
|
21
|
+
:'data_source_type' => :'data_source_type',
|
22
|
+
:'credentials' => :'credentials'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Returns all the JSON keys this model knows about
|
27
|
+
def self.acceptable_attributes
|
28
|
+
attribute_map.values
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.openapi_types
|
33
|
+
{
|
34
|
+
:'data_source_type' => :'WhiteLabelInputDataSourceType',
|
35
|
+
:'credentials' => :'Credentials'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of class defined in anyOf (OpenAPI v3)
|
46
|
+
def self.openapi_any_of
|
47
|
+
[
|
48
|
+
:'GoogleDriveWhiteLabelInput',
|
49
|
+
:'OneDriveSharepointWhiteLabelInput',
|
50
|
+
:'WhiteLabelInput'
|
51
|
+
]
|
52
|
+
end
|
53
|
+
|
54
|
+
# Initializes the object
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
56
|
+
def initialize(attributes = {})
|
57
|
+
if (!attributes.is_a?(Hash))
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::WhiteLabelUpdateRequest` initialize method"
|
59
|
+
end
|
60
|
+
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::WhiteLabelUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
|
+
end
|
66
|
+
h[k.to_sym] = v
|
67
|
+
}
|
68
|
+
|
69
|
+
if attributes.key?(:'data_source_type')
|
70
|
+
self.data_source_type = attributes[:'data_source_type']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.key?(:'credentials')
|
74
|
+
self.credentials = attributes[:'credentials']
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
79
|
+
# @return Array for valid properties with the reasons
|
80
|
+
def list_invalid_properties
|
81
|
+
invalid_properties = Array.new
|
82
|
+
if @data_source_type.nil?
|
83
|
+
invalid_properties.push('invalid value for "data_source_type", data_source_type cannot be nil.')
|
84
|
+
end
|
85
|
+
|
86
|
+
if @credentials.nil?
|
87
|
+
invalid_properties.push('invalid value for "credentials", credentials cannot be nil.')
|
88
|
+
end
|
89
|
+
|
90
|
+
invalid_properties
|
91
|
+
end
|
92
|
+
|
93
|
+
# Check to see if the all the properties in the model are valid
|
94
|
+
# @return true if the model is valid
|
95
|
+
def valid?
|
96
|
+
return false if @data_source_type.nil?
|
97
|
+
return false if @credentials.nil?
|
98
|
+
_any_of_found = false
|
99
|
+
self.class.openapi_any_of.each do |_class|
|
100
|
+
_any_of = Carbon.const_get(_class).build_from_hash(self.to_hash)
|
101
|
+
if _any_of.valid?
|
102
|
+
_any_of_found = true
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
if !_any_of_found
|
107
|
+
return false
|
108
|
+
end
|
109
|
+
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
data_source_type == o.data_source_type &&
|
119
|
+
credentials == o.credentials
|
120
|
+
end
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Integer] Hash code
|
130
|
+
def hash
|
131
|
+
[data_source_type, credentials].hash
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def self.build_from_hash(attributes)
|
138
|
+
new.build_from_hash(attributes)
|
139
|
+
end
|
140
|
+
|
141
|
+
# Builds the object from hash
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
+
# @return [Object] Returns the model itself
|
144
|
+
def build_from_hash(attributes)
|
145
|
+
return nil unless attributes.is_a?(Hash)
|
146
|
+
attributes = attributes.transform_keys(&:to_sym)
|
147
|
+
self.class.openapi_types.each_pair do |key, type|
|
148
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
149
|
+
self.send("#{key}=", nil)
|
150
|
+
elsif type =~ /\AArray<(.*)>/i
|
151
|
+
# check to ensure the input is an array given that the attribute
|
152
|
+
# is documented as an array but the input is not
|
153
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
154
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
155
|
+
end
|
156
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
157
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
self
|
162
|
+
end
|
163
|
+
|
164
|
+
# Deserializes the data based on type
|
165
|
+
# @param string type Data type
|
166
|
+
# @param string value Value to be deserialized
|
167
|
+
# @return [Object] Deserialized data
|
168
|
+
def _deserialize(type, value)
|
169
|
+
case type.to_sym
|
170
|
+
when :Time
|
171
|
+
Time.parse(value)
|
172
|
+
when :Date
|
173
|
+
Date.parse(value)
|
174
|
+
when :String
|
175
|
+
value.to_s
|
176
|
+
when :Integer
|
177
|
+
value.to_i
|
178
|
+
when :Float
|
179
|
+
value.to_f
|
180
|
+
when :Boolean
|
181
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
182
|
+
true
|
183
|
+
else
|
184
|
+
false
|
185
|
+
end
|
186
|
+
when :Object
|
187
|
+
# generic object (usually a Hash), return directly
|
188
|
+
value
|
189
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
190
|
+
inner_type = Regexp.last_match[:inner_type]
|
191
|
+
value.map { |v| _deserialize(inner_type, v) }
|
192
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
193
|
+
k_type = Regexp.last_match[:k_type]
|
194
|
+
v_type = Regexp.last_match[:v_type]
|
195
|
+
{}.tap do |hash|
|
196
|
+
value.each do |k, v|
|
197
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
else # model
|
201
|
+
# models (e.g. Pet) or oneOf
|
202
|
+
klass = Carbon.const_get(type)
|
203
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
# Returns the string representation of the object
|
208
|
+
# @return [String] String presentation of the object
|
209
|
+
def to_s
|
210
|
+
to_hash.to_s
|
211
|
+
end
|
212
|
+
|
213
|
+
# to_body is an alias to to_hash (backward compatibility)
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_body
|
216
|
+
to_hash
|
217
|
+
end
|
218
|
+
|
219
|
+
# Returns the object in the form of hash
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
221
|
+
def to_hash
|
222
|
+
hash = {}
|
223
|
+
self.class.attribute_map.each_pair do |attr, param|
|
224
|
+
value = self.send(attr)
|
225
|
+
if value.nil?
|
226
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
227
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
228
|
+
end
|
229
|
+
|
230
|
+
hash[param] = _to_hash(value)
|
231
|
+
end
|
232
|
+
hash
|
233
|
+
end
|
234
|
+
|
235
|
+
# Outputs non-array value in the form of hash
|
236
|
+
# For object, use to_hash. Otherwise, just return the value
|
237
|
+
# @param [Object] value Any valid value
|
238
|
+
# @return [Hash] Returns the value in the form of hash
|
239
|
+
def _to_hash(value)
|
240
|
+
if value.is_a?(Array)
|
241
|
+
value.compact.map { |v| _to_hash(v) }
|
242
|
+
elsif value.is_a?(Hash)
|
243
|
+
{}.tap do |hash|
|
244
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
245
|
+
end
|
246
|
+
elsif value.respond_to? :to_hash
|
247
|
+
value.to_hash
|
248
|
+
else
|
249
|
+
value
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
end
|
254
|
+
|
255
|
+
end
|
@@ -17,12 +17,15 @@ module Carbon
|
|
17
17
|
|
18
18
|
attr_accessor :custom_limits
|
19
19
|
|
20
|
+
attr_accessor :connector_settings
|
21
|
+
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
23
|
def self.attribute_map
|
22
24
|
{
|
23
25
|
:'remove_branding' => :'remove_branding',
|
24
26
|
:'integrations' => :'integrations',
|
25
|
-
:'custom_limits' => :'custom_limits'
|
27
|
+
:'custom_limits' => :'custom_limits',
|
28
|
+
:'connector_settings' => :'connector_settings'
|
26
29
|
}
|
27
30
|
end
|
28
31
|
|
@@ -36,7 +39,8 @@ module Carbon
|
|
36
39
|
{
|
37
40
|
:'remove_branding' => :'Boolean',
|
38
41
|
:'integrations' => :'Object',
|
39
|
-
:'custom_limits' => :'Object'
|
42
|
+
:'custom_limits' => :'Object',
|
43
|
+
:'connector_settings' => :'Object'
|
40
44
|
}
|
41
45
|
end
|
42
46
|
|
@@ -72,6 +76,10 @@ module Carbon
|
|
72
76
|
if attributes.key?(:'custom_limits')
|
73
77
|
self.custom_limits = attributes[:'custom_limits']
|
74
78
|
end
|
79
|
+
|
80
|
+
if attributes.key?(:'connector_settings')
|
81
|
+
self.connector_settings = attributes[:'connector_settings']
|
82
|
+
end
|
75
83
|
end
|
76
84
|
|
77
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -90,6 +98,10 @@ module Carbon
|
|
90
98
|
invalid_properties.push('invalid value for "custom_limits", custom_limits cannot be nil.')
|
91
99
|
end
|
92
100
|
|
101
|
+
if @connector_settings.nil?
|
102
|
+
invalid_properties.push('invalid value for "connector_settings", connector_settings cannot be nil.')
|
103
|
+
end
|
104
|
+
|
93
105
|
invalid_properties
|
94
106
|
end
|
95
107
|
|
@@ -99,6 +111,7 @@ module Carbon
|
|
99
111
|
return false if @remove_branding.nil?
|
100
112
|
return false if @integrations.nil?
|
101
113
|
return false if @custom_limits.nil?
|
114
|
+
return false if @connector_settings.nil?
|
102
115
|
true
|
103
116
|
end
|
104
117
|
|
@@ -109,7 +122,8 @@ module Carbon
|
|
109
122
|
self.class == o.class &&
|
110
123
|
remove_branding == o.remove_branding &&
|
111
124
|
integrations == o.integrations &&
|
112
|
-
custom_limits == o.custom_limits
|
125
|
+
custom_limits == o.custom_limits &&
|
126
|
+
connector_settings == o.connector_settings
|
113
127
|
end
|
114
128
|
|
115
129
|
# @see the `==` method
|
@@ -121,7 +135,7 @@ module Carbon
|
|
121
135
|
# Calculates hash code according to all attributes.
|
122
136
|
# @return [Integer] Hash code
|
123
137
|
def hash
|
124
|
-
[remove_branding, integrations, custom_limits].hash
|
138
|
+
[remove_branding, integrations, custom_limits, connector_settings].hash
|
125
139
|
end
|
126
140
|
|
127
141
|
# Builds the object from hash
|
data/lib/carbon_ruby_sdk.rb
CHANGED
@@ -21,6 +21,7 @@ require 'carbon_ruby_sdk/models/account_response'
|
|
21
21
|
require 'carbon_ruby_sdk/models/accounts_order_by'
|
22
22
|
require 'carbon_ruby_sdk/models/accounts_order_by_nullable'
|
23
23
|
require 'carbon_ruby_sdk/models/accounts_request'
|
24
|
+
require 'carbon_ruby_sdk/models/add_data_source_tags_input'
|
24
25
|
require 'carbon_ruby_sdk/models/add_webhook_props'
|
25
26
|
require 'carbon_ruby_sdk/models/address'
|
26
27
|
require 'carbon_ruby_sdk/models/authentication_property'
|
@@ -54,6 +55,7 @@ require 'carbon_ruby_sdk/models/contacts_order_by'
|
|
54
55
|
require 'carbon_ruby_sdk/models/contacts_order_by_nullable'
|
55
56
|
require 'carbon_ruby_sdk/models/contacts_request'
|
56
57
|
require 'carbon_ruby_sdk/models/contacts_response'
|
58
|
+
require 'carbon_ruby_sdk/models/credentials'
|
57
59
|
require 'carbon_ruby_sdk/models/custom_credentials_type'
|
58
60
|
require 'carbon_ruby_sdk/models/data_source_configuration'
|
59
61
|
require 'carbon_ruby_sdk/models/data_source_last_sync_actions'
|
@@ -63,6 +65,7 @@ require 'carbon_ruby_sdk/models/data_source_type_nullable'
|
|
63
65
|
require 'carbon_ruby_sdk/models/delete_files_query_input'
|
64
66
|
require 'carbon_ruby_sdk/models/delete_files_v2_query_input'
|
65
67
|
require 'carbon_ruby_sdk/models/delete_users_input'
|
68
|
+
require 'carbon_ruby_sdk/models/delete_white_label_request'
|
66
69
|
require 'carbon_ruby_sdk/models/directory_item'
|
67
70
|
require 'carbon_ruby_sdk/models/document_response'
|
68
71
|
require 'carbon_ruby_sdk/models/document_response_list'
|
@@ -107,6 +110,8 @@ require 'carbon_ruby_sdk/models/github_connect_request'
|
|
107
110
|
require 'carbon_ruby_sdk/models/github_fetch_repos_request'
|
108
111
|
require 'carbon_ruby_sdk/models/gmail_sync_input'
|
109
112
|
require 'carbon_ruby_sdk/models/gong_authentication'
|
113
|
+
require 'carbon_ruby_sdk/models/google_drive_credentials'
|
114
|
+
require 'carbon_ruby_sdk/models/google_drive_white_label_input'
|
110
115
|
require 'carbon_ruby_sdk/models/guru_authentication'
|
111
116
|
require 'carbon_ruby_sdk/models/guru_connect_request'
|
112
117
|
require 'carbon_ruby_sdk/models/http_validation_error'
|
@@ -139,6 +144,7 @@ require 'carbon_ruby_sdk/models/list_user_response'
|
|
139
144
|
require 'carbon_ruby_sdk/models/list_users_filters'
|
140
145
|
require 'carbon_ruby_sdk/models/list_users_order_by_types'
|
141
146
|
require 'carbon_ruby_sdk/models/list_users_request'
|
147
|
+
require 'carbon_ruby_sdk/models/list_white_label_request'
|
142
148
|
require 'carbon_ruby_sdk/models/location_property_inner'
|
143
149
|
require 'carbon_ruby_sdk/models/modify_cold_storage_parameters_query_input'
|
144
150
|
require 'carbon_ruby_sdk/models/modify_user_configuration_input'
|
@@ -149,6 +155,9 @@ require 'carbon_ruby_sdk/models/o_auth_url_request'
|
|
149
155
|
require 'carbon_ruby_sdk/models/oauth_based_connectors'
|
150
156
|
require 'carbon_ruby_sdk/models/object_type'
|
151
157
|
require 'carbon_ruby_sdk/models/one_drive_authentication'
|
158
|
+
require 'carbon_ruby_sdk/models/one_drive_sharepoint_credentials'
|
159
|
+
require 'carbon_ruby_sdk/models/one_drive_sharepoint_white_label_input'
|
160
|
+
require 'carbon_ruby_sdk/models/one_drive_sharepoint_white_label_input_data_source_type'
|
152
161
|
require 'carbon_ruby_sdk/models/opportunities_order_by'
|
153
162
|
require 'carbon_ruby_sdk/models/opportunities_order_by_nullable'
|
154
163
|
require 'carbon_ruby_sdk/models/opportunities_request'
|
@@ -197,6 +206,7 @@ require 'carbon_ruby_sdk/models/rss_feed_input'
|
|
197
206
|
require 'carbon_ruby_sdk/models/rank_property'
|
198
207
|
require 'carbon_ruby_sdk/models/raw_text_input'
|
199
208
|
require 'carbon_ruby_sdk/models/raw_transcript_property_inner_value'
|
209
|
+
require 'carbon_ruby_sdk/models/remove_data_source_tags_input'
|
200
210
|
require 'carbon_ruby_sdk/models/rerank_params'
|
201
211
|
require 'carbon_ruby_sdk/models/rerank_params_nullable'
|
202
212
|
require 'carbon_ruby_sdk/models/resync_file_query_input'
|
@@ -259,6 +269,12 @@ require 'carbon_ruby_sdk/models/webhook_query_input'
|
|
259
269
|
require 'carbon_ruby_sdk/models/webhook_query_response'
|
260
270
|
require 'carbon_ruby_sdk/models/webhook_status'
|
261
271
|
require 'carbon_ruby_sdk/models/webscrape_request'
|
272
|
+
require 'carbon_ruby_sdk/models/white_label_create_request_inner'
|
273
|
+
require 'carbon_ruby_sdk/models/white_label_filters'
|
274
|
+
require 'carbon_ruby_sdk/models/white_label_input'
|
275
|
+
require 'carbon_ruby_sdk/models/white_label_input_data_source_type'
|
276
|
+
require 'carbon_ruby_sdk/models/white_label_order_by_columns'
|
277
|
+
require 'carbon_ruby_sdk/models/white_label_update_request'
|
262
278
|
require 'carbon_ruby_sdk/models/white_labeling_response'
|
263
279
|
require 'carbon_ruby_sdk/models/youtube_transcript_response'
|
264
280
|
require 'carbon_ruby_sdk/models/zendesk_authentication'
|
@@ -276,6 +292,7 @@ require 'carbon_ruby_sdk/api/organizations_api'
|
|
276
292
|
require 'carbon_ruby_sdk/api/users_api'
|
277
293
|
require 'carbon_ruby_sdk/api/utilities_api'
|
278
294
|
require 'carbon_ruby_sdk/api/webhooks_api'
|
295
|
+
require 'carbon_ruby_sdk/api/white_label_api'
|
279
296
|
|
280
297
|
module Carbon
|
281
298
|
@config = Configuration.default
|
@@ -344,6 +361,7 @@ module Carbon
|
|
344
361
|
attr_reader :users
|
345
362
|
attr_reader :utilities
|
346
363
|
attr_reader :webhooks
|
364
|
+
attr_reader :white_label
|
347
365
|
|
348
366
|
def initialize(config = Configuration.default)
|
349
367
|
@api_client = ApiClient::new(config)
|
@@ -358,6 +376,7 @@ module Carbon
|
|
358
376
|
@users = Carbon::UsersApi.new(@api_client)
|
359
377
|
@utilities = Carbon::UtilitiesApi.new(@api_client)
|
360
378
|
@webhooks = Carbon::WebhooksApi.new(@api_client)
|
379
|
+
@white_label = Carbon::WhiteLabelApi.new(@api_client)
|
361
380
|
end
|
362
381
|
end
|
363
382
|
end
|
@@ -26,6 +26,17 @@ describe 'DataSourcesApi' do
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
# unit tests for add_tags
|
30
|
+
# Add Data Source Tags
|
31
|
+
# @param add_data_source_tags_input
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [OrganizationUserDataSourceAPI]
|
34
|
+
describe 'add_tags test' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
29
40
|
# unit tests for query_user_data_sources
|
30
41
|
# User Data Sources
|
31
42
|
# @param organization_user_data_source_query_input
|
@@ -37,6 +48,17 @@ describe 'DataSourcesApi' do
|
|
37
48
|
end
|
38
49
|
end
|
39
50
|
|
51
|
+
# unit tests for remove_tags
|
52
|
+
# Remove Data Source Tags
|
53
|
+
# @param remove_data_source_tags_input
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [OrganizationUserDataSourceAPI]
|
56
|
+
describe 'remove_tags test' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
40
62
|
# unit tests for revoke_access_token
|
41
63
|
# Revoke Access Token
|
42
64
|
# @param revoke_access_token_input
|
data/spec/api/files_api_spec.rb
CHANGED
@@ -185,7 +185,7 @@ describe 'FilesApi' do
|
|
185
185
|
# @option opts [FileContentTypesNullable] :media_type The media type of the file. If not provided, it will be inferred from the file extension.
|
186
186
|
# @option opts [Boolean] :split_rows Whether to split tabular rows into chunks. Currently only valid for CSV, TSV, and XLSX files.
|
187
187
|
# @option opts [Boolean] :enable_cold_storage 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.
|
188
|
-
# @option opts [Integer] :hot_storage_time_to_live Time in
|
188
|
+
# @option opts [Integer] :hot_storage_time_to_live Time in days after which the file will be moved to cold storage. Must be one of [1, 3, 7, 14, 30].
|
189
189
|
# @option opts [Boolean] :generate_chunks_only If this flag is enabled, the file will be chunked and stored with Carbon, but no embeddings will be generated. This overrides the skip_embedding_generation flag.
|
190
190
|
# @option opts [Boolean] :store_file_only If this flag is enabled, the file will be stored with Carbon, but no processing will be done.
|
191
191
|
# @return [UserFile]
|
data/spec/api/users_api_spec.rb
CHANGED
@@ -82,4 +82,14 @@ describe 'UsersApi' do
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
+
# unit tests for who_am_i
|
86
|
+
# Me Endpoint
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [UserResponse]
|
89
|
+
describe 'who_am_i test' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
85
95
|
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
=begin
|
2
|
+
#Carbon
|
3
|
+
|
4
|
+
#Connect external data to LLMs, no matter the source.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
|
12
|
+
# Unit tests for Carbon::WhiteLabelApi
|
13
|
+
describe 'WhiteLabelApi' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@api_instance = Carbon::WhiteLabelApi.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of WhiteLabelApi' do
|
24
|
+
it 'should create an instance of WhiteLabelApi' do
|
25
|
+
expect(@api_instance).to be_instance_of(Carbon::WhiteLabelApi)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# unit tests for create
|
30
|
+
# Create White Labels
|
31
|
+
# @param white_label_create_request_inner
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [Object]
|
34
|
+
describe 'create test' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# unit tests for delete
|
41
|
+
# Delete White Labels
|
42
|
+
# @param delete_white_label_request
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Object]
|
45
|
+
describe 'delete test' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# unit tests for list
|
52
|
+
# List White Labels
|
53
|
+
# @param list_white_label_request
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [Object]
|
56
|
+
describe 'list test' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# unit tests for update
|
63
|
+
# Update White Label
|
64
|
+
# @param white_label_update_request
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @return [Object]
|
67
|
+
describe 'update test' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#Carbon
|
3
|
+
|
4
|
+
#Connect external data to LLMs, no matter the source.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Carbon::AddDataSourceTagsInput
|
14
|
+
describe Carbon::AddDataSourceTagsInput do
|
15
|
+
let(:instance) { Carbon::AddDataSourceTagsInput.new }
|
16
|
+
|
17
|
+
describe 'test an instance of AddDataSourceTagsInput' do
|
18
|
+
it 'should create an instance of AddDataSourceTagsInput' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::AddDataSourceTagsInput)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "tags"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test attribute "data_source_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
#Carbon
|
3
|
+
|
4
|
+
#Connect external data to LLMs, no matter the source.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Carbon::Credentials
|
14
|
+
describe Carbon::Credentials do
|
15
|
+
let(:instance) { Carbon::Credentials.new }
|
16
|
+
|
17
|
+
describe 'test an instance of Credentials' do
|
18
|
+
it 'should create an instance of Credentials' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::Credentials)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "client_id"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test attribute "redirect_uri"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "client_secret"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
=begin
|
2
|
+
#Carbon
|
3
|
+
|
4
|
+
#Connect external data to LLMs, no matter the source.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'spec_helper'
|
10
|
+
require 'json'
|
11
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Carbon::DeleteWhiteLabelRequest
|
14
|
+
describe Carbon::DeleteWhiteLabelRequest do
|
15
|
+
let(:instance) { Carbon::DeleteWhiteLabelRequest.new }
|
16
|
+
|
17
|
+
describe 'test an instance of DeleteWhiteLabelRequest' do
|
18
|
+
it 'should create an instance of DeleteWhiteLabelRequest' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::DeleteWhiteLabelRequest)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "ids"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|