carbon_ruby_sdk 0.2.41 → 0.2.42
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 +140 -2
- data/lib/carbon_ruby_sdk/api/white_label_api.rb +393 -0
- 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/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/list_white_label_request.rb +246 -0
- 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/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/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +17 -0
- data/spec/api/white_label_api_spec.rb +73 -0
- data/spec/models/credentials_spec.rb +40 -0
- data/spec/models/delete_white_label_request_spec.rb +28 -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/list_white_label_request_spec.rb +46 -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/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
- metadata +47 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cb19d4bb87096e93a501f8532b550859c7706bc52d16416b36e2298a59deb25
|
4
|
+
data.tar.gz: c7efd65f094791724b6f0dcd3ab154a95c0f3f47e4b1acee99de5bba6119a048
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01fc784420d00d6fbd842c89490f69e83170045b5a448e3a58faf2b46e48035e0cc18ad410e48c2e410fdb56cf824d8b9a6a2bd8993f23bcc42176646eaa69cd
|
7
|
+
data.tar.gz: 888a7225635431d0232a823d6801a99433632794cf7a2e7c344503e772ddda3356497d58316a4dae0e62e4e4f72a1a039a8ba66b1db83f6376cd7cb4cdff7fc5
|
data/Gemfile.lock
CHANGED
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.42)
|
10
10
|
|
11
11
|
</div>
|
12
12
|
|
@@ -103,6 +103,10 @@ Connect external data to LLMs, no matter the source.
|
|
103
103
|
* [`carbon.webhooks.add_url`](#carbonwebhooksadd_url)
|
104
104
|
* [`carbon.webhooks.delete_url`](#carbonwebhooksdelete_url)
|
105
105
|
* [`carbon.webhooks.urls`](#carbonwebhooksurls)
|
106
|
+
* [`carbon.white_label.create`](#carbonwhite_labelcreate)
|
107
|
+
* [`carbon.white_label.delete`](#carbonwhite_labeldelete)
|
108
|
+
* [`carbon.white_label.list`](#carbonwhite_labellist)
|
109
|
+
* [`carbon.white_label.update`](#carbonwhite_labelupdate)
|
106
110
|
|
107
111
|
<!-- tocstop -->
|
108
112
|
|
@@ -111,7 +115,7 @@ Connect external data to LLMs, no matter the source.
|
|
111
115
|
Add to Gemfile:
|
112
116
|
|
113
117
|
```ruby
|
114
|
-
gem 'carbon_ruby_sdk', '~> 0.2.
|
118
|
+
gem 'carbon_ruby_sdk', '~> 0.2.42'
|
115
119
|
```
|
116
120
|
|
117
121
|
## Getting Started<a id="getting-started"></a>
|
@@ -4359,5 +4363,139 @@ p result
|
|
4359
4363
|
---
|
4360
4364
|
|
4361
4365
|
|
4366
|
+
### `carbon.white_label.create`<a id="carbonwhite_labelcreate"></a>
|
4367
|
+
|
4368
|
+
Create White Labels
|
4369
|
+
|
4370
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
4371
|
+
|
4372
|
+
```ruby
|
4373
|
+
result = carbon.white_label.create(
|
4374
|
+
body: [
|
4375
|
+
{
|
4376
|
+
"data_source_type" => None,
|
4377
|
+
"credentials" => {
|
4378
|
+
"client_id" => "client_id_example",
|
4379
|
+
"redirect_uri" => "redirect_uri_example",
|
4380
|
+
},
|
4381
|
+
}
|
4382
|
+
],
|
4383
|
+
)
|
4384
|
+
p result
|
4385
|
+
```
|
4386
|
+
|
4387
|
+
#### ⚙️ body<a id="⚙️-body"></a>
|
4388
|
+
|
4389
|
+
Array<[`WhiteLabelCreateRequestInner`](./lib/carbon_ruby_sdk/models/white_label_create_request_inner.rb)>
|
4390
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
4391
|
+
|
4392
|
+
`/white_label/create` `POST`
|
4393
|
+
|
4394
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
4395
|
+
|
4396
|
+
---
|
4397
|
+
|
4398
|
+
|
4399
|
+
### `carbon.white_label.delete`<a id="carbonwhite_labeldelete"></a>
|
4400
|
+
|
4401
|
+
Delete White Labels
|
4402
|
+
|
4403
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
4404
|
+
|
4405
|
+
```ruby
|
4406
|
+
result = carbon.white_label.delete(
|
4407
|
+
ids: [
|
4408
|
+
1
|
4409
|
+
],
|
4410
|
+
)
|
4411
|
+
p result
|
4412
|
+
```
|
4413
|
+
|
4414
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
4415
|
+
|
4416
|
+
##### ids: Array<`Integer`><a id="ids-array"></a>
|
4417
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
4418
|
+
|
4419
|
+
`/white_label/delete` `POST`
|
4420
|
+
|
4421
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
4422
|
+
|
4423
|
+
---
|
4424
|
+
|
4425
|
+
|
4426
|
+
### `carbon.white_label.list`<a id="carbonwhite_labellist"></a>
|
4427
|
+
|
4428
|
+
List White Labels
|
4429
|
+
|
4430
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
4431
|
+
|
4432
|
+
```ruby
|
4433
|
+
result = carbon.white_label.list(
|
4434
|
+
pagination: {
|
4435
|
+
"limit" => 10,
|
4436
|
+
"offset" => 0,
|
4437
|
+
},
|
4438
|
+
order_by: "created_at",
|
4439
|
+
order_dir: "desc",
|
4440
|
+
filters: {
|
4441
|
+
"ids" => [],
|
4442
|
+
"data_source_type" => [],
|
4443
|
+
},
|
4444
|
+
)
|
4445
|
+
p result
|
4446
|
+
```
|
4447
|
+
|
4448
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
4449
|
+
|
4450
|
+
##### pagination: [`Pagination`](./lib/carbon_ruby_sdk/models/pagination.rb)<a id="pagination-paginationlibcarbon_ruby_sdkmodelspaginationrb"></a>
|
4451
|
+
##### order_by: [`WhiteLabelOrderByColumns`](./lib/carbon_ruby_sdk/models/white_label_order_by_columns.rb)<a id="order_by-whitelabelorderbycolumnslibcarbon_ruby_sdkmodelswhite_label_order_by_columnsrb"></a>
|
4452
|
+
##### order_dir: [`OrderDir`](./lib/carbon_ruby_sdk/models/order_dir.rb)<a id="order_dir-orderdirlibcarbon_ruby_sdkmodelsorder_dirrb"></a>
|
4453
|
+
##### filters: [`WhiteLabelFilters`](./lib/carbon_ruby_sdk/models/white_label_filters.rb)<a id="filters-whitelabelfilterslibcarbon_ruby_sdkmodelswhite_label_filtersrb"></a>
|
4454
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
4455
|
+
|
4456
|
+
`/white_label/list` `POST`
|
4457
|
+
|
4458
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
4459
|
+
|
4460
|
+
---
|
4461
|
+
|
4462
|
+
|
4463
|
+
### `carbon.white_label.update`<a id="carbonwhite_labelupdate"></a>
|
4464
|
+
|
4465
|
+
Update White Label
|
4466
|
+
|
4467
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
4468
|
+
|
4469
|
+
```ruby
|
4470
|
+
result = carbon.white_label.update(
|
4471
|
+
data_source_type: "INTERCOM",
|
4472
|
+
credentials: {
|
4473
|
+
"client_id" => "client_id_example",
|
4474
|
+
"redirect_uri" => "redirect_uri_example",
|
4475
|
+
},
|
4476
|
+
body: {
|
4477
|
+
"data_source_type" => None,
|
4478
|
+
"credentials" => {
|
4479
|
+
"client_id" => "client_id_example",
|
4480
|
+
"redirect_uri" => "redirect_uri_example",
|
4481
|
+
},
|
4482
|
+
},
|
4483
|
+
)
|
4484
|
+
p result
|
4485
|
+
```
|
4486
|
+
|
4487
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
4488
|
+
|
4489
|
+
##### data_source_type: [`WhiteLabelInputDataSourceType`](./lib/carbon_ruby_sdk/models/white_label_input_data_source_type.rb)<a id="data_source_type-whitelabelinputdatasourcetypelibcarbon_ruby_sdkmodelswhite_label_input_data_source_typerb"></a>
|
4490
|
+
##### credentials: [`Credentials`](./lib/carbon_ruby_sdk/models/credentials.rb)<a id="credentials-credentialslibcarbon_ruby_sdkmodelscredentialsrb"></a>
|
4491
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
4492
|
+
|
4493
|
+
`/white_label/update` `POST`
|
4494
|
+
|
4495
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
4496
|
+
|
4497
|
+
---
|
4498
|
+
|
4499
|
+
|
4362
4500
|
## Author<a id="author"></a>
|
4363
4501
|
This TypeScript package is automatically generated by [Konfig](https://konfigthis.com)
|
@@ -0,0 +1,393 @@
|
|
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 'cgi'
|
10
|
+
|
11
|
+
module Carbon
|
12
|
+
class WhiteLabelApi
|
13
|
+
attr_accessor :api_client
|
14
|
+
|
15
|
+
def initialize(api_client = ApiClient.default)
|
16
|
+
@api_client = api_client
|
17
|
+
end
|
18
|
+
|
19
|
+
# Create White Labels
|
20
|
+
#
|
21
|
+
# @param body [Array<WhiteLabelCreateRequestInner>]
|
22
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
23
|
+
def create(body:, extra: {})
|
24
|
+
white_label_create_request_inner = body
|
25
|
+
api_response = create_with_http_info_impl(white_label_create_request_inner, extra)
|
26
|
+
api_response.data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Create White Labels
|
30
|
+
#
|
31
|
+
# @param body [Array<WhiteLabelCreateRequestInner>]
|
32
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
33
|
+
def create_with_http_info(body:, extra: {})
|
34
|
+
white_label_create_request_inner = body
|
35
|
+
create_with_http_info_impl(white_label_create_request_inner, extra)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Create White Labels
|
39
|
+
# @param white_label_create_request_inner [Array<WhiteLabelCreateRequestInner>]
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Object]
|
42
|
+
private def create_impl(white_label_create_request_inner, opts = {})
|
43
|
+
data, _status_code, _headers = create_with_http_info(white_label_create_request_inner, opts)
|
44
|
+
data
|
45
|
+
end
|
46
|
+
|
47
|
+
# Create White Labels
|
48
|
+
# @param white_label_create_request_inner [Array<WhiteLabelCreateRequestInner>]
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [APIResponse] data is Object, status code, headers and response
|
51
|
+
private def create_with_http_info_impl(white_label_create_request_inner, opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug 'Calling API: WhiteLabelApi.create ...'
|
54
|
+
end
|
55
|
+
# verify the required parameter 'white_label_create_request_inner' is set
|
56
|
+
if @api_client.config.client_side_validation && white_label_create_request_inner.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'white_label_create_request_inner' when calling WhiteLabelApi.create"
|
58
|
+
end
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/white_label/create'
|
61
|
+
|
62
|
+
# query parameters
|
63
|
+
query_params = opts[:query_params] || {}
|
64
|
+
|
65
|
+
# header parameters
|
66
|
+
header_params = opts[:header_params] || {}
|
67
|
+
# HTTP header 'Accept' (if needed)
|
68
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
69
|
+
# HTTP header 'Content-Type'
|
70
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
71
|
+
if !content_type.nil?
|
72
|
+
header_params['Content-Type'] = content_type
|
73
|
+
end
|
74
|
+
|
75
|
+
# form parameters
|
76
|
+
form_params = opts[:form_params] || {}
|
77
|
+
|
78
|
+
# http body (model)
|
79
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(white_label_create_request_inner)
|
80
|
+
|
81
|
+
# return_type
|
82
|
+
return_type = opts[:debug_return_type] || 'Object'
|
83
|
+
|
84
|
+
# auth_names
|
85
|
+
auth_names = opts[:debug_auth_names] || ['apiKey']
|
86
|
+
|
87
|
+
new_options = opts.merge(
|
88
|
+
:operation => :"WhiteLabelApi.create",
|
89
|
+
:header_params => header_params,
|
90
|
+
:query_params => query_params,
|
91
|
+
:form_params => form_params,
|
92
|
+
:body => post_body,
|
93
|
+
:auth_names => auth_names,
|
94
|
+
:return_type => return_type
|
95
|
+
)
|
96
|
+
|
97
|
+
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
98
|
+
if @api_client.config.debugging
|
99
|
+
@api_client.config.logger.debug "API called: WhiteLabelApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
100
|
+
end
|
101
|
+
APIResponse::new(data, status_code, headers, response)
|
102
|
+
end
|
103
|
+
|
104
|
+
|
105
|
+
# Delete White Labels
|
106
|
+
#
|
107
|
+
# @param ids [Array<Integer>]
|
108
|
+
# @param body [DeleteWhiteLabelRequest]
|
109
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
110
|
+
def delete(ids:, extra: {})
|
111
|
+
_body = {}
|
112
|
+
_body[:ids] = ids if ids != SENTINEL
|
113
|
+
delete_white_label_request = _body
|
114
|
+
api_response = delete_with_http_info_impl(delete_white_label_request, extra)
|
115
|
+
api_response.data
|
116
|
+
end
|
117
|
+
|
118
|
+
# Delete White Labels
|
119
|
+
#
|
120
|
+
# @param ids [Array<Integer>]
|
121
|
+
# @param body [DeleteWhiteLabelRequest]
|
122
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
123
|
+
def delete_with_http_info(ids:, extra: {})
|
124
|
+
_body = {}
|
125
|
+
_body[:ids] = ids if ids != SENTINEL
|
126
|
+
delete_white_label_request = _body
|
127
|
+
delete_with_http_info_impl(delete_white_label_request, extra)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Delete White Labels
|
131
|
+
# @param delete_white_label_request [DeleteWhiteLabelRequest]
|
132
|
+
# @param [Hash] opts the optional parameters
|
133
|
+
# @return [Object]
|
134
|
+
private def delete_impl(delete_white_label_request, opts = {})
|
135
|
+
data, _status_code, _headers = delete_with_http_info(delete_white_label_request, opts)
|
136
|
+
data
|
137
|
+
end
|
138
|
+
|
139
|
+
# Delete White Labels
|
140
|
+
# @param delete_white_label_request [DeleteWhiteLabelRequest]
|
141
|
+
# @param [Hash] opts the optional parameters
|
142
|
+
# @return [APIResponse] data is Object, status code, headers and response
|
143
|
+
private def delete_with_http_info_impl(delete_white_label_request, opts = {})
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug 'Calling API: WhiteLabelApi.delete ...'
|
146
|
+
end
|
147
|
+
# verify the required parameter 'delete_white_label_request' is set
|
148
|
+
if @api_client.config.client_side_validation && delete_white_label_request.nil?
|
149
|
+
fail ArgumentError, "Missing the required parameter 'delete_white_label_request' when calling WhiteLabelApi.delete"
|
150
|
+
end
|
151
|
+
# resource path
|
152
|
+
local_var_path = '/white_label/delete'
|
153
|
+
|
154
|
+
# query parameters
|
155
|
+
query_params = opts[:query_params] || {}
|
156
|
+
|
157
|
+
# header parameters
|
158
|
+
header_params = opts[:header_params] || {}
|
159
|
+
# HTTP header 'Accept' (if needed)
|
160
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
161
|
+
# HTTP header 'Content-Type'
|
162
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
163
|
+
if !content_type.nil?
|
164
|
+
header_params['Content-Type'] = content_type
|
165
|
+
end
|
166
|
+
|
167
|
+
# form parameters
|
168
|
+
form_params = opts[:form_params] || {}
|
169
|
+
|
170
|
+
# http body (model)
|
171
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_white_label_request)
|
172
|
+
|
173
|
+
# return_type
|
174
|
+
return_type = opts[:debug_return_type] || 'Object'
|
175
|
+
|
176
|
+
# auth_names
|
177
|
+
auth_names = opts[:debug_auth_names] || ['apiKey']
|
178
|
+
|
179
|
+
new_options = opts.merge(
|
180
|
+
:operation => :"WhiteLabelApi.delete",
|
181
|
+
:header_params => header_params,
|
182
|
+
:query_params => query_params,
|
183
|
+
:form_params => form_params,
|
184
|
+
:body => post_body,
|
185
|
+
:auth_names => auth_names,
|
186
|
+
:return_type => return_type
|
187
|
+
)
|
188
|
+
|
189
|
+
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
190
|
+
if @api_client.config.debugging
|
191
|
+
@api_client.config.logger.debug "API called: WhiteLabelApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
192
|
+
end
|
193
|
+
APIResponse::new(data, status_code, headers, response)
|
194
|
+
end
|
195
|
+
|
196
|
+
|
197
|
+
# List White Labels
|
198
|
+
#
|
199
|
+
# @param pagination [Pagination]
|
200
|
+
# @param order_by [WhiteLabelOrderByColumns]
|
201
|
+
# @param order_dir [OrderDir]
|
202
|
+
# @param filters [WhiteLabelFilters]
|
203
|
+
# @param body [ListWhiteLabelRequest]
|
204
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
205
|
+
def list(pagination: SENTINEL, order_by: 'created_at', order_dir: 'asc', filters: SENTINEL, extra: {})
|
206
|
+
_body = {}
|
207
|
+
_body[:pagination] = pagination if pagination != SENTINEL
|
208
|
+
_body[:order_by] = order_by if order_by != SENTINEL
|
209
|
+
_body[:order_dir] = order_dir if order_dir != SENTINEL
|
210
|
+
_body[:filters] = filters if filters != SENTINEL
|
211
|
+
list_white_label_request = _body
|
212
|
+
api_response = list_with_http_info_impl(list_white_label_request, extra)
|
213
|
+
api_response.data
|
214
|
+
end
|
215
|
+
|
216
|
+
# List White Labels
|
217
|
+
#
|
218
|
+
# @param pagination [Pagination]
|
219
|
+
# @param order_by [WhiteLabelOrderByColumns]
|
220
|
+
# @param order_dir [OrderDir]
|
221
|
+
# @param filters [WhiteLabelFilters]
|
222
|
+
# @param body [ListWhiteLabelRequest]
|
223
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
224
|
+
def list_with_http_info(pagination: SENTINEL, order_by: 'created_at', order_dir: 'asc', filters: SENTINEL, extra: {})
|
225
|
+
_body = {}
|
226
|
+
_body[:pagination] = pagination if pagination != SENTINEL
|
227
|
+
_body[:order_by] = order_by if order_by != SENTINEL
|
228
|
+
_body[:order_dir] = order_dir if order_dir != SENTINEL
|
229
|
+
_body[:filters] = filters if filters != SENTINEL
|
230
|
+
list_white_label_request = _body
|
231
|
+
list_with_http_info_impl(list_white_label_request, extra)
|
232
|
+
end
|
233
|
+
|
234
|
+
# List White Labels
|
235
|
+
# @param list_white_label_request [ListWhiteLabelRequest]
|
236
|
+
# @param [Hash] opts the optional parameters
|
237
|
+
# @return [Object]
|
238
|
+
private def list_impl(list_white_label_request, opts = {})
|
239
|
+
data, _status_code, _headers = list_with_http_info(list_white_label_request, opts)
|
240
|
+
data
|
241
|
+
end
|
242
|
+
|
243
|
+
# List White Labels
|
244
|
+
# @param list_white_label_request [ListWhiteLabelRequest]
|
245
|
+
# @param [Hash] opts the optional parameters
|
246
|
+
# @return [APIResponse] data is Object, status code, headers and response
|
247
|
+
private def list_with_http_info_impl(list_white_label_request, opts = {})
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug 'Calling API: WhiteLabelApi.list ...'
|
250
|
+
end
|
251
|
+
# verify the required parameter 'list_white_label_request' is set
|
252
|
+
if @api_client.config.client_side_validation && list_white_label_request.nil?
|
253
|
+
fail ArgumentError, "Missing the required parameter 'list_white_label_request' when calling WhiteLabelApi.list"
|
254
|
+
end
|
255
|
+
# resource path
|
256
|
+
local_var_path = '/white_label/list'
|
257
|
+
|
258
|
+
# query parameters
|
259
|
+
query_params = opts[:query_params] || {}
|
260
|
+
|
261
|
+
# header parameters
|
262
|
+
header_params = opts[:header_params] || {}
|
263
|
+
# HTTP header 'Accept' (if needed)
|
264
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
265
|
+
# HTTP header 'Content-Type'
|
266
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
267
|
+
if !content_type.nil?
|
268
|
+
header_params['Content-Type'] = content_type
|
269
|
+
end
|
270
|
+
|
271
|
+
# form parameters
|
272
|
+
form_params = opts[:form_params] || {}
|
273
|
+
|
274
|
+
# http body (model)
|
275
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(list_white_label_request)
|
276
|
+
|
277
|
+
# return_type
|
278
|
+
return_type = opts[:debug_return_type] || 'Object'
|
279
|
+
|
280
|
+
# auth_names
|
281
|
+
auth_names = opts[:debug_auth_names] || ['apiKey']
|
282
|
+
|
283
|
+
new_options = opts.merge(
|
284
|
+
:operation => :"WhiteLabelApi.list",
|
285
|
+
:header_params => header_params,
|
286
|
+
:query_params => query_params,
|
287
|
+
:form_params => form_params,
|
288
|
+
:body => post_body,
|
289
|
+
:auth_names => auth_names,
|
290
|
+
:return_type => return_type
|
291
|
+
)
|
292
|
+
|
293
|
+
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
294
|
+
if @api_client.config.debugging
|
295
|
+
@api_client.config.logger.debug "API called: WhiteLabelApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
296
|
+
end
|
297
|
+
APIResponse::new(data, status_code, headers, response)
|
298
|
+
end
|
299
|
+
|
300
|
+
|
301
|
+
# Update White Label
|
302
|
+
#
|
303
|
+
# @param data_source_type [WhiteLabelInputDataSourceType]
|
304
|
+
# @param credentials [Credentials]
|
305
|
+
# @param body [WhiteLabelUpdateRequest]
|
306
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
307
|
+
def update(data_source_type: SENTINEL, credentials: SENTINEL, body:, extra: {})
|
308
|
+
white_label_update_request = body
|
309
|
+
api_response = update_with_http_info_impl(white_label_update_request, extra)
|
310
|
+
api_response.data
|
311
|
+
end
|
312
|
+
|
313
|
+
# Update White Label
|
314
|
+
#
|
315
|
+
# @param data_source_type [WhiteLabelInputDataSourceType]
|
316
|
+
# @param credentials [Credentials]
|
317
|
+
# @param body [WhiteLabelUpdateRequest]
|
318
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
319
|
+
def update_with_http_info(data_source_type: SENTINEL, credentials: SENTINEL, body:, extra: {})
|
320
|
+
white_label_update_request = body
|
321
|
+
update_with_http_info_impl(white_label_update_request, extra)
|
322
|
+
end
|
323
|
+
|
324
|
+
# Update White Label
|
325
|
+
# @param white_label_update_request [WhiteLabelUpdateRequest]
|
326
|
+
# @param [Hash] opts the optional parameters
|
327
|
+
# @return [Object]
|
328
|
+
private def update_impl(white_label_update_request, opts = {})
|
329
|
+
data, _status_code, _headers = update_with_http_info(white_label_update_request, opts)
|
330
|
+
data
|
331
|
+
end
|
332
|
+
|
333
|
+
# Update White Label
|
334
|
+
# @param white_label_update_request [WhiteLabelUpdateRequest]
|
335
|
+
# @param [Hash] opts the optional parameters
|
336
|
+
# @return [APIResponse] data is Object, status code, headers and response
|
337
|
+
private def update_with_http_info_impl(white_label_update_request, opts = {})
|
338
|
+
if @api_client.config.debugging
|
339
|
+
@api_client.config.logger.debug 'Calling API: WhiteLabelApi.update ...'
|
340
|
+
end
|
341
|
+
# verify the required parameter 'white_label_update_request' is set
|
342
|
+
if @api_client.config.client_side_validation && white_label_update_request.nil?
|
343
|
+
fail ArgumentError, "Missing the required parameter 'white_label_update_request' when calling WhiteLabelApi.update"
|
344
|
+
end
|
345
|
+
# resource path
|
346
|
+
local_var_path = '/white_label/update'
|
347
|
+
|
348
|
+
# query parameters
|
349
|
+
query_params = opts[:query_params] || {}
|
350
|
+
|
351
|
+
# header parameters
|
352
|
+
header_params = opts[:header_params] || {}
|
353
|
+
# HTTP header 'Accept' (if needed)
|
354
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
355
|
+
# HTTP header 'Content-Type'
|
356
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
357
|
+
if !content_type.nil?
|
358
|
+
header_params['Content-Type'] = content_type
|
359
|
+
end
|
360
|
+
|
361
|
+
# form parameters
|
362
|
+
form_params = opts[:form_params] || {}
|
363
|
+
|
364
|
+
# http body (model)
|
365
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(white_label_update_request)
|
366
|
+
|
367
|
+
# return_type
|
368
|
+
return_type = opts[:debug_return_type] || 'Object'
|
369
|
+
|
370
|
+
# auth_names
|
371
|
+
auth_names = opts[:debug_auth_names] || ['apiKey']
|
372
|
+
|
373
|
+
new_options = opts.merge(
|
374
|
+
:operation => :"WhiteLabelApi.update",
|
375
|
+
:header_params => header_params,
|
376
|
+
:query_params => query_params,
|
377
|
+
:form_params => form_params,
|
378
|
+
:body => post_body,
|
379
|
+
:auth_names => auth_names,
|
380
|
+
:return_type => return_type
|
381
|
+
)
|
382
|
+
|
383
|
+
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
384
|
+
if @api_client.config.debugging
|
385
|
+
@api_client.config.logger.debug "API called: WhiteLabelApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
386
|
+
end
|
387
|
+
APIResponse::new(data, status_code, headers, response)
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
# top-level client access to avoid having the user to insantiate their own API instances
|
392
|
+
WhiteLabel = WhiteLabelApi::new
|
393
|
+
end
|