dub 0.2.2.pre.alpha.53 → 0.2.2.pre.alpha.54
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/gettags_queryparam_sortby.rb +18 -0
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/gettags_request.rb +39 -0
- data/lib/open_api_sdk/models/operations.rb +3 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- data/lib/open_api_sdk/tags.rb +4 -2
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51b4c7a939288c04e0252f58f08b5b61725b3e03c33d65c7731924872174be0b
|
4
|
+
data.tar.gz: 0c7a014672d31d0c05ddf40c2b2626567ab8a87e3fbe5a8ea2b51de45dc737f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f0299947ac1dfbeb8884017f359261b4f3baa9e613b36918e427c265458754ca57b807fa50ccb62f76ee900311c27d7b4d5453e403fd9d7a4af9895b547ee8f
|
7
|
+
data.tar.gz: 93768d85407188c7a2cb61028ae6490350757101c1999110bb3fc546578084d021de34296093d5086df4d206eb0931ad29ff2530b25cc77fc9d3fe81c5ecacde
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# GetTagsQueryParamSortBy - The field to sort the tags by.
|
11
|
+
class GetTagsQueryParamSortBy < T::Enum
|
12
|
+
enums do
|
13
|
+
NAME = new('name')
|
14
|
+
CREATED_AT = new('createdAt')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
# GetTagsQueryParamSortOrder - The order to sort the tags by.
|
11
|
+
class GetTagsQueryParamSortOrder < T::Enum
|
12
|
+
enums do
|
13
|
+
ASC = new('asc')
|
14
|
+
DESC = new('desc')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetTagsRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# IDs of tags to filter by.
|
15
|
+
field :ids, T.nilable(::Object), { 'query_param': { 'field_name': 'ids', 'style': 'form', 'explode': true } }
|
16
|
+
# The page number for pagination.
|
17
|
+
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
18
|
+
# The number of items per page.
|
19
|
+
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
20
|
+
# The search term to filter the tags by.
|
21
|
+
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
22
|
+
# The field to sort the tags by.
|
23
|
+
field :sort_by, T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortBy), { 'query_param': { 'field_name': 'sortBy', 'style': 'form', 'explode': true } }
|
24
|
+
# The order to sort the tags by.
|
25
|
+
field :sort_order, T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortOrder), { 'query_param': { 'field_name': 'sortOrder', 'style': 'form', 'explode': true } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(ids: T.nilable(::Object), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String), sort_by: T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortBy), sort_order: T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortOrder)).void }
|
29
|
+
def initialize(ids: nil, page: nil, page_size: nil, search: nil, sort_by: nil, sort_order: nil)
|
30
|
+
@ids = ids
|
31
|
+
@page = page
|
32
|
+
@page_size = page_size
|
33
|
+
@search = search
|
34
|
+
@sort_by = sort_by
|
35
|
+
@sort_order = sort_order
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -49,6 +49,9 @@ module OpenApiSDK
|
|
49
49
|
autoload :Color, 'open_api_sdk/models/operations/color.rb'
|
50
50
|
autoload :CreateTagRequestBody, 'open_api_sdk/models/operations/createtag_requestbody.rb'
|
51
51
|
autoload :CreateTagResponse, 'open_api_sdk/models/operations/createtag_response.rb'
|
52
|
+
autoload :GetTagsQueryParamSortBy, 'open_api_sdk/models/operations/gettags_queryparam_sortby.rb'
|
53
|
+
autoload :GetTagsQueryParamSortOrder, 'open_api_sdk/models/operations/gettags_queryparam_sortorder.rb'
|
54
|
+
autoload :GetTagsRequest, 'open_api_sdk/models/operations/gettags_request.rb'
|
52
55
|
autoload :GetTagsResponse, 'open_api_sdk/models/operations/gettags_response.rb'
|
53
56
|
autoload :UpdateTagColor, 'open_api_sdk/models/operations/updatetag_color.rb'
|
54
57
|
autoload :UpdateTagRequestBody, 'open_api_sdk/models/operations/updatetag_requestbody.rb'
|
@@ -38,9 +38,9 @@ module OpenApiSDK
|
|
38
38
|
@security = security
|
39
39
|
@language = 'ruby'
|
40
40
|
@openapi_doc_version = '0.0.1'
|
41
|
-
@sdk_version = '0.2.2-alpha.
|
42
|
-
@gen_version = '2.493.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.
|
41
|
+
@sdk_version = '0.2.2-alpha.54'
|
42
|
+
@gen_version = '2.493.21'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.54 2.493.21 0.0.1 dub'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/open_api_sdk/tags.rb
CHANGED
@@ -105,19 +105,21 @@ module OpenApiSDK
|
|
105
105
|
end
|
106
106
|
|
107
107
|
|
108
|
-
sig { returns(::OpenApiSDK::Operations::GetTagsResponse) }
|
109
|
-
def list
|
108
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetTagsRequest)).returns(::OpenApiSDK::Operations::GetTagsResponse) }
|
109
|
+
def list(request)
|
110
110
|
# list - Retrieve a list of tags
|
111
111
|
# Retrieve a list of tags for the authenticated workspace.
|
112
112
|
url, params = @sdk_configuration.get_server_details
|
113
113
|
base_url = Utils.template_url(url, params)
|
114
114
|
url = "#{base_url}/tags"
|
115
115
|
headers = {}
|
116
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetTagsRequest, request)
|
116
117
|
headers['Accept'] = 'application/json'
|
117
118
|
headers['user-agent'] = @sdk_configuration.user_agent
|
118
119
|
|
119
120
|
r = @sdk_configuration.client.get(url) do |req|
|
120
121
|
req.headers = headers
|
122
|
+
req.params = query_params
|
121
123
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
122
124
|
end
|
123
125
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.2.pre.alpha.
|
4
|
+
version: 0.2.2.pre.alpha.54
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -215,6 +215,9 @@ files:
|
|
215
215
|
- lib/open_api_sdk/models/operations/getmetatags_responsebody.rb
|
216
216
|
- lib/open_api_sdk/models/operations/getqrcode_request.rb
|
217
217
|
- lib/open_api_sdk/models/operations/getqrcode_response.rb
|
218
|
+
- lib/open_api_sdk/models/operations/gettags_queryparam_sortby.rb
|
219
|
+
- lib/open_api_sdk/models/operations/gettags_queryparam_sortorder.rb
|
220
|
+
- lib/open_api_sdk/models/operations/gettags_request.rb
|
218
221
|
- lib/open_api_sdk/models/operations/gettags_response.rb
|
219
222
|
- lib/open_api_sdk/models/operations/getworkspace_request.rb
|
220
223
|
- lib/open_api_sdk/models/operations/getworkspace_response.rb
|