dub 0.2.2.pre.alpha.97 → 0.2.2
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/lib/dub.rb +6 -9
- data/lib/open_api_sdk/analytics.rb +17 -72
- data/lib/open_api_sdk/domains.rb +95 -312
- data/lib/open_api_sdk/dub.rb +46 -56
- data/lib/open_api_sdk/links.rb +188 -799
- data/lib/open_api_sdk/metatags.rb +54 -0
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +7 -7
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +6 -9
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/color.rb +2 -1
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +4 -16
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +13 -60
- data/lib/open_api_sdk/models/operations/createlink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/createtag_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/data.rb +12 -59
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +3 -3
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +3 -3
- data/lib/open_api_sdk/models/operations/event.rb +3 -2
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +11 -26
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +8 -14
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +30 -0
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +5 -14
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/gettags_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/groupby.rb +4 -12
- data/lib/open_api_sdk/models/operations/interval.rb +5 -5
- data/lib/open_api_sdk/models/operations/level.rb +2 -1
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +2 -3
- data/lib/open_api_sdk/models/operations/requestbody.rb +13 -60
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +11 -56
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/sort.rb +3 -5
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/{createpartner_response.rb → trackcustomer_response.rb} +5 -5
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +33 -0
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +13 -19
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +23 -8
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +11 -14
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +20 -8
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +4 -16
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +14 -61
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +2 -1
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +4 -13
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +13 -60
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations.rb +25 -131
- data/lib/open_api_sdk/models/shared/badrequest.rb +3 -3
- data/lib/open_api_sdk/models/shared/code.rb +2 -1
- data/lib/open_api_sdk/models/shared/color.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict.rb +3 -3
- data/lib/open_api_sdk/models/shared/conflict_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/countrycode.rb +2 -1
- data/lib/open_api_sdk/models/shared/domains.rb +4 -7
- data/lib/open_api_sdk/models/shared/domainschema.rb +4 -19
- data/lib/open_api_sdk/models/shared/error.rb +2 -2
- data/lib/open_api_sdk/models/shared/forbidden.rb +3 -3
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/geo.rb +2 -2
- data/lib/open_api_sdk/models/shared/internalservererror.rb +3 -3
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +3 -3
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +2 -2
- data/lib/open_api_sdk/models/shared/linkschema.rb +11 -41
- data/lib/open_api_sdk/models/shared/notfound.rb +3 -3
- data/lib/open_api_sdk/models/shared/notfound_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/notfound_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/plan.rb +2 -2
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +3 -3
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/role.rb +2 -1
- data/lib/open_api_sdk/models/shared/security.rb +4 -4
- data/lib/open_api_sdk/models/shared/tagschema.rb +2 -2
- data/lib/open_api_sdk/models/shared/unauthorized.rb +3 -3
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +3 -3
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/users.rb +4 -7
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +8 -47
- data/lib/open_api_sdk/models/shared.rb +2 -8
- data/lib/open_api_sdk/qr_codes.rb +17 -71
- data/lib/open_api_sdk/sdkconfiguration.rb +10 -33
- data/lib/open_api_sdk/tags.rb +68 -366
- data/lib/open_api_sdk/track.rb +122 -148
- data/lib/{crystalline → open_api_sdk/utils}/metadata_fields.rb +20 -33
- data/lib/{crystalline → open_api_sdk/utils}/t.rb +1 -1
- data/lib/open_api_sdk/utils/utils.rb +60 -26
- data/lib/open_api_sdk/workspaces.rb +36 -145
- metadata +17 -181
- data/lib/crystalline/utils.rb +0 -65
- data/lib/crystalline.rb +0 -12
- data/lib/open_api_sdk/customers.rb +0 -709
- data/lib/open_api_sdk/embed_tokens.rb +0 -163
- data/lib/open_api_sdk/events.rb +0 -154
- data/lib/open_api_sdk/folders.rb +0 -570
- data/lib/open_api_sdk/models/operations/accesslevel.rb +0 -18
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/operations/click.rb +0 -24
- data/lib/open_api_sdk/models/operations/country.rb +0 -266
- data/lib/open_api_sdk/models/operations/createcustomer_discount.rb +0 -45
- data/lib/open_api_sdk/models/operations/createcustomer_link.rb +0 -39
- data/lib/open_api_sdk/models/operations/createcustomer_partner.rb +0 -33
- data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/createcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +0 -60
- data/lib/open_api_sdk/models/operations/createcustomer_type.rb +0 -18
- data/lib/open_api_sdk/models/operations/createfolder_requestbody.rb +0 -27
- data/lib/open_api_sdk/models/operations/createfolder_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createpartner_link.rb +0 -48
- data/lib/open_api_sdk/models/operations/createpartner_requestbody.rb +0 -48
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +0 -81
- data/lib/open_api_sdk/models/operations/createpartner_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb +0 -108
- data/lib/open_api_sdk/models/operations/createpartnerlink_requestbody.rb +0 -42
- data/lib/open_api_sdk/models/operations/createpartnerlink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createpartnerlink_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_country.rb +0 -266
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_linkprops.rb +0 -108
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_responsebody.rb +0 -27
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/operations/customer.rb +0 -33
- data/lib/open_api_sdk/models/operations/deletecustomer_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletecustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletecustomer_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletefolder_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletefolder_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletefolder_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/discount.rb +0 -45
- data/lib/open_api_sdk/models/operations/getcustomer_discount.rb +0 -45
- data/lib/open_api_sdk/models/operations/getcustomer_link.rb +0 -39
- data/lib/open_api_sdk/models/operations/getcustomer_partner.rb +0 -33
- data/lib/open_api_sdk/models/operations/getcustomer_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/getcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +0 -60
- data/lib/open_api_sdk/models/operations/getcustomer_type.rb +0 -18
- data/lib/open_api_sdk/models/operations/getcustomers_link.rb +0 -39
- data/lib/open_api_sdk/models/operations/getcustomers_partner.rb +0 -33
- data/lib/open_api_sdk/models/operations/getcustomers_queryparam_sortby.rb +0 -18
- data/lib/open_api_sdk/models/operations/getcustomers_queryparam_sortorder.rb +0 -18
- data/lib/open_api_sdk/models/operations/getcustomers_request.rb +0 -51
- data/lib/open_api_sdk/models/operations/getcustomers_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getcustomers_type.rb +0 -18
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortby.rb +0 -18
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortorder.rb +0 -18
- data/lib/open_api_sdk/models/operations/gettags_request.rb +0 -39
- data/lib/open_api_sdk/models/operations/link.rb +0 -48
- data/lib/open_api_sdk/models/operations/linkprops.rb +0 -108
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/listevents_request.rb +0 -138
- data/lib/open_api_sdk/models/operations/listevents_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/listfolders_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/listfolders_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/mode.rb +0 -18
- data/lib/open_api_sdk/models/operations/order.rb +0 -20
- data/lib/open_api_sdk/models/operations/partner.rb +0 -45
- data/lib/open_api_sdk/models/operations/queryparam_event.rb +0 -19
- data/lib/open_api_sdk/models/operations/queryparam_groupby.rb +0 -19
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +0 -25
- data/lib/open_api_sdk/models/operations/queryparam_sortby.rb +0 -17
- data/lib/open_api_sdk/models/operations/queryparam_sortorder.rb +0 -18
- data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/responsebody.rb +0 -60
- data/lib/open_api_sdk/models/operations/retrievelinks_request.rb +0 -30
- data/lib/open_api_sdk/models/operations/retrievelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_queryparam_interval.rb +0 -25
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +0 -45
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/sale.rb +0 -36
- data/lib/open_api_sdk/models/operations/sortby.rb +0 -20
- data/lib/open_api_sdk/models/operations/sortorder.rb +0 -18
- data/lib/open_api_sdk/models/operations/status.rb +0 -22
- data/lib/open_api_sdk/models/operations/testvariants.rb +0 -27
- data/lib/open_api_sdk/models/operations/tracksale_customer.rb +0 -36
- data/lib/open_api_sdk/models/operations/trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/type.rb +0 -19
- data/lib/open_api_sdk/models/operations/updatecustomer_discount.rb +0 -45
- data/lib/open_api_sdk/models/operations/updatecustomer_link.rb +0 -39
- data/lib/open_api_sdk/models/operations/updatecustomer_partner.rb +0 -33
- data/lib/open_api_sdk/models/operations/updatecustomer_request.rb +0 -30
- data/lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/updatecustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatecustomer_type.rb +0 -18
- data/lib/open_api_sdk/models/operations/updatefolder_accesslevel.rb +0 -18
- data/lib/open_api_sdk/models/operations/updatefolder_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatefolder_requestbody.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatefolder_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatelink_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb +0 -36
- data/lib/open_api_sdk/models/operations/updatepartnersale_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatepartnersale_responsebody.rb +0 -48
- data/lib/open_api_sdk/models/operations/updatepartnersale_status.rb +0 -23
- data/lib/open_api_sdk/models/operations/upsertlink_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_linkprops.rb +0 -108
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_requestbody.rb +0 -42
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_testvariants.rb +0 -27
- data/lib/open_api_sdk/models/shared/accesslevel.rb +0 -18
- data/lib/open_api_sdk/models/shared/continentcode.rb +0 -23
- data/lib/open_api_sdk/models/shared/folderschema.rb +0 -42
- data/lib/open_api_sdk/models/shared/registereddomain.rb +0 -30
- data/lib/open_api_sdk/models/shared/testvariants.rb +0 -27
- data/lib/open_api_sdk/models/shared/type.rb +0 -18
- data/lib/open_api_sdk/partners.rb +0 -840
- data/lib/open_api_sdk/sdk_hooks/hooks.rb +0 -103
- data/lib/open_api_sdk/sdk_hooks/registration.rb +0 -35
- data/lib/open_api_sdk/sdk_hooks/types.rb +0 -152
- data/lib/open_api_sdk/utils/retries.rb +0 -95
data/lib/open_api_sdk/links.rb
CHANGED
@@ -1,14 +1,11 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
5
5
|
|
6
6
|
require 'faraday'
|
7
7
|
require 'faraday/multipart'
|
8
|
-
require 'faraday/retry'
|
9
8
|
require 'sorbet-runtime'
|
10
|
-
require_relative 'sdk_hooks/hooks'
|
11
|
-
require_relative 'utils/retries'
|
12
9
|
|
13
10
|
module OpenApiSDK
|
14
11
|
extend T::Sig
|
@@ -22,277 +19,171 @@ module OpenApiSDK
|
|
22
19
|
end
|
23
20
|
|
24
21
|
|
25
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
26
|
-
def
|
27
|
-
#
|
28
|
-
#
|
22
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetLinksRequest)).returns(::OpenApiSDK::Operations::GetLinksResponse) }
|
23
|
+
def list(request)
|
24
|
+
# list - Retrieve a list of links
|
25
|
+
# Retrieve a paginated list of links for the authenticated workspace.
|
29
26
|
url, params = @sdk_configuration.get_server_details
|
30
27
|
base_url = Utils.template_url(url, params)
|
31
28
|
url = "#{base_url}/links"
|
32
29
|
headers = {}
|
33
|
-
|
34
|
-
headers['content-type'] = req_content_type
|
35
|
-
|
36
|
-
if form
|
37
|
-
body = Utils.encode_form(form)
|
38
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
39
|
-
body = URI.encode_www_form(data)
|
40
|
-
else
|
41
|
-
body = data
|
42
|
-
end
|
30
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetLinksRequest, request)
|
43
31
|
headers['Accept'] = 'application/json'
|
44
32
|
headers['user-agent'] = @sdk_configuration.user_agent
|
45
33
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
connection = @sdk_configuration.client
|
52
|
-
|
53
|
-
hook_ctx = SDKHooks::HookContext.new(
|
54
|
-
base_url: base_url,
|
55
|
-
oauth2_scopes: nil,
|
56
|
-
operation_id: 'createLink',
|
57
|
-
security_source: @sdk_configuration.security_source
|
58
|
-
)
|
59
|
-
|
60
|
-
error = T.let(nil, T.nilable(StandardError))
|
61
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
62
|
-
|
63
|
-
begin
|
64
|
-
r = connection.post(url) do |req|
|
65
|
-
req.body = body
|
66
|
-
req.headers.merge!(headers)
|
67
|
-
req.options.timeout = timeout unless timeout.nil?
|
68
|
-
Utils.configure_request_security(req, security)
|
69
|
-
|
70
|
-
@sdk_configuration.hooks.before_request(
|
71
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
72
|
-
hook_ctx: hook_ctx
|
73
|
-
),
|
74
|
-
request: req
|
75
|
-
)
|
76
|
-
end
|
77
|
-
rescue StandardError => e
|
78
|
-
error = e
|
79
|
-
ensure
|
80
|
-
if r.nil? || Utils.error_status?(r.status)
|
81
|
-
r = @sdk_configuration.hooks.after_error(
|
82
|
-
error: error,
|
83
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
84
|
-
hook_ctx: hook_ctx
|
85
|
-
),
|
86
|
-
response: r
|
87
|
-
)
|
88
|
-
else
|
89
|
-
r = @sdk_configuration.hooks.after_success(
|
90
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
91
|
-
hook_ctx: hook_ctx
|
92
|
-
),
|
93
|
-
response: r
|
94
|
-
)
|
95
|
-
end
|
96
|
-
|
97
|
-
if r.nil?
|
98
|
-
raise error if !error.nil?
|
99
|
-
raise 'no response'
|
100
|
-
end
|
34
|
+
r = @sdk_configuration.client.get(url) do |req|
|
35
|
+
req.headers = headers
|
36
|
+
req.params = query_params
|
37
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
101
38
|
end
|
102
39
|
|
103
40
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
104
41
|
|
105
|
-
res = ::OpenApiSDK::Operations::
|
42
|
+
res = ::OpenApiSDK::Operations::GetLinksResponse.new(
|
106
43
|
status_code: r.status, content_type: content_type, raw_response: r
|
107
44
|
)
|
108
45
|
if r.status == 200
|
109
46
|
if Utils.match_content_type(content_type, 'application/json')
|
110
|
-
out =
|
111
|
-
res.
|
47
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::LinkSchema])
|
48
|
+
res.link_schemas = out
|
112
49
|
end
|
113
50
|
elsif r.status == 400
|
114
51
|
if Utils.match_content_type(content_type, 'application/json')
|
115
|
-
out =
|
52
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
116
53
|
res.bad_request = out
|
117
54
|
end
|
118
55
|
elsif r.status == 401
|
119
56
|
if Utils.match_content_type(content_type, 'application/json')
|
120
|
-
out =
|
57
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
121
58
|
res.unauthorized = out
|
122
59
|
end
|
123
60
|
elsif r.status == 403
|
124
61
|
if Utils.match_content_type(content_type, 'application/json')
|
125
|
-
out =
|
62
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
126
63
|
res.forbidden = out
|
127
64
|
end
|
128
65
|
elsif r.status == 404
|
129
66
|
if Utils.match_content_type(content_type, 'application/json')
|
130
|
-
out =
|
67
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
131
68
|
res.not_found = out
|
132
69
|
end
|
133
70
|
elsif r.status == 409
|
134
71
|
if Utils.match_content_type(content_type, 'application/json')
|
135
|
-
out =
|
72
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
136
73
|
res.conflict = out
|
137
74
|
end
|
138
75
|
elsif r.status == 410
|
139
76
|
if Utils.match_content_type(content_type, 'application/json')
|
140
|
-
out =
|
77
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
141
78
|
res.invite_expired = out
|
142
79
|
end
|
143
80
|
elsif r.status == 422
|
144
81
|
if Utils.match_content_type(content_type, 'application/json')
|
145
|
-
out =
|
82
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
146
83
|
res.unprocessable_entity = out
|
147
84
|
end
|
148
85
|
elsif r.status == 429
|
149
86
|
if Utils.match_content_type(content_type, 'application/json')
|
150
|
-
out =
|
87
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
151
88
|
res.rate_limit_exceeded = out
|
152
89
|
end
|
153
90
|
elsif r.status == 500
|
154
91
|
if Utils.match_content_type(content_type, 'application/json')
|
155
|
-
out =
|
92
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
156
93
|
res.internal_server_error = out
|
157
94
|
end
|
158
95
|
end
|
159
|
-
|
160
96
|
res
|
161
97
|
end
|
162
98
|
|
163
99
|
|
164
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
165
|
-
def
|
166
|
-
#
|
167
|
-
#
|
100
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateLinkRequestBody)).returns(::OpenApiSDK::Operations::CreateLinkResponse) }
|
101
|
+
def create(request)
|
102
|
+
# create - Create a new link
|
103
|
+
# Create a new link for the authenticated workspace.
|
168
104
|
url, params = @sdk_configuration.get_server_details
|
169
105
|
base_url = Utils.template_url(url, params)
|
170
106
|
url = "#{base_url}/links"
|
171
107
|
headers = {}
|
172
|
-
|
108
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
109
|
+
headers['content-type'] = req_content_type
|
173
110
|
headers['Accept'] = 'application/json'
|
174
111
|
headers['user-agent'] = @sdk_configuration.user_agent
|
175
112
|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
hook_ctx = SDKHooks::HookContext.new(
|
184
|
-
base_url: base_url,
|
185
|
-
oauth2_scopes: nil,
|
186
|
-
operation_id: 'getLinks',
|
187
|
-
security_source: @sdk_configuration.security_source
|
188
|
-
)
|
189
|
-
|
190
|
-
error = T.let(nil, T.nilable(StandardError))
|
191
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
192
|
-
|
193
|
-
begin
|
194
|
-
r = connection.get(url) do |req|
|
195
|
-
req.headers.merge!(headers)
|
196
|
-
req.options.timeout = timeout unless timeout.nil?
|
197
|
-
req.params = query_params
|
198
|
-
Utils.configure_request_security(req, security)
|
199
|
-
|
200
|
-
@sdk_configuration.hooks.before_request(
|
201
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
202
|
-
hook_ctx: hook_ctx
|
203
|
-
),
|
204
|
-
request: req
|
205
|
-
)
|
206
|
-
end
|
207
|
-
rescue StandardError => e
|
208
|
-
error = e
|
209
|
-
ensure
|
210
|
-
if r.nil? || Utils.error_status?(r.status)
|
211
|
-
r = @sdk_configuration.hooks.after_error(
|
212
|
-
error: error,
|
213
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
214
|
-
hook_ctx: hook_ctx
|
215
|
-
),
|
216
|
-
response: r
|
217
|
-
)
|
113
|
+
r = @sdk_configuration.client.post(url) do |req|
|
114
|
+
req.headers = headers
|
115
|
+
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)
|
218
120
|
else
|
219
|
-
|
220
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
221
|
-
hook_ctx: hook_ctx
|
222
|
-
),
|
223
|
-
response: r
|
224
|
-
)
|
225
|
-
end
|
226
|
-
|
227
|
-
if r.nil?
|
228
|
-
raise error if !error.nil?
|
229
|
-
raise 'no response'
|
121
|
+
req.body = data
|
230
122
|
end
|
231
123
|
end
|
232
124
|
|
233
125
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
234
126
|
|
235
|
-
res = ::OpenApiSDK::Operations::
|
127
|
+
res = ::OpenApiSDK::Operations::CreateLinkResponse.new(
|
236
128
|
status_code: r.status, content_type: content_type, raw_response: r
|
237
129
|
)
|
238
130
|
if r.status == 200
|
239
131
|
if Utils.match_content_type(content_type, 'application/json')
|
240
|
-
out =
|
241
|
-
res.
|
132
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::LinkSchema)
|
133
|
+
res.link_schema = out
|
242
134
|
end
|
243
135
|
elsif r.status == 400
|
244
136
|
if Utils.match_content_type(content_type, 'application/json')
|
245
|
-
out =
|
137
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
246
138
|
res.bad_request = out
|
247
139
|
end
|
248
140
|
elsif r.status == 401
|
249
141
|
if Utils.match_content_type(content_type, 'application/json')
|
250
|
-
out =
|
142
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
251
143
|
res.unauthorized = out
|
252
144
|
end
|
253
145
|
elsif r.status == 403
|
254
146
|
if Utils.match_content_type(content_type, 'application/json')
|
255
|
-
out =
|
147
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
256
148
|
res.forbidden = out
|
257
149
|
end
|
258
150
|
elsif r.status == 404
|
259
151
|
if Utils.match_content_type(content_type, 'application/json')
|
260
|
-
out =
|
152
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
261
153
|
res.not_found = out
|
262
154
|
end
|
263
155
|
elsif r.status == 409
|
264
156
|
if Utils.match_content_type(content_type, 'application/json')
|
265
|
-
out =
|
157
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
266
158
|
res.conflict = out
|
267
159
|
end
|
268
160
|
elsif r.status == 410
|
269
161
|
if Utils.match_content_type(content_type, 'application/json')
|
270
|
-
out =
|
162
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
271
163
|
res.invite_expired = out
|
272
164
|
end
|
273
165
|
elsif r.status == 422
|
274
166
|
if Utils.match_content_type(content_type, 'application/json')
|
275
|
-
out =
|
167
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
276
168
|
res.unprocessable_entity = out
|
277
169
|
end
|
278
170
|
elsif r.status == 429
|
279
171
|
if Utils.match_content_type(content_type, 'application/json')
|
280
|
-
out =
|
172
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
281
173
|
res.rate_limit_exceeded = out
|
282
174
|
end
|
283
175
|
elsif r.status == 500
|
284
176
|
if Utils.match_content_type(content_type, 'application/json')
|
285
|
-
out =
|
177
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
286
178
|
res.internal_server_error = out
|
287
179
|
end
|
288
180
|
end
|
289
|
-
|
290
181
|
res
|
291
182
|
end
|
292
183
|
|
293
184
|
|
294
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetLinksCountRequest)
|
295
|
-
def count(request
|
185
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetLinksCountRequest)).returns(::OpenApiSDK::Operations::GetLinksCountResponse) }
|
186
|
+
def count(request)
|
296
187
|
# count - Retrieve links count
|
297
188
|
# Retrieve the number of links for the authenticated workspace.
|
298
189
|
url, params = @sdk_configuration.get_server_details
|
@@ -303,61 +194,10 @@ module OpenApiSDK
|
|
303
194
|
headers['Accept'] = 'application/json'
|
304
195
|
headers['user-agent'] = @sdk_configuration.user_agent
|
305
196
|
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
connection = @sdk_configuration.client
|
312
|
-
|
313
|
-
hook_ctx = SDKHooks::HookContext.new(
|
314
|
-
base_url: base_url,
|
315
|
-
oauth2_scopes: nil,
|
316
|
-
operation_id: 'getLinksCount',
|
317
|
-
security_source: @sdk_configuration.security_source
|
318
|
-
)
|
319
|
-
|
320
|
-
error = T.let(nil, T.nilable(StandardError))
|
321
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
322
|
-
|
323
|
-
begin
|
324
|
-
r = connection.get(url) do |req|
|
325
|
-
req.headers.merge!(headers)
|
326
|
-
req.options.timeout = timeout unless timeout.nil?
|
327
|
-
req.params = query_params
|
328
|
-
Utils.configure_request_security(req, security)
|
329
|
-
|
330
|
-
@sdk_configuration.hooks.before_request(
|
331
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
332
|
-
hook_ctx: hook_ctx
|
333
|
-
),
|
334
|
-
request: req
|
335
|
-
)
|
336
|
-
end
|
337
|
-
rescue StandardError => e
|
338
|
-
error = e
|
339
|
-
ensure
|
340
|
-
if r.nil? || Utils.error_status?(r.status)
|
341
|
-
r = @sdk_configuration.hooks.after_error(
|
342
|
-
error: error,
|
343
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
344
|
-
hook_ctx: hook_ctx
|
345
|
-
),
|
346
|
-
response: r
|
347
|
-
)
|
348
|
-
else
|
349
|
-
r = @sdk_configuration.hooks.after_success(
|
350
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
351
|
-
hook_ctx: hook_ctx
|
352
|
-
),
|
353
|
-
response: r
|
354
|
-
)
|
355
|
-
end
|
356
|
-
|
357
|
-
if r.nil?
|
358
|
-
raise error if !error.nil?
|
359
|
-
raise 'no response'
|
360
|
-
end
|
197
|
+
r = @sdk_configuration.client.get(url) do |req|
|
198
|
+
req.headers = headers
|
199
|
+
req.params = query_params
|
200
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
361
201
|
end
|
362
202
|
|
363
203
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -367,62 +207,61 @@ module OpenApiSDK
|
|
367
207
|
)
|
368
208
|
if r.status == 200
|
369
209
|
if Utils.match_content_type(content_type, 'application/json')
|
370
|
-
out =
|
210
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::Float)
|
371
211
|
res.number = out
|
372
212
|
end
|
373
213
|
elsif r.status == 400
|
374
214
|
if Utils.match_content_type(content_type, 'application/json')
|
375
|
-
out =
|
215
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
376
216
|
res.bad_request = out
|
377
217
|
end
|
378
218
|
elsif r.status == 401
|
379
219
|
if Utils.match_content_type(content_type, 'application/json')
|
380
|
-
out =
|
220
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
381
221
|
res.unauthorized = out
|
382
222
|
end
|
383
223
|
elsif r.status == 403
|
384
224
|
if Utils.match_content_type(content_type, 'application/json')
|
385
|
-
out =
|
225
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
386
226
|
res.forbidden = out
|
387
227
|
end
|
388
228
|
elsif r.status == 404
|
389
229
|
if Utils.match_content_type(content_type, 'application/json')
|
390
|
-
out =
|
230
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
391
231
|
res.not_found = out
|
392
232
|
end
|
393
233
|
elsif r.status == 409
|
394
234
|
if Utils.match_content_type(content_type, 'application/json')
|
395
|
-
out =
|
235
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
396
236
|
res.conflict = out
|
397
237
|
end
|
398
238
|
elsif r.status == 410
|
399
239
|
if Utils.match_content_type(content_type, 'application/json')
|
400
|
-
out =
|
240
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
401
241
|
res.invite_expired = out
|
402
242
|
end
|
403
243
|
elsif r.status == 422
|
404
244
|
if Utils.match_content_type(content_type, 'application/json')
|
405
|
-
out =
|
245
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
406
246
|
res.unprocessable_entity = out
|
407
247
|
end
|
408
248
|
elsif r.status == 429
|
409
249
|
if Utils.match_content_type(content_type, 'application/json')
|
410
|
-
out =
|
250
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
411
251
|
res.rate_limit_exceeded = out
|
412
252
|
end
|
413
253
|
elsif r.status == 500
|
414
254
|
if Utils.match_content_type(content_type, 'application/json')
|
415
|
-
out =
|
255
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
416
256
|
res.internal_server_error = out
|
417
257
|
end
|
418
258
|
end
|
419
|
-
|
420
259
|
res
|
421
260
|
end
|
422
261
|
|
423
262
|
|
424
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetLinkInfoRequest)
|
425
|
-
def get(request
|
263
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetLinkInfoRequest)).returns(::OpenApiSDK::Operations::GetLinkInfoResponse) }
|
264
|
+
def get(request)
|
426
265
|
# get - Retrieve a link
|
427
266
|
# Retrieve the info for a link.
|
428
267
|
url, params = @sdk_configuration.get_server_details
|
@@ -433,61 +272,10 @@ module OpenApiSDK
|
|
433
272
|
headers['Accept'] = 'application/json'
|
434
273
|
headers['user-agent'] = @sdk_configuration.user_agent
|
435
274
|
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
connection = @sdk_configuration.client
|
442
|
-
|
443
|
-
hook_ctx = SDKHooks::HookContext.new(
|
444
|
-
base_url: base_url,
|
445
|
-
oauth2_scopes: nil,
|
446
|
-
operation_id: 'getLinkInfo',
|
447
|
-
security_source: @sdk_configuration.security_source
|
448
|
-
)
|
449
|
-
|
450
|
-
error = T.let(nil, T.nilable(StandardError))
|
451
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
452
|
-
|
453
|
-
begin
|
454
|
-
r = connection.get(url) do |req|
|
455
|
-
req.headers.merge!(headers)
|
456
|
-
req.options.timeout = timeout unless timeout.nil?
|
457
|
-
req.params = query_params
|
458
|
-
Utils.configure_request_security(req, security)
|
459
|
-
|
460
|
-
@sdk_configuration.hooks.before_request(
|
461
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
462
|
-
hook_ctx: hook_ctx
|
463
|
-
),
|
464
|
-
request: req
|
465
|
-
)
|
466
|
-
end
|
467
|
-
rescue StandardError => e
|
468
|
-
error = e
|
469
|
-
ensure
|
470
|
-
if r.nil? || Utils.error_status?(r.status)
|
471
|
-
r = @sdk_configuration.hooks.after_error(
|
472
|
-
error: error,
|
473
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
474
|
-
hook_ctx: hook_ctx
|
475
|
-
),
|
476
|
-
response: r
|
477
|
-
)
|
478
|
-
else
|
479
|
-
r = @sdk_configuration.hooks.after_success(
|
480
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
481
|
-
hook_ctx: hook_ctx
|
482
|
-
),
|
483
|
-
response: r
|
484
|
-
)
|
485
|
-
end
|
486
|
-
|
487
|
-
if r.nil?
|
488
|
-
raise error if !error.nil?
|
489
|
-
raise 'no response'
|
490
|
-
end
|
275
|
+
r = @sdk_configuration.client.get(url) do |req|
|
276
|
+
req.headers = headers
|
277
|
+
req.params = query_params
|
278
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
491
279
|
end
|
492
280
|
|
493
281
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -497,339 +285,232 @@ module OpenApiSDK
|
|
497
285
|
)
|
498
286
|
if r.status == 200
|
499
287
|
if Utils.match_content_type(content_type, 'application/json')
|
500
|
-
out =
|
288
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::LinkSchema)
|
501
289
|
res.link_schema = out
|
502
290
|
end
|
503
291
|
elsif r.status == 400
|
504
292
|
if Utils.match_content_type(content_type, 'application/json')
|
505
|
-
out =
|
293
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
506
294
|
res.bad_request = out
|
507
295
|
end
|
508
296
|
elsif r.status == 401
|
509
297
|
if Utils.match_content_type(content_type, 'application/json')
|
510
|
-
out =
|
298
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
511
299
|
res.unauthorized = out
|
512
300
|
end
|
513
301
|
elsif r.status == 403
|
514
302
|
if Utils.match_content_type(content_type, 'application/json')
|
515
|
-
out =
|
303
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
516
304
|
res.forbidden = out
|
517
305
|
end
|
518
306
|
elsif r.status == 404
|
519
307
|
if Utils.match_content_type(content_type, 'application/json')
|
520
|
-
out =
|
308
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
521
309
|
res.not_found = out
|
522
310
|
end
|
523
311
|
elsif r.status == 409
|
524
312
|
if Utils.match_content_type(content_type, 'application/json')
|
525
|
-
out =
|
313
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
526
314
|
res.conflict = out
|
527
315
|
end
|
528
316
|
elsif r.status == 410
|
529
317
|
if Utils.match_content_type(content_type, 'application/json')
|
530
|
-
out =
|
318
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
531
319
|
res.invite_expired = out
|
532
320
|
end
|
533
321
|
elsif r.status == 422
|
534
322
|
if Utils.match_content_type(content_type, 'application/json')
|
535
|
-
out =
|
323
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
536
324
|
res.unprocessable_entity = out
|
537
325
|
end
|
538
326
|
elsif r.status == 429
|
539
327
|
if Utils.match_content_type(content_type, 'application/json')
|
540
|
-
out =
|
328
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
541
329
|
res.rate_limit_exceeded = out
|
542
330
|
end
|
543
331
|
elsif r.status == 500
|
544
332
|
if Utils.match_content_type(content_type, 'application/json')
|
545
|
-
out =
|
333
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
546
334
|
res.internal_server_error = out
|
547
335
|
end
|
548
336
|
end
|
549
|
-
|
550
337
|
res
|
551
338
|
end
|
552
339
|
|
553
340
|
|
554
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
555
|
-
def
|
556
|
-
#
|
557
|
-
#
|
341
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::DeleteLinkRequest)).returns(::OpenApiSDK::Operations::DeleteLinkResponse) }
|
342
|
+
def delete(request)
|
343
|
+
# delete - Delete a link
|
344
|
+
# Delete a link for the authenticated workspace.
|
558
345
|
url, params = @sdk_configuration.get_server_details
|
559
346
|
base_url = Utils.template_url(url, params)
|
560
347
|
url = Utils.generate_url(
|
561
|
-
::OpenApiSDK::Operations::
|
348
|
+
::OpenApiSDK::Operations::DeleteLinkRequest,
|
562
349
|
base_url,
|
563
350
|
'/links/{linkId}',
|
564
351
|
request
|
565
352
|
)
|
566
353
|
headers = {}
|
567
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
568
|
-
headers['content-type'] = req_content_type
|
569
|
-
|
570
|
-
if form
|
571
|
-
body = Utils.encode_form(form)
|
572
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
573
|
-
body = URI.encode_www_form(data)
|
574
|
-
else
|
575
|
-
body = data
|
576
|
-
end
|
577
354
|
headers['Accept'] = 'application/json'
|
578
355
|
headers['user-agent'] = @sdk_configuration.user_agent
|
579
356
|
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
timeout ||= @sdk_configuration.timeout
|
584
|
-
|
585
|
-
connection = @sdk_configuration.client
|
586
|
-
|
587
|
-
hook_ctx = SDKHooks::HookContext.new(
|
588
|
-
base_url: base_url,
|
589
|
-
oauth2_scopes: nil,
|
590
|
-
operation_id: 'updateLink',
|
591
|
-
security_source: @sdk_configuration.security_source
|
592
|
-
)
|
593
|
-
|
594
|
-
error = T.let(nil, T.nilable(StandardError))
|
595
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
596
|
-
|
597
|
-
begin
|
598
|
-
r = connection.patch(url) do |req|
|
599
|
-
req.body = body
|
600
|
-
req.headers.merge!(headers)
|
601
|
-
req.options.timeout = timeout unless timeout.nil?
|
602
|
-
Utils.configure_request_security(req, security)
|
603
|
-
|
604
|
-
@sdk_configuration.hooks.before_request(
|
605
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
606
|
-
hook_ctx: hook_ctx
|
607
|
-
),
|
608
|
-
request: req
|
609
|
-
)
|
610
|
-
end
|
611
|
-
rescue StandardError => e
|
612
|
-
error = e
|
613
|
-
ensure
|
614
|
-
if r.nil? || Utils.error_status?(r.status)
|
615
|
-
r = @sdk_configuration.hooks.after_error(
|
616
|
-
error: error,
|
617
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
618
|
-
hook_ctx: hook_ctx
|
619
|
-
),
|
620
|
-
response: r
|
621
|
-
)
|
622
|
-
else
|
623
|
-
r = @sdk_configuration.hooks.after_success(
|
624
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
625
|
-
hook_ctx: hook_ctx
|
626
|
-
),
|
627
|
-
response: r
|
628
|
-
)
|
629
|
-
end
|
630
|
-
|
631
|
-
if r.nil?
|
632
|
-
raise error if !error.nil?
|
633
|
-
raise 'no response'
|
634
|
-
end
|
357
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
358
|
+
req.headers = headers
|
359
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
635
360
|
end
|
636
361
|
|
637
362
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
638
363
|
|
639
|
-
res = ::OpenApiSDK::Operations::
|
364
|
+
res = ::OpenApiSDK::Operations::DeleteLinkResponse.new(
|
640
365
|
status_code: r.status, content_type: content_type, raw_response: r
|
641
366
|
)
|
642
367
|
if r.status == 200
|
643
368
|
if Utils.match_content_type(content_type, 'application/json')
|
644
|
-
out =
|
645
|
-
res.
|
369
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::DeleteLinkResponseBody)
|
370
|
+
res.object = out
|
646
371
|
end
|
647
372
|
elsif r.status == 400
|
648
373
|
if Utils.match_content_type(content_type, 'application/json')
|
649
|
-
out =
|
374
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
650
375
|
res.bad_request = out
|
651
376
|
end
|
652
377
|
elsif r.status == 401
|
653
378
|
if Utils.match_content_type(content_type, 'application/json')
|
654
|
-
out =
|
379
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
655
380
|
res.unauthorized = out
|
656
381
|
end
|
657
382
|
elsif r.status == 403
|
658
383
|
if Utils.match_content_type(content_type, 'application/json')
|
659
|
-
out =
|
384
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
660
385
|
res.forbidden = out
|
661
386
|
end
|
662
387
|
elsif r.status == 404
|
663
388
|
if Utils.match_content_type(content_type, 'application/json')
|
664
|
-
out =
|
389
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
665
390
|
res.not_found = out
|
666
391
|
end
|
667
392
|
elsif r.status == 409
|
668
393
|
if Utils.match_content_type(content_type, 'application/json')
|
669
|
-
out =
|
394
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
670
395
|
res.conflict = out
|
671
396
|
end
|
672
397
|
elsif r.status == 410
|
673
398
|
if Utils.match_content_type(content_type, 'application/json')
|
674
|
-
out =
|
399
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
675
400
|
res.invite_expired = out
|
676
401
|
end
|
677
402
|
elsif r.status == 422
|
678
403
|
if Utils.match_content_type(content_type, 'application/json')
|
679
|
-
out =
|
404
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
680
405
|
res.unprocessable_entity = out
|
681
406
|
end
|
682
407
|
elsif r.status == 429
|
683
408
|
if Utils.match_content_type(content_type, 'application/json')
|
684
|
-
out =
|
409
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
685
410
|
res.rate_limit_exceeded = out
|
686
411
|
end
|
687
412
|
elsif r.status == 500
|
688
413
|
if Utils.match_content_type(content_type, 'application/json')
|
689
|
-
out =
|
414
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
690
415
|
res.internal_server_error = out
|
691
416
|
end
|
692
417
|
end
|
693
|
-
|
694
418
|
res
|
695
419
|
end
|
696
420
|
|
697
421
|
|
698
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
699
|
-
def
|
700
|
-
#
|
701
|
-
#
|
422
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateLinkRequest)).returns(::OpenApiSDK::Operations::UpdateLinkResponse) }
|
423
|
+
def update(request)
|
424
|
+
# update - Update a link
|
425
|
+
# Update a link for the authenticated workspace. If there's no change, returns it as it is.
|
702
426
|
url, params = @sdk_configuration.get_server_details
|
703
427
|
base_url = Utils.template_url(url, params)
|
704
428
|
url = Utils.generate_url(
|
705
|
-
::OpenApiSDK::Operations::
|
429
|
+
::OpenApiSDK::Operations::UpdateLinkRequest,
|
706
430
|
base_url,
|
707
431
|
'/links/{linkId}',
|
708
432
|
request
|
709
433
|
)
|
710
434
|
headers = {}
|
435
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
436
|
+
headers['content-type'] = req_content_type
|
711
437
|
headers['Accept'] = 'application/json'
|
712
438
|
headers['user-agent'] = @sdk_configuration.user_agent
|
713
439
|
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
hook_ctx = SDKHooks::HookContext.new(
|
722
|
-
base_url: base_url,
|
723
|
-
oauth2_scopes: nil,
|
724
|
-
operation_id: 'deleteLink',
|
725
|
-
security_source: @sdk_configuration.security_source
|
726
|
-
)
|
727
|
-
|
728
|
-
error = T.let(nil, T.nilable(StandardError))
|
729
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
730
|
-
|
731
|
-
begin
|
732
|
-
r = connection.delete(url) do |req|
|
733
|
-
req.headers.merge!(headers)
|
734
|
-
req.options.timeout = timeout unless timeout.nil?
|
735
|
-
Utils.configure_request_security(req, security)
|
736
|
-
|
737
|
-
@sdk_configuration.hooks.before_request(
|
738
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
739
|
-
hook_ctx: hook_ctx
|
740
|
-
),
|
741
|
-
request: req
|
742
|
-
)
|
743
|
-
end
|
744
|
-
rescue StandardError => e
|
745
|
-
error = e
|
746
|
-
ensure
|
747
|
-
if r.nil? || Utils.error_status?(r.status)
|
748
|
-
r = @sdk_configuration.hooks.after_error(
|
749
|
-
error: error,
|
750
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
751
|
-
hook_ctx: hook_ctx
|
752
|
-
),
|
753
|
-
response: r
|
754
|
-
)
|
440
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
441
|
+
req.headers = headers
|
442
|
+
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)
|
755
447
|
else
|
756
|
-
|
757
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
758
|
-
hook_ctx: hook_ctx
|
759
|
-
),
|
760
|
-
response: r
|
761
|
-
)
|
762
|
-
end
|
763
|
-
|
764
|
-
if r.nil?
|
765
|
-
raise error if !error.nil?
|
766
|
-
raise 'no response'
|
448
|
+
req.body = data
|
767
449
|
end
|
768
450
|
end
|
769
451
|
|
770
452
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
771
453
|
|
772
|
-
res = ::OpenApiSDK::Operations::
|
454
|
+
res = ::OpenApiSDK::Operations::UpdateLinkResponse.new(
|
773
455
|
status_code: r.status, content_type: content_type, raw_response: r
|
774
456
|
)
|
775
457
|
if r.status == 200
|
776
458
|
if Utils.match_content_type(content_type, 'application/json')
|
777
|
-
out =
|
778
|
-
res.
|
459
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::LinkSchema)
|
460
|
+
res.link_schema = out
|
779
461
|
end
|
780
462
|
elsif r.status == 400
|
781
463
|
if Utils.match_content_type(content_type, 'application/json')
|
782
|
-
out =
|
464
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
783
465
|
res.bad_request = out
|
784
466
|
end
|
785
467
|
elsif r.status == 401
|
786
468
|
if Utils.match_content_type(content_type, 'application/json')
|
787
|
-
out =
|
469
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
788
470
|
res.unauthorized = out
|
789
471
|
end
|
790
472
|
elsif r.status == 403
|
791
473
|
if Utils.match_content_type(content_type, 'application/json')
|
792
|
-
out =
|
474
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
793
475
|
res.forbidden = out
|
794
476
|
end
|
795
477
|
elsif r.status == 404
|
796
478
|
if Utils.match_content_type(content_type, 'application/json')
|
797
|
-
out =
|
479
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
798
480
|
res.not_found = out
|
799
481
|
end
|
800
482
|
elsif r.status == 409
|
801
483
|
if Utils.match_content_type(content_type, 'application/json')
|
802
|
-
out =
|
484
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
803
485
|
res.conflict = out
|
804
486
|
end
|
805
487
|
elsif r.status == 410
|
806
488
|
if Utils.match_content_type(content_type, 'application/json')
|
807
|
-
out =
|
489
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
808
490
|
res.invite_expired = out
|
809
491
|
end
|
810
492
|
elsif r.status == 422
|
811
493
|
if Utils.match_content_type(content_type, 'application/json')
|
812
|
-
out =
|
494
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
813
495
|
res.unprocessable_entity = out
|
814
496
|
end
|
815
497
|
elsif r.status == 429
|
816
498
|
if Utils.match_content_type(content_type, 'application/json')
|
817
|
-
out =
|
499
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
818
500
|
res.rate_limit_exceeded = out
|
819
501
|
end
|
820
502
|
elsif r.status == 500
|
821
503
|
if Utils.match_content_type(content_type, 'application/json')
|
822
|
-
out =
|
504
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
823
505
|
res.internal_server_error = out
|
824
506
|
end
|
825
507
|
end
|
826
|
-
|
827
508
|
res
|
828
509
|
end
|
829
510
|
|
830
511
|
|
831
|
-
sig { params(request: T.nilable(T::Array[::OpenApiSDK::Operations::RequestBody])
|
832
|
-
def create_many(request
|
512
|
+
sig { params(request: T.nilable(T::Array[::OpenApiSDK::Operations::RequestBody])).returns(::OpenApiSDK::Operations::BulkCreateLinksResponse) }
|
513
|
+
def create_many(request)
|
833
514
|
# create_many - Bulk create links
|
834
515
|
# Bulk create up to 100 links for the authenticated workspace.
|
835
516
|
url, params = @sdk_configuration.get_server_details
|
@@ -838,71 +519,18 @@ module OpenApiSDK
|
|
838
519
|
headers = {}
|
839
520
|
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
840
521
|
headers['content-type'] = req_content_type
|
841
|
-
|
842
|
-
if form
|
843
|
-
body = Utils.encode_form(form)
|
844
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
845
|
-
body = URI.encode_www_form(data)
|
846
|
-
else
|
847
|
-
body = data
|
848
|
-
end
|
849
522
|
headers['Accept'] = 'application/json'
|
850
523
|
headers['user-agent'] = @sdk_configuration.user_agent
|
851
524
|
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
hook_ctx = SDKHooks::HookContext.new(
|
860
|
-
base_url: base_url,
|
861
|
-
oauth2_scopes: nil,
|
862
|
-
operation_id: 'bulkCreateLinks',
|
863
|
-
security_source: @sdk_configuration.security_source
|
864
|
-
)
|
865
|
-
|
866
|
-
error = T.let(nil, T.nilable(StandardError))
|
867
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
868
|
-
|
869
|
-
begin
|
870
|
-
r = connection.post(url) do |req|
|
871
|
-
req.body = body
|
872
|
-
req.headers.merge!(headers)
|
873
|
-
req.options.timeout = timeout unless timeout.nil?
|
874
|
-
Utils.configure_request_security(req, security)
|
875
|
-
|
876
|
-
@sdk_configuration.hooks.before_request(
|
877
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
878
|
-
hook_ctx: hook_ctx
|
879
|
-
),
|
880
|
-
request: req
|
881
|
-
)
|
882
|
-
end
|
883
|
-
rescue StandardError => e
|
884
|
-
error = e
|
885
|
-
ensure
|
886
|
-
if r.nil? || Utils.error_status?(r.status)
|
887
|
-
r = @sdk_configuration.hooks.after_error(
|
888
|
-
error: error,
|
889
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
890
|
-
hook_ctx: hook_ctx
|
891
|
-
),
|
892
|
-
response: r
|
893
|
-
)
|
525
|
+
r = @sdk_configuration.client.post(url) do |req|
|
526
|
+
req.headers = headers
|
527
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
528
|
+
if form
|
529
|
+
req.body = Utils.encode_form(form)
|
530
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
531
|
+
req.body = URI.encode_www_form(data)
|
894
532
|
else
|
895
|
-
|
896
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
897
|
-
hook_ctx: hook_ctx
|
898
|
-
),
|
899
|
-
response: r
|
900
|
-
)
|
901
|
-
end
|
902
|
-
|
903
|
-
if r.nil?
|
904
|
-
raise error if !error.nil?
|
905
|
-
raise 'no response'
|
533
|
+
req.body = data
|
906
534
|
end
|
907
535
|
end
|
908
536
|
|
@@ -913,62 +541,61 @@ module OpenApiSDK
|
|
913
541
|
)
|
914
542
|
if r.status == 200
|
915
543
|
if Utils.match_content_type(content_type, 'application/json')
|
916
|
-
out =
|
917
|
-
res.
|
544
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::LinkSchema])
|
545
|
+
res.link_schemas = out
|
918
546
|
end
|
919
547
|
elsif r.status == 400
|
920
548
|
if Utils.match_content_type(content_type, 'application/json')
|
921
|
-
out =
|
549
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
922
550
|
res.bad_request = out
|
923
551
|
end
|
924
552
|
elsif r.status == 401
|
925
553
|
if Utils.match_content_type(content_type, 'application/json')
|
926
|
-
out =
|
554
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
927
555
|
res.unauthorized = out
|
928
556
|
end
|
929
557
|
elsif r.status == 403
|
930
558
|
if Utils.match_content_type(content_type, 'application/json')
|
931
|
-
out =
|
559
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
932
560
|
res.forbidden = out
|
933
561
|
end
|
934
562
|
elsif r.status == 404
|
935
563
|
if Utils.match_content_type(content_type, 'application/json')
|
936
|
-
out =
|
564
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
937
565
|
res.not_found = out
|
938
566
|
end
|
939
567
|
elsif r.status == 409
|
940
568
|
if Utils.match_content_type(content_type, 'application/json')
|
941
|
-
out =
|
569
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
942
570
|
res.conflict = out
|
943
571
|
end
|
944
572
|
elsif r.status == 410
|
945
573
|
if Utils.match_content_type(content_type, 'application/json')
|
946
|
-
out =
|
574
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
947
575
|
res.invite_expired = out
|
948
576
|
end
|
949
577
|
elsif r.status == 422
|
950
578
|
if Utils.match_content_type(content_type, 'application/json')
|
951
|
-
out =
|
579
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
952
580
|
res.unprocessable_entity = out
|
953
581
|
end
|
954
582
|
elsif r.status == 429
|
955
583
|
if Utils.match_content_type(content_type, 'application/json')
|
956
|
-
out =
|
584
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
957
585
|
res.rate_limit_exceeded = out
|
958
586
|
end
|
959
587
|
elsif r.status == 500
|
960
588
|
if Utils.match_content_type(content_type, 'application/json')
|
961
|
-
out =
|
589
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
962
590
|
res.internal_server_error = out
|
963
591
|
end
|
964
592
|
end
|
965
|
-
|
966
593
|
res
|
967
594
|
end
|
968
595
|
|
969
596
|
|
970
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::BulkUpdateLinksRequestBody)
|
971
|
-
def update_many(request
|
597
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::BulkUpdateLinksRequestBody)).returns(::OpenApiSDK::Operations::BulkUpdateLinksResponse) }
|
598
|
+
def update_many(request)
|
972
599
|
# update_many - Bulk update links
|
973
600
|
# Bulk update up to 100 links with the same data for the authenticated workspace.
|
974
601
|
url, params = @sdk_configuration.get_server_details
|
@@ -977,71 +604,18 @@ module OpenApiSDK
|
|
977
604
|
headers = {}
|
978
605
|
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
979
606
|
headers['content-type'] = req_content_type
|
980
|
-
|
981
|
-
if form
|
982
|
-
body = Utils.encode_form(form)
|
983
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
984
|
-
body = URI.encode_www_form(data)
|
985
|
-
else
|
986
|
-
body = data
|
987
|
-
end
|
988
607
|
headers['Accept'] = 'application/json'
|
989
608
|
headers['user-agent'] = @sdk_configuration.user_agent
|
990
609
|
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
hook_ctx = SDKHooks::HookContext.new(
|
999
|
-
base_url: base_url,
|
1000
|
-
oauth2_scopes: nil,
|
1001
|
-
operation_id: 'bulkUpdateLinks',
|
1002
|
-
security_source: @sdk_configuration.security_source
|
1003
|
-
)
|
1004
|
-
|
1005
|
-
error = T.let(nil, T.nilable(StandardError))
|
1006
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
1007
|
-
|
1008
|
-
begin
|
1009
|
-
r = connection.patch(url) do |req|
|
1010
|
-
req.body = body
|
1011
|
-
req.headers.merge!(headers)
|
1012
|
-
req.options.timeout = timeout unless timeout.nil?
|
1013
|
-
Utils.configure_request_security(req, security)
|
1014
|
-
|
1015
|
-
@sdk_configuration.hooks.before_request(
|
1016
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1017
|
-
hook_ctx: hook_ctx
|
1018
|
-
),
|
1019
|
-
request: req
|
1020
|
-
)
|
1021
|
-
end
|
1022
|
-
rescue StandardError => e
|
1023
|
-
error = e
|
1024
|
-
ensure
|
1025
|
-
if r.nil? || Utils.error_status?(r.status)
|
1026
|
-
r = @sdk_configuration.hooks.after_error(
|
1027
|
-
error: error,
|
1028
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1029
|
-
hook_ctx: hook_ctx
|
1030
|
-
),
|
1031
|
-
response: r
|
1032
|
-
)
|
610
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
611
|
+
req.headers = headers
|
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)
|
1033
617
|
else
|
1034
|
-
|
1035
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1036
|
-
hook_ctx: hook_ctx
|
1037
|
-
),
|
1038
|
-
response: r
|
1039
|
-
)
|
1040
|
-
end
|
1041
|
-
|
1042
|
-
if r.nil?
|
1043
|
-
raise error if !error.nil?
|
1044
|
-
raise 'no response'
|
618
|
+
req.body = data
|
1045
619
|
end
|
1046
620
|
end
|
1047
621
|
|
@@ -1052,192 +626,61 @@ module OpenApiSDK
|
|
1052
626
|
)
|
1053
627
|
if r.status == 200
|
1054
628
|
if Utils.match_content_type(content_type, 'application/json')
|
1055
|
-
out =
|
629
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::LinkSchema])
|
1056
630
|
res.link_schemas = out
|
1057
631
|
end
|
1058
632
|
elsif r.status == 400
|
1059
633
|
if Utils.match_content_type(content_type, 'application/json')
|
1060
|
-
out =
|
634
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
1061
635
|
res.bad_request = out
|
1062
636
|
end
|
1063
637
|
elsif r.status == 401
|
1064
638
|
if Utils.match_content_type(content_type, 'application/json')
|
1065
|
-
out =
|
639
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
1066
640
|
res.unauthorized = out
|
1067
641
|
end
|
1068
642
|
elsif r.status == 403
|
1069
643
|
if Utils.match_content_type(content_type, 'application/json')
|
1070
|
-
out =
|
644
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
1071
645
|
res.forbidden = out
|
1072
646
|
end
|
1073
647
|
elsif r.status == 404
|
1074
648
|
if Utils.match_content_type(content_type, 'application/json')
|
1075
|
-
out =
|
649
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
1076
650
|
res.not_found = out
|
1077
651
|
end
|
1078
652
|
elsif r.status == 409
|
1079
653
|
if Utils.match_content_type(content_type, 'application/json')
|
1080
|
-
out =
|
654
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
1081
655
|
res.conflict = out
|
1082
656
|
end
|
1083
657
|
elsif r.status == 410
|
1084
658
|
if Utils.match_content_type(content_type, 'application/json')
|
1085
|
-
out =
|
659
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
1086
660
|
res.invite_expired = out
|
1087
661
|
end
|
1088
662
|
elsif r.status == 422
|
1089
663
|
if Utils.match_content_type(content_type, 'application/json')
|
1090
|
-
out =
|
664
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
1091
665
|
res.unprocessable_entity = out
|
1092
666
|
end
|
1093
667
|
elsif r.status == 429
|
1094
668
|
if Utils.match_content_type(content_type, 'application/json')
|
1095
|
-
out =
|
669
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
1096
670
|
res.rate_limit_exceeded = out
|
1097
671
|
end
|
1098
672
|
elsif r.status == 500
|
1099
673
|
if Utils.match_content_type(content_type, 'application/json')
|
1100
|
-
out =
|
674
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
1101
675
|
res.internal_server_error = out
|
1102
676
|
end
|
1103
677
|
end
|
1104
|
-
|
1105
678
|
res
|
1106
679
|
end
|
1107
680
|
|
1108
681
|
|
1109
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::
|
1110
|
-
def
|
1111
|
-
# delete_many - Bulk delete links
|
1112
|
-
# Bulk delete up to 100 links for the authenticated workspace.
|
1113
|
-
url, params = @sdk_configuration.get_server_details
|
1114
|
-
base_url = Utils.template_url(url, params)
|
1115
|
-
url = "#{base_url}/links/bulk"
|
1116
|
-
headers = {}
|
1117
|
-
query_params = Utils.get_query_params(::OpenApiSDK::Operations::BulkDeleteLinksRequest, request)
|
1118
|
-
headers['Accept'] = 'application/json'
|
1119
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
1120
|
-
|
1121
|
-
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1122
|
-
|
1123
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
1124
|
-
timeout ||= @sdk_configuration.timeout
|
1125
|
-
|
1126
|
-
connection = @sdk_configuration.client
|
1127
|
-
|
1128
|
-
hook_ctx = SDKHooks::HookContext.new(
|
1129
|
-
base_url: base_url,
|
1130
|
-
oauth2_scopes: nil,
|
1131
|
-
operation_id: 'bulkDeleteLinks',
|
1132
|
-
security_source: @sdk_configuration.security_source
|
1133
|
-
)
|
1134
|
-
|
1135
|
-
error = T.let(nil, T.nilable(StandardError))
|
1136
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
1137
|
-
|
1138
|
-
begin
|
1139
|
-
r = connection.delete(url) do |req|
|
1140
|
-
req.headers.merge!(headers)
|
1141
|
-
req.options.timeout = timeout unless timeout.nil?
|
1142
|
-
req.params = query_params
|
1143
|
-
Utils.configure_request_security(req, security)
|
1144
|
-
|
1145
|
-
@sdk_configuration.hooks.before_request(
|
1146
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1147
|
-
hook_ctx: hook_ctx
|
1148
|
-
),
|
1149
|
-
request: req
|
1150
|
-
)
|
1151
|
-
end
|
1152
|
-
rescue StandardError => e
|
1153
|
-
error = e
|
1154
|
-
ensure
|
1155
|
-
if r.nil? || Utils.error_status?(r.status)
|
1156
|
-
r = @sdk_configuration.hooks.after_error(
|
1157
|
-
error: error,
|
1158
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1159
|
-
hook_ctx: hook_ctx
|
1160
|
-
),
|
1161
|
-
response: r
|
1162
|
-
)
|
1163
|
-
else
|
1164
|
-
r = @sdk_configuration.hooks.after_success(
|
1165
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1166
|
-
hook_ctx: hook_ctx
|
1167
|
-
),
|
1168
|
-
response: r
|
1169
|
-
)
|
1170
|
-
end
|
1171
|
-
|
1172
|
-
if r.nil?
|
1173
|
-
raise error if !error.nil?
|
1174
|
-
raise 'no response'
|
1175
|
-
end
|
1176
|
-
end
|
1177
|
-
|
1178
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1179
|
-
|
1180
|
-
res = ::OpenApiSDK::Operations::BulkDeleteLinksResponse.new(
|
1181
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
1182
|
-
)
|
1183
|
-
if r.status == 200
|
1184
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1185
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Operations::BulkDeleteLinksResponseBody)
|
1186
|
-
res.object = out
|
1187
|
-
end
|
1188
|
-
elsif r.status == 400
|
1189
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1190
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::BadRequest)
|
1191
|
-
res.bad_request = out
|
1192
|
-
end
|
1193
|
-
elsif r.status == 401
|
1194
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1195
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::Unauthorized)
|
1196
|
-
res.unauthorized = out
|
1197
|
-
end
|
1198
|
-
elsif r.status == 403
|
1199
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1200
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::Forbidden)
|
1201
|
-
res.forbidden = out
|
1202
|
-
end
|
1203
|
-
elsif r.status == 404
|
1204
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1205
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::NotFound)
|
1206
|
-
res.not_found = out
|
1207
|
-
end
|
1208
|
-
elsif r.status == 409
|
1209
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1210
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::Conflict)
|
1211
|
-
res.conflict = out
|
1212
|
-
end
|
1213
|
-
elsif r.status == 410
|
1214
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1215
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::InviteExpired)
|
1216
|
-
res.invite_expired = out
|
1217
|
-
end
|
1218
|
-
elsif r.status == 422
|
1219
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1220
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::UnprocessableEntity)
|
1221
|
-
res.unprocessable_entity = out
|
1222
|
-
end
|
1223
|
-
elsif r.status == 429
|
1224
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1225
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::RateLimitExceeded)
|
1226
|
-
res.rate_limit_exceeded = out
|
1227
|
-
end
|
1228
|
-
elsif r.status == 500
|
1229
|
-
if Utils.match_content_type(content_type, 'application/json')
|
1230
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Shared::InternalServerError)
|
1231
|
-
res.internal_server_error = out
|
1232
|
-
end
|
1233
|
-
end
|
1234
|
-
|
1235
|
-
res
|
1236
|
-
end
|
1237
|
-
|
1238
|
-
|
1239
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpsertLinkRequestBody), timeout_ms: T.nilable(Integer)).returns(::OpenApiSDK::Operations::UpsertLinkResponse) }
|
1240
|
-
def upsert(request, timeout_ms = nil)
|
682
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpsertLinkRequestBody)).returns(::OpenApiSDK::Operations::UpsertLinkResponse) }
|
683
|
+
def upsert(request)
|
1241
684
|
# upsert - Upsert a link
|
1242
685
|
# Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.
|
1243
686
|
url, params = @sdk_configuration.get_server_details
|
@@ -1246,71 +689,18 @@ module OpenApiSDK
|
|
1246
689
|
headers = {}
|
1247
690
|
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
1248
691
|
headers['content-type'] = req_content_type
|
1249
|
-
|
1250
|
-
if form
|
1251
|
-
body = Utils.encode_form(form)
|
1252
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
1253
|
-
body = URI.encode_www_form(data)
|
1254
|
-
else
|
1255
|
-
body = data
|
1256
|
-
end
|
1257
692
|
headers['Accept'] = 'application/json'
|
1258
693
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1259
694
|
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
hook_ctx = SDKHooks::HookContext.new(
|
1268
|
-
base_url: base_url,
|
1269
|
-
oauth2_scopes: nil,
|
1270
|
-
operation_id: 'upsertLink',
|
1271
|
-
security_source: @sdk_configuration.security_source
|
1272
|
-
)
|
1273
|
-
|
1274
|
-
error = T.let(nil, T.nilable(StandardError))
|
1275
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
1276
|
-
|
1277
|
-
begin
|
1278
|
-
r = connection.put(url) do |req|
|
1279
|
-
req.body = body
|
1280
|
-
req.headers.merge!(headers)
|
1281
|
-
req.options.timeout = timeout unless timeout.nil?
|
1282
|
-
Utils.configure_request_security(req, security)
|
1283
|
-
|
1284
|
-
@sdk_configuration.hooks.before_request(
|
1285
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
1286
|
-
hook_ctx: hook_ctx
|
1287
|
-
),
|
1288
|
-
request: req
|
1289
|
-
)
|
1290
|
-
end
|
1291
|
-
rescue StandardError => e
|
1292
|
-
error = e
|
1293
|
-
ensure
|
1294
|
-
if r.nil? || Utils.error_status?(r.status)
|
1295
|
-
r = @sdk_configuration.hooks.after_error(
|
1296
|
-
error: error,
|
1297
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
1298
|
-
hook_ctx: hook_ctx
|
1299
|
-
),
|
1300
|
-
response: r
|
1301
|
-
)
|
695
|
+
r = @sdk_configuration.client.put(url) do |req|
|
696
|
+
req.headers = headers
|
697
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
698
|
+
if form
|
699
|
+
req.body = Utils.encode_form(form)
|
700
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
701
|
+
req.body = URI.encode_www_form(data)
|
1302
702
|
else
|
1303
|
-
|
1304
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
1305
|
-
hook_ctx: hook_ctx
|
1306
|
-
),
|
1307
|
-
response: r
|
1308
|
-
)
|
1309
|
-
end
|
1310
|
-
|
1311
|
-
if r.nil?
|
1312
|
-
raise error if !error.nil?
|
1313
|
-
raise 'no response'
|
703
|
+
req.body = data
|
1314
704
|
end
|
1315
705
|
end
|
1316
706
|
|
@@ -1321,56 +711,55 @@ module OpenApiSDK
|
|
1321
711
|
)
|
1322
712
|
if r.status == 200
|
1323
713
|
if Utils.match_content_type(content_type, 'application/json')
|
1324
|
-
out =
|
714
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::LinkSchema)
|
1325
715
|
res.link_schema = out
|
1326
716
|
end
|
1327
717
|
elsif r.status == 400
|
1328
718
|
if Utils.match_content_type(content_type, 'application/json')
|
1329
|
-
out =
|
719
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
1330
720
|
res.bad_request = out
|
1331
721
|
end
|
1332
722
|
elsif r.status == 401
|
1333
723
|
if Utils.match_content_type(content_type, 'application/json')
|
1334
|
-
out =
|
724
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
1335
725
|
res.unauthorized = out
|
1336
726
|
end
|
1337
727
|
elsif r.status == 403
|
1338
728
|
if Utils.match_content_type(content_type, 'application/json')
|
1339
|
-
out =
|
729
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
1340
730
|
res.forbidden = out
|
1341
731
|
end
|
1342
732
|
elsif r.status == 404
|
1343
733
|
if Utils.match_content_type(content_type, 'application/json')
|
1344
|
-
out =
|
734
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
1345
735
|
res.not_found = out
|
1346
736
|
end
|
1347
737
|
elsif r.status == 409
|
1348
738
|
if Utils.match_content_type(content_type, 'application/json')
|
1349
|
-
out =
|
739
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
1350
740
|
res.conflict = out
|
1351
741
|
end
|
1352
742
|
elsif r.status == 410
|
1353
743
|
if Utils.match_content_type(content_type, 'application/json')
|
1354
|
-
out =
|
744
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
1355
745
|
res.invite_expired = out
|
1356
746
|
end
|
1357
747
|
elsif r.status == 422
|
1358
748
|
if Utils.match_content_type(content_type, 'application/json')
|
1359
|
-
out =
|
749
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
1360
750
|
res.unprocessable_entity = out
|
1361
751
|
end
|
1362
752
|
elsif r.status == 429
|
1363
753
|
if Utils.match_content_type(content_type, 'application/json')
|
1364
|
-
out =
|
754
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
1365
755
|
res.rate_limit_exceeded = out
|
1366
756
|
end
|
1367
757
|
elsif r.status == 500
|
1368
758
|
if Utils.match_content_type(content_type, 'application/json')
|
1369
|
-
out =
|
759
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
1370
760
|
res.internal_server_error = out
|
1371
761
|
end
|
1372
762
|
end
|
1373
|
-
|
1374
763
|
res
|
1375
764
|
end
|
1376
765
|
end
|