gopad 1.16.0 → 1.17.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 +14 -0
- data/README.md +3 -3
- data/lib/gopad/api/auth_api.rb +75 -8
- data/lib/gopad/api/group_api.rb +11 -11
- data/lib/gopad/api/profile_api.rb +5 -5
- data/lib/gopad/api/user_api.rb +11 -11
- data/lib/gopad/api_client.rb +2 -2
- data/lib/gopad/api_error.rb +2 -2
- data/lib/gopad/configuration.rb +2 -2
- data/lib/gopad/models/auth_token.rb +2 -2
- data/lib/gopad/models/auth_verify.rb +2 -2
- data/lib/gopad/models/create_group_request.rb +3 -4
- data/lib/gopad/models/create_user_request.rb +3 -4
- data/lib/gopad/models/delete_group_from_user_request.rb +3 -4
- data/lib/gopad/models/delete_user_from_group_request.rb +3 -4
- data/lib/gopad/models/group.rb +2 -2
- data/lib/gopad/models/list_group_users200_response.rb +3 -4
- data/lib/gopad/models/list_groups200_response.rb +3 -4
- data/lib/gopad/models/list_providers200_response.rb +3 -4
- data/lib/gopad/models/list_user_groups200_response.rb +3 -4
- data/lib/gopad/models/list_users200_response.rb +3 -4
- data/lib/gopad/models/login_auth_request.rb +3 -4
- data/lib/gopad/models/notification.rb +2 -2
- data/lib/gopad/models/permit_group_user_request.rb +3 -4
- data/lib/gopad/models/permit_user_group_request.rb +3 -4
- data/lib/gopad/models/profile.rb +2 -2
- data/lib/gopad/models/provider.rb +2 -2
- data/lib/gopad/models/redirect_auth_request.rb +219 -0
- data/lib/gopad/models/update_profile_request.rb +3 -4
- data/lib/gopad/models/update_user_request.rb +3 -4
- data/lib/gopad/models/user.rb +2 -2
- data/lib/gopad/models/user_auth.rb +2 -2
- data/lib/gopad/models/user_group.rb +2 -2
- data/lib/gopad/models/validation.rb +2 -2
- data/lib/gopad/version.rb +3 -3
- data/lib/gopad.rb +3 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d81aaac5d8ad7b93fabfbfd259f11fadd1b83e46be637992a6c7e071e2f047f
|
4
|
+
data.tar.gz: a22764d5a8bc1a19e8b6945e95ef334473038c069f6c58f84d457add517c8392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea43d58a9af799c70c27a2008708ec5c5af143b0098f946ade8d79c3f3a50b10e8747649854c80301be2f159d311f2d745b2eaa44c80c3b1904625b961e09ef
|
7
|
+
data.tar.gz: 93e08b1c0897ba72eda53dbc2d9592b18c9f71649bd7c5f72e7154459002361e74ffa96a93fd5d77633231269aa05eeceff4f9663bfc1223cdc48eb2f47e9341
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.17.0](https://github.com/gopad/gopad-ruby/compare/v1.16.0...v1.17.0) (2025-03-31)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* **deps:** update dependency pry-byebug to v3.11.0 ([c5fb879](https://github.com/gopad/gopad-ruby/commit/c5fb879122ae0d663fd26ff33d2c8f332c4f6db5))
|
9
|
+
* **deps:** update dependency rubocop to '~> 1.75.0' ([#108](https://github.com/gopad/gopad-ruby/issues/108)) ([fd2f126](https://github.com/gopad/gopad-ruby/commit/fd2f126ad3524c320d4d10e4a598118ee876c0e0))
|
10
|
+
|
11
|
+
|
12
|
+
### Bugfixes
|
13
|
+
|
14
|
+
* **deps:** update dependency rubocop to v1.75.1 ([#109](https://github.com/gopad/gopad-ruby/issues/109)) ([337b258](https://github.com/gopad/gopad-ruby/commit/337b2583b349472d1a56f51d0f2f71d2f77a634e))
|
15
|
+
* use correct spec and update definition ([2c29d57](https://github.com/gopad/gopad-ruby/commit/2c29d57815033ff6c4bc63ec29708d3feb66c473))
|
16
|
+
|
3
17
|
## [1.16.0](https://github.com/gopad/gopad-ruby/compare/v1.15.1...v1.16.0) (2025-03-17)
|
4
18
|
|
5
19
|
|
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.17.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.17.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.17.0'
|
34
34
|
```
|
35
35
|
|
36
36
|
### Install from Git
|
data/lib/gopad/api/auth_api.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'cgi'
|
@@ -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(['text/html'])
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html']) unless header_params['Accept']
|
59
59
|
|
60
60
|
# form parameters
|
61
61
|
form_params = opts[:form_params] || {}
|
@@ -110,7 +110,7 @@ module Gopad
|
|
110
110
|
# header parameters
|
111
111
|
header_params = opts[:header_params] || {}
|
112
112
|
# HTTP header 'Accept' (if needed)
|
113
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
114
114
|
|
115
115
|
# form parameters
|
116
116
|
form_params = opts[:form_params] || {}
|
@@ -172,7 +172,7 @@ module Gopad
|
|
172
172
|
# header parameters
|
173
173
|
header_params = opts[:header_params] || {}
|
174
174
|
# HTTP header 'Accept' (if needed)
|
175
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
175
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
176
176
|
# HTTP header 'Content-Type'
|
177
177
|
content_type = @api_client.select_header_content_type(['application/json'])
|
178
178
|
unless content_type.nil?
|
@@ -208,6 +208,73 @@ module Gopad
|
|
208
208
|
[data, status_code, headers]
|
209
209
|
end
|
210
210
|
|
211
|
+
# Retrieve real token after redirect
|
212
|
+
# @param redirect_auth_request [RedirectAuthRequest] The redirect token to authenticate
|
213
|
+
# @param [Hash] opts the optional parameters
|
214
|
+
# @return [AuthToken]
|
215
|
+
def redirect_auth(redirect_auth_request, opts = {})
|
216
|
+
data, _status_code, _headers = redirect_auth_with_http_info(redirect_auth_request, opts)
|
217
|
+
data
|
218
|
+
end
|
219
|
+
|
220
|
+
# Retrieve real token after redirect
|
221
|
+
# @param redirect_auth_request [RedirectAuthRequest] The redirect token to authenticate
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @return [Array<(AuthToken, Integer, Hash)>] AuthToken data, response status code and response headers
|
224
|
+
def redirect_auth_with_http_info(redirect_auth_request, opts = {})
|
225
|
+
if @api_client.config.debugging
|
226
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.redirect_auth ...'
|
227
|
+
end
|
228
|
+
# verify the required parameter 'redirect_auth_request' is set
|
229
|
+
if @api_client.config.client_side_validation && redirect_auth_request.nil?
|
230
|
+
raise ArgumentError, "Missing the required parameter 'redirect_auth_request' when calling AuthApi.redirect_auth"
|
231
|
+
end
|
232
|
+
|
233
|
+
# resource path
|
234
|
+
local_var_path = '/auth/redirect'
|
235
|
+
|
236
|
+
# query parameters
|
237
|
+
query_params = opts[:query_params] || {}
|
238
|
+
|
239
|
+
# header parameters
|
240
|
+
header_params = opts[:header_params] || {}
|
241
|
+
# HTTP header 'Accept' (if needed)
|
242
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
243
|
+
# HTTP header 'Content-Type'
|
244
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
245
|
+
unless content_type.nil?
|
246
|
+
header_params['Content-Type'] = content_type
|
247
|
+
end
|
248
|
+
|
249
|
+
# form parameters
|
250
|
+
form_params = opts[:form_params] || {}
|
251
|
+
|
252
|
+
# http body (model)
|
253
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(redirect_auth_request)
|
254
|
+
|
255
|
+
# return_type
|
256
|
+
return_type = opts[:debug_return_type] || 'AuthToken'
|
257
|
+
|
258
|
+
# auth_names
|
259
|
+
auth_names = opts[:debug_auth_names] || []
|
260
|
+
|
261
|
+
new_options = opts.merge(
|
262
|
+
operation: :'AuthApi.redirect_auth',
|
263
|
+
header_params: header_params,
|
264
|
+
query_params: query_params,
|
265
|
+
form_params: form_params,
|
266
|
+
body: post_body,
|
267
|
+
auth_names: auth_names,
|
268
|
+
return_type: return_type
|
269
|
+
)
|
270
|
+
|
271
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
272
|
+
if @api_client.config.debugging
|
273
|
+
@api_client.config.logger.debug "API called: AuthApi#redirect_auth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
274
|
+
end
|
275
|
+
[data, status_code, headers]
|
276
|
+
end
|
277
|
+
|
211
278
|
# Refresh an auth token before it expires
|
212
279
|
# @param [Hash] opts the optional parameters
|
213
280
|
# @return [AuthToken]
|
@@ -232,7 +299,7 @@ module Gopad
|
|
232
299
|
# header parameters
|
233
300
|
header_params = opts[:header_params] || {}
|
234
301
|
# HTTP header 'Accept' (if needed)
|
235
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
302
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
236
303
|
|
237
304
|
# form parameters
|
238
305
|
form_params = opts[:form_params] || {}
|
@@ -294,7 +361,7 @@ module Gopad
|
|
294
361
|
# header parameters
|
295
362
|
header_params = opts[:header_params] || {}
|
296
363
|
# HTTP header 'Accept' (if needed)
|
297
|
-
header_params['Accept'] = @api_client.select_header_accept(['text/html'])
|
364
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/html']) unless header_params['Accept']
|
298
365
|
|
299
366
|
# form parameters
|
300
367
|
form_params = opts[:form_params] || {}
|
@@ -349,7 +416,7 @@ module Gopad
|
|
349
416
|
# header parameters
|
350
417
|
header_params = opts[:header_params] || {}
|
351
418
|
# HTTP header 'Accept' (if needed)
|
352
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
419
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
353
420
|
|
354
421
|
# form parameters
|
355
422
|
form_params = opts[:form_params] || {}
|
data/lib/gopad/api/group_api.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'cgi'
|
@@ -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(['application/json'])
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
59
59
|
# HTTP header 'Content-Type'
|
60
60
|
content_type = @api_client.select_header_content_type(['application/json'])
|
61
61
|
unless content_type.nil?
|
@@ -122,7 +122,7 @@ module Gopad
|
|
122
122
|
# header parameters
|
123
123
|
header_params = opts[:header_params] || {}
|
124
124
|
# HTTP header 'Accept' (if needed)
|
125
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
126
126
|
# HTTP header 'Content-Type'
|
127
127
|
content_type = @api_client.select_header_content_type(['application/json'])
|
128
128
|
unless content_type.nil?
|
@@ -189,7 +189,7 @@ module Gopad
|
|
189
189
|
# header parameters
|
190
190
|
header_params = opts[:header_params] || {}
|
191
191
|
# HTTP header 'Accept' (if needed)
|
192
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
193
193
|
|
194
194
|
# form parameters
|
195
195
|
form_params = opts[:form_params] || {}
|
@@ -257,7 +257,7 @@ module Gopad
|
|
257
257
|
# header parameters
|
258
258
|
header_params = opts[:header_params] || {}
|
259
259
|
# HTTP header 'Accept' (if needed)
|
260
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
261
261
|
# HTTP header 'Content-Type'
|
262
262
|
content_type = @api_client.select_header_content_type(['application/json'])
|
263
263
|
unless content_type.nil?
|
@@ -344,7 +344,7 @@ module Gopad
|
|
344
344
|
# header parameters
|
345
345
|
header_params = opts[:header_params] || {}
|
346
346
|
# HTTP header 'Accept' (if needed)
|
347
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
347
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
348
348
|
|
349
349
|
# form parameters
|
350
350
|
form_params = opts[:form_params] || {}
|
@@ -419,7 +419,7 @@ module Gopad
|
|
419
419
|
# header parameters
|
420
420
|
header_params = opts[:header_params] || {}
|
421
421
|
# HTTP header 'Accept' (if needed)
|
422
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
422
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
423
423
|
|
424
424
|
# form parameters
|
425
425
|
form_params = opts[:form_params] || {}
|
@@ -487,7 +487,7 @@ module Gopad
|
|
487
487
|
# header parameters
|
488
488
|
header_params = opts[:header_params] || {}
|
489
489
|
# HTTP header 'Accept' (if needed)
|
490
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
490
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
491
491
|
# HTTP header 'Content-Type'
|
492
492
|
content_type = @api_client.select_header_content_type(['application/json'])
|
493
493
|
unless content_type.nil?
|
@@ -554,7 +554,7 @@ module Gopad
|
|
554
554
|
# header parameters
|
555
555
|
header_params = opts[:header_params] || {}
|
556
556
|
# HTTP header 'Accept' (if needed)
|
557
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
557
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
558
558
|
|
559
559
|
# form parameters
|
560
560
|
form_params = opts[:form_params] || {}
|
@@ -622,7 +622,7 @@ module Gopad
|
|
622
622
|
# header parameters
|
623
623
|
header_params = opts[:header_params] || {}
|
624
624
|
# HTTP header 'Accept' (if needed)
|
625
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
625
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
626
626
|
# HTTP header 'Content-Type'
|
627
627
|
content_type = @api_client.select_header_content_type(['application/json'])
|
628
628
|
unless content_type.nil?
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'cgi'
|
@@ -42,7 +42,7 @@ module Gopad
|
|
42
42
|
# header parameters
|
43
43
|
header_params = opts[:header_params] || {}
|
44
44
|
# HTTP header 'Accept' (if needed)
|
45
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
45
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
46
46
|
|
47
47
|
# form parameters
|
48
48
|
form_params = opts[:form_params] || {}
|
@@ -97,7 +97,7 @@ module Gopad
|
|
97
97
|
# header parameters
|
98
98
|
header_params = opts[:header_params] || {}
|
99
99
|
# HTTP header 'Accept' (if needed)
|
100
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
100
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
101
101
|
|
102
102
|
# form parameters
|
103
103
|
form_params = opts[:form_params] || {}
|
@@ -159,7 +159,7 @@ module Gopad
|
|
159
159
|
# header parameters
|
160
160
|
header_params = opts[:header_params] || {}
|
161
161
|
# HTTP header 'Accept' (if needed)
|
162
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
163
163
|
# HTTP header 'Content-Type'
|
164
164
|
content_type = @api_client.select_header_content_type(['application/json'])
|
165
165
|
unless content_type.nil?
|
data/lib/gopad/api/user_api.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'cgi'
|
@@ -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(['application/json'])
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
59
59
|
# HTTP header 'Content-Type'
|
60
60
|
content_type = @api_client.select_header_content_type(['application/json'])
|
61
61
|
unless content_type.nil?
|
@@ -122,7 +122,7 @@ module Gopad
|
|
122
122
|
# header parameters
|
123
123
|
header_params = opts[:header_params] || {}
|
124
124
|
# HTTP header 'Accept' (if needed)
|
125
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
126
126
|
# HTTP header 'Content-Type'
|
127
127
|
content_type = @api_client.select_header_content_type(['application/json'])
|
128
128
|
unless content_type.nil?
|
@@ -189,7 +189,7 @@ module Gopad
|
|
189
189
|
# header parameters
|
190
190
|
header_params = opts[:header_params] || {}
|
191
191
|
# HTTP header 'Accept' (if needed)
|
192
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
193
193
|
|
194
194
|
# form parameters
|
195
195
|
form_params = opts[:form_params] || {}
|
@@ -257,7 +257,7 @@ module Gopad
|
|
257
257
|
# header parameters
|
258
258
|
header_params = opts[:header_params] || {}
|
259
259
|
# HTTP header 'Accept' (if needed)
|
260
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
261
261
|
# HTTP header 'Content-Type'
|
262
262
|
content_type = @api_client.select_header_content_type(['application/json'])
|
263
263
|
unless content_type.nil?
|
@@ -344,7 +344,7 @@ module Gopad
|
|
344
344
|
# header parameters
|
345
345
|
header_params = opts[:header_params] || {}
|
346
346
|
# HTTP header 'Accept' (if needed)
|
347
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
347
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
348
348
|
|
349
349
|
# form parameters
|
350
350
|
form_params = opts[:form_params] || {}
|
@@ -419,7 +419,7 @@ module Gopad
|
|
419
419
|
# header parameters
|
420
420
|
header_params = opts[:header_params] || {}
|
421
421
|
# HTTP header 'Accept' (if needed)
|
422
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
422
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
423
423
|
|
424
424
|
# form parameters
|
425
425
|
form_params = opts[:form_params] || {}
|
@@ -487,7 +487,7 @@ module Gopad
|
|
487
487
|
# header parameters
|
488
488
|
header_params = opts[:header_params] || {}
|
489
489
|
# HTTP header 'Accept' (if needed)
|
490
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
490
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
491
491
|
# HTTP header 'Content-Type'
|
492
492
|
content_type = @api_client.select_header_content_type(['application/json'])
|
493
493
|
unless content_type.nil?
|
@@ -554,7 +554,7 @@ module Gopad
|
|
554
554
|
# header parameters
|
555
555
|
header_params = opts[:header_params] || {}
|
556
556
|
# HTTP header 'Accept' (if needed)
|
557
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
557
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
558
558
|
|
559
559
|
# form parameters
|
560
560
|
form_params = opts[:form_params] || {}
|
@@ -622,7 +622,7 @@ module Gopad
|
|
622
622
|
# header parameters
|
623
623
|
header_params = opts[:header_params] || {}
|
624
624
|
# HTTP header 'Accept' (if needed)
|
625
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
625
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
626
626
|
# HTTP header 'Content-Type'
|
627
627
|
content_type = @api_client.select_header_content_type(['application/json'])
|
628
628
|
unless content_type.nil?
|
data/lib/gopad/api_client.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
data/lib/gopad/api_error.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
module Gopad
|
data/lib/gopad/configuration.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
module Gopad
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -54,8 +54,7 @@ module Gopad
|
|
54
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
55
55
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
56
56
|
unless self.class.attribute_map.key?(k.to_sym)
|
57
|
-
raise ArgumentError,
|
58
|
-
"`#{k}` is not a valid attribute in `Gopad::CreateGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::CreateGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
58
|
end
|
60
59
|
|
61
60
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -66,8 +66,7 @@ module Gopad
|
|
66
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
67
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
68
68
|
unless self.class.attribute_map.key?(k.to_sym)
|
69
|
-
raise ArgumentError,
|
70
|
-
"`#{k}` is not a valid attribute in `Gopad::CreateUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::CreateUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
70
|
end
|
72
71
|
|
73
72
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -50,8 +50,7 @@ module Gopad
|
|
50
50
|
# check to see if the attribute exists and convert string to symbol for hash key
|
51
51
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
52
52
|
unless self.class.attribute_map.key?(k.to_sym)
|
53
|
-
raise ArgumentError,
|
54
|
-
"`#{k}` is not a valid attribute in `Gopad::DeleteGroupFromUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
53
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::DeleteGroupFromUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
54
|
end
|
56
55
|
|
57
56
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -50,8 +50,7 @@ module Gopad
|
|
50
50
|
# check to see if the attribute exists and convert string to symbol for hash key
|
51
51
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
52
52
|
unless self.class.attribute_map.key?(k.to_sym)
|
53
|
-
raise ArgumentError,
|
54
|
-
"`#{k}` is not a valid attribute in `Gopad::DeleteUserFromGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
53
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::DeleteUserFromGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
54
|
end
|
56
55
|
|
57
56
|
h[k.to_sym] = v
|
data/lib/gopad/models/group.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -58,8 +58,7 @@ module Gopad
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
59
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
60
60
|
unless self.class.attribute_map.key?(k.to_sym)
|
61
|
-
raise ArgumentError,
|
62
|
-
"`#{k}` is not a valid attribute in `Gopad::ListGroupUsers200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::ListGroupUsers200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
62
|
end
|
64
63
|
|
65
64
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -56,8 +56,7 @@ module Gopad
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
58
58
|
unless self.class.attribute_map.key?(k.to_sym)
|
59
|
-
raise ArgumentError,
|
60
|
-
"`#{k}` is not a valid attribute in `Gopad::ListGroups200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::ListGroups200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
60
|
end
|
62
61
|
|
63
62
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -52,8 +52,7 @@ module Gopad
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
54
54
|
unless self.class.attribute_map.key?(k.to_sym)
|
55
|
-
raise ArgumentError,
|
56
|
-
"`#{k}` is not a valid attribute in `Gopad::ListProviders200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::ListProviders200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
56
|
end
|
58
57
|
|
59
58
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -58,8 +58,7 @@ module Gopad
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
59
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
60
60
|
unless self.class.attribute_map.key?(k.to_sym)
|
61
|
-
raise ArgumentError,
|
62
|
-
"`#{k}` is not a valid attribute in `Gopad::ListUserGroups200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::ListUserGroups200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
62
|
end
|
64
63
|
|
65
64
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -56,8 +56,7 @@ module Gopad
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
58
58
|
unless self.class.attribute_map.key?(k.to_sym)
|
59
|
-
raise ArgumentError,
|
60
|
-
"`#{k}` is not a valid attribute in `Gopad::ListUsers200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::ListUsers200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
60
|
end
|
62
61
|
|
63
62
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -52,8 +52,7 @@ module Gopad
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
54
54
|
unless self.class.attribute_map.key?(k.to_sym)
|
55
|
-
raise ArgumentError,
|
56
|
-
"`#{k}` is not a valid attribute in `Gopad::LoginAuthRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::LoginAuthRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
56
|
end
|
58
57
|
|
59
58
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -52,8 +52,7 @@ module Gopad
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
54
54
|
unless self.class.attribute_map.key?(k.to_sym)
|
55
|
-
raise ArgumentError,
|
56
|
-
"`#{k}` is not a valid attribute in `Gopad::PermitGroupUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::PermitGroupUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
56
|
end
|
58
57
|
|
59
58
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -52,8 +52,7 @@ module Gopad
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
54
54
|
unless self.class.attribute_map.key?(k.to_sym)
|
55
|
-
raise ArgumentError,
|
56
|
-
"`#{k}` is not a valid attribute in `Gopad::PermitUserGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::PermitUserGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
56
|
end
|
58
57
|
|
59
58
|
h[k.to_sym] = v
|
data/lib/gopad/models/profile.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -0,0 +1,219 @@
|
|
1
|
+
# Gopad OpenAPI
|
2
|
+
#
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
|
+
#
|
5
|
+
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
|
+
# Contact: gopad@webhippie.de
|
7
|
+
# Generated by: https://openapi-generator.tech
|
8
|
+
# Generator version: 7.12.0
|
9
|
+
#
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
require 'time'
|
13
|
+
|
14
|
+
module Gopad
|
15
|
+
class RedirectAuthRequest
|
16
|
+
attr_accessor :token
|
17
|
+
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
19
|
+
def self.attribute_map
|
20
|
+
{
|
21
|
+
token: :token
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
25
|
+
# Returns all the JSON keys this model knows about
|
26
|
+
def self.acceptable_attributes
|
27
|
+
attribute_map.values
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.openapi_types
|
32
|
+
{
|
33
|
+
token: :String
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# List of attributes with nullable: true
|
38
|
+
def self.openapi_nullable
|
39
|
+
Set.new([
|
40
|
+
])
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
unless attributes.is_a?(Hash)
|
47
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Gopad::RedirectAuthRequest` initialize method'
|
48
|
+
end
|
49
|
+
|
50
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
52
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
53
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::RedirectAuthRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
+
end
|
55
|
+
|
56
|
+
h[k.to_sym] = v
|
57
|
+
end
|
58
|
+
|
59
|
+
self.token = if attributes.key?(:token)
|
60
|
+
attributes[:token]
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
68
|
+
invalid_properties = []
|
69
|
+
if @token.nil?
|
70
|
+
invalid_properties.push('invalid value for "token", token cannot be nil.')
|
71
|
+
end
|
72
|
+
|
73
|
+
invalid_properties
|
74
|
+
end
|
75
|
+
|
76
|
+
# Check to see if the all the properties in the model are valid
|
77
|
+
# @return true if the model is valid
|
78
|
+
def valid?
|
79
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
80
|
+
return false if @token.nil?
|
81
|
+
|
82
|
+
true
|
83
|
+
end
|
84
|
+
|
85
|
+
# Checks equality by comparing each attribute.
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def ==(other)
|
88
|
+
return true if equal?(other)
|
89
|
+
|
90
|
+
self.class == other.class &&
|
91
|
+
token == other.token
|
92
|
+
end
|
93
|
+
|
94
|
+
# @see the `==` method
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def eql?(other)
|
97
|
+
self == other
|
98
|
+
end
|
99
|
+
|
100
|
+
# Calculates hash code according to all attributes.
|
101
|
+
# @return [Integer] Hash code
|
102
|
+
def hash
|
103
|
+
[token].hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def self.build_from_hash(attributes)
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
111
|
+
|
112
|
+
attributes = attributes.transform_keys(&:to_sym)
|
113
|
+
transformed_hash = {}
|
114
|
+
openapi_types.each_pair do |key, type|
|
115
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
116
|
+
transformed_hash[key.to_s] = nil
|
117
|
+
elsif type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
121
|
+
transformed_hash[key.to_s] = attributes[attribute_map[key]].map { |v| _deserialize(::Regexp.last_match(1), v) }
|
122
|
+
end
|
123
|
+
elsif !attributes[attribute_map[key]].nil?
|
124
|
+
transformed_hash[key.to_s] = _deserialize(type, attributes[attribute_map[key]])
|
125
|
+
end
|
126
|
+
end
|
127
|
+
new(transformed_hash)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Deserializes the data based on type
|
131
|
+
# @param string type Data type
|
132
|
+
# @param string value Value to be deserialized
|
133
|
+
# @return [Object] Deserialized data
|
134
|
+
def self._deserialize(type, value)
|
135
|
+
case type.to_sym
|
136
|
+
when :Time
|
137
|
+
Time.parse(value)
|
138
|
+
when :Date
|
139
|
+
Date.parse(value)
|
140
|
+
when :String
|
141
|
+
value.to_s
|
142
|
+
when :Integer
|
143
|
+
value.to_i
|
144
|
+
when :Float
|
145
|
+
value.to_f
|
146
|
+
when :Boolean
|
147
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
148
|
+
true
|
149
|
+
else
|
150
|
+
false
|
151
|
+
end
|
152
|
+
when :Object
|
153
|
+
# generic object (usually a Hash), return directly
|
154
|
+
value
|
155
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
156
|
+
inner_type = Regexp.last_match[:inner_type]
|
157
|
+
value.map { |v| _deserialize(inner_type, v) }
|
158
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
159
|
+
k_type = Regexp.last_match[:k_type]
|
160
|
+
v_type = Regexp.last_match[:v_type]
|
161
|
+
{}.tap do |hash|
|
162
|
+
value.each do |k, v|
|
163
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
else # model
|
167
|
+
# models (e.g. Pet) or oneOf
|
168
|
+
klass = Gopad.const_get(type)
|
169
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the string representation of the object
|
174
|
+
# @return [String] String presentation of the object
|
175
|
+
def to_s
|
176
|
+
to_hash.to_s
|
177
|
+
end
|
178
|
+
|
179
|
+
# to_body is an alias to to_hash (backward compatibility)
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_body
|
182
|
+
to_hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the object in the form of hash
|
186
|
+
# @return [Hash] Returns the object in the form of hash
|
187
|
+
def to_hash
|
188
|
+
hash = {}
|
189
|
+
self.class.attribute_map.each_pair do |attr, param|
|
190
|
+
value = send(attr)
|
191
|
+
if value.nil?
|
192
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
193
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
194
|
+
end
|
195
|
+
|
196
|
+
hash[param] = _to_hash(value)
|
197
|
+
end
|
198
|
+
hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Outputs non-array value in the form of hash
|
202
|
+
# For object, use to_hash. Otherwise, just return the value
|
203
|
+
# @param [Object] value Any valid value
|
204
|
+
# @return [Hash] Returns the value in the form of hash
|
205
|
+
def _to_hash(value)
|
206
|
+
if value.is_a?(Array)
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
208
|
+
elsif value.is_a?(Hash)
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
211
|
+
end
|
212
|
+
elsif value.respond_to? :to_hash
|
213
|
+
value.to_hash
|
214
|
+
else
|
215
|
+
value
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -60,8 +60,7 @@ module Gopad
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
62
62
|
unless self.class.attribute_map.key?(k.to_sym)
|
63
|
-
raise ArgumentError,
|
64
|
-
"`#{k}` is not a valid attribute in `Gopad::UpdateProfileRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::UpdateProfileRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
64
|
end
|
66
65
|
|
67
66
|
h[k.to_sym] = v
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -66,8 +66,7 @@ module Gopad
|
|
66
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
67
67
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
68
68
|
unless self.class.attribute_map.key?(k.to_sym)
|
69
|
-
raise ArgumentError,
|
70
|
-
"`#{k}` is not a valid attribute in `Gopad::UpdateUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Gopad::UpdateUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
70
|
end
|
72
71
|
|
73
72
|
h[k.to_sym] = v
|
data/lib/gopad/models/user.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'date'
|
data/lib/gopad/version.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
module Gopad
|
12
|
-
VERSION = '1.
|
12
|
+
VERSION = '1.17.0'.freeze
|
13
13
|
end
|
data/lib/gopad.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Gopad OpenAPI
|
2
2
|
#
|
3
|
-
# API definition for Gopad, Etherpad for markdown with
|
3
|
+
# API definition for Gopad, Etherpad for markdown with Go
|
4
4
|
#
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: gopad@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
# Common files
|
@@ -33,6 +33,7 @@ require 'gopad/models/permit_group_user_request'
|
|
33
33
|
require 'gopad/models/permit_user_group_request'
|
34
34
|
require 'gopad/models/profile'
|
35
35
|
require 'gopad/models/provider'
|
36
|
+
require 'gopad/models/redirect_auth_request'
|
36
37
|
require 'gopad/models/update_profile_request'
|
37
38
|
require 'gopad/models/update_user_request'
|
38
39
|
require 'gopad/models/user'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gopad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Boerger
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-31 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: faraday
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/gopad/models/permit_user_group_request.rb
|
90
90
|
- lib/gopad/models/profile.rb
|
91
91
|
- lib/gopad/models/provider.rb
|
92
|
+
- lib/gopad/models/redirect_auth_request.rb
|
92
93
|
- lib/gopad/models/update_profile_request.rb
|
93
94
|
- lib/gopad/models/update_user_request.rb
|
94
95
|
- lib/gopad/models/user.rb
|