dub 0.0.6 → 0.0.7
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/open_api_sdk/models/operations/getlinks_request.rb +2 -2
- data/lib/open_api_sdk/models/operations.rb +0 -3
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- data/lib/open_api_sdk/workspaces.rb +0 -161
- metadata +2 -5
- data/lib/open_api_sdk/models/operations/createworkspace_requestbody.rb +0 -30
- data/lib/open_api_sdk/models/operations/createworkspace_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getworkspaces_response.rb +0 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb6d3caf194a59f8bb1aea45fa7f277bc6f0c58e09bc460e93242664701f24e5
|
4
|
+
data.tar.gz: ae8ca727626f882d55afabe129e029837d02177db1438283a71b730f232ab22c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdcf0e5e9472bed8098b87b8abd15bac41a16dc3f2ef9e62bed86f22f0180d358b836c681e48b42c3b0d2692e27a748764ba077a04317e79dd3caa142ac964c2
|
7
|
+
data.tar.gz: e383b7307d56b64427c6fde85f0a648c24548fa811e40e3eaaef1bdd2923aa11ed6ed7112a63b92fec790fe4d50760181de3dbcbc52a16876dae7975917d3855
|
@@ -14,7 +14,7 @@ module OpenApiSDK
|
|
14
14
|
# The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned.
|
15
15
|
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
16
16
|
# The page number for pagination (each page contains 100 links).
|
17
|
-
field :page, T.nilable(::
|
17
|
+
field :page, T.nilable(::Integer), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
18
18
|
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
19
19
|
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
20
20
|
# The search term to filter the links by. The search term will be matched against the short link slug and the destination url.
|
@@ -37,7 +37,7 @@ module OpenApiSDK
|
|
37
37
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
38
38
|
|
39
39
|
|
40
|
-
sig { params(domain: T.nilable(::String), page: T.nilable(::
|
40
|
+
sig { params(domain: T.nilable(::String), page: T.nilable(::Integer), project_slug: T.nilable(::String), search: T.nilable(::String), show_archived: T.nilable(T::Boolean), sort: T.nilable(::OpenApiSDK::Operations::Sort), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), user_id: T.nilable(::String), with_tags: T.nilable(T::Boolean), workspace_id: T.nilable(::String)).void }
|
41
41
|
def initialize(domain: nil, page: nil, project_slug: nil, search: nil, show_archived: nil, sort: nil, tag_id: nil, tag_ids: nil, tag_names: nil, user_id: nil, with_tags: nil, workspace_id: nil)
|
42
42
|
@domain = domain
|
43
43
|
@page = page
|
@@ -35,9 +35,6 @@ module OpenApiSDK
|
|
35
35
|
autoload :Interval, 'open_api_sdk/models/operations/interval.rb'
|
36
36
|
autoload :RetrieveAnalyticsRequest, 'open_api_sdk/models/operations/retrieveanalytics_request.rb'
|
37
37
|
autoload :RetrieveAnalyticsResponse, 'open_api_sdk/models/operations/retrieveanalytics_response.rb'
|
38
|
-
autoload :GetWorkspacesResponse, 'open_api_sdk/models/operations/getworkspaces_response.rb'
|
39
|
-
autoload :CreateWorkspaceRequestBody, 'open_api_sdk/models/operations/createworkspace_requestbody.rb'
|
40
|
-
autoload :CreateWorkspaceResponse, 'open_api_sdk/models/operations/createworkspace_response.rb'
|
41
38
|
autoload :GetWorkspaceRequest, 'open_api_sdk/models/operations/getworkspace_request.rb'
|
42
39
|
autoload :GetWorkspaceResponse, 'open_api_sdk/models/operations/getworkspace_response.rb'
|
43
40
|
autoload :GetTagsRequest, 'open_api_sdk/models/operations/gettags_request.rb'
|
@@ -40,9 +40,9 @@ module OpenApiSDK
|
|
40
40
|
@globals = globals.nil? ? {} : globals
|
41
41
|
@language = 'ruby'
|
42
42
|
@openapi_doc_version = '0.0.1'
|
43
|
-
@sdk_version = '0.0.
|
43
|
+
@sdk_version = '0.0.7'
|
44
44
|
@gen_version = '2.354.2'
|
45
|
-
@user_agent = 'speakeasy-sdk/ruby 0.0.
|
45
|
+
@user_agent = 'speakeasy-sdk/ruby 0.0.7 2.354.2 0.0.1 dub'
|
46
46
|
end
|
47
47
|
|
48
48
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
@@ -19,167 +19,6 @@ module OpenApiSDK
|
|
19
19
|
end
|
20
20
|
|
21
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
22
|
sig { params(id_or_slug: ::String).returns(::OpenApiSDK::Operations::GetWorkspaceResponse) }
|
184
23
|
def get(id_or_slug)
|
185
24
|
# get - Retrieve a workspace
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -161,8 +161,6 @@ files:
|
|
161
161
|
- lib/open_api_sdk/models/operations/createtag_request.rb
|
162
162
|
- lib/open_api_sdk/models/operations/createtag_requestbody.rb
|
163
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
164
|
- lib/open_api_sdk/models/operations/deletedomain_request.rb
|
167
165
|
- lib/open_api_sdk/models/operations/deletedomain_response.rb
|
168
166
|
- lib/open_api_sdk/models/operations/deletedomain_responsebody.rb
|
@@ -185,7 +183,6 @@ files:
|
|
185
183
|
- lib/open_api_sdk/models/operations/gettags_response.rb
|
186
184
|
- lib/open_api_sdk/models/operations/getworkspace_request.rb
|
187
185
|
- lib/open_api_sdk/models/operations/getworkspace_response.rb
|
188
|
-
- lib/open_api_sdk/models/operations/getworkspaces_response.rb
|
189
186
|
- lib/open_api_sdk/models/operations/groupby.rb
|
190
187
|
- lib/open_api_sdk/models/operations/interval.rb
|
191
188
|
- lib/open_api_sdk/models/operations/level.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module OpenApiSDK
|
8
|
-
module Operations
|
9
|
-
|
10
|
-
|
11
|
-
class CreateWorkspaceRequestBody < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
|
15
|
-
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
16
|
-
|
17
|
-
field :slug, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('slug') } }
|
18
|
-
|
19
|
-
field :domain, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
20
|
-
|
21
|
-
|
22
|
-
sig { params(name: ::String, slug: ::String, domain: T.nilable(::String)).void }
|
23
|
-
def initialize(name: nil, slug: nil, domain: nil)
|
24
|
-
@name = name
|
25
|
-
@slug = slug
|
26
|
-
@domain = domain
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module OpenApiSDK
|
8
|
-
module Operations
|
9
|
-
|
10
|
-
|
11
|
-
class CreateWorkspaceResponse < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# HTTP response content type for this operation
|
15
|
-
field :content_type, ::String
|
16
|
-
# Raw HTTP response; suitable for custom response parsing
|
17
|
-
field :raw_response, ::Faraday::Response
|
18
|
-
# HTTP response status code for this operation
|
19
|
-
field :status_code, ::Integer
|
20
|
-
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
21
|
-
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
|
-
# This response is sent when a request conflicts with the current state of the server.
|
23
|
-
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
-
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
25
|
-
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
26
|
-
# The server has encountered a situation it does not know how to handle.
|
27
|
-
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
28
|
-
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
29
|
-
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
-
# The server cannot find the requested resource.
|
31
|
-
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
32
|
-
# The user has sent too many requests in a given amount of time ("rate limiting")
|
33
|
-
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
34
|
-
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
35
|
-
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
36
|
-
# The request was well-formed but was unable to be followed due to semantic errors.
|
37
|
-
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
38
|
-
# The created workspace
|
39
|
-
field :workspace_schema, T.nilable(::OpenApiSDK::Shared::WorkspaceSchema)
|
40
|
-
|
41
|
-
|
42
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity), workspace_schema: T.nilable(::OpenApiSDK::Shared::WorkspaceSchema)).void }
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil, workspace_schema: nil)
|
44
|
-
@content_type = content_type
|
45
|
-
@raw_response = raw_response
|
46
|
-
@status_code = status_code
|
47
|
-
@bad_request = bad_request
|
48
|
-
@conflict = conflict
|
49
|
-
@forbidden = forbidden
|
50
|
-
@internal_server_error = internal_server_error
|
51
|
-
@invite_expired = invite_expired
|
52
|
-
@not_found = not_found
|
53
|
-
@rate_limit_exceeded = rate_limit_exceeded
|
54
|
-
@unauthorized = unauthorized
|
55
|
-
@unprocessable_entity = unprocessable_entity
|
56
|
-
@workspace_schema = workspace_schema
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module OpenApiSDK
|
8
|
-
module Operations
|
9
|
-
|
10
|
-
|
11
|
-
class GetWorkspacesResponse < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# HTTP response content type for this operation
|
15
|
-
field :content_type, ::String
|
16
|
-
# Raw HTTP response; suitable for custom response parsing
|
17
|
-
field :raw_response, ::Faraday::Response
|
18
|
-
# HTTP response status code for this operation
|
19
|
-
field :status_code, ::Integer
|
20
|
-
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
21
|
-
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
|
-
# This response is sent when a request conflicts with the current state of the server.
|
23
|
-
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
-
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
25
|
-
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
26
|
-
# The server has encountered a situation it does not know how to handle.
|
27
|
-
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
28
|
-
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
29
|
-
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
-
# The server cannot find the requested resource.
|
31
|
-
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
32
|
-
# The user has sent too many requests in a given amount of time ("rate limiting")
|
33
|
-
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
34
|
-
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
35
|
-
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
36
|
-
# The request was well-formed but was unable to be followed due to semantic errors.
|
37
|
-
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
38
|
-
# A list of workspaces
|
39
|
-
field :workspace_schemas, T.nilable(T::Array[::OpenApiSDK::Shared::WorkspaceSchema])
|
40
|
-
|
41
|
-
|
42
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity), workspace_schemas: T.nilable(T::Array[::OpenApiSDK::Shared::WorkspaceSchema])).void }
|
43
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil, workspace_schemas: nil)
|
44
|
-
@content_type = content_type
|
45
|
-
@raw_response = raw_response
|
46
|
-
@status_code = status_code
|
47
|
-
@bad_request = bad_request
|
48
|
-
@conflict = conflict
|
49
|
-
@forbidden = forbidden
|
50
|
-
@internal_server_error = internal_server_error
|
51
|
-
@invite_expired = invite_expired
|
52
|
-
@not_found = not_found
|
53
|
-
@rate_limit_exceeded = rate_limit_exceeded
|
54
|
-
@unauthorized = unauthorized
|
55
|
-
@unprocessable_entity = unprocessable_entity
|
56
|
-
@workspace_schemas = workspace_schemas
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|