dub 0.2.2.pre.alpha.16 → 0.2.2.pre.alpha.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_api_sdk/domains.rb +56 -56
- data/lib/open_api_sdk/links.rb +81 -81
- data/lib/open_api_sdk/models/operations/groupby.rb +1 -0
- data/lib/open_api_sdk/models/operations/listevents_request.rb +5 -2
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +5 -2
- data/lib/open_api_sdk/models/operations.rb +17 -17
- data/lib/open_api_sdk/models/shared/click.rb +5 -2
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- data/lib/open_api_sdk/tags.rb +54 -54
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6df32ac74714365b21b13c39efb4037d03ddf9208fe026b00b88bcfc9c935f64
|
4
|
+
data.tar.gz: bb8fdffcaaf92c77e1d1892818b9893a23d9eb213eaa56257e1c89ee22d4cff2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2c4b37ad0c2f5117a9f14cd58232d102b1b2f78a18627b2114ea090493803df44d6d744e82387ffa09f9fb88e0ed0cc310911f22c16f717d2077044c197cf9
|
7
|
+
data.tar.gz: 700912c074c395d66ddf259bd98069ed72aba566782f9c0de28d848c42742d555c93824eb486fa549461beea7c49dfa63f974f841aa9d2561c6d293ebfb6aa70
|
data/lib/open_api_sdk/domains.rb
CHANGED
@@ -19,33 +19,40 @@ module OpenApiSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
23
|
-
def
|
24
|
-
#
|
25
|
-
#
|
22
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateDomainRequestBody)).returns(::OpenApiSDK::Operations::CreateDomainResponse) }
|
23
|
+
def create(request)
|
24
|
+
# create - Create a domain
|
25
|
+
# Create a domain for the authenticated workspace.
|
26
26
|
url, params = @sdk_configuration.get_server_details
|
27
27
|
base_url = Utils.template_url(url, params)
|
28
28
|
url = "#{base_url}/domains"
|
29
29
|
headers = {}
|
30
|
-
|
30
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
31
|
+
headers['content-type'] = req_content_type
|
31
32
|
headers['Accept'] = 'application/json'
|
32
33
|
headers['user-agent'] = @sdk_configuration.user_agent
|
33
34
|
|
34
|
-
r = @sdk_configuration.client.
|
35
|
+
r = @sdk_configuration.client.post(url) do |req|
|
35
36
|
req.headers = headers
|
36
|
-
req.params = query_params
|
37
37
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
38
|
+
if form
|
39
|
+
req.body = Utils.encode_form(form)
|
40
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
41
|
+
req.body = URI.encode_www_form(data)
|
42
|
+
else
|
43
|
+
req.body = data
|
44
|
+
end
|
38
45
|
end
|
39
46
|
|
40
47
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
41
48
|
|
42
|
-
res = ::OpenApiSDK::Operations::
|
49
|
+
res = ::OpenApiSDK::Operations::CreateDomainResponse.new(
|
43
50
|
status_code: r.status, content_type: content_type, raw_response: r
|
44
51
|
)
|
45
|
-
if r.status ==
|
52
|
+
if r.status == 201
|
46
53
|
if Utils.match_content_type(content_type, 'application/json')
|
47
|
-
out = Utils.unmarshal_complex(r.env.response_body,
|
48
|
-
res.
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::DomainSchema)
|
55
|
+
res.domain_schema = out
|
49
56
|
end
|
50
57
|
elsif r.status == 400
|
51
58
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -97,40 +104,33 @@ module OpenApiSDK
|
|
97
104
|
end
|
98
105
|
|
99
106
|
|
100
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
101
|
-
def
|
102
|
-
#
|
103
|
-
#
|
107
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::ListDomainsRequest)).returns(::OpenApiSDK::Operations::ListDomainsResponse) }
|
108
|
+
def list(request)
|
109
|
+
# list - Retrieve a list of domains
|
110
|
+
# Retrieve a list of domains associated with the authenticated workspace.
|
104
111
|
url, params = @sdk_configuration.get_server_details
|
105
112
|
base_url = Utils.template_url(url, params)
|
106
113
|
url = "#{base_url}/domains"
|
107
114
|
headers = {}
|
108
|
-
|
109
|
-
headers['content-type'] = req_content_type
|
115
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::ListDomainsRequest, request)
|
110
116
|
headers['Accept'] = 'application/json'
|
111
117
|
headers['user-agent'] = @sdk_configuration.user_agent
|
112
118
|
|
113
|
-
r = @sdk_configuration.client.
|
119
|
+
r = @sdk_configuration.client.get(url) do |req|
|
114
120
|
req.headers = headers
|
121
|
+
req.params = query_params
|
115
122
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
116
|
-
if form
|
117
|
-
req.body = Utils.encode_form(form)
|
118
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
119
|
-
req.body = URI.encode_www_form(data)
|
120
|
-
else
|
121
|
-
req.body = data
|
122
|
-
end
|
123
123
|
end
|
124
124
|
|
125
125
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
126
126
|
|
127
|
-
res = ::OpenApiSDK::Operations::
|
127
|
+
res = ::OpenApiSDK::Operations::ListDomainsResponse.new(
|
128
128
|
status_code: r.status, content_type: content_type, raw_response: r
|
129
129
|
)
|
130
|
-
if r.status ==
|
130
|
+
if r.status == 200
|
131
131
|
if Utils.match_content_type(content_type, 'application/json')
|
132
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::DomainSchema)
|
133
|
-
res.
|
132
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::DomainSchema])
|
133
|
+
res.domain_schemas = out
|
134
134
|
end
|
135
135
|
elsif r.status == 400
|
136
136
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -182,36 +182,45 @@ module OpenApiSDK
|
|
182
182
|
end
|
183
183
|
|
184
184
|
|
185
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
186
|
-
def
|
187
|
-
#
|
188
|
-
#
|
185
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateDomainRequest)).returns(::OpenApiSDK::Operations::UpdateDomainResponse) }
|
186
|
+
def update(request)
|
187
|
+
# update - Update a domain
|
188
|
+
# Update a domain for the authenticated workspace.
|
189
189
|
url, params = @sdk_configuration.get_server_details
|
190
190
|
base_url = Utils.template_url(url, params)
|
191
191
|
url = Utils.generate_url(
|
192
|
-
::OpenApiSDK::Operations::
|
192
|
+
::OpenApiSDK::Operations::UpdateDomainRequest,
|
193
193
|
base_url,
|
194
194
|
'/domains/{slug}',
|
195
195
|
request
|
196
196
|
)
|
197
197
|
headers = {}
|
198
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
199
|
+
headers['content-type'] = req_content_type
|
198
200
|
headers['Accept'] = 'application/json'
|
199
201
|
headers['user-agent'] = @sdk_configuration.user_agent
|
200
202
|
|
201
|
-
r = @sdk_configuration.client.
|
203
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
202
204
|
req.headers = headers
|
203
205
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
206
|
+
if form
|
207
|
+
req.body = Utils.encode_form(form)
|
208
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
209
|
+
req.body = URI.encode_www_form(data)
|
210
|
+
else
|
211
|
+
req.body = data
|
212
|
+
end
|
204
213
|
end
|
205
214
|
|
206
215
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
207
216
|
|
208
|
-
res = ::OpenApiSDK::Operations::
|
217
|
+
res = ::OpenApiSDK::Operations::UpdateDomainResponse.new(
|
209
218
|
status_code: r.status, content_type: content_type, raw_response: r
|
210
219
|
)
|
211
220
|
if r.status == 200
|
212
221
|
if Utils.match_content_type(content_type, 'application/json')
|
213
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::
|
214
|
-
res.
|
222
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::DomainSchema)
|
223
|
+
res.domain_schema = out
|
215
224
|
end
|
216
225
|
elsif r.status == 400
|
217
226
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -263,45 +272,36 @@ module OpenApiSDK
|
|
263
272
|
end
|
264
273
|
|
265
274
|
|
266
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
267
|
-
def
|
268
|
-
#
|
269
|
-
#
|
275
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::DeleteDomainRequest)).returns(::OpenApiSDK::Operations::DeleteDomainResponse) }
|
276
|
+
def delete(request)
|
277
|
+
# delete - Delete a domain
|
278
|
+
# Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.
|
270
279
|
url, params = @sdk_configuration.get_server_details
|
271
280
|
base_url = Utils.template_url(url, params)
|
272
281
|
url = Utils.generate_url(
|
273
|
-
::OpenApiSDK::Operations::
|
282
|
+
::OpenApiSDK::Operations::DeleteDomainRequest,
|
274
283
|
base_url,
|
275
284
|
'/domains/{slug}',
|
276
285
|
request
|
277
286
|
)
|
278
287
|
headers = {}
|
279
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
280
|
-
headers['content-type'] = req_content_type
|
281
288
|
headers['Accept'] = 'application/json'
|
282
289
|
headers['user-agent'] = @sdk_configuration.user_agent
|
283
290
|
|
284
|
-
r = @sdk_configuration.client.
|
291
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
285
292
|
req.headers = headers
|
286
293
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
287
|
-
if form
|
288
|
-
req.body = Utils.encode_form(form)
|
289
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
290
|
-
req.body = URI.encode_www_form(data)
|
291
|
-
else
|
292
|
-
req.body = data
|
293
|
-
end
|
294
294
|
end
|
295
295
|
|
296
296
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
297
297
|
|
298
|
-
res = ::OpenApiSDK::Operations::
|
298
|
+
res = ::OpenApiSDK::Operations::DeleteDomainResponse.new(
|
299
299
|
status_code: r.status, content_type: content_type, raw_response: r
|
300
300
|
)
|
301
301
|
if r.status == 200
|
302
302
|
if Utils.match_content_type(content_type, 'application/json')
|
303
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::
|
304
|
-
res.
|
303
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::DeleteDomainResponseBody)
|
304
|
+
res.object = out
|
305
305
|
end
|
306
306
|
elsif r.status == 400
|
307
307
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/open_api_sdk/links.rb
CHANGED
@@ -19,33 +19,40 @@ module OpenApiSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
23
|
-
def
|
24
|
-
#
|
25
|
-
#
|
22
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateLinkRequestBody)).returns(::OpenApiSDK::Operations::CreateLinkResponse) }
|
23
|
+
def create(request)
|
24
|
+
# create - Create a new link
|
25
|
+
# Create a new link for the authenticated workspace.
|
26
26
|
url, params = @sdk_configuration.get_server_details
|
27
27
|
base_url = Utils.template_url(url, params)
|
28
28
|
url = "#{base_url}/links"
|
29
29
|
headers = {}
|
30
|
-
|
30
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
31
|
+
headers['content-type'] = req_content_type
|
31
32
|
headers['Accept'] = 'application/json'
|
32
33
|
headers['user-agent'] = @sdk_configuration.user_agent
|
33
34
|
|
34
|
-
r = @sdk_configuration.client.
|
35
|
+
r = @sdk_configuration.client.post(url) do |req|
|
35
36
|
req.headers = headers
|
36
|
-
req.params = query_params
|
37
37
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
38
|
+
if form
|
39
|
+
req.body = Utils.encode_form(form)
|
40
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
41
|
+
req.body = URI.encode_www_form(data)
|
42
|
+
else
|
43
|
+
req.body = data
|
44
|
+
end
|
38
45
|
end
|
39
46
|
|
40
47
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
41
48
|
|
42
|
-
res = ::OpenApiSDK::Operations::
|
49
|
+
res = ::OpenApiSDK::Operations::CreateLinkResponse.new(
|
43
50
|
status_code: r.status, content_type: content_type, raw_response: r
|
44
51
|
)
|
45
52
|
if r.status == 200
|
46
53
|
if Utils.match_content_type(content_type, 'application/json')
|
47
|
-
out = Utils.unmarshal_complex(r.env.response_body,
|
48
|
-
res.
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::LinkSchema)
|
55
|
+
res.link_schema = out
|
49
56
|
end
|
50
57
|
elsif r.status == 400
|
51
58
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -97,40 +104,33 @@ module OpenApiSDK
|
|
97
104
|
end
|
98
105
|
|
99
106
|
|
100
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
101
|
-
def
|
102
|
-
#
|
103
|
-
#
|
107
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetLinksRequest)).returns(::OpenApiSDK::Operations::GetLinksResponse) }
|
108
|
+
def list(request)
|
109
|
+
# list - Retrieve a list of links
|
110
|
+
# Retrieve a paginated list of links for the authenticated workspace.
|
104
111
|
url, params = @sdk_configuration.get_server_details
|
105
112
|
base_url = Utils.template_url(url, params)
|
106
113
|
url = "#{base_url}/links"
|
107
114
|
headers = {}
|
108
|
-
|
109
|
-
headers['content-type'] = req_content_type
|
115
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetLinksRequest, request)
|
110
116
|
headers['Accept'] = 'application/json'
|
111
117
|
headers['user-agent'] = @sdk_configuration.user_agent
|
112
118
|
|
113
|
-
r = @sdk_configuration.client.
|
119
|
+
r = @sdk_configuration.client.get(url) do |req|
|
114
120
|
req.headers = headers
|
121
|
+
req.params = query_params
|
115
122
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
116
|
-
if form
|
117
|
-
req.body = Utils.encode_form(form)
|
118
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
119
|
-
req.body = URI.encode_www_form(data)
|
120
|
-
else
|
121
|
-
req.body = data
|
122
|
-
end
|
123
123
|
end
|
124
124
|
|
125
125
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
126
126
|
|
127
|
-
res = ::OpenApiSDK::Operations::
|
127
|
+
res = ::OpenApiSDK::Operations::GetLinksResponse.new(
|
128
128
|
status_code: r.status, content_type: content_type, raw_response: r
|
129
129
|
)
|
130
130
|
if r.status == 200
|
131
131
|
if Utils.match_content_type(content_type, 'application/json')
|
132
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::LinkSchema)
|
133
|
-
res.
|
132
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::LinkSchema])
|
133
|
+
res.link_schemas = out
|
134
134
|
end
|
135
135
|
elsif r.status == 400
|
136
136
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -338,36 +338,45 @@ module OpenApiSDK
|
|
338
338
|
end
|
339
339
|
|
340
340
|
|
341
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
342
|
-
def
|
343
|
-
#
|
344
|
-
#
|
341
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateLinkRequest)).returns(::OpenApiSDK::Operations::UpdateLinkResponse) }
|
342
|
+
def update(request)
|
343
|
+
# update - Update a link
|
344
|
+
# Update a link for the authenticated workspace. If there's no change, returns it as it is.
|
345
345
|
url, params = @sdk_configuration.get_server_details
|
346
346
|
base_url = Utils.template_url(url, params)
|
347
347
|
url = Utils.generate_url(
|
348
|
-
::OpenApiSDK::Operations::
|
348
|
+
::OpenApiSDK::Operations::UpdateLinkRequest,
|
349
349
|
base_url,
|
350
350
|
'/links/{linkId}',
|
351
351
|
request
|
352
352
|
)
|
353
353
|
headers = {}
|
354
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
355
|
+
headers['content-type'] = req_content_type
|
354
356
|
headers['Accept'] = 'application/json'
|
355
357
|
headers['user-agent'] = @sdk_configuration.user_agent
|
356
358
|
|
357
|
-
r = @sdk_configuration.client.
|
359
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
358
360
|
req.headers = headers
|
359
361
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
362
|
+
if form
|
363
|
+
req.body = Utils.encode_form(form)
|
364
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
365
|
+
req.body = URI.encode_www_form(data)
|
366
|
+
else
|
367
|
+
req.body = data
|
368
|
+
end
|
360
369
|
end
|
361
370
|
|
362
371
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
363
372
|
|
364
|
-
res = ::OpenApiSDK::Operations::
|
373
|
+
res = ::OpenApiSDK::Operations::UpdateLinkResponse.new(
|
365
374
|
status_code: r.status, content_type: content_type, raw_response: r
|
366
375
|
)
|
367
376
|
if r.status == 200
|
368
377
|
if Utils.match_content_type(content_type, 'application/json')
|
369
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::
|
370
|
-
res.
|
378
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::LinkSchema)
|
379
|
+
res.link_schema = out
|
371
380
|
end
|
372
381
|
elsif r.status == 400
|
373
382
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -419,45 +428,36 @@ module OpenApiSDK
|
|
419
428
|
end
|
420
429
|
|
421
430
|
|
422
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
423
|
-
def
|
424
|
-
#
|
425
|
-
#
|
431
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::DeleteLinkRequest)).returns(::OpenApiSDK::Operations::DeleteLinkResponse) }
|
432
|
+
def delete(request)
|
433
|
+
# delete - Delete a link
|
434
|
+
# Delete a link for the authenticated workspace.
|
426
435
|
url, params = @sdk_configuration.get_server_details
|
427
436
|
base_url = Utils.template_url(url, params)
|
428
437
|
url = Utils.generate_url(
|
429
|
-
::OpenApiSDK::Operations::
|
438
|
+
::OpenApiSDK::Operations::DeleteLinkRequest,
|
430
439
|
base_url,
|
431
440
|
'/links/{linkId}',
|
432
441
|
request
|
433
442
|
)
|
434
443
|
headers = {}
|
435
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
436
|
-
headers['content-type'] = req_content_type
|
437
444
|
headers['Accept'] = 'application/json'
|
438
445
|
headers['user-agent'] = @sdk_configuration.user_agent
|
439
446
|
|
440
|
-
r = @sdk_configuration.client.
|
447
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
441
448
|
req.headers = headers
|
442
449
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
443
|
-
if form
|
444
|
-
req.body = Utils.encode_form(form)
|
445
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
446
|
-
req.body = URI.encode_www_form(data)
|
447
|
-
else
|
448
|
-
req.body = data
|
449
|
-
end
|
450
450
|
end
|
451
451
|
|
452
452
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
453
453
|
|
454
|
-
res = ::OpenApiSDK::Operations::
|
454
|
+
res = ::OpenApiSDK::Operations::DeleteLinkResponse.new(
|
455
455
|
status_code: r.status, content_type: content_type, raw_response: r
|
456
456
|
)
|
457
457
|
if r.status == 200
|
458
458
|
if Utils.match_content_type(content_type, 'application/json')
|
459
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::
|
460
|
-
res.
|
459
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::DeleteLinkResponseBody)
|
460
|
+
res.object = out
|
461
461
|
end
|
462
462
|
elsif r.status == 400
|
463
463
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -594,33 +594,40 @@ module OpenApiSDK
|
|
594
594
|
end
|
595
595
|
|
596
596
|
|
597
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
598
|
-
def
|
599
|
-
#
|
600
|
-
# Bulk
|
597
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::BulkUpdateLinksRequestBody)).returns(::OpenApiSDK::Operations::BulkUpdateLinksResponse) }
|
598
|
+
def update_many(request)
|
599
|
+
# update_many - Bulk update links
|
600
|
+
# Bulk update up to 100 links with the same data for the authenticated workspace.
|
601
601
|
url, params = @sdk_configuration.get_server_details
|
602
602
|
base_url = Utils.template_url(url, params)
|
603
603
|
url = "#{base_url}/links/bulk"
|
604
604
|
headers = {}
|
605
|
-
|
605
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
606
|
+
headers['content-type'] = req_content_type
|
606
607
|
headers['Accept'] = 'application/json'
|
607
608
|
headers['user-agent'] = @sdk_configuration.user_agent
|
608
609
|
|
609
|
-
r = @sdk_configuration.client.
|
610
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
610
611
|
req.headers = headers
|
611
|
-
req.params = query_params
|
612
612
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
613
|
+
if form
|
614
|
+
req.body = Utils.encode_form(form)
|
615
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
616
|
+
req.body = URI.encode_www_form(data)
|
617
|
+
else
|
618
|
+
req.body = data
|
619
|
+
end
|
613
620
|
end
|
614
621
|
|
615
622
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
616
623
|
|
617
|
-
res = ::OpenApiSDK::Operations::
|
624
|
+
res = ::OpenApiSDK::Operations::BulkUpdateLinksResponse.new(
|
618
625
|
status_code: r.status, content_type: content_type, raw_response: r
|
619
626
|
)
|
620
627
|
if r.status == 200
|
621
628
|
if Utils.match_content_type(content_type, 'application/json')
|
622
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::
|
623
|
-
res.
|
629
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::LinkSchema])
|
630
|
+
res.link_schemas = out
|
624
631
|
end
|
625
632
|
elsif r.status == 400
|
626
633
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -672,40 +679,33 @@ module OpenApiSDK
|
|
672
679
|
end
|
673
680
|
|
674
681
|
|
675
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
676
|
-
def
|
677
|
-
#
|
678
|
-
# Bulk
|
682
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::BulkDeleteLinksRequest)).returns(::OpenApiSDK::Operations::BulkDeleteLinksResponse) }
|
683
|
+
def delete_many(request)
|
684
|
+
# delete_many - Bulk delete links
|
685
|
+
# Bulk delete up to 100 links for the authenticated workspace.
|
679
686
|
url, params = @sdk_configuration.get_server_details
|
680
687
|
base_url = Utils.template_url(url, params)
|
681
688
|
url = "#{base_url}/links/bulk"
|
682
689
|
headers = {}
|
683
|
-
|
684
|
-
headers['content-type'] = req_content_type
|
690
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::BulkDeleteLinksRequest, request)
|
685
691
|
headers['Accept'] = 'application/json'
|
686
692
|
headers['user-agent'] = @sdk_configuration.user_agent
|
687
693
|
|
688
|
-
r = @sdk_configuration.client.
|
694
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
689
695
|
req.headers = headers
|
696
|
+
req.params = query_params
|
690
697
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
691
|
-
if form
|
692
|
-
req.body = Utils.encode_form(form)
|
693
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
694
|
-
req.body = URI.encode_www_form(data)
|
695
|
-
else
|
696
|
-
req.body = data
|
697
|
-
end
|
698
698
|
end
|
699
699
|
|
700
700
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
701
701
|
|
702
|
-
res = ::OpenApiSDK::Operations::
|
702
|
+
res = ::OpenApiSDK::Operations::BulkDeleteLinksResponse.new(
|
703
703
|
status_code: r.status, content_type: content_type, raw_response: r
|
704
704
|
)
|
705
705
|
if r.status == 200
|
706
706
|
if Utils.match_content_type(content_type, 'application/json')
|
707
|
-
out = Utils.unmarshal_complex(r.env.response_body,
|
708
|
-
res.
|
707
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::BulkDeleteLinksResponseBody)
|
708
|
+
res.object = out
|
709
709
|
end
|
710
710
|
elsif r.status == 400
|
711
711
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -47,6 +47,8 @@ module OpenApiSDK
|
|
47
47
|
field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } }
|
48
48
|
# The referer to retrieve analytics for.
|
49
49
|
field :referer, T.nilable(::String), { 'query_param': { 'field_name': 'referer', 'style': 'form', 'explode': true } }
|
50
|
+
# The full referer URL to retrieve analytics for.
|
51
|
+
field :referer_url, T.nilable(::String), { 'query_param': { 'field_name': 'refererUrl', 'style': 'form', 'explode': true } }
|
50
52
|
# Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
|
51
53
|
field :root, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'root', 'style': 'form', 'explode': true } }
|
52
54
|
|
@@ -61,8 +63,8 @@ module OpenApiSDK
|
|
61
63
|
field :url, T.nilable(::String), { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } }
|
62
64
|
|
63
65
|
|
64
|
-
sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::QueryParamEvent), external_id: T.nilable(::String), interval: T.nilable(::OpenApiSDK::Operations::QueryParamInterval), key: T.nilable(::String), limit: T.nilable(::Float), link_id: T.nilable(::String), order: T.nilable(::OpenApiSDK::Operations::Order), os: T.nilable(::String), page: T.nilable(::Float), qr: T.nilable(T::Boolean), referer: T.nilable(::String), root: T.nilable(T::Boolean), sort_by: T.nilable(::OpenApiSDK::Operations::SortBy), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), url: T.nilable(::String)).void }
|
65
|
-
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, interval: nil, key: nil, limit: nil, link_id: nil, order: nil, os: nil, page: nil, qr: nil, referer: nil, root: nil, sort_by: nil, start: nil, tag_id: nil, timezone: nil, url: nil)
|
66
|
+
sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::QueryParamEvent), external_id: T.nilable(::String), interval: T.nilable(::OpenApiSDK::Operations::QueryParamInterval), key: T.nilable(::String), limit: T.nilable(::Float), link_id: T.nilable(::String), order: T.nilable(::OpenApiSDK::Operations::Order), os: T.nilable(::String), page: T.nilable(::Float), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), root: T.nilable(T::Boolean), sort_by: T.nilable(::OpenApiSDK::Operations::SortBy), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), url: T.nilable(::String)).void }
|
67
|
+
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, interval: nil, key: nil, limit: nil, link_id: nil, order: nil, os: nil, page: nil, qr: nil, referer: nil, referer_url: nil, root: nil, sort_by: nil, start: nil, tag_id: nil, timezone: nil, url: nil)
|
66
68
|
@browser = browser
|
67
69
|
@city = city
|
68
70
|
@continent = continent
|
@@ -81,6 +83,7 @@ module OpenApiSDK
|
|
81
83
|
@page = page
|
82
84
|
@qr = qr
|
83
85
|
@referer = referer
|
86
|
+
@referer_url = referer_url
|
84
87
|
@root = root
|
85
88
|
@sort_by = sort_by
|
86
89
|
@start = start
|
@@ -43,6 +43,8 @@ module OpenApiSDK
|
|
43
43
|
field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } }
|
44
44
|
# The referer to retrieve analytics for.
|
45
45
|
field :referer, T.nilable(::String), { 'query_param': { 'field_name': 'referer', 'style': 'form', 'explode': true } }
|
46
|
+
# The full referer URL to retrieve analytics for.
|
47
|
+
field :referer_url, T.nilable(::String), { 'query_param': { 'field_name': 'refererUrl', 'style': 'form', 'explode': true } }
|
46
48
|
# Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
|
47
49
|
field :root, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'root', 'style': 'form', 'explode': true } }
|
48
50
|
# The start date and time when to retrieve analytics from.
|
@@ -55,8 +57,8 @@ module OpenApiSDK
|
|
55
57
|
field :url, T.nilable(::String), { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } }
|
56
58
|
|
57
59
|
|
58
|
-
sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), root: T.nilable(T::Boolean), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), url: T.nilable(::String)).void }
|
59
|
-
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, qr: nil, referer: nil, root: nil, start: nil, tag_id: nil, timezone: nil, url: nil)
|
60
|
+
sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), root: T.nilable(T::Boolean), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), url: T.nilable(::String)).void }
|
61
|
+
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, qr: nil, referer: nil, referer_url: nil, root: nil, start: nil, tag_id: nil, timezone: nil, url: nil)
|
60
62
|
@browser = browser
|
61
63
|
@city = city
|
62
64
|
@continent = continent
|
@@ -73,6 +75,7 @@ module OpenApiSDK
|
|
73
75
|
@os = os
|
74
76
|
@qr = qr
|
75
77
|
@referer = referer
|
78
|
+
@referer_url = referer_url
|
76
79
|
@root = root
|
77
80
|
@start = start
|
78
81
|
@tag_id = tag_id
|
@@ -5,29 +5,29 @@
|
|
5
5
|
|
6
6
|
module OpenApiSDK
|
7
7
|
module Operations
|
8
|
+
autoload :CreateLinkRequestBody, 'open_api_sdk/models/operations/createlink_requestbody.rb'
|
9
|
+
autoload :CreateLinkResponse, 'open_api_sdk/models/operations/createlink_response.rb'
|
8
10
|
autoload :Sort, 'open_api_sdk/models/operations/sort.rb'
|
9
11
|
autoload :GetLinksRequest, 'open_api_sdk/models/operations/getlinks_request.rb'
|
10
12
|
autoload :GetLinksResponse, 'open_api_sdk/models/operations/getlinks_response.rb'
|
11
|
-
autoload :CreateLinkRequestBody, 'open_api_sdk/models/operations/createlink_requestbody.rb'
|
12
|
-
autoload :CreateLinkResponse, 'open_api_sdk/models/operations/createlink_response.rb'
|
13
13
|
autoload :GetLinksCountRequest, 'open_api_sdk/models/operations/getlinkscount_request.rb'
|
14
14
|
autoload :GetLinksCountResponse, 'open_api_sdk/models/operations/getlinkscount_response.rb'
|
15
15
|
autoload :GetLinkInfoRequest, 'open_api_sdk/models/operations/getlinkinfo_request.rb'
|
16
16
|
autoload :GetLinkInfoResponse, 'open_api_sdk/models/operations/getlinkinfo_response.rb'
|
17
|
-
autoload :DeleteLinkRequest, 'open_api_sdk/models/operations/deletelink_request.rb'
|
18
|
-
autoload :DeleteLinkResponseBody, 'open_api_sdk/models/operations/deletelink_responsebody.rb'
|
19
|
-
autoload :DeleteLinkResponse, 'open_api_sdk/models/operations/deletelink_response.rb'
|
20
17
|
autoload :UpdateLinkRequestBody, 'open_api_sdk/models/operations/updatelink_requestbody.rb'
|
21
18
|
autoload :UpdateLinkRequest, 'open_api_sdk/models/operations/updatelink_request.rb'
|
22
19
|
autoload :UpdateLinkResponse, 'open_api_sdk/models/operations/updatelink_response.rb'
|
20
|
+
autoload :DeleteLinkRequest, 'open_api_sdk/models/operations/deletelink_request.rb'
|
21
|
+
autoload :DeleteLinkResponseBody, 'open_api_sdk/models/operations/deletelink_responsebody.rb'
|
22
|
+
autoload :DeleteLinkResponse, 'open_api_sdk/models/operations/deletelink_response.rb'
|
23
23
|
autoload :RequestBody, 'open_api_sdk/models/operations/requestbody.rb'
|
24
24
|
autoload :BulkCreateLinksResponse, 'open_api_sdk/models/operations/bulkcreatelinks_response.rb'
|
25
|
-
autoload :BulkDeleteLinksRequest, 'open_api_sdk/models/operations/bulkdeletelinks_request.rb'
|
26
|
-
autoload :BulkDeleteLinksResponseBody, 'open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb'
|
27
|
-
autoload :BulkDeleteLinksResponse, 'open_api_sdk/models/operations/bulkdeletelinks_response.rb'
|
28
25
|
autoload :Data, 'open_api_sdk/models/operations/data.rb'
|
29
26
|
autoload :BulkUpdateLinksRequestBody, 'open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb'
|
30
27
|
autoload :BulkUpdateLinksResponse, 'open_api_sdk/models/operations/bulkupdatelinks_response.rb'
|
28
|
+
autoload :BulkDeleteLinksRequest, 'open_api_sdk/models/operations/bulkdeletelinks_request.rb'
|
29
|
+
autoload :BulkDeleteLinksResponseBody, 'open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb'
|
30
|
+
autoload :BulkDeleteLinksResponse, 'open_api_sdk/models/operations/bulkdeletelinks_response.rb'
|
31
31
|
autoload :UpsertLinkRequestBody, 'open_api_sdk/models/operations/upsertlink_requestbody.rb'
|
32
32
|
autoload :UpsertLinkResponse, 'open_api_sdk/models/operations/upsertlink_response.rb'
|
33
33
|
autoload :Level, 'open_api_sdk/models/operations/level.rb'
|
@@ -49,27 +49,27 @@ module OpenApiSDK
|
|
49
49
|
autoload :UpdateWorkspaceRequestBody, 'open_api_sdk/models/operations/updateworkspace_requestbody.rb'
|
50
50
|
autoload :UpdateWorkspaceRequest, 'open_api_sdk/models/operations/updateworkspace_request.rb'
|
51
51
|
autoload :UpdateWorkspaceResponse, 'open_api_sdk/models/operations/updateworkspace_response.rb'
|
52
|
-
autoload :GetTagsResponse, 'open_api_sdk/models/operations/gettags_response.rb'
|
53
52
|
autoload :Color, 'open_api_sdk/models/operations/color.rb'
|
54
53
|
autoload :CreateTagRequestBody, 'open_api_sdk/models/operations/createtag_requestbody.rb'
|
55
54
|
autoload :CreateTagResponse, 'open_api_sdk/models/operations/createtag_response.rb'
|
56
|
-
autoload :
|
57
|
-
autoload :DeleteTagResponseBody, 'open_api_sdk/models/operations/deletetag_responsebody.rb'
|
58
|
-
autoload :DeleteTagResponse, 'open_api_sdk/models/operations/deletetag_response.rb'
|
55
|
+
autoload :GetTagsResponse, 'open_api_sdk/models/operations/gettags_response.rb'
|
59
56
|
autoload :UpdateTagColor, 'open_api_sdk/models/operations/updatetag_color.rb'
|
60
57
|
autoload :UpdateTagRequestBody, 'open_api_sdk/models/operations/updatetag_requestbody.rb'
|
61
58
|
autoload :UpdateTagRequest, 'open_api_sdk/models/operations/updatetag_request.rb'
|
62
59
|
autoload :UpdateTagResponse, 'open_api_sdk/models/operations/updatetag_response.rb'
|
63
|
-
autoload :
|
64
|
-
autoload :
|
60
|
+
autoload :DeleteTagRequest, 'open_api_sdk/models/operations/deletetag_request.rb'
|
61
|
+
autoload :DeleteTagResponseBody, 'open_api_sdk/models/operations/deletetag_responsebody.rb'
|
62
|
+
autoload :DeleteTagResponse, 'open_api_sdk/models/operations/deletetag_response.rb'
|
65
63
|
autoload :CreateDomainRequestBody, 'open_api_sdk/models/operations/createdomain_requestbody.rb'
|
66
64
|
autoload :CreateDomainResponse, 'open_api_sdk/models/operations/createdomain_response.rb'
|
67
|
-
autoload :
|
68
|
-
autoload :
|
69
|
-
autoload :DeleteDomainResponse, 'open_api_sdk/models/operations/deletedomain_response.rb'
|
65
|
+
autoload :ListDomainsRequest, 'open_api_sdk/models/operations/listdomains_request.rb'
|
66
|
+
autoload :ListDomainsResponse, 'open_api_sdk/models/operations/listdomains_response.rb'
|
70
67
|
autoload :UpdateDomainRequestBody, 'open_api_sdk/models/operations/updatedomain_requestbody.rb'
|
71
68
|
autoload :UpdateDomainRequest, 'open_api_sdk/models/operations/updatedomain_request.rb'
|
72
69
|
autoload :UpdateDomainResponse, 'open_api_sdk/models/operations/updatedomain_response.rb'
|
70
|
+
autoload :DeleteDomainRequest, 'open_api_sdk/models/operations/deletedomain_request.rb'
|
71
|
+
autoload :DeleteDomainResponseBody, 'open_api_sdk/models/operations/deletedomain_responsebody.rb'
|
72
|
+
autoload :DeleteDomainResponse, 'open_api_sdk/models/operations/deletedomain_response.rb'
|
73
73
|
autoload :TrackLeadRequestBody, 'open_api_sdk/models/operations/tracklead_requestbody.rb'
|
74
74
|
autoload :Click, 'open_api_sdk/models/operations/click.rb'
|
75
75
|
autoload :Customer, 'open_api_sdk/models/operations/customer.rb'
|
@@ -30,13 +30,15 @@ module OpenApiSDK
|
|
30
30
|
|
31
31
|
field :referer, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('referer') } }
|
32
32
|
|
33
|
+
field :referer_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('refererUrl') } }
|
34
|
+
|
33
35
|
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
34
36
|
|
35
37
|
field :qr, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qr') } }
|
36
38
|
|
37
39
|
|
38
|
-
sig { params(browser: ::String, city: ::String, continent: ::String, country: ::String, device: ::String, id: ::String, ip: ::String, os: ::String, referer: ::String, url: ::String, qr: T.nilable(T::Boolean)).void }
|
39
|
-
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, id: nil, ip: nil, os: nil, referer: nil, url: nil, qr: nil)
|
40
|
+
sig { params(browser: ::String, city: ::String, continent: ::String, country: ::String, device: ::String, id: ::String, ip: ::String, os: ::String, referer: ::String, referer_url: ::String, url: ::String, qr: T.nilable(T::Boolean)).void }
|
41
|
+
def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, id: nil, ip: nil, os: nil, referer: nil, referer_url: nil, url: nil, qr: nil)
|
40
42
|
@browser = browser
|
41
43
|
@city = city
|
42
44
|
@continent = continent
|
@@ -46,6 +48,7 @@ module OpenApiSDK
|
|
46
48
|
@ip = ip
|
47
49
|
@os = os
|
48
50
|
@referer = referer
|
51
|
+
@referer_url = referer_url
|
49
52
|
@url = url
|
50
53
|
@qr = qr
|
51
54
|
end
|
@@ -38,9 +38,9 @@ module OpenApiSDK
|
|
38
38
|
@security = security
|
39
39
|
@language = 'ruby'
|
40
40
|
@openapi_doc_version = '0.0.1'
|
41
|
-
@sdk_version = '0.2.2-alpha.
|
42
|
-
@gen_version = '2.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.
|
41
|
+
@sdk_version = '0.2.2-alpha.18'
|
42
|
+
@gen_version = '2.422.6'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.18 2.422.6 0.0.1 dub'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/open_api_sdk/tags.rb
CHANGED
@@ -19,31 +19,40 @@ module OpenApiSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { returns(::OpenApiSDK::Operations::
|
23
|
-
def
|
24
|
-
#
|
25
|
-
#
|
22
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateTagRequestBody)).returns(::OpenApiSDK::Operations::CreateTagResponse) }
|
23
|
+
def create(request)
|
24
|
+
# create - Create a new tag
|
25
|
+
# Create a new tag for the authenticated workspace.
|
26
26
|
url, params = @sdk_configuration.get_server_details
|
27
27
|
base_url = Utils.template_url(url, params)
|
28
28
|
url = "#{base_url}/tags"
|
29
29
|
headers = {}
|
30
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
31
|
+
headers['content-type'] = req_content_type
|
30
32
|
headers['Accept'] = 'application/json'
|
31
33
|
headers['user-agent'] = @sdk_configuration.user_agent
|
32
34
|
|
33
|
-
r = @sdk_configuration.client.
|
35
|
+
r = @sdk_configuration.client.post(url) do |req|
|
34
36
|
req.headers = headers
|
35
37
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
38
|
+
if form
|
39
|
+
req.body = Utils.encode_form(form)
|
40
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
41
|
+
req.body = URI.encode_www_form(data)
|
42
|
+
else
|
43
|
+
req.body = data
|
44
|
+
end
|
36
45
|
end
|
37
46
|
|
38
47
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
39
48
|
|
40
|
-
res = ::OpenApiSDK::Operations::
|
49
|
+
res = ::OpenApiSDK::Operations::CreateTagResponse.new(
|
41
50
|
status_code: r.status, content_type: content_type, raw_response: r
|
42
51
|
)
|
43
|
-
if r.status ==
|
52
|
+
if r.status == 201
|
44
53
|
if Utils.match_content_type(content_type, 'application/json')
|
45
|
-
out = Utils.unmarshal_complex(r.env.response_body,
|
46
|
-
res.
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::TagSchema)
|
55
|
+
res.tag_schema = out
|
47
56
|
end
|
48
57
|
elsif r.status == 400
|
49
58
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -95,40 +104,31 @@ module OpenApiSDK
|
|
95
104
|
end
|
96
105
|
|
97
106
|
|
98
|
-
sig {
|
99
|
-
def
|
100
|
-
#
|
101
|
-
#
|
107
|
+
sig { returns(::OpenApiSDK::Operations::GetTagsResponse) }
|
108
|
+
def list
|
109
|
+
# list - Retrieve a list of tags
|
110
|
+
# Retrieve a list of tags for the authenticated workspace.
|
102
111
|
url, params = @sdk_configuration.get_server_details
|
103
112
|
base_url = Utils.template_url(url, params)
|
104
113
|
url = "#{base_url}/tags"
|
105
114
|
headers = {}
|
106
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
107
|
-
headers['content-type'] = req_content_type
|
108
115
|
headers['Accept'] = 'application/json'
|
109
116
|
headers['user-agent'] = @sdk_configuration.user_agent
|
110
117
|
|
111
|
-
r = @sdk_configuration.client.
|
118
|
+
r = @sdk_configuration.client.get(url) do |req|
|
112
119
|
req.headers = headers
|
113
120
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
114
|
-
if form
|
115
|
-
req.body = Utils.encode_form(form)
|
116
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
117
|
-
req.body = URI.encode_www_form(data)
|
118
|
-
else
|
119
|
-
req.body = data
|
120
|
-
end
|
121
121
|
end
|
122
122
|
|
123
123
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
124
124
|
|
125
|
-
res = ::OpenApiSDK::Operations::
|
125
|
+
res = ::OpenApiSDK::Operations::GetTagsResponse.new(
|
126
126
|
status_code: r.status, content_type: content_type, raw_response: r
|
127
127
|
)
|
128
|
-
if r.status ==
|
128
|
+
if r.status == 200
|
129
129
|
if Utils.match_content_type(content_type, 'application/json')
|
130
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::TagSchema)
|
131
|
-
res.
|
130
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::TagSchema])
|
131
|
+
res.tag_schemas = out
|
132
132
|
end
|
133
133
|
elsif r.status == 400
|
134
134
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -180,36 +180,45 @@ module OpenApiSDK
|
|
180
180
|
end
|
181
181
|
|
182
182
|
|
183
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
184
|
-
def
|
185
|
-
#
|
186
|
-
#
|
183
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateTagRequest)).returns(::OpenApiSDK::Operations::UpdateTagResponse) }
|
184
|
+
def update(request)
|
185
|
+
# update - Update a tag
|
186
|
+
# Update a tag in the workspace.
|
187
187
|
url, params = @sdk_configuration.get_server_details
|
188
188
|
base_url = Utils.template_url(url, params)
|
189
189
|
url = Utils.generate_url(
|
190
|
-
::OpenApiSDK::Operations::
|
190
|
+
::OpenApiSDK::Operations::UpdateTagRequest,
|
191
191
|
base_url,
|
192
192
|
'/tags/{id}',
|
193
193
|
request
|
194
194
|
)
|
195
195
|
headers = {}
|
196
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
197
|
+
headers['content-type'] = req_content_type
|
196
198
|
headers['Accept'] = 'application/json'
|
197
199
|
headers['user-agent'] = @sdk_configuration.user_agent
|
198
200
|
|
199
|
-
r = @sdk_configuration.client.
|
201
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
200
202
|
req.headers = headers
|
201
203
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
204
|
+
if form
|
205
|
+
req.body = Utils.encode_form(form)
|
206
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
207
|
+
req.body = URI.encode_www_form(data)
|
208
|
+
else
|
209
|
+
req.body = data
|
210
|
+
end
|
202
211
|
end
|
203
212
|
|
204
213
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
205
214
|
|
206
|
-
res = ::OpenApiSDK::Operations::
|
215
|
+
res = ::OpenApiSDK::Operations::UpdateTagResponse.new(
|
207
216
|
status_code: r.status, content_type: content_type, raw_response: r
|
208
217
|
)
|
209
218
|
if r.status == 200
|
210
219
|
if Utils.match_content_type(content_type, 'application/json')
|
211
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::
|
212
|
-
res.
|
220
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::TagSchema)
|
221
|
+
res.tag_schema = out
|
213
222
|
end
|
214
223
|
elsif r.status == 400
|
215
224
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -261,45 +270,36 @@ module OpenApiSDK
|
|
261
270
|
end
|
262
271
|
|
263
272
|
|
264
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
265
|
-
def
|
266
|
-
#
|
267
|
-
#
|
273
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::DeleteTagRequest)).returns(::OpenApiSDK::Operations::DeleteTagResponse) }
|
274
|
+
def delete(request)
|
275
|
+
# delete - Delete a tag
|
276
|
+
# Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.
|
268
277
|
url, params = @sdk_configuration.get_server_details
|
269
278
|
base_url = Utils.template_url(url, params)
|
270
279
|
url = Utils.generate_url(
|
271
|
-
::OpenApiSDK::Operations::
|
280
|
+
::OpenApiSDK::Operations::DeleteTagRequest,
|
272
281
|
base_url,
|
273
282
|
'/tags/{id}',
|
274
283
|
request
|
275
284
|
)
|
276
285
|
headers = {}
|
277
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
278
|
-
headers['content-type'] = req_content_type
|
279
286
|
headers['Accept'] = 'application/json'
|
280
287
|
headers['user-agent'] = @sdk_configuration.user_agent
|
281
288
|
|
282
|
-
r = @sdk_configuration.client.
|
289
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
283
290
|
req.headers = headers
|
284
291
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
285
|
-
if form
|
286
|
-
req.body = Utils.encode_form(form)
|
287
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
288
|
-
req.body = URI.encode_www_form(data)
|
289
|
-
else
|
290
|
-
req.body = data
|
291
|
-
end
|
292
292
|
end
|
293
293
|
|
294
294
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
295
295
|
|
296
|
-
res = ::OpenApiSDK::Operations::
|
296
|
+
res = ::OpenApiSDK::Operations::DeleteTagResponse.new(
|
297
297
|
status_code: r.status, content_type: content_type, raw_response: r
|
298
298
|
)
|
299
299
|
if r.status == 200
|
300
300
|
if Utils.match_content_type(content_type, 'application/json')
|
301
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::
|
302
|
-
res.
|
301
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::DeleteTagResponseBody)
|
302
|
+
res.object = out
|
303
303
|
end
|
304
304
|
elsif r.status == 400
|
305
305
|
if Utils.match_content_type(content_type, 'application/json')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.2.pre.alpha.
|
4
|
+
version: 0.2.2.pre.alpha.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|