gopad 1.13.0 → 1.14.0
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/CHANGELOG.md +13 -0
- data/README.md +3 -3
- data/lib/gopad/api/auth_api.rb +99 -47
- data/lib/gopad/api/{team_api.rb → group_api.rb} +175 -185
- data/lib/gopad/api/profile_api.rb +12 -12
- data/lib/gopad/api/user_api.rb +99 -109
- data/lib/gopad/configuration.rb +0 -7
- data/lib/gopad/models/{users.rb → create_group_request.rb} +19 -17
- data/lib/gopad/models/create_user_request.rb +258 -0
- data/lib/gopad/models/{teams.rb → delete_group_from_user_request.rb} +20 -20
- data/lib/gopad/models/{team_users.rb → delete_user_from_group_request.rb} +20 -27
- data/lib/gopad/models/{team.rb → group.rb} +9 -17
- data/lib/gopad/models/{user_team_params.rb → list_group_users200_response.rb} +61 -58
- data/lib/gopad/models/list_groups200_response.rb +260 -0
- data/lib/gopad/models/list_providers200_response.rb +236 -0
- data/lib/gopad/models/{team_user_params.rb → list_user_groups200_response.rb} +59 -56
- data/lib/gopad/models/list_users200_response.rb +260 -0
- data/lib/gopad/models/{auth_login.rb → login_auth_request.rb} +4 -3
- data/lib/gopad/models/permit_group_user_request.rb +232 -0
- data/lib/gopad/models/permit_user_group_request.rb +232 -0
- data/lib/gopad/models/profile.rb +8 -8
- data/lib/gopad/models/{user_teams.rb → provider.rb} +28 -21
- data/lib/gopad/models/update_profile_request.rb +238 -0
- data/lib/gopad/models/update_user_request.rb +254 -0
- data/lib/gopad/models/user.rb +5 -13
- data/lib/gopad/models/{user_team.rb → user_group.rb} +22 -22
- data/lib/gopad/version.rb +1 -1
- data/lib/gopad.rb +18 -10
- metadata +20 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85969b0c241c338336f5e0d393cfa733a3037e90de944d9093513962c9b43bd3
|
4
|
+
data.tar.gz: 56565b0c5a407b5f05a5f0e3e374367d7dab026f828115ced5450c6eb94f131d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49abd9c3d98350baf6de3c5fa1f9db51ed5d2e58c5f57a8dca9eebd1d6df14f3e40302ad5d5dcf9b90d1385ed57a52659c169136ea1e66af59715a294c54b5d4
|
7
|
+
data.tar.gz: a3cbc5f0b02d46ea34548252ec6e459d96aea54c06ad5b0708fe229c30e506645f13ffda2ceb89590bc9be46f2c5ea9ca06a3e6cbbeaad4445fd833f850434fa
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.14.0](https://github.com/gopad/gopad-ruby/compare/v1.13.0...v1.14.0) (2025-02-24)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* automated openapi client update ([3dd15c3](https://github.com/gopad/gopad-ruby/commit/3dd15c35821e93bf1a194d4c9e5ca94ea617f5c5))
|
9
|
+
* automated openapi client update ([fef6ce8](https://github.com/gopad/gopad-ruby/commit/fef6ce8655ca8fd93e245ae01159b7fad32da7c7))
|
10
|
+
|
11
|
+
|
12
|
+
### Bugfixes
|
13
|
+
|
14
|
+
* **deps:** update dependency rubocop to v1.72.2 ([#97](https://github.com/gopad/gopad-ruby/issues/97)) ([9e5e58b](https://github.com/gopad/gopad-ruby/commit/9e5e58b0b8b3c48e5f630debfeb85988343fe808))
|
15
|
+
|
3
16
|
## [1.13.0](https://github.com/gopad/gopad-ruby/compare/v1.12.2...v1.13.0) (2025-02-17)
|
4
17
|
|
5
18
|
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ This repository provides a client SDK for Ruby. This SDK is automatically
|
|
6
6
|
generated by the [OpenAPI Generator][generator] project:
|
7
7
|
|
8
8
|
- API version: 1.0.0-alpha1
|
9
|
-
- Package version: 1.
|
9
|
+
- Package version: 1.14.0
|
10
10
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
11
11
|
|
12
12
|
For more information, please visit [https://gopad.eu](https://gopad.eu)
|
@@ -21,7 +21,7 @@ the built gem:
|
|
21
21
|
|
22
22
|
```console
|
23
23
|
gem build gopad.gemspec
|
24
|
-
gem install ./gopad-1.
|
24
|
+
gem install ./gopad-1.14.0.gem
|
25
25
|
```
|
26
26
|
|
27
27
|
### Install from Rubygems
|
@@ -30,7 +30,7 @@ If you want to use a a properly released version hosted Rubygems you just need
|
|
30
30
|
to add the following line to your Gemfile:
|
31
31
|
|
32
32
|
```ruby
|
33
|
-
gem 'gopad', '~> 1.
|
33
|
+
gem 'gopad', '~> 1.14.0'
|
34
34
|
```
|
35
35
|
|
36
36
|
### Install from Git
|
data/lib/gopad/api/auth_api.rb
CHANGED
@@ -18,30 +18,30 @@ module Gopad
|
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
20
|
|
21
|
-
# Callback
|
21
|
+
# Callback to parse the defined provider
|
22
22
|
# @param provider [String] An identifier for the auth provider
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
24
|
# @option opts [String] :state Auth state
|
25
25
|
# @option opts [String] :code Auth code
|
26
|
-
# @return [
|
27
|
-
def
|
28
|
-
|
29
|
-
|
26
|
+
# @return [nil]
|
27
|
+
def callback_provider(provider, opts = {})
|
28
|
+
callback_provider_with_http_info(provider, opts)
|
29
|
+
nil
|
30
30
|
end
|
31
31
|
|
32
|
-
# Callback
|
32
|
+
# Callback to parse the defined provider
|
33
33
|
# @param provider [String] An identifier for the auth provider
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
35
|
# @option opts [String] :state Auth state
|
36
36
|
# @option opts [String] :code Auth code
|
37
|
-
# @return [Array<(
|
38
|
-
def
|
37
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
38
|
+
def callback_provider_with_http_info(provider, opts = {})
|
39
39
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug 'Calling API: AuthApi.
|
40
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.callback_provider ...'
|
41
41
|
end
|
42
42
|
# verify the required parameter 'provider' is set
|
43
43
|
if @api_client.config.client_side_validation && provider.nil?
|
44
|
-
raise ArgumentError, "Missing the required parameter 'provider' when calling AuthApi.
|
44
|
+
raise ArgumentError, "Missing the required parameter 'provider' when calling AuthApi.callback_provider"
|
45
45
|
end
|
46
46
|
|
47
47
|
# resource path
|
@@ -55,7 +55,7 @@ module Gopad
|
|
55
55
|
# header parameters
|
56
56
|
header_params = opts[:header_params] || {}
|
57
57
|
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html'])
|
59
59
|
|
60
60
|
# form parameters
|
61
61
|
form_params = opts[:form_params] || {}
|
@@ -64,13 +64,13 @@ module Gopad
|
|
64
64
|
post_body = opts[:debug_body]
|
65
65
|
|
66
66
|
# return_type
|
67
|
-
return_type = opts[:debug_return_type]
|
67
|
+
return_type = opts[:debug_return_type]
|
68
68
|
|
69
69
|
# auth_names
|
70
70
|
auth_names = opts[:debug_auth_names] || []
|
71
71
|
|
72
72
|
new_options = opts.merge(
|
73
|
-
operation: :'AuthApi.
|
73
|
+
operation: :'AuthApi.callback_provider',
|
74
74
|
header_params: header_params,
|
75
75
|
query_params: query_params,
|
76
76
|
form_params: form_params,
|
@@ -81,41 +81,31 @@ module Gopad
|
|
81
81
|
|
82
82
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
83
83
|
if @api_client.config.debugging
|
84
|
-
@api_client.config.logger.debug "API called: AuthApi#
|
84
|
+
@api_client.config.logger.debug "API called: AuthApi#callback_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
85
|
end
|
86
86
|
[data, status_code, headers]
|
87
87
|
end
|
88
88
|
|
89
|
-
#
|
90
|
-
# @param provider [String] An identifier for the auth provider
|
89
|
+
# Fetch the available auth providers
|
91
90
|
# @param [Hash] opts the optional parameters
|
92
|
-
# @
|
93
|
-
|
94
|
-
|
95
|
-
data, _status_code, _headers = external_initialize_with_http_info(provider, opts)
|
91
|
+
# @return [ListProviders200Response]
|
92
|
+
def list_providers(opts = {})
|
93
|
+
data, _status_code, _headers = list_providers_with_http_info(opts)
|
96
94
|
data
|
97
95
|
end
|
98
96
|
|
99
|
-
#
|
100
|
-
# @param provider [String] An identifier for the auth provider
|
97
|
+
# Fetch the available auth providers
|
101
98
|
# @param [Hash] opts the optional parameters
|
102
|
-
# @
|
103
|
-
|
104
|
-
def external_initialize_with_http_info(provider, opts = {})
|
99
|
+
# @return [Array<(ListProviders200Response, Integer, Hash)>] ListProviders200Response data, response status code and response headers
|
100
|
+
def list_providers_with_http_info(opts = {})
|
105
101
|
if @api_client.config.debugging
|
106
|
-
@api_client.config.logger.debug 'Calling API: AuthApi.
|
102
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.list_providers ...'
|
107
103
|
end
|
108
|
-
# verify the required parameter 'provider' is set
|
109
|
-
if @api_client.config.client_side_validation && provider.nil?
|
110
|
-
raise ArgumentError, "Missing the required parameter 'provider' when calling AuthApi.external_initialize"
|
111
|
-
end
|
112
|
-
|
113
104
|
# resource path
|
114
|
-
local_var_path = '/auth/
|
105
|
+
local_var_path = '/auth/providers'
|
115
106
|
|
116
107
|
# query parameters
|
117
108
|
query_params = opts[:query_params] || {}
|
118
|
-
query_params[:state] = opts[:state] unless opts[:state].nil?
|
119
109
|
|
120
110
|
# header parameters
|
121
111
|
header_params = opts[:header_params] || {}
|
@@ -129,13 +119,13 @@ module Gopad
|
|
129
119
|
post_body = opts[:debug_body]
|
130
120
|
|
131
121
|
# return_type
|
132
|
-
return_type = opts[:debug_return_type] || '
|
122
|
+
return_type = opts[:debug_return_type] || 'ListProviders200Response'
|
133
123
|
|
134
124
|
# auth_names
|
135
125
|
auth_names = opts[:debug_auth_names] || []
|
136
126
|
|
137
127
|
new_options = opts.merge(
|
138
|
-
operation: :'AuthApi.
|
128
|
+
operation: :'AuthApi.list_providers',
|
139
129
|
header_params: header_params,
|
140
130
|
query_params: query_params,
|
141
131
|
form_params: form_params,
|
@@ -146,31 +136,31 @@ module Gopad
|
|
146
136
|
|
147
137
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
148
138
|
if @api_client.config.debugging
|
149
|
-
@api_client.config.logger.debug "API called: AuthApi#
|
139
|
+
@api_client.config.logger.debug "API called: AuthApi#list_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
140
|
end
|
151
141
|
[data, status_code, headers]
|
152
142
|
end
|
153
143
|
|
154
144
|
# Authenticate an user by credentials
|
155
|
-
# @param
|
145
|
+
# @param login_auth_request [LoginAuthRequest] The credentials to authenticate
|
156
146
|
# @param [Hash] opts the optional parameters
|
157
147
|
# @return [AuthToken]
|
158
|
-
def login_auth(
|
159
|
-
data, _status_code, _headers = login_auth_with_http_info(
|
148
|
+
def login_auth(login_auth_request, opts = {})
|
149
|
+
data, _status_code, _headers = login_auth_with_http_info(login_auth_request, opts)
|
160
150
|
data
|
161
151
|
end
|
162
152
|
|
163
153
|
# Authenticate an user by credentials
|
164
|
-
# @param
|
154
|
+
# @param login_auth_request [LoginAuthRequest] The credentials to authenticate
|
165
155
|
# @param [Hash] opts the optional parameters
|
166
156
|
# @return [Array<(AuthToken, Integer, Hash)>] AuthToken data, response status code and response headers
|
167
|
-
def login_auth_with_http_info(
|
157
|
+
def login_auth_with_http_info(login_auth_request, opts = {})
|
168
158
|
if @api_client.config.debugging
|
169
159
|
@api_client.config.logger.debug 'Calling API: AuthApi.login_auth ...'
|
170
160
|
end
|
171
|
-
# verify the required parameter '
|
172
|
-
if @api_client.config.client_side_validation &&
|
173
|
-
raise ArgumentError, "Missing the required parameter '
|
161
|
+
# verify the required parameter 'login_auth_request' is set
|
162
|
+
if @api_client.config.client_side_validation && login_auth_request.nil?
|
163
|
+
raise ArgumentError, "Missing the required parameter 'login_auth_request' when calling AuthApi.login_auth"
|
174
164
|
end
|
175
165
|
|
176
166
|
# resource path
|
@@ -193,7 +183,7 @@ module Gopad
|
|
193
183
|
form_params = opts[:form_params] || {}
|
194
184
|
|
195
185
|
# http body (model)
|
196
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
186
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(login_auth_request)
|
197
187
|
|
198
188
|
# return_type
|
199
189
|
return_type = opts[:debug_return_type] || 'AuthToken'
|
@@ -254,7 +244,7 @@ module Gopad
|
|
254
244
|
return_type = opts[:debug_return_type] || 'AuthToken'
|
255
245
|
|
256
246
|
# auth_names
|
257
|
-
auth_names = opts[:debug_auth_names] || %w[
|
247
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
258
248
|
|
259
249
|
new_options = opts.merge(
|
260
250
|
operation: :'AuthApi.refresh_auth',
|
@@ -273,6 +263,68 @@ module Gopad
|
|
273
263
|
[data, status_code, headers]
|
274
264
|
end
|
275
265
|
|
266
|
+
# Request the redirect to defined provider
|
267
|
+
# @param provider [String] An identifier for the auth provider
|
268
|
+
# @param [Hash] opts the optional parameters
|
269
|
+
# @return [nil]
|
270
|
+
def request_provider(provider, opts = {})
|
271
|
+
request_provider_with_http_info(provider, opts)
|
272
|
+
nil
|
273
|
+
end
|
274
|
+
|
275
|
+
# Request the redirect to defined provider
|
276
|
+
# @param provider [String] An identifier for the auth provider
|
277
|
+
# @param [Hash] opts the optional parameters
|
278
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
279
|
+
def request_provider_with_http_info(provider, opts = {})
|
280
|
+
if @api_client.config.debugging
|
281
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.request_provider ...'
|
282
|
+
end
|
283
|
+
# verify the required parameter 'provider' is set
|
284
|
+
if @api_client.config.client_side_validation && provider.nil?
|
285
|
+
raise ArgumentError, "Missing the required parameter 'provider' when calling AuthApi.request_provider"
|
286
|
+
end
|
287
|
+
|
288
|
+
# resource path
|
289
|
+
local_var_path = '/auth/{provider}/request'.sub('{' + 'provider' + '}', CGI.escape(provider.to_s))
|
290
|
+
|
291
|
+
# query parameters
|
292
|
+
query_params = opts[:query_params] || {}
|
293
|
+
|
294
|
+
# header parameters
|
295
|
+
header_params = opts[:header_params] || {}
|
296
|
+
# HTTP header 'Accept' (if needed)
|
297
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html'])
|
298
|
+
|
299
|
+
# form parameters
|
300
|
+
form_params = opts[:form_params] || {}
|
301
|
+
|
302
|
+
# http body (model)
|
303
|
+
post_body = opts[:debug_body]
|
304
|
+
|
305
|
+
# return_type
|
306
|
+
return_type = opts[:debug_return_type]
|
307
|
+
|
308
|
+
# auth_names
|
309
|
+
auth_names = opts[:debug_auth_names] || []
|
310
|
+
|
311
|
+
new_options = opts.merge(
|
312
|
+
operation: :'AuthApi.request_provider',
|
313
|
+
header_params: header_params,
|
314
|
+
query_params: query_params,
|
315
|
+
form_params: form_params,
|
316
|
+
body: post_body,
|
317
|
+
auth_names: auth_names,
|
318
|
+
return_type: return_type
|
319
|
+
)
|
320
|
+
|
321
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
322
|
+
if @api_client.config.debugging
|
323
|
+
@api_client.config.logger.debug "API called: AuthApi#request_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
324
|
+
end
|
325
|
+
[data, status_code, headers]
|
326
|
+
end
|
327
|
+
|
276
328
|
# Verify validity for an authentication token
|
277
329
|
# @param [Hash] opts the optional parameters
|
278
330
|
# @return [AuthVerify]
|
@@ -309,7 +361,7 @@ module Gopad
|
|
309
361
|
return_type = opts[:debug_return_type] || 'AuthVerify'
|
310
362
|
|
311
363
|
# auth_names
|
312
|
-
auth_names = opts[:debug_auth_names] || %w[
|
364
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
313
365
|
|
314
366
|
new_options = opts.merge(
|
315
367
|
operation: :'AuthApi.verify_auth',
|