dub 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/dub.rb +23 -0
- data/lib/open_api_sdk/analytics.rb +99 -0
- data/lib/open_api_sdk/domains.rb +577 -0
- data/lib/open_api_sdk/dub.rb +107 -0
- data/lib/open_api_sdk/links.rb +724 -0
- data/lib/open_api_sdk/metatags.rb +58 -0
- data/lib/open_api_sdk/models/operations/adddomain_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/adddomain_requestbody.rb +42 -0
- data/lib/open_api_sdk/models/operations/adddomain_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/color.rb +24 -0
- data/lib/open_api_sdk/models/operations/createlink_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +92 -0
- data/lib/open_api_sdk/models/operations/createlink_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createtag_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +27 -0
- data/lib/open_api_sdk/models/operations/createtag_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createworkspace_requestbody.rb +30 -0
- data/lib/open_api_sdk/models/operations/createworkspace_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/event.rb +21 -0
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +39 -0
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +57 -0
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +54 -0
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +60 -0
- 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 +39 -0
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/gettags_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/gettags_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/getworkspaces_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/groupby.rb +28 -0
- data/lib/open_api_sdk/models/operations/interval.rb +25 -0
- data/lib/open_api_sdk/models/operations/level.rb +21 -0
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +20 -0
- data/lib/open_api_sdk/models/operations/requestbody.rb +92 -0
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +87 -0
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/setprimarydomain_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/setprimarydomain_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/sort.rb +20 -0
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/trackcustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +33 -0
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +42 -0
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +42 -0
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +39 -0
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +39 -0
- data/lib/open_api_sdk/models/operations/transferdomain_request.rb +33 -0
- data/lib/open_api_sdk/models/operations/transferdomain_requestbody.rb +24 -0
- data/lib/open_api_sdk/models/operations/transferdomain_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/type.rb +19 -0
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +42 -0
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatedomain_type.rb +19 -0
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +92 -0
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/upsertlink_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +92 -0
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +60 -0
- data/lib/open_api_sdk/models/operations.rb +81 -0
- data/lib/open_api_sdk/models/shared/badrequest.rb +24 -0
- data/lib/open_api_sdk/models/shared/code.rb +18 -0
- data/lib/open_api_sdk/models/shared/color.rb +24 -0
- data/lib/open_api_sdk/models/shared/conflict.rb +24 -0
- data/lib/open_api_sdk/models/shared/conflict_code.rb +18 -0
- data/lib/open_api_sdk/models/shared/conflict_error.rb +30 -0
- data/lib/open_api_sdk/models/shared/countrycode.rb +267 -0
- data/lib/open_api_sdk/models/shared/domains.rb +27 -0
- data/lib/open_api_sdk/models/shared/domainschema.rb +54 -0
- data/lib/open_api_sdk/models/shared/error.rb +30 -0
- data/lib/open_api_sdk/models/shared/forbidden.rb +24 -0
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +18 -0
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +30 -0
- data/lib/open_api_sdk/models/shared/geo.rb +771 -0
- data/lib/open_api_sdk/models/shared/internalservererror.rb +24 -0
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +18 -0
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +30 -0
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +24 -0
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +18 -0
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +30 -0
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +771 -0
- data/lib/open_api_sdk/models/shared/linkschema.rb +139 -0
- data/lib/open_api_sdk/models/shared/notfound.rb +24 -0
- data/lib/open_api_sdk/models/shared/notfound_code.rb +18 -0
- data/lib/open_api_sdk/models/shared/notfound_error.rb +30 -0
- data/lib/open_api_sdk/models/shared/plan.rb +24 -0
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +24 -0
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +18 -0
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +30 -0
- data/lib/open_api_sdk/models/shared/role.rb +19 -0
- data/lib/open_api_sdk/models/shared/security.rb +24 -0
- data/lib/open_api_sdk/models/shared/tagschema.rb +30 -0
- data/lib/open_api_sdk/models/shared/type.rb +19 -0
- data/lib/open_api_sdk/models/shared/unauthorized.rb +24 -0
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +18 -0
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +30 -0
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +24 -0
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +18 -0
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +30 -0
- data/lib/open_api_sdk/models/shared/users.rb +24 -0
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +81 -0
- data/lib/open_api_sdk/models/shared.rb +50 -0
- data/lib/open_api_sdk/qr_codes.rb +97 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +54 -0
- data/lib/open_api_sdk/tags.rb +197 -0
- data/lib/open_api_sdk/track.rb +276 -0
- data/lib/open_api_sdk/utils/metadata_fields.rb +150 -0
- data/lib/open_api_sdk/utils/t.rb +59 -0
- data/lib/open_api_sdk/utils/utils.rb +772 -0
- data/lib/open_api_sdk/workspaces.rb +268 -0
- metadata +300 -0
@@ -0,0 +1,268 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'faraday'
|
7
|
+
require 'faraday/multipart'
|
8
|
+
require 'sorbet-runtime'
|
9
|
+
|
10
|
+
module OpenApiSDK
|
11
|
+
extend T::Sig
|
12
|
+
class Workspaces
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
|
16
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
17
|
+
def initialize(sdk_config)
|
18
|
+
@sdk_configuration = sdk_config
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
sig { returns(::OpenApiSDK::Operations::GetWorkspacesResponse) }
|
23
|
+
def list
|
24
|
+
# list - Retrieve a list of workspaces
|
25
|
+
# Retrieve a list of workspaces for the authenticated user.
|
26
|
+
url, params = @sdk_configuration.get_server_details
|
27
|
+
base_url = Utils.template_url(url, params)
|
28
|
+
url = "#{base_url}/workspaces"
|
29
|
+
headers = {}
|
30
|
+
headers['Accept'] = 'application/json'
|
31
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
32
|
+
|
33
|
+
r = @sdk_configuration.client.get(url) do |req|
|
34
|
+
req.headers = headers
|
35
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
36
|
+
end
|
37
|
+
|
38
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
39
|
+
|
40
|
+
res = ::OpenApiSDK::Operations::GetWorkspacesResponse.new(
|
41
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
42
|
+
)
|
43
|
+
if r.status == 200
|
44
|
+
if Utils.match_content_type(content_type, 'application/json')
|
45
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::WorkspaceSchema])
|
46
|
+
res.workspace_schemas = out
|
47
|
+
end
|
48
|
+
elsif r.status == 400
|
49
|
+
if Utils.match_content_type(content_type, 'application/json')
|
50
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
51
|
+
res.bad_request = out
|
52
|
+
end
|
53
|
+
elsif r.status == 401
|
54
|
+
if Utils.match_content_type(content_type, 'application/json')
|
55
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
56
|
+
res.unauthorized = out
|
57
|
+
end
|
58
|
+
elsif r.status == 403
|
59
|
+
if Utils.match_content_type(content_type, 'application/json')
|
60
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
61
|
+
res.forbidden = out
|
62
|
+
end
|
63
|
+
elsif r.status == 404
|
64
|
+
if Utils.match_content_type(content_type, 'application/json')
|
65
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
66
|
+
res.not_found = out
|
67
|
+
end
|
68
|
+
elsif r.status == 409
|
69
|
+
if Utils.match_content_type(content_type, 'application/json')
|
70
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
71
|
+
res.conflict = out
|
72
|
+
end
|
73
|
+
elsif r.status == 410
|
74
|
+
if Utils.match_content_type(content_type, 'application/json')
|
75
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
76
|
+
res.invite_expired = out
|
77
|
+
end
|
78
|
+
elsif r.status == 422
|
79
|
+
if Utils.match_content_type(content_type, 'application/json')
|
80
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
81
|
+
res.unprocessable_entity = out
|
82
|
+
end
|
83
|
+
elsif r.status == 429
|
84
|
+
if Utils.match_content_type(content_type, 'application/json')
|
85
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
86
|
+
res.rate_limit_exceeded = out
|
87
|
+
end
|
88
|
+
elsif r.status == 500
|
89
|
+
if Utils.match_content_type(content_type, 'application/json')
|
90
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
91
|
+
res.internal_server_error = out
|
92
|
+
end
|
93
|
+
end
|
94
|
+
res
|
95
|
+
end
|
96
|
+
|
97
|
+
|
98
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateWorkspaceRequestBody)).returns(::OpenApiSDK::Operations::CreateWorkspaceResponse) }
|
99
|
+
def create(request)
|
100
|
+
# create - Create a workspace
|
101
|
+
# Create a new workspace for the authenticated user.
|
102
|
+
url, params = @sdk_configuration.get_server_details
|
103
|
+
base_url = Utils.template_url(url, params)
|
104
|
+
url = "#{base_url}/workspaces"
|
105
|
+
headers = {}
|
106
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
107
|
+
headers['content-type'] = req_content_type
|
108
|
+
headers['Accept'] = 'application/json'
|
109
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
110
|
+
|
111
|
+
r = @sdk_configuration.client.post(url) do |req|
|
112
|
+
req.headers = headers
|
113
|
+
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
|
+
end
|
122
|
+
|
123
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
124
|
+
|
125
|
+
res = ::OpenApiSDK::Operations::CreateWorkspaceResponse.new(
|
126
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
127
|
+
)
|
128
|
+
if r.status == 200
|
129
|
+
if Utils.match_content_type(content_type, 'application/json')
|
130
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::WorkspaceSchema)
|
131
|
+
res.workspace_schema = out
|
132
|
+
end
|
133
|
+
elsif r.status == 400
|
134
|
+
if Utils.match_content_type(content_type, 'application/json')
|
135
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
136
|
+
res.bad_request = out
|
137
|
+
end
|
138
|
+
elsif r.status == 401
|
139
|
+
if Utils.match_content_type(content_type, 'application/json')
|
140
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
141
|
+
res.unauthorized = out
|
142
|
+
end
|
143
|
+
elsif r.status == 403
|
144
|
+
if Utils.match_content_type(content_type, 'application/json')
|
145
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
146
|
+
res.forbidden = out
|
147
|
+
end
|
148
|
+
elsif r.status == 404
|
149
|
+
if Utils.match_content_type(content_type, 'application/json')
|
150
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
151
|
+
res.not_found = out
|
152
|
+
end
|
153
|
+
elsif r.status == 409
|
154
|
+
if Utils.match_content_type(content_type, 'application/json')
|
155
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
156
|
+
res.conflict = out
|
157
|
+
end
|
158
|
+
elsif r.status == 410
|
159
|
+
if Utils.match_content_type(content_type, 'application/json')
|
160
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
161
|
+
res.invite_expired = out
|
162
|
+
end
|
163
|
+
elsif r.status == 422
|
164
|
+
if Utils.match_content_type(content_type, 'application/json')
|
165
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
166
|
+
res.unprocessable_entity = out
|
167
|
+
end
|
168
|
+
elsif r.status == 429
|
169
|
+
if Utils.match_content_type(content_type, 'application/json')
|
170
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
171
|
+
res.rate_limit_exceeded = out
|
172
|
+
end
|
173
|
+
elsif r.status == 500
|
174
|
+
if Utils.match_content_type(content_type, 'application/json')
|
175
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
176
|
+
res.internal_server_error = out
|
177
|
+
end
|
178
|
+
end
|
179
|
+
res
|
180
|
+
end
|
181
|
+
|
182
|
+
|
183
|
+
sig { params(id_or_slug: ::String).returns(::OpenApiSDK::Operations::GetWorkspaceResponse) }
|
184
|
+
def get(id_or_slug)
|
185
|
+
# get - Retrieve a workspace
|
186
|
+
# Retrieve a workspace for the authenticated user.
|
187
|
+
request = ::OpenApiSDK::Operations::GetWorkspaceRequest.new(
|
188
|
+
|
189
|
+
id_or_slug: id_or_slug
|
190
|
+
)
|
191
|
+
url, params = @sdk_configuration.get_server_details
|
192
|
+
base_url = Utils.template_url(url, params)
|
193
|
+
url = Utils.generate_url(
|
194
|
+
::OpenApiSDK::Operations::GetWorkspaceRequest,
|
195
|
+
base_url,
|
196
|
+
'/workspaces/{idOrSlug}',
|
197
|
+
request,
|
198
|
+
@sdk_configuration.globals
|
199
|
+
)
|
200
|
+
headers = {}
|
201
|
+
headers['Accept'] = 'application/json'
|
202
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
203
|
+
|
204
|
+
r = @sdk_configuration.client.get(url) do |req|
|
205
|
+
req.headers = headers
|
206
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
207
|
+
end
|
208
|
+
|
209
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
210
|
+
|
211
|
+
res = ::OpenApiSDK::Operations::GetWorkspaceResponse.new(
|
212
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
213
|
+
)
|
214
|
+
if r.status == 200
|
215
|
+
if Utils.match_content_type(content_type, 'application/json')
|
216
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::WorkspaceSchema)
|
217
|
+
res.workspace_schema = out
|
218
|
+
end
|
219
|
+
elsif r.status == 400
|
220
|
+
if Utils.match_content_type(content_type, 'application/json')
|
221
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
222
|
+
res.bad_request = out
|
223
|
+
end
|
224
|
+
elsif r.status == 401
|
225
|
+
if Utils.match_content_type(content_type, 'application/json')
|
226
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
227
|
+
res.unauthorized = out
|
228
|
+
end
|
229
|
+
elsif r.status == 403
|
230
|
+
if Utils.match_content_type(content_type, 'application/json')
|
231
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
232
|
+
res.forbidden = out
|
233
|
+
end
|
234
|
+
elsif r.status == 404
|
235
|
+
if Utils.match_content_type(content_type, 'application/json')
|
236
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
237
|
+
res.not_found = out
|
238
|
+
end
|
239
|
+
elsif r.status == 409
|
240
|
+
if Utils.match_content_type(content_type, 'application/json')
|
241
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
242
|
+
res.conflict = out
|
243
|
+
end
|
244
|
+
elsif r.status == 410
|
245
|
+
if Utils.match_content_type(content_type, 'application/json')
|
246
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
247
|
+
res.invite_expired = out
|
248
|
+
end
|
249
|
+
elsif r.status == 422
|
250
|
+
if Utils.match_content_type(content_type, 'application/json')
|
251
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
252
|
+
res.unprocessable_entity = out
|
253
|
+
end
|
254
|
+
elsif r.status == 429
|
255
|
+
if Utils.match_content_type(content_type, 'application/json')
|
256
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
257
|
+
res.rate_limit_exceeded = out
|
258
|
+
end
|
259
|
+
elsif r.status == 500
|
260
|
+
if Utils.match_content_type(content_type, 'application/json')
|
261
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
262
|
+
res.internal_server_error = out
|
263
|
+
end
|
264
|
+
end
|
265
|
+
res
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
metadata
ADDED
@@ -0,0 +1,300 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dub
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dub
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday-multipart
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rack
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sorbet
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sorbet-runtime
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: tapioca
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: Ruby Client SDK Generated by Speakeasy
|
140
|
+
email:
|
141
|
+
executables: []
|
142
|
+
extensions: []
|
143
|
+
extra_rdoc_files: []
|
144
|
+
files:
|
145
|
+
- lib/dub.rb
|
146
|
+
- lib/open_api_sdk/analytics.rb
|
147
|
+
- lib/open_api_sdk/domains.rb
|
148
|
+
- lib/open_api_sdk/dub.rb
|
149
|
+
- lib/open_api_sdk/links.rb
|
150
|
+
- lib/open_api_sdk/metatags.rb
|
151
|
+
- lib/open_api_sdk/models/operations.rb
|
152
|
+
- lib/open_api_sdk/models/operations/adddomain_request.rb
|
153
|
+
- lib/open_api_sdk/models/operations/adddomain_requestbody.rb
|
154
|
+
- lib/open_api_sdk/models/operations/adddomain_response.rb
|
155
|
+
- lib/open_api_sdk/models/operations/bulkcreatelinks_request.rb
|
156
|
+
- lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb
|
157
|
+
- lib/open_api_sdk/models/operations/color.rb
|
158
|
+
- lib/open_api_sdk/models/operations/createlink_request.rb
|
159
|
+
- lib/open_api_sdk/models/operations/createlink_requestbody.rb
|
160
|
+
- lib/open_api_sdk/models/operations/createlink_response.rb
|
161
|
+
- lib/open_api_sdk/models/operations/createtag_request.rb
|
162
|
+
- lib/open_api_sdk/models/operations/createtag_requestbody.rb
|
163
|
+
- lib/open_api_sdk/models/operations/createtag_response.rb
|
164
|
+
- lib/open_api_sdk/models/operations/createworkspace_requestbody.rb
|
165
|
+
- lib/open_api_sdk/models/operations/createworkspace_response.rb
|
166
|
+
- lib/open_api_sdk/models/operations/deletedomain_request.rb
|
167
|
+
- lib/open_api_sdk/models/operations/deletedomain_response.rb
|
168
|
+
- lib/open_api_sdk/models/operations/deletedomain_responsebody.rb
|
169
|
+
- lib/open_api_sdk/models/operations/deletelink_request.rb
|
170
|
+
- lib/open_api_sdk/models/operations/deletelink_response.rb
|
171
|
+
- lib/open_api_sdk/models/operations/deletelink_responsebody.rb
|
172
|
+
- lib/open_api_sdk/models/operations/event.rb
|
173
|
+
- lib/open_api_sdk/models/operations/getlinkinfo_request.rb
|
174
|
+
- lib/open_api_sdk/models/operations/getlinkinfo_response.rb
|
175
|
+
- lib/open_api_sdk/models/operations/getlinks_request.rb
|
176
|
+
- lib/open_api_sdk/models/operations/getlinks_response.rb
|
177
|
+
- lib/open_api_sdk/models/operations/getlinkscount_request.rb
|
178
|
+
- lib/open_api_sdk/models/operations/getlinkscount_response.rb
|
179
|
+
- lib/open_api_sdk/models/operations/getmetatags_request.rb
|
180
|
+
- lib/open_api_sdk/models/operations/getmetatags_response.rb
|
181
|
+
- lib/open_api_sdk/models/operations/getmetatags_responsebody.rb
|
182
|
+
- lib/open_api_sdk/models/operations/getqrcode_request.rb
|
183
|
+
- lib/open_api_sdk/models/operations/getqrcode_response.rb
|
184
|
+
- lib/open_api_sdk/models/operations/gettags_request.rb
|
185
|
+
- lib/open_api_sdk/models/operations/gettags_response.rb
|
186
|
+
- lib/open_api_sdk/models/operations/getworkspace_request.rb
|
187
|
+
- lib/open_api_sdk/models/operations/getworkspace_response.rb
|
188
|
+
- lib/open_api_sdk/models/operations/getworkspaces_response.rb
|
189
|
+
- lib/open_api_sdk/models/operations/groupby.rb
|
190
|
+
- lib/open_api_sdk/models/operations/interval.rb
|
191
|
+
- lib/open_api_sdk/models/operations/level.rb
|
192
|
+
- lib/open_api_sdk/models/operations/listdomains_request.rb
|
193
|
+
- lib/open_api_sdk/models/operations/listdomains_response.rb
|
194
|
+
- lib/open_api_sdk/models/operations/paymentprocessor.rb
|
195
|
+
- lib/open_api_sdk/models/operations/requestbody.rb
|
196
|
+
- lib/open_api_sdk/models/operations/retrieveanalytics_request.rb
|
197
|
+
- lib/open_api_sdk/models/operations/retrieveanalytics_response.rb
|
198
|
+
- lib/open_api_sdk/models/operations/setprimarydomain_request.rb
|
199
|
+
- lib/open_api_sdk/models/operations/setprimarydomain_response.rb
|
200
|
+
- lib/open_api_sdk/models/operations/sort.rb
|
201
|
+
- lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb
|
202
|
+
- lib/open_api_sdk/models/operations/trackcustomer_response.rb
|
203
|
+
- lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb
|
204
|
+
- lib/open_api_sdk/models/operations/tracklead_requestbody.rb
|
205
|
+
- lib/open_api_sdk/models/operations/tracklead_response.rb
|
206
|
+
- lib/open_api_sdk/models/operations/tracklead_responsebody.rb
|
207
|
+
- lib/open_api_sdk/models/operations/tracksale_requestbody.rb
|
208
|
+
- lib/open_api_sdk/models/operations/tracksale_response.rb
|
209
|
+
- lib/open_api_sdk/models/operations/tracksale_responsebody.rb
|
210
|
+
- lib/open_api_sdk/models/operations/transferdomain_request.rb
|
211
|
+
- lib/open_api_sdk/models/operations/transferdomain_requestbody.rb
|
212
|
+
- lib/open_api_sdk/models/operations/transferdomain_response.rb
|
213
|
+
- lib/open_api_sdk/models/operations/type.rb
|
214
|
+
- lib/open_api_sdk/models/operations/updatedomain_request.rb
|
215
|
+
- lib/open_api_sdk/models/operations/updatedomain_requestbody.rb
|
216
|
+
- lib/open_api_sdk/models/operations/updatedomain_response.rb
|
217
|
+
- lib/open_api_sdk/models/operations/updatedomain_type.rb
|
218
|
+
- lib/open_api_sdk/models/operations/updatelink_request.rb
|
219
|
+
- lib/open_api_sdk/models/operations/updatelink_requestbody.rb
|
220
|
+
- lib/open_api_sdk/models/operations/updatelink_response.rb
|
221
|
+
- lib/open_api_sdk/models/operations/upsertlink_request.rb
|
222
|
+
- lib/open_api_sdk/models/operations/upsertlink_requestbody.rb
|
223
|
+
- lib/open_api_sdk/models/operations/upsertlink_response.rb
|
224
|
+
- lib/open_api_sdk/models/shared.rb
|
225
|
+
- lib/open_api_sdk/models/shared/badrequest.rb
|
226
|
+
- lib/open_api_sdk/models/shared/code.rb
|
227
|
+
- lib/open_api_sdk/models/shared/color.rb
|
228
|
+
- lib/open_api_sdk/models/shared/conflict.rb
|
229
|
+
- lib/open_api_sdk/models/shared/conflict_code.rb
|
230
|
+
- lib/open_api_sdk/models/shared/conflict_error.rb
|
231
|
+
- lib/open_api_sdk/models/shared/countrycode.rb
|
232
|
+
- lib/open_api_sdk/models/shared/domains.rb
|
233
|
+
- lib/open_api_sdk/models/shared/domainschema.rb
|
234
|
+
- lib/open_api_sdk/models/shared/error.rb
|
235
|
+
- lib/open_api_sdk/models/shared/forbidden.rb
|
236
|
+
- lib/open_api_sdk/models/shared/forbidden_code.rb
|
237
|
+
- lib/open_api_sdk/models/shared/forbidden_error.rb
|
238
|
+
- lib/open_api_sdk/models/shared/geo.rb
|
239
|
+
- lib/open_api_sdk/models/shared/internalservererror.rb
|
240
|
+
- lib/open_api_sdk/models/shared/internalservererror_code.rb
|
241
|
+
- lib/open_api_sdk/models/shared/internalservererror_error.rb
|
242
|
+
- lib/open_api_sdk/models/shared/inviteexpired.rb
|
243
|
+
- lib/open_api_sdk/models/shared/inviteexpired_code.rb
|
244
|
+
- lib/open_api_sdk/models/shared/inviteexpired_error.rb
|
245
|
+
- lib/open_api_sdk/models/shared/linkgeotargeting.rb
|
246
|
+
- lib/open_api_sdk/models/shared/linkschema.rb
|
247
|
+
- lib/open_api_sdk/models/shared/notfound.rb
|
248
|
+
- lib/open_api_sdk/models/shared/notfound_code.rb
|
249
|
+
- lib/open_api_sdk/models/shared/notfound_error.rb
|
250
|
+
- lib/open_api_sdk/models/shared/plan.rb
|
251
|
+
- lib/open_api_sdk/models/shared/ratelimitexceeded.rb
|
252
|
+
- lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb
|
253
|
+
- lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb
|
254
|
+
- lib/open_api_sdk/models/shared/role.rb
|
255
|
+
- lib/open_api_sdk/models/shared/security.rb
|
256
|
+
- lib/open_api_sdk/models/shared/tagschema.rb
|
257
|
+
- lib/open_api_sdk/models/shared/type.rb
|
258
|
+
- lib/open_api_sdk/models/shared/unauthorized.rb
|
259
|
+
- lib/open_api_sdk/models/shared/unauthorized_code.rb
|
260
|
+
- lib/open_api_sdk/models/shared/unauthorized_error.rb
|
261
|
+
- lib/open_api_sdk/models/shared/unprocessableentity.rb
|
262
|
+
- lib/open_api_sdk/models/shared/unprocessableentity_code.rb
|
263
|
+
- lib/open_api_sdk/models/shared/unprocessableentity_error.rb
|
264
|
+
- lib/open_api_sdk/models/shared/users.rb
|
265
|
+
- lib/open_api_sdk/models/shared/workspaceschema.rb
|
266
|
+
- lib/open_api_sdk/qr_codes.rb
|
267
|
+
- lib/open_api_sdk/sdkconfiguration.rb
|
268
|
+
- lib/open_api_sdk/tags.rb
|
269
|
+
- lib/open_api_sdk/track.rb
|
270
|
+
- lib/open_api_sdk/utils/metadata_fields.rb
|
271
|
+
- lib/open_api_sdk/utils/t.rb
|
272
|
+
- lib/open_api_sdk/utils/utils.rb
|
273
|
+
- lib/open_api_sdk/workspaces.rb
|
274
|
+
homepage: https://github.com/dubinc/dub-ruby.git
|
275
|
+
licenses:
|
276
|
+
- Apache-2.0
|
277
|
+
metadata:
|
278
|
+
homepage_uri: https://github.com/dubinc/dub-ruby.git
|
279
|
+
documentation_uri: https://github.com/dubinc/dub-ruby.git
|
280
|
+
source_code_uri: https://github.com/dubinc/dub-ruby.git
|
281
|
+
post_install_message:
|
282
|
+
rdoc_options: []
|
283
|
+
require_paths:
|
284
|
+
- lib
|
285
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
286
|
+
requirements:
|
287
|
+
- - ">="
|
288
|
+
- !ruby/object:Gem::Version
|
289
|
+
version: '3.0'
|
290
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
291
|
+
requirements:
|
292
|
+
- - ">="
|
293
|
+
- !ruby/object:Gem::Version
|
294
|
+
version: '0'
|
295
|
+
requirements: []
|
296
|
+
rubygems_version: 3.3.26
|
297
|
+
signing_key:
|
298
|
+
specification_version: 4
|
299
|
+
summary: ''
|
300
|
+
test_files: []
|