BmltClient 1.0.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 +7 -0
- data/BmltClient.gemspec +38 -0
- data/Gemfile +9 -0
- data/Makefile +22 -0
- data/README.md +157 -0
- data/Rakefile +10 -0
- data/docs/AuthenticationError.md +18 -0
- data/docs/AuthorizationError.md +18 -0
- data/docs/ErrorTest.md +22 -0
- data/docs/Format.md +24 -0
- data/docs/FormatAllOf.md +18 -0
- data/docs/FormatBase.md +22 -0
- data/docs/FormatCreate.md +22 -0
- data/docs/FormatPartialUpdate.md +22 -0
- data/docs/FormatTranslation.md +24 -0
- data/docs/FormatUpdate.md +22 -0
- data/docs/Meeting.md +90 -0
- data/docs/MeetingBase.md +88 -0
- data/docs/MeetingCreate.md +88 -0
- data/docs/MeetingPartialUpdate.md +88 -0
- data/docs/MeetingUpdate.md +88 -0
- data/docs/NotFoundError.md +18 -0
- data/docs/RootServerApi.md +1958 -0
- data/docs/ServerError.md +18 -0
- data/docs/ServiceBody.md +38 -0
- data/docs/ServiceBodyBase.md +36 -0
- data/docs/ServiceBodyCreate.md +36 -0
- data/docs/ServiceBodyPartialUpdate.md +36 -0
- data/docs/ServiceBodyUpdate.md +36 -0
- data/docs/Token.md +24 -0
- data/docs/TokenCredentials.md +20 -0
- data/docs/User.md +30 -0
- data/docs/UserBase.md +28 -0
- data/docs/UserCreate.md +30 -0
- data/docs/UserCreateAllOf.md +18 -0
- data/docs/UserPartialUpdate.md +30 -0
- data/docs/UserUpdate.md +30 -0
- data/docs/ValidationError.md +20 -0
- data/git_push.sh +57 -0
- data/lib/BmltClient/api/root_server_api.rb +1880 -0
- data/lib/BmltClient/api_client.rb +392 -0
- data/lib/BmltClient/api_error.rb +57 -0
- data/lib/BmltClient/configuration.rb +279 -0
- data/lib/BmltClient/models/authentication_error.rb +224 -0
- data/lib/BmltClient/models/authorization_error.rb +224 -0
- data/lib/BmltClient/models/error_test.rb +237 -0
- data/lib/BmltClient/models/format.rb +276 -0
- data/lib/BmltClient/models/format_all_of.rb +219 -0
- data/lib/BmltClient/models/format_base.rb +239 -0
- data/lib/BmltClient/models/format_create.rb +251 -0
- data/lib/BmltClient/models/format_partial_update.rb +246 -0
- data/lib/BmltClient/models/format_translation.rb +266 -0
- data/lib/BmltClient/models/format_update.rb +251 -0
- data/lib/BmltClient/models/meeting.rb +628 -0
- data/lib/BmltClient/models/meeting_base.rb +536 -0
- data/lib/BmltClient/models/meeting_create.rb +593 -0
- data/lib/BmltClient/models/meeting_partial_update.rb +593 -0
- data/lib/BmltClient/models/meeting_update.rb +593 -0
- data/lib/BmltClient/models/not_found_error.rb +224 -0
- data/lib/BmltClient/models/server_error.rb +224 -0
- data/lib/BmltClient/models/service_body.rb +374 -0
- data/lib/BmltClient/models/service_body_base.rb +302 -0
- data/lib/BmltClient/models/service_body_create.rb +339 -0
- data/lib/BmltClient/models/service_body_partial_update.rb +309 -0
- data/lib/BmltClient/models/service_body_update.rb +339 -0
- data/lib/BmltClient/models/token.rb +266 -0
- data/lib/BmltClient/models/token_credentials.rb +238 -0
- data/lib/BmltClient/models/user.rb +316 -0
- data/lib/BmltClient/models/user_base.rb +264 -0
- data/lib/BmltClient/models/user_create.rb +301 -0
- data/lib/BmltClient/models/user_create_all_of.rb +219 -0
- data/lib/BmltClient/models/user_partial_update.rb +281 -0
- data/lib/BmltClient/models/user_update.rb +296 -0
- data/lib/BmltClient/models/validation_error.rb +240 -0
- data/lib/BmltClient/version.rb +15 -0
- data/lib/BmltClient.rb +71 -0
- data/openapi.json +1 -0
- data/spec/api/root_server_api_spec.rb +377 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/authentication_error_spec.rb +34 -0
- data/spec/models/authorization_error_spec.rb +34 -0
- data/spec/models/error_test_spec.rb +46 -0
- data/spec/models/format_all_of_spec.rb +34 -0
- data/spec/models/format_base_spec.rb +46 -0
- data/spec/models/format_create_spec.rb +46 -0
- data/spec/models/format_partial_update_spec.rb +46 -0
- data/spec/models/format_spec.rb +52 -0
- data/spec/models/format_translation_spec.rb +52 -0
- data/spec/models/format_update_spec.rb +46 -0
- data/spec/models/meeting_base_spec.rb +244 -0
- data/spec/models/meeting_create_spec.rb +244 -0
- data/spec/models/meeting_partial_update_spec.rb +244 -0
- data/spec/models/meeting_spec.rb +250 -0
- data/spec/models/meeting_update_spec.rb +244 -0
- data/spec/models/not_found_error_spec.rb +34 -0
- data/spec/models/server_error_spec.rb +34 -0
- data/spec/models/service_body_base_spec.rb +88 -0
- data/spec/models/service_body_create_spec.rb +88 -0
- data/spec/models/service_body_partial_update_spec.rb +88 -0
- data/spec/models/service_body_spec.rb +94 -0
- data/spec/models/service_body_update_spec.rb +88 -0
- data/spec/models/token_credentials_spec.rb +40 -0
- data/spec/models/token_spec.rb +52 -0
- data/spec/models/user_base_spec.rb +64 -0
- data/spec/models/user_create_all_of_spec.rb +34 -0
- data/spec/models/user_create_spec.rb +70 -0
- data/spec/models/user_partial_update_spec.rb +70 -0
- data/spec/models/user_spec.rb +70 -0
- data/spec/models/user_update_spec.rb +70 -0
- data/spec/models/validation_error_spec.rb +40 -0
- data/spec/spec_helper.rb +111 -0
- metadata +229 -0
|
@@ -0,0 +1,1880 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#BMLT
|
|
3
|
+
|
|
4
|
+
#BMLT Admin API Documentation
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.1-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module BmltClient
|
|
16
|
+
class RootServerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Revokes a token
|
|
23
|
+
# Revoke token and logout.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [nil]
|
|
26
|
+
def auth_logout(opts = {})
|
|
27
|
+
auth_logout_with_http_info(opts)
|
|
28
|
+
nil
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Revokes a token
|
|
32
|
+
# Revoke token and logout.
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
35
|
+
def auth_logout_with_http_info(opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.auth_logout ...'
|
|
38
|
+
end
|
|
39
|
+
# resource path
|
|
40
|
+
local_var_path = '/api/v1/auth/logout'
|
|
41
|
+
|
|
42
|
+
# query parameters
|
|
43
|
+
query_params = opts[:query_params] || {}
|
|
44
|
+
|
|
45
|
+
# header parameters
|
|
46
|
+
header_params = opts[:header_params] || {}
|
|
47
|
+
# HTTP header 'Accept' (if needed)
|
|
48
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
49
|
+
|
|
50
|
+
# form parameters
|
|
51
|
+
form_params = opts[:form_params] || {}
|
|
52
|
+
|
|
53
|
+
# http body (model)
|
|
54
|
+
post_body = opts[:debug_body]
|
|
55
|
+
|
|
56
|
+
# return_type
|
|
57
|
+
return_type = opts[:debug_return_type]
|
|
58
|
+
|
|
59
|
+
# auth_names
|
|
60
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
61
|
+
|
|
62
|
+
new_options = opts.merge(
|
|
63
|
+
:operation => :"RootServerApi.auth_logout",
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
73
|
+
if @api_client.config.debugging
|
|
74
|
+
@api_client.config.logger.debug "API called: RootServerApi#auth_logout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
|
+
end
|
|
76
|
+
return data, status_code, headers
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Revokes and issues a new token
|
|
80
|
+
# Refresh token.
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @return [Token]
|
|
83
|
+
def auth_refresh(opts = {})
|
|
84
|
+
data, _status_code, _headers = auth_refresh_with_http_info(opts)
|
|
85
|
+
data
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Revokes and issues a new token
|
|
89
|
+
# Refresh token.
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [Array<(Token, Integer, Hash)>] Token data, response status code and response headers
|
|
92
|
+
def auth_refresh_with_http_info(opts = {})
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.auth_refresh ...'
|
|
95
|
+
end
|
|
96
|
+
# resource path
|
|
97
|
+
local_var_path = '/api/v1/auth/refresh'
|
|
98
|
+
|
|
99
|
+
# query parameters
|
|
100
|
+
query_params = opts[:query_params] || {}
|
|
101
|
+
|
|
102
|
+
# header parameters
|
|
103
|
+
header_params = opts[:header_params] || {}
|
|
104
|
+
# HTTP header 'Accept' (if needed)
|
|
105
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
106
|
+
|
|
107
|
+
# form parameters
|
|
108
|
+
form_params = opts[:form_params] || {}
|
|
109
|
+
|
|
110
|
+
# http body (model)
|
|
111
|
+
post_body = opts[:debug_body]
|
|
112
|
+
|
|
113
|
+
# return_type
|
|
114
|
+
return_type = opts[:debug_return_type] || 'Token'
|
|
115
|
+
|
|
116
|
+
# auth_names
|
|
117
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
118
|
+
|
|
119
|
+
new_options = opts.merge(
|
|
120
|
+
:operation => :"RootServerApi.auth_refresh",
|
|
121
|
+
:header_params => header_params,
|
|
122
|
+
:query_params => query_params,
|
|
123
|
+
:form_params => form_params,
|
|
124
|
+
:body => post_body,
|
|
125
|
+
:auth_names => auth_names,
|
|
126
|
+
:return_type => return_type
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
@api_client.config.logger.debug "API called: RootServerApi#auth_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Creates a token
|
|
137
|
+
# Exchange credentials for a new token
|
|
138
|
+
# @param token_credentials [TokenCredentials] User credentials
|
|
139
|
+
# @param [Hash] opts the optional parameters
|
|
140
|
+
# @return [Token]
|
|
141
|
+
def auth_token(token_credentials, opts = {})
|
|
142
|
+
data, _status_code, _headers = auth_token_with_http_info(token_credentials, opts)
|
|
143
|
+
data
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Creates a token
|
|
147
|
+
# Exchange credentials for a new token
|
|
148
|
+
# @param token_credentials [TokenCredentials] User credentials
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @return [Array<(Token, Integer, Hash)>] Token data, response status code and response headers
|
|
151
|
+
def auth_token_with_http_info(token_credentials, opts = {})
|
|
152
|
+
if @api_client.config.debugging
|
|
153
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.auth_token ...'
|
|
154
|
+
end
|
|
155
|
+
# verify the required parameter 'token_credentials' is set
|
|
156
|
+
if @api_client.config.client_side_validation && token_credentials.nil?
|
|
157
|
+
fail ArgumentError, "Missing the required parameter 'token_credentials' when calling RootServerApi.auth_token"
|
|
158
|
+
end
|
|
159
|
+
# resource path
|
|
160
|
+
local_var_path = '/api/v1/auth/token'
|
|
161
|
+
|
|
162
|
+
# query parameters
|
|
163
|
+
query_params = opts[:query_params] || {}
|
|
164
|
+
|
|
165
|
+
# header parameters
|
|
166
|
+
header_params = opts[:header_params] || {}
|
|
167
|
+
# HTTP header 'Accept' (if needed)
|
|
168
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
169
|
+
# HTTP header 'Content-Type'
|
|
170
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
171
|
+
if !content_type.nil?
|
|
172
|
+
header_params['Content-Type'] = content_type
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# form parameters
|
|
176
|
+
form_params = opts[:form_params] || {}
|
|
177
|
+
|
|
178
|
+
# http body (model)
|
|
179
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(token_credentials)
|
|
180
|
+
|
|
181
|
+
# return_type
|
|
182
|
+
return_type = opts[:debug_return_type] || 'Token'
|
|
183
|
+
|
|
184
|
+
# auth_names
|
|
185
|
+
auth_names = opts[:debug_auth_names] || []
|
|
186
|
+
|
|
187
|
+
new_options = opts.merge(
|
|
188
|
+
:operation => :"RootServerApi.auth_token",
|
|
189
|
+
:header_params => header_params,
|
|
190
|
+
:query_params => query_params,
|
|
191
|
+
:form_params => form_params,
|
|
192
|
+
:body => post_body,
|
|
193
|
+
:auth_names => auth_names,
|
|
194
|
+
:return_type => return_type
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
198
|
+
if @api_client.config.debugging
|
|
199
|
+
@api_client.config.logger.debug "API called: RootServerApi#auth_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
200
|
+
end
|
|
201
|
+
return data, status_code, headers
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Tests some errors
|
|
205
|
+
# Tests some errors.
|
|
206
|
+
# @param error_test [ErrorTest] Pass in error test object.
|
|
207
|
+
# @param [Hash] opts the optional parameters
|
|
208
|
+
# @return [ErrorTest]
|
|
209
|
+
def create_error_test(error_test, opts = {})
|
|
210
|
+
data, _status_code, _headers = create_error_test_with_http_info(error_test, opts)
|
|
211
|
+
data
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Tests some errors
|
|
215
|
+
# Tests some errors.
|
|
216
|
+
# @param error_test [ErrorTest] Pass in error test object.
|
|
217
|
+
# @param [Hash] opts the optional parameters
|
|
218
|
+
# @return [Array<(ErrorTest, Integer, Hash)>] ErrorTest data, response status code and response headers
|
|
219
|
+
def create_error_test_with_http_info(error_test, opts = {})
|
|
220
|
+
if @api_client.config.debugging
|
|
221
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.create_error_test ...'
|
|
222
|
+
end
|
|
223
|
+
# verify the required parameter 'error_test' is set
|
|
224
|
+
if @api_client.config.client_side_validation && error_test.nil?
|
|
225
|
+
fail ArgumentError, "Missing the required parameter 'error_test' when calling RootServerApi.create_error_test"
|
|
226
|
+
end
|
|
227
|
+
# resource path
|
|
228
|
+
local_var_path = '/api/v1/errortest'
|
|
229
|
+
|
|
230
|
+
# query parameters
|
|
231
|
+
query_params = opts[:query_params] || {}
|
|
232
|
+
|
|
233
|
+
# header parameters
|
|
234
|
+
header_params = opts[:header_params] || {}
|
|
235
|
+
# HTTP header 'Accept' (if needed)
|
|
236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
237
|
+
# HTTP header 'Content-Type'
|
|
238
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
239
|
+
if !content_type.nil?
|
|
240
|
+
header_params['Content-Type'] = content_type
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# form parameters
|
|
244
|
+
form_params = opts[:form_params] || {}
|
|
245
|
+
|
|
246
|
+
# http body (model)
|
|
247
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(error_test)
|
|
248
|
+
|
|
249
|
+
# return_type
|
|
250
|
+
return_type = opts[:debug_return_type] || 'ErrorTest'
|
|
251
|
+
|
|
252
|
+
# auth_names
|
|
253
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
254
|
+
|
|
255
|
+
new_options = opts.merge(
|
|
256
|
+
:operation => :"RootServerApi.create_error_test",
|
|
257
|
+
:header_params => header_params,
|
|
258
|
+
:query_params => query_params,
|
|
259
|
+
:form_params => form_params,
|
|
260
|
+
:body => post_body,
|
|
261
|
+
:auth_names => auth_names,
|
|
262
|
+
:return_type => return_type
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
266
|
+
if @api_client.config.debugging
|
|
267
|
+
@api_client.config.logger.debug "API called: RootServerApi#create_error_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
268
|
+
end
|
|
269
|
+
return data, status_code, headers
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Creates a format
|
|
273
|
+
# Creates a format.
|
|
274
|
+
# @param format_create [FormatCreate] Pass in format object
|
|
275
|
+
# @param [Hash] opts the optional parameters
|
|
276
|
+
# @return [Format]
|
|
277
|
+
def create_format(format_create, opts = {})
|
|
278
|
+
data, _status_code, _headers = create_format_with_http_info(format_create, opts)
|
|
279
|
+
data
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Creates a format
|
|
283
|
+
# Creates a format.
|
|
284
|
+
# @param format_create [FormatCreate] Pass in format object
|
|
285
|
+
# @param [Hash] opts the optional parameters
|
|
286
|
+
# @return [Array<(Format, Integer, Hash)>] Format data, response status code and response headers
|
|
287
|
+
def create_format_with_http_info(format_create, opts = {})
|
|
288
|
+
if @api_client.config.debugging
|
|
289
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.create_format ...'
|
|
290
|
+
end
|
|
291
|
+
# verify the required parameter 'format_create' is set
|
|
292
|
+
if @api_client.config.client_side_validation && format_create.nil?
|
|
293
|
+
fail ArgumentError, "Missing the required parameter 'format_create' when calling RootServerApi.create_format"
|
|
294
|
+
end
|
|
295
|
+
# resource path
|
|
296
|
+
local_var_path = '/api/v1/formats'
|
|
297
|
+
|
|
298
|
+
# query parameters
|
|
299
|
+
query_params = opts[:query_params] || {}
|
|
300
|
+
|
|
301
|
+
# header parameters
|
|
302
|
+
header_params = opts[:header_params] || {}
|
|
303
|
+
# HTTP header 'Accept' (if needed)
|
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
305
|
+
# HTTP header 'Content-Type'
|
|
306
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
307
|
+
if !content_type.nil?
|
|
308
|
+
header_params['Content-Type'] = content_type
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# form parameters
|
|
312
|
+
form_params = opts[:form_params] || {}
|
|
313
|
+
|
|
314
|
+
# http body (model)
|
|
315
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(format_create)
|
|
316
|
+
|
|
317
|
+
# return_type
|
|
318
|
+
return_type = opts[:debug_return_type] || 'Format'
|
|
319
|
+
|
|
320
|
+
# auth_names
|
|
321
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
322
|
+
|
|
323
|
+
new_options = opts.merge(
|
|
324
|
+
:operation => :"RootServerApi.create_format",
|
|
325
|
+
:header_params => header_params,
|
|
326
|
+
:query_params => query_params,
|
|
327
|
+
:form_params => form_params,
|
|
328
|
+
:body => post_body,
|
|
329
|
+
:auth_names => auth_names,
|
|
330
|
+
:return_type => return_type
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
334
|
+
if @api_client.config.debugging
|
|
335
|
+
@api_client.config.logger.debug "API called: RootServerApi#create_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
336
|
+
end
|
|
337
|
+
return data, status_code, headers
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Creates a meeting
|
|
341
|
+
# Creates a meeting.
|
|
342
|
+
# @param meeting_create [MeetingCreate] Pass in meeting object
|
|
343
|
+
# @param [Hash] opts the optional parameters
|
|
344
|
+
# @return [Meeting]
|
|
345
|
+
def create_meeting(meeting_create, opts = {})
|
|
346
|
+
data, _status_code, _headers = create_meeting_with_http_info(meeting_create, opts)
|
|
347
|
+
data
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# Creates a meeting
|
|
351
|
+
# Creates a meeting.
|
|
352
|
+
# @param meeting_create [MeetingCreate] Pass in meeting object
|
|
353
|
+
# @param [Hash] opts the optional parameters
|
|
354
|
+
# @return [Array<(Meeting, Integer, Hash)>] Meeting data, response status code and response headers
|
|
355
|
+
def create_meeting_with_http_info(meeting_create, opts = {})
|
|
356
|
+
if @api_client.config.debugging
|
|
357
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.create_meeting ...'
|
|
358
|
+
end
|
|
359
|
+
# verify the required parameter 'meeting_create' is set
|
|
360
|
+
if @api_client.config.client_side_validation && meeting_create.nil?
|
|
361
|
+
fail ArgumentError, "Missing the required parameter 'meeting_create' when calling RootServerApi.create_meeting"
|
|
362
|
+
end
|
|
363
|
+
# resource path
|
|
364
|
+
local_var_path = '/api/v1/meetings'
|
|
365
|
+
|
|
366
|
+
# query parameters
|
|
367
|
+
query_params = opts[:query_params] || {}
|
|
368
|
+
|
|
369
|
+
# header parameters
|
|
370
|
+
header_params = opts[:header_params] || {}
|
|
371
|
+
# HTTP header 'Accept' (if needed)
|
|
372
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
373
|
+
# HTTP header 'Content-Type'
|
|
374
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
375
|
+
if !content_type.nil?
|
|
376
|
+
header_params['Content-Type'] = content_type
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# form parameters
|
|
380
|
+
form_params = opts[:form_params] || {}
|
|
381
|
+
|
|
382
|
+
# http body (model)
|
|
383
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(meeting_create)
|
|
384
|
+
|
|
385
|
+
# return_type
|
|
386
|
+
return_type = opts[:debug_return_type] || 'Meeting'
|
|
387
|
+
|
|
388
|
+
# auth_names
|
|
389
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
390
|
+
|
|
391
|
+
new_options = opts.merge(
|
|
392
|
+
:operation => :"RootServerApi.create_meeting",
|
|
393
|
+
:header_params => header_params,
|
|
394
|
+
:query_params => query_params,
|
|
395
|
+
:form_params => form_params,
|
|
396
|
+
:body => post_body,
|
|
397
|
+
:auth_names => auth_names,
|
|
398
|
+
:return_type => return_type
|
|
399
|
+
)
|
|
400
|
+
|
|
401
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
402
|
+
if @api_client.config.debugging
|
|
403
|
+
@api_client.config.logger.debug "API called: RootServerApi#create_meeting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
404
|
+
end
|
|
405
|
+
return data, status_code, headers
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Creates a service body
|
|
409
|
+
# Creates a service body.
|
|
410
|
+
# @param service_body_create [ServiceBodyCreate] Pass in service body object
|
|
411
|
+
# @param [Hash] opts the optional parameters
|
|
412
|
+
# @return [ServiceBody]
|
|
413
|
+
def create_service_body(service_body_create, opts = {})
|
|
414
|
+
data, _status_code, _headers = create_service_body_with_http_info(service_body_create, opts)
|
|
415
|
+
data
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# Creates a service body
|
|
419
|
+
# Creates a service body.
|
|
420
|
+
# @param service_body_create [ServiceBodyCreate] Pass in service body object
|
|
421
|
+
# @param [Hash] opts the optional parameters
|
|
422
|
+
# @return [Array<(ServiceBody, Integer, Hash)>] ServiceBody data, response status code and response headers
|
|
423
|
+
def create_service_body_with_http_info(service_body_create, opts = {})
|
|
424
|
+
if @api_client.config.debugging
|
|
425
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.create_service_body ...'
|
|
426
|
+
end
|
|
427
|
+
# verify the required parameter 'service_body_create' is set
|
|
428
|
+
if @api_client.config.client_side_validation && service_body_create.nil?
|
|
429
|
+
fail ArgumentError, "Missing the required parameter 'service_body_create' when calling RootServerApi.create_service_body"
|
|
430
|
+
end
|
|
431
|
+
# resource path
|
|
432
|
+
local_var_path = '/api/v1/servicebodies'
|
|
433
|
+
|
|
434
|
+
# query parameters
|
|
435
|
+
query_params = opts[:query_params] || {}
|
|
436
|
+
|
|
437
|
+
# header parameters
|
|
438
|
+
header_params = opts[:header_params] || {}
|
|
439
|
+
# HTTP header 'Accept' (if needed)
|
|
440
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
441
|
+
# HTTP header 'Content-Type'
|
|
442
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
443
|
+
if !content_type.nil?
|
|
444
|
+
header_params['Content-Type'] = content_type
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# form parameters
|
|
448
|
+
form_params = opts[:form_params] || {}
|
|
449
|
+
|
|
450
|
+
# http body (model)
|
|
451
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(service_body_create)
|
|
452
|
+
|
|
453
|
+
# return_type
|
|
454
|
+
return_type = opts[:debug_return_type] || 'ServiceBody'
|
|
455
|
+
|
|
456
|
+
# auth_names
|
|
457
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
458
|
+
|
|
459
|
+
new_options = opts.merge(
|
|
460
|
+
:operation => :"RootServerApi.create_service_body",
|
|
461
|
+
:header_params => header_params,
|
|
462
|
+
:query_params => query_params,
|
|
463
|
+
:form_params => form_params,
|
|
464
|
+
:body => post_body,
|
|
465
|
+
:auth_names => auth_names,
|
|
466
|
+
:return_type => return_type
|
|
467
|
+
)
|
|
468
|
+
|
|
469
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
470
|
+
if @api_client.config.debugging
|
|
471
|
+
@api_client.config.logger.debug "API called: RootServerApi#create_service_body\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
472
|
+
end
|
|
473
|
+
return data, status_code, headers
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# Creates a user
|
|
477
|
+
# Creates a user.
|
|
478
|
+
# @param user_create [UserCreate] Pass in user object
|
|
479
|
+
# @param [Hash] opts the optional parameters
|
|
480
|
+
# @return [User]
|
|
481
|
+
def create_user(user_create, opts = {})
|
|
482
|
+
data, _status_code, _headers = create_user_with_http_info(user_create, opts)
|
|
483
|
+
data
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
# Creates a user
|
|
487
|
+
# Creates a user.
|
|
488
|
+
# @param user_create [UserCreate] Pass in user object
|
|
489
|
+
# @param [Hash] opts the optional parameters
|
|
490
|
+
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
|
491
|
+
def create_user_with_http_info(user_create, opts = {})
|
|
492
|
+
if @api_client.config.debugging
|
|
493
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.create_user ...'
|
|
494
|
+
end
|
|
495
|
+
# verify the required parameter 'user_create' is set
|
|
496
|
+
if @api_client.config.client_side_validation && user_create.nil?
|
|
497
|
+
fail ArgumentError, "Missing the required parameter 'user_create' when calling RootServerApi.create_user"
|
|
498
|
+
end
|
|
499
|
+
# resource path
|
|
500
|
+
local_var_path = '/api/v1/users'
|
|
501
|
+
|
|
502
|
+
# query parameters
|
|
503
|
+
query_params = opts[:query_params] || {}
|
|
504
|
+
|
|
505
|
+
# header parameters
|
|
506
|
+
header_params = opts[:header_params] || {}
|
|
507
|
+
# HTTP header 'Accept' (if needed)
|
|
508
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
509
|
+
# HTTP header 'Content-Type'
|
|
510
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
511
|
+
if !content_type.nil?
|
|
512
|
+
header_params['Content-Type'] = content_type
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# form parameters
|
|
516
|
+
form_params = opts[:form_params] || {}
|
|
517
|
+
|
|
518
|
+
# http body (model)
|
|
519
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(user_create)
|
|
520
|
+
|
|
521
|
+
# return_type
|
|
522
|
+
return_type = opts[:debug_return_type] || 'User'
|
|
523
|
+
|
|
524
|
+
# auth_names
|
|
525
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
526
|
+
|
|
527
|
+
new_options = opts.merge(
|
|
528
|
+
:operation => :"RootServerApi.create_user",
|
|
529
|
+
:header_params => header_params,
|
|
530
|
+
:query_params => query_params,
|
|
531
|
+
:form_params => form_params,
|
|
532
|
+
:body => post_body,
|
|
533
|
+
:auth_names => auth_names,
|
|
534
|
+
:return_type => return_type
|
|
535
|
+
)
|
|
536
|
+
|
|
537
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
538
|
+
if @api_client.config.debugging
|
|
539
|
+
@api_client.config.logger.debug "API called: RootServerApi#create_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
540
|
+
end
|
|
541
|
+
return data, status_code, headers
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Deletes a format
|
|
545
|
+
# Deletes a format by id.
|
|
546
|
+
# @param format_id [Integer] ID of format
|
|
547
|
+
# @param [Hash] opts the optional parameters
|
|
548
|
+
# @return [nil]
|
|
549
|
+
def delete_format(format_id, opts = {})
|
|
550
|
+
delete_format_with_http_info(format_id, opts)
|
|
551
|
+
nil
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
# Deletes a format
|
|
555
|
+
# Deletes a format by id.
|
|
556
|
+
# @param format_id [Integer] ID of format
|
|
557
|
+
# @param [Hash] opts the optional parameters
|
|
558
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
559
|
+
def delete_format_with_http_info(format_id, opts = {})
|
|
560
|
+
if @api_client.config.debugging
|
|
561
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.delete_format ...'
|
|
562
|
+
end
|
|
563
|
+
# verify the required parameter 'format_id' is set
|
|
564
|
+
if @api_client.config.client_side_validation && format_id.nil?
|
|
565
|
+
fail ArgumentError, "Missing the required parameter 'format_id' when calling RootServerApi.delete_format"
|
|
566
|
+
end
|
|
567
|
+
# resource path
|
|
568
|
+
local_var_path = '/api/v1/formats/{formatId}'.sub('{' + 'formatId' + '}', CGI.escape(format_id.to_s))
|
|
569
|
+
|
|
570
|
+
# query parameters
|
|
571
|
+
query_params = opts[:query_params] || {}
|
|
572
|
+
|
|
573
|
+
# header parameters
|
|
574
|
+
header_params = opts[:header_params] || {}
|
|
575
|
+
# HTTP header 'Accept' (if needed)
|
|
576
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
577
|
+
|
|
578
|
+
# form parameters
|
|
579
|
+
form_params = opts[:form_params] || {}
|
|
580
|
+
|
|
581
|
+
# http body (model)
|
|
582
|
+
post_body = opts[:debug_body]
|
|
583
|
+
|
|
584
|
+
# return_type
|
|
585
|
+
return_type = opts[:debug_return_type]
|
|
586
|
+
|
|
587
|
+
# auth_names
|
|
588
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
589
|
+
|
|
590
|
+
new_options = opts.merge(
|
|
591
|
+
:operation => :"RootServerApi.delete_format",
|
|
592
|
+
:header_params => header_params,
|
|
593
|
+
:query_params => query_params,
|
|
594
|
+
:form_params => form_params,
|
|
595
|
+
:body => post_body,
|
|
596
|
+
:auth_names => auth_names,
|
|
597
|
+
:return_type => return_type
|
|
598
|
+
)
|
|
599
|
+
|
|
600
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
601
|
+
if @api_client.config.debugging
|
|
602
|
+
@api_client.config.logger.debug "API called: RootServerApi#delete_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
603
|
+
end
|
|
604
|
+
return data, status_code, headers
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
# Deletes a meeting
|
|
608
|
+
# Deletes a meeting by id.
|
|
609
|
+
# @param meeting_id [Integer] ID of meeting
|
|
610
|
+
# @param [Hash] opts the optional parameters
|
|
611
|
+
# @return [nil]
|
|
612
|
+
def delete_meeting(meeting_id, opts = {})
|
|
613
|
+
delete_meeting_with_http_info(meeting_id, opts)
|
|
614
|
+
nil
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# Deletes a meeting
|
|
618
|
+
# Deletes a meeting by id.
|
|
619
|
+
# @param meeting_id [Integer] ID of meeting
|
|
620
|
+
# @param [Hash] opts the optional parameters
|
|
621
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
622
|
+
def delete_meeting_with_http_info(meeting_id, opts = {})
|
|
623
|
+
if @api_client.config.debugging
|
|
624
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.delete_meeting ...'
|
|
625
|
+
end
|
|
626
|
+
# verify the required parameter 'meeting_id' is set
|
|
627
|
+
if @api_client.config.client_side_validation && meeting_id.nil?
|
|
628
|
+
fail ArgumentError, "Missing the required parameter 'meeting_id' when calling RootServerApi.delete_meeting"
|
|
629
|
+
end
|
|
630
|
+
# resource path
|
|
631
|
+
local_var_path = '/api/v1/meetings/{meetingId}'.sub('{' + 'meetingId' + '}', CGI.escape(meeting_id.to_s))
|
|
632
|
+
|
|
633
|
+
# query parameters
|
|
634
|
+
query_params = opts[:query_params] || {}
|
|
635
|
+
|
|
636
|
+
# header parameters
|
|
637
|
+
header_params = opts[:header_params] || {}
|
|
638
|
+
# HTTP header 'Accept' (if needed)
|
|
639
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
640
|
+
|
|
641
|
+
# form parameters
|
|
642
|
+
form_params = opts[:form_params] || {}
|
|
643
|
+
|
|
644
|
+
# http body (model)
|
|
645
|
+
post_body = opts[:debug_body]
|
|
646
|
+
|
|
647
|
+
# return_type
|
|
648
|
+
return_type = opts[:debug_return_type]
|
|
649
|
+
|
|
650
|
+
# auth_names
|
|
651
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
652
|
+
|
|
653
|
+
new_options = opts.merge(
|
|
654
|
+
:operation => :"RootServerApi.delete_meeting",
|
|
655
|
+
:header_params => header_params,
|
|
656
|
+
:query_params => query_params,
|
|
657
|
+
:form_params => form_params,
|
|
658
|
+
:body => post_body,
|
|
659
|
+
:auth_names => auth_names,
|
|
660
|
+
:return_type => return_type
|
|
661
|
+
)
|
|
662
|
+
|
|
663
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
664
|
+
if @api_client.config.debugging
|
|
665
|
+
@api_client.config.logger.debug "API called: RootServerApi#delete_meeting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
666
|
+
end
|
|
667
|
+
return data, status_code, headers
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
# Deletes a service body
|
|
671
|
+
# Deletes a service body by id.
|
|
672
|
+
# @param service_body_id [Integer] ID of service body
|
|
673
|
+
# @param [Hash] opts the optional parameters
|
|
674
|
+
# @return [nil]
|
|
675
|
+
def delete_service_body(service_body_id, opts = {})
|
|
676
|
+
delete_service_body_with_http_info(service_body_id, opts)
|
|
677
|
+
nil
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
# Deletes a service body
|
|
681
|
+
# Deletes a service body by id.
|
|
682
|
+
# @param service_body_id [Integer] ID of service body
|
|
683
|
+
# @param [Hash] opts the optional parameters
|
|
684
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
685
|
+
def delete_service_body_with_http_info(service_body_id, opts = {})
|
|
686
|
+
if @api_client.config.debugging
|
|
687
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.delete_service_body ...'
|
|
688
|
+
end
|
|
689
|
+
# verify the required parameter 'service_body_id' is set
|
|
690
|
+
if @api_client.config.client_side_validation && service_body_id.nil?
|
|
691
|
+
fail ArgumentError, "Missing the required parameter 'service_body_id' when calling RootServerApi.delete_service_body"
|
|
692
|
+
end
|
|
693
|
+
# resource path
|
|
694
|
+
local_var_path = '/api/v1/servicebodies/{serviceBodyId}'.sub('{' + 'serviceBodyId' + '}', CGI.escape(service_body_id.to_s))
|
|
695
|
+
|
|
696
|
+
# query parameters
|
|
697
|
+
query_params = opts[:query_params] || {}
|
|
698
|
+
|
|
699
|
+
# header parameters
|
|
700
|
+
header_params = opts[:header_params] || {}
|
|
701
|
+
# HTTP header 'Accept' (if needed)
|
|
702
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
703
|
+
|
|
704
|
+
# form parameters
|
|
705
|
+
form_params = opts[:form_params] || {}
|
|
706
|
+
|
|
707
|
+
# http body (model)
|
|
708
|
+
post_body = opts[:debug_body]
|
|
709
|
+
|
|
710
|
+
# return_type
|
|
711
|
+
return_type = opts[:debug_return_type]
|
|
712
|
+
|
|
713
|
+
# auth_names
|
|
714
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
715
|
+
|
|
716
|
+
new_options = opts.merge(
|
|
717
|
+
:operation => :"RootServerApi.delete_service_body",
|
|
718
|
+
:header_params => header_params,
|
|
719
|
+
:query_params => query_params,
|
|
720
|
+
:form_params => form_params,
|
|
721
|
+
:body => post_body,
|
|
722
|
+
:auth_names => auth_names,
|
|
723
|
+
:return_type => return_type
|
|
724
|
+
)
|
|
725
|
+
|
|
726
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
727
|
+
if @api_client.config.debugging
|
|
728
|
+
@api_client.config.logger.debug "API called: RootServerApi#delete_service_body\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
729
|
+
end
|
|
730
|
+
return data, status_code, headers
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# Deletes a user
|
|
734
|
+
# Deletes a user by id
|
|
735
|
+
# @param user_id [Integer] ID of user
|
|
736
|
+
# @param [Hash] opts the optional parameters
|
|
737
|
+
# @return [nil]
|
|
738
|
+
def delete_user(user_id, opts = {})
|
|
739
|
+
delete_user_with_http_info(user_id, opts)
|
|
740
|
+
nil
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
# Deletes a user
|
|
744
|
+
# Deletes a user by id
|
|
745
|
+
# @param user_id [Integer] ID of user
|
|
746
|
+
# @param [Hash] opts the optional parameters
|
|
747
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
748
|
+
def delete_user_with_http_info(user_id, opts = {})
|
|
749
|
+
if @api_client.config.debugging
|
|
750
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.delete_user ...'
|
|
751
|
+
end
|
|
752
|
+
# verify the required parameter 'user_id' is set
|
|
753
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
754
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling RootServerApi.delete_user"
|
|
755
|
+
end
|
|
756
|
+
# resource path
|
|
757
|
+
local_var_path = '/api/v1/users/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
|
758
|
+
|
|
759
|
+
# query parameters
|
|
760
|
+
query_params = opts[:query_params] || {}
|
|
761
|
+
|
|
762
|
+
# header parameters
|
|
763
|
+
header_params = opts[:header_params] || {}
|
|
764
|
+
# HTTP header 'Accept' (if needed)
|
|
765
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
766
|
+
|
|
767
|
+
# form parameters
|
|
768
|
+
form_params = opts[:form_params] || {}
|
|
769
|
+
|
|
770
|
+
# http body (model)
|
|
771
|
+
post_body = opts[:debug_body]
|
|
772
|
+
|
|
773
|
+
# return_type
|
|
774
|
+
return_type = opts[:debug_return_type]
|
|
775
|
+
|
|
776
|
+
# auth_names
|
|
777
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
778
|
+
|
|
779
|
+
new_options = opts.merge(
|
|
780
|
+
:operation => :"RootServerApi.delete_user",
|
|
781
|
+
:header_params => header_params,
|
|
782
|
+
:query_params => query_params,
|
|
783
|
+
:form_params => form_params,
|
|
784
|
+
:body => post_body,
|
|
785
|
+
:auth_names => auth_names,
|
|
786
|
+
:return_type => return_type
|
|
787
|
+
)
|
|
788
|
+
|
|
789
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
790
|
+
if @api_client.config.debugging
|
|
791
|
+
@api_client.config.logger.debug "API called: RootServerApi#delete_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
792
|
+
end
|
|
793
|
+
return data, status_code, headers
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
# Retrieves a format
|
|
797
|
+
# Retrieve a format
|
|
798
|
+
# @param format_id [Integer] ID of format
|
|
799
|
+
# @param [Hash] opts the optional parameters
|
|
800
|
+
# @return [Format]
|
|
801
|
+
def get_format(format_id, opts = {})
|
|
802
|
+
data, _status_code, _headers = get_format_with_http_info(format_id, opts)
|
|
803
|
+
data
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
# Retrieves a format
|
|
807
|
+
# Retrieve a format
|
|
808
|
+
# @param format_id [Integer] ID of format
|
|
809
|
+
# @param [Hash] opts the optional parameters
|
|
810
|
+
# @return [Array<(Format, Integer, Hash)>] Format data, response status code and response headers
|
|
811
|
+
def get_format_with_http_info(format_id, opts = {})
|
|
812
|
+
if @api_client.config.debugging
|
|
813
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.get_format ...'
|
|
814
|
+
end
|
|
815
|
+
# verify the required parameter 'format_id' is set
|
|
816
|
+
if @api_client.config.client_side_validation && format_id.nil?
|
|
817
|
+
fail ArgumentError, "Missing the required parameter 'format_id' when calling RootServerApi.get_format"
|
|
818
|
+
end
|
|
819
|
+
# resource path
|
|
820
|
+
local_var_path = '/api/v1/formats/{formatId}'.sub('{' + 'formatId' + '}', CGI.escape(format_id.to_s))
|
|
821
|
+
|
|
822
|
+
# query parameters
|
|
823
|
+
query_params = opts[:query_params] || {}
|
|
824
|
+
|
|
825
|
+
# header parameters
|
|
826
|
+
header_params = opts[:header_params] || {}
|
|
827
|
+
# HTTP header 'Accept' (if needed)
|
|
828
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
829
|
+
|
|
830
|
+
# form parameters
|
|
831
|
+
form_params = opts[:form_params] || {}
|
|
832
|
+
|
|
833
|
+
# http body (model)
|
|
834
|
+
post_body = opts[:debug_body]
|
|
835
|
+
|
|
836
|
+
# return_type
|
|
837
|
+
return_type = opts[:debug_return_type] || 'Format'
|
|
838
|
+
|
|
839
|
+
# auth_names
|
|
840
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
841
|
+
|
|
842
|
+
new_options = opts.merge(
|
|
843
|
+
:operation => :"RootServerApi.get_format",
|
|
844
|
+
:header_params => header_params,
|
|
845
|
+
:query_params => query_params,
|
|
846
|
+
:form_params => form_params,
|
|
847
|
+
:body => post_body,
|
|
848
|
+
:auth_names => auth_names,
|
|
849
|
+
:return_type => return_type
|
|
850
|
+
)
|
|
851
|
+
|
|
852
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
853
|
+
if @api_client.config.debugging
|
|
854
|
+
@api_client.config.logger.debug "API called: RootServerApi#get_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
855
|
+
end
|
|
856
|
+
return data, status_code, headers
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# Retrieves formats
|
|
860
|
+
# Retrieve formats
|
|
861
|
+
# @param [Hash] opts the optional parameters
|
|
862
|
+
# @return [Array<Format>]
|
|
863
|
+
def get_formats(opts = {})
|
|
864
|
+
data, _status_code, _headers = get_formats_with_http_info(opts)
|
|
865
|
+
data
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
# Retrieves formats
|
|
869
|
+
# Retrieve formats
|
|
870
|
+
# @param [Hash] opts the optional parameters
|
|
871
|
+
# @return [Array<(Array<Format>, Integer, Hash)>] Array<Format> data, response status code and response headers
|
|
872
|
+
def get_formats_with_http_info(opts = {})
|
|
873
|
+
if @api_client.config.debugging
|
|
874
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.get_formats ...'
|
|
875
|
+
end
|
|
876
|
+
# resource path
|
|
877
|
+
local_var_path = '/api/v1/formats'
|
|
878
|
+
|
|
879
|
+
# query parameters
|
|
880
|
+
query_params = opts[:query_params] || {}
|
|
881
|
+
|
|
882
|
+
# header parameters
|
|
883
|
+
header_params = opts[:header_params] || {}
|
|
884
|
+
# HTTP header 'Accept' (if needed)
|
|
885
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
886
|
+
|
|
887
|
+
# form parameters
|
|
888
|
+
form_params = opts[:form_params] || {}
|
|
889
|
+
|
|
890
|
+
# http body (model)
|
|
891
|
+
post_body = opts[:debug_body]
|
|
892
|
+
|
|
893
|
+
# return_type
|
|
894
|
+
return_type = opts[:debug_return_type] || 'Array<Format>'
|
|
895
|
+
|
|
896
|
+
# auth_names
|
|
897
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
898
|
+
|
|
899
|
+
new_options = opts.merge(
|
|
900
|
+
:operation => :"RootServerApi.get_formats",
|
|
901
|
+
:header_params => header_params,
|
|
902
|
+
:query_params => query_params,
|
|
903
|
+
:form_params => form_params,
|
|
904
|
+
:body => post_body,
|
|
905
|
+
:auth_names => auth_names,
|
|
906
|
+
:return_type => return_type
|
|
907
|
+
)
|
|
908
|
+
|
|
909
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
910
|
+
if @api_client.config.debugging
|
|
911
|
+
@api_client.config.logger.debug "API called: RootServerApi#get_formats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
912
|
+
end
|
|
913
|
+
return data, status_code, headers
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
# Retrieves a meeting
|
|
917
|
+
# Retrieve a meeting.
|
|
918
|
+
# @param meeting_id [Integer] ID of meeting
|
|
919
|
+
# @param [Hash] opts the optional parameters
|
|
920
|
+
# @return [Meeting]
|
|
921
|
+
def get_meeting(meeting_id, opts = {})
|
|
922
|
+
data, _status_code, _headers = get_meeting_with_http_info(meeting_id, opts)
|
|
923
|
+
data
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
# Retrieves a meeting
|
|
927
|
+
# Retrieve a meeting.
|
|
928
|
+
# @param meeting_id [Integer] ID of meeting
|
|
929
|
+
# @param [Hash] opts the optional parameters
|
|
930
|
+
# @return [Array<(Meeting, Integer, Hash)>] Meeting data, response status code and response headers
|
|
931
|
+
def get_meeting_with_http_info(meeting_id, opts = {})
|
|
932
|
+
if @api_client.config.debugging
|
|
933
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.get_meeting ...'
|
|
934
|
+
end
|
|
935
|
+
# verify the required parameter 'meeting_id' is set
|
|
936
|
+
if @api_client.config.client_side_validation && meeting_id.nil?
|
|
937
|
+
fail ArgumentError, "Missing the required parameter 'meeting_id' when calling RootServerApi.get_meeting"
|
|
938
|
+
end
|
|
939
|
+
# resource path
|
|
940
|
+
local_var_path = '/api/v1/meetings/{meetingId}'.sub('{' + 'meetingId' + '}', CGI.escape(meeting_id.to_s))
|
|
941
|
+
|
|
942
|
+
# query parameters
|
|
943
|
+
query_params = opts[:query_params] || {}
|
|
944
|
+
|
|
945
|
+
# header parameters
|
|
946
|
+
header_params = opts[:header_params] || {}
|
|
947
|
+
# HTTP header 'Accept' (if needed)
|
|
948
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
949
|
+
|
|
950
|
+
# form parameters
|
|
951
|
+
form_params = opts[:form_params] || {}
|
|
952
|
+
|
|
953
|
+
# http body (model)
|
|
954
|
+
post_body = opts[:debug_body]
|
|
955
|
+
|
|
956
|
+
# return_type
|
|
957
|
+
return_type = opts[:debug_return_type] || 'Meeting'
|
|
958
|
+
|
|
959
|
+
# auth_names
|
|
960
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
961
|
+
|
|
962
|
+
new_options = opts.merge(
|
|
963
|
+
:operation => :"RootServerApi.get_meeting",
|
|
964
|
+
:header_params => header_params,
|
|
965
|
+
:query_params => query_params,
|
|
966
|
+
:form_params => form_params,
|
|
967
|
+
:body => post_body,
|
|
968
|
+
:auth_names => auth_names,
|
|
969
|
+
:return_type => return_type
|
|
970
|
+
)
|
|
971
|
+
|
|
972
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
973
|
+
if @api_client.config.debugging
|
|
974
|
+
@api_client.config.logger.debug "API called: RootServerApi#get_meeting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
975
|
+
end
|
|
976
|
+
return data, status_code, headers
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
# Retrieves meetings
|
|
980
|
+
# Retrieve meetings for authenticated user.
|
|
981
|
+
# @param [Hash] opts the optional parameters
|
|
982
|
+
# @option opts [String] :meeting_ids comma delimited meeting ids
|
|
983
|
+
# @option opts [String] :days comma delimited day ids between 0-6
|
|
984
|
+
# @option opts [String] :service_body_ids comma delimited service body ids
|
|
985
|
+
# @option opts [String] :search_string string
|
|
986
|
+
# @return [Array<Meeting>]
|
|
987
|
+
def get_meetings(opts = {})
|
|
988
|
+
data, _status_code, _headers = get_meetings_with_http_info(opts)
|
|
989
|
+
data
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
# Retrieves meetings
|
|
993
|
+
# Retrieve meetings for authenticated user.
|
|
994
|
+
# @param [Hash] opts the optional parameters
|
|
995
|
+
# @option opts [String] :meeting_ids comma delimited meeting ids
|
|
996
|
+
# @option opts [String] :days comma delimited day ids between 0-6
|
|
997
|
+
# @option opts [String] :service_body_ids comma delimited service body ids
|
|
998
|
+
# @option opts [String] :search_string string
|
|
999
|
+
# @return [Array<(Array<Meeting>, Integer, Hash)>] Array<Meeting> data, response status code and response headers
|
|
1000
|
+
def get_meetings_with_http_info(opts = {})
|
|
1001
|
+
if @api_client.config.debugging
|
|
1002
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.get_meetings ...'
|
|
1003
|
+
end
|
|
1004
|
+
# resource path
|
|
1005
|
+
local_var_path = '/api/v1/meetings'
|
|
1006
|
+
|
|
1007
|
+
# query parameters
|
|
1008
|
+
query_params = opts[:query_params] || {}
|
|
1009
|
+
query_params[:'meetingIds'] = opts[:'meeting_ids'] if !opts[:'meeting_ids'].nil?
|
|
1010
|
+
query_params[:'days'] = opts[:'days'] if !opts[:'days'].nil?
|
|
1011
|
+
query_params[:'serviceBodyIds'] = opts[:'service_body_ids'] if !opts[:'service_body_ids'].nil?
|
|
1012
|
+
query_params[:'searchString'] = opts[:'search_string'] if !opts[:'search_string'].nil?
|
|
1013
|
+
|
|
1014
|
+
# header parameters
|
|
1015
|
+
header_params = opts[:header_params] || {}
|
|
1016
|
+
# HTTP header 'Accept' (if needed)
|
|
1017
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1018
|
+
|
|
1019
|
+
# form parameters
|
|
1020
|
+
form_params = opts[:form_params] || {}
|
|
1021
|
+
|
|
1022
|
+
# http body (model)
|
|
1023
|
+
post_body = opts[:debug_body]
|
|
1024
|
+
|
|
1025
|
+
# return_type
|
|
1026
|
+
return_type = opts[:debug_return_type] || 'Array<Meeting>'
|
|
1027
|
+
|
|
1028
|
+
# auth_names
|
|
1029
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1030
|
+
|
|
1031
|
+
new_options = opts.merge(
|
|
1032
|
+
:operation => :"RootServerApi.get_meetings",
|
|
1033
|
+
:header_params => header_params,
|
|
1034
|
+
:query_params => query_params,
|
|
1035
|
+
:form_params => form_params,
|
|
1036
|
+
:body => post_body,
|
|
1037
|
+
:auth_names => auth_names,
|
|
1038
|
+
:return_type => return_type
|
|
1039
|
+
)
|
|
1040
|
+
|
|
1041
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1042
|
+
if @api_client.config.debugging
|
|
1043
|
+
@api_client.config.logger.debug "API called: RootServerApi#get_meetings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1044
|
+
end
|
|
1045
|
+
return data, status_code, headers
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
# Retrieves service bodies
|
|
1049
|
+
# Retrieve service bodies for authenticated user.
|
|
1050
|
+
# @param [Hash] opts the optional parameters
|
|
1051
|
+
# @return [Array<ServiceBody>]
|
|
1052
|
+
def get_service_bodies(opts = {})
|
|
1053
|
+
data, _status_code, _headers = get_service_bodies_with_http_info(opts)
|
|
1054
|
+
data
|
|
1055
|
+
end
|
|
1056
|
+
|
|
1057
|
+
# Retrieves service bodies
|
|
1058
|
+
# Retrieve service bodies for authenticated user.
|
|
1059
|
+
# @param [Hash] opts the optional parameters
|
|
1060
|
+
# @return [Array<(Array<ServiceBody>, Integer, Hash)>] Array<ServiceBody> data, response status code and response headers
|
|
1061
|
+
def get_service_bodies_with_http_info(opts = {})
|
|
1062
|
+
if @api_client.config.debugging
|
|
1063
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.get_service_bodies ...'
|
|
1064
|
+
end
|
|
1065
|
+
# resource path
|
|
1066
|
+
local_var_path = '/api/v1/servicebodies'
|
|
1067
|
+
|
|
1068
|
+
# query parameters
|
|
1069
|
+
query_params = opts[:query_params] || {}
|
|
1070
|
+
|
|
1071
|
+
# header parameters
|
|
1072
|
+
header_params = opts[:header_params] || {}
|
|
1073
|
+
# HTTP header 'Accept' (if needed)
|
|
1074
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1075
|
+
|
|
1076
|
+
# form parameters
|
|
1077
|
+
form_params = opts[:form_params] || {}
|
|
1078
|
+
|
|
1079
|
+
# http body (model)
|
|
1080
|
+
post_body = opts[:debug_body]
|
|
1081
|
+
|
|
1082
|
+
# return_type
|
|
1083
|
+
return_type = opts[:debug_return_type] || 'Array<ServiceBody>'
|
|
1084
|
+
|
|
1085
|
+
# auth_names
|
|
1086
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1087
|
+
|
|
1088
|
+
new_options = opts.merge(
|
|
1089
|
+
:operation => :"RootServerApi.get_service_bodies",
|
|
1090
|
+
:header_params => header_params,
|
|
1091
|
+
:query_params => query_params,
|
|
1092
|
+
:form_params => form_params,
|
|
1093
|
+
:body => post_body,
|
|
1094
|
+
:auth_names => auth_names,
|
|
1095
|
+
:return_type => return_type
|
|
1096
|
+
)
|
|
1097
|
+
|
|
1098
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1099
|
+
if @api_client.config.debugging
|
|
1100
|
+
@api_client.config.logger.debug "API called: RootServerApi#get_service_bodies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1101
|
+
end
|
|
1102
|
+
return data, status_code, headers
|
|
1103
|
+
end
|
|
1104
|
+
|
|
1105
|
+
# Retrieves a service body
|
|
1106
|
+
# Retrieve a single service body by id.
|
|
1107
|
+
# @param service_body_id [Integer] ID of service body
|
|
1108
|
+
# @param [Hash] opts the optional parameters
|
|
1109
|
+
# @return [ServiceBody]
|
|
1110
|
+
def get_service_body(service_body_id, opts = {})
|
|
1111
|
+
data, _status_code, _headers = get_service_body_with_http_info(service_body_id, opts)
|
|
1112
|
+
data
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
# Retrieves a service body
|
|
1116
|
+
# Retrieve a single service body by id.
|
|
1117
|
+
# @param service_body_id [Integer] ID of service body
|
|
1118
|
+
# @param [Hash] opts the optional parameters
|
|
1119
|
+
# @return [Array<(ServiceBody, Integer, Hash)>] ServiceBody data, response status code and response headers
|
|
1120
|
+
def get_service_body_with_http_info(service_body_id, opts = {})
|
|
1121
|
+
if @api_client.config.debugging
|
|
1122
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.get_service_body ...'
|
|
1123
|
+
end
|
|
1124
|
+
# verify the required parameter 'service_body_id' is set
|
|
1125
|
+
if @api_client.config.client_side_validation && service_body_id.nil?
|
|
1126
|
+
fail ArgumentError, "Missing the required parameter 'service_body_id' when calling RootServerApi.get_service_body"
|
|
1127
|
+
end
|
|
1128
|
+
# resource path
|
|
1129
|
+
local_var_path = '/api/v1/servicebodies/{serviceBodyId}'.sub('{' + 'serviceBodyId' + '}', CGI.escape(service_body_id.to_s))
|
|
1130
|
+
|
|
1131
|
+
# query parameters
|
|
1132
|
+
query_params = opts[:query_params] || {}
|
|
1133
|
+
|
|
1134
|
+
# header parameters
|
|
1135
|
+
header_params = opts[:header_params] || {}
|
|
1136
|
+
# HTTP header 'Accept' (if needed)
|
|
1137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1138
|
+
|
|
1139
|
+
# form parameters
|
|
1140
|
+
form_params = opts[:form_params] || {}
|
|
1141
|
+
|
|
1142
|
+
# http body (model)
|
|
1143
|
+
post_body = opts[:debug_body]
|
|
1144
|
+
|
|
1145
|
+
# return_type
|
|
1146
|
+
return_type = opts[:debug_return_type] || 'ServiceBody'
|
|
1147
|
+
|
|
1148
|
+
# auth_names
|
|
1149
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1150
|
+
|
|
1151
|
+
new_options = opts.merge(
|
|
1152
|
+
:operation => :"RootServerApi.get_service_body",
|
|
1153
|
+
:header_params => header_params,
|
|
1154
|
+
:query_params => query_params,
|
|
1155
|
+
:form_params => form_params,
|
|
1156
|
+
:body => post_body,
|
|
1157
|
+
:auth_names => auth_names,
|
|
1158
|
+
:return_type => return_type
|
|
1159
|
+
)
|
|
1160
|
+
|
|
1161
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1162
|
+
if @api_client.config.debugging
|
|
1163
|
+
@api_client.config.logger.debug "API called: RootServerApi#get_service_body\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1164
|
+
end
|
|
1165
|
+
return data, status_code, headers
|
|
1166
|
+
end
|
|
1167
|
+
|
|
1168
|
+
# Retrieves a single user
|
|
1169
|
+
# Retrieve single user.
|
|
1170
|
+
# @param user_id [Integer] ID of user
|
|
1171
|
+
# @param [Hash] opts the optional parameters
|
|
1172
|
+
# @return [User]
|
|
1173
|
+
def get_user(user_id, opts = {})
|
|
1174
|
+
data, _status_code, _headers = get_user_with_http_info(user_id, opts)
|
|
1175
|
+
data
|
|
1176
|
+
end
|
|
1177
|
+
|
|
1178
|
+
# Retrieves a single user
|
|
1179
|
+
# Retrieve single user.
|
|
1180
|
+
# @param user_id [Integer] ID of user
|
|
1181
|
+
# @param [Hash] opts the optional parameters
|
|
1182
|
+
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
|
1183
|
+
def get_user_with_http_info(user_id, opts = {})
|
|
1184
|
+
if @api_client.config.debugging
|
|
1185
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.get_user ...'
|
|
1186
|
+
end
|
|
1187
|
+
# verify the required parameter 'user_id' is set
|
|
1188
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
1189
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling RootServerApi.get_user"
|
|
1190
|
+
end
|
|
1191
|
+
# resource path
|
|
1192
|
+
local_var_path = '/api/v1/users/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
|
1193
|
+
|
|
1194
|
+
# query parameters
|
|
1195
|
+
query_params = opts[:query_params] || {}
|
|
1196
|
+
|
|
1197
|
+
# header parameters
|
|
1198
|
+
header_params = opts[:header_params] || {}
|
|
1199
|
+
# HTTP header 'Accept' (if needed)
|
|
1200
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1201
|
+
|
|
1202
|
+
# form parameters
|
|
1203
|
+
form_params = opts[:form_params] || {}
|
|
1204
|
+
|
|
1205
|
+
# http body (model)
|
|
1206
|
+
post_body = opts[:debug_body]
|
|
1207
|
+
|
|
1208
|
+
# return_type
|
|
1209
|
+
return_type = opts[:debug_return_type] || 'User'
|
|
1210
|
+
|
|
1211
|
+
# auth_names
|
|
1212
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1213
|
+
|
|
1214
|
+
new_options = opts.merge(
|
|
1215
|
+
:operation => :"RootServerApi.get_user",
|
|
1216
|
+
:header_params => header_params,
|
|
1217
|
+
:query_params => query_params,
|
|
1218
|
+
:form_params => form_params,
|
|
1219
|
+
:body => post_body,
|
|
1220
|
+
:auth_names => auth_names,
|
|
1221
|
+
:return_type => return_type
|
|
1222
|
+
)
|
|
1223
|
+
|
|
1224
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1225
|
+
if @api_client.config.debugging
|
|
1226
|
+
@api_client.config.logger.debug "API called: RootServerApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1227
|
+
end
|
|
1228
|
+
return data, status_code, headers
|
|
1229
|
+
end
|
|
1230
|
+
|
|
1231
|
+
# Retrieves users
|
|
1232
|
+
# Retrieve users for authenticated user.
|
|
1233
|
+
# @param [Hash] opts the optional parameters
|
|
1234
|
+
# @return [Array<User>]
|
|
1235
|
+
def get_users(opts = {})
|
|
1236
|
+
data, _status_code, _headers = get_users_with_http_info(opts)
|
|
1237
|
+
data
|
|
1238
|
+
end
|
|
1239
|
+
|
|
1240
|
+
# Retrieves users
|
|
1241
|
+
# Retrieve users for authenticated user.
|
|
1242
|
+
# @param [Hash] opts the optional parameters
|
|
1243
|
+
# @return [Array<(Array<User>, Integer, Hash)>] Array<User> data, response status code and response headers
|
|
1244
|
+
def get_users_with_http_info(opts = {})
|
|
1245
|
+
if @api_client.config.debugging
|
|
1246
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.get_users ...'
|
|
1247
|
+
end
|
|
1248
|
+
# resource path
|
|
1249
|
+
local_var_path = '/api/v1/users'
|
|
1250
|
+
|
|
1251
|
+
# query parameters
|
|
1252
|
+
query_params = opts[:query_params] || {}
|
|
1253
|
+
|
|
1254
|
+
# header parameters
|
|
1255
|
+
header_params = opts[:header_params] || {}
|
|
1256
|
+
# HTTP header 'Accept' (if needed)
|
|
1257
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1258
|
+
|
|
1259
|
+
# form parameters
|
|
1260
|
+
form_params = opts[:form_params] || {}
|
|
1261
|
+
|
|
1262
|
+
# http body (model)
|
|
1263
|
+
post_body = opts[:debug_body]
|
|
1264
|
+
|
|
1265
|
+
# return_type
|
|
1266
|
+
return_type = opts[:debug_return_type] || 'Array<User>'
|
|
1267
|
+
|
|
1268
|
+
# auth_names
|
|
1269
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1270
|
+
|
|
1271
|
+
new_options = opts.merge(
|
|
1272
|
+
:operation => :"RootServerApi.get_users",
|
|
1273
|
+
:header_params => header_params,
|
|
1274
|
+
:query_params => query_params,
|
|
1275
|
+
:form_params => form_params,
|
|
1276
|
+
:body => post_body,
|
|
1277
|
+
:auth_names => auth_names,
|
|
1278
|
+
:return_type => return_type
|
|
1279
|
+
)
|
|
1280
|
+
|
|
1281
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1282
|
+
if @api_client.config.debugging
|
|
1283
|
+
@api_client.config.logger.debug "API called: RootServerApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1284
|
+
end
|
|
1285
|
+
return data, status_code, headers
|
|
1286
|
+
end
|
|
1287
|
+
|
|
1288
|
+
# Patches a user
|
|
1289
|
+
# Patches a user by id.
|
|
1290
|
+
# @param user_id [Integer] ID of user
|
|
1291
|
+
# @param user_partial_update [UserPartialUpdate] Pass in fields you want to update.
|
|
1292
|
+
# @param [Hash] opts the optional parameters
|
|
1293
|
+
# @return [nil]
|
|
1294
|
+
def partial_update_user(user_id, user_partial_update, opts = {})
|
|
1295
|
+
partial_update_user_with_http_info(user_id, user_partial_update, opts)
|
|
1296
|
+
nil
|
|
1297
|
+
end
|
|
1298
|
+
|
|
1299
|
+
# Patches a user
|
|
1300
|
+
# Patches a user by id.
|
|
1301
|
+
# @param user_id [Integer] ID of user
|
|
1302
|
+
# @param user_partial_update [UserPartialUpdate] Pass in fields you want to update.
|
|
1303
|
+
# @param [Hash] opts the optional parameters
|
|
1304
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1305
|
+
def partial_update_user_with_http_info(user_id, user_partial_update, opts = {})
|
|
1306
|
+
if @api_client.config.debugging
|
|
1307
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.partial_update_user ...'
|
|
1308
|
+
end
|
|
1309
|
+
# verify the required parameter 'user_id' is set
|
|
1310
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
1311
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling RootServerApi.partial_update_user"
|
|
1312
|
+
end
|
|
1313
|
+
# verify the required parameter 'user_partial_update' is set
|
|
1314
|
+
if @api_client.config.client_side_validation && user_partial_update.nil?
|
|
1315
|
+
fail ArgumentError, "Missing the required parameter 'user_partial_update' when calling RootServerApi.partial_update_user"
|
|
1316
|
+
end
|
|
1317
|
+
# resource path
|
|
1318
|
+
local_var_path = '/api/v1/users/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
|
1319
|
+
|
|
1320
|
+
# query parameters
|
|
1321
|
+
query_params = opts[:query_params] || {}
|
|
1322
|
+
|
|
1323
|
+
# header parameters
|
|
1324
|
+
header_params = opts[:header_params] || {}
|
|
1325
|
+
# HTTP header 'Accept' (if needed)
|
|
1326
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1327
|
+
# HTTP header 'Content-Type'
|
|
1328
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1329
|
+
if !content_type.nil?
|
|
1330
|
+
header_params['Content-Type'] = content_type
|
|
1331
|
+
end
|
|
1332
|
+
|
|
1333
|
+
# form parameters
|
|
1334
|
+
form_params = opts[:form_params] || {}
|
|
1335
|
+
|
|
1336
|
+
# http body (model)
|
|
1337
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(user_partial_update)
|
|
1338
|
+
|
|
1339
|
+
# return_type
|
|
1340
|
+
return_type = opts[:debug_return_type]
|
|
1341
|
+
|
|
1342
|
+
# auth_names
|
|
1343
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1344
|
+
|
|
1345
|
+
new_options = opts.merge(
|
|
1346
|
+
:operation => :"RootServerApi.partial_update_user",
|
|
1347
|
+
:header_params => header_params,
|
|
1348
|
+
:query_params => query_params,
|
|
1349
|
+
:form_params => form_params,
|
|
1350
|
+
:body => post_body,
|
|
1351
|
+
:auth_names => auth_names,
|
|
1352
|
+
:return_type => return_type
|
|
1353
|
+
)
|
|
1354
|
+
|
|
1355
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1356
|
+
if @api_client.config.debugging
|
|
1357
|
+
@api_client.config.logger.debug "API called: RootServerApi#partial_update_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1358
|
+
end
|
|
1359
|
+
return data, status_code, headers
|
|
1360
|
+
end
|
|
1361
|
+
|
|
1362
|
+
# Patches a format
|
|
1363
|
+
# Patches a single format by id.
|
|
1364
|
+
# @param format_id [Integer] ID of format
|
|
1365
|
+
# @param format_partial_update [FormatPartialUpdate] Pass in fields you want to update.
|
|
1366
|
+
# @param [Hash] opts the optional parameters
|
|
1367
|
+
# @return [nil]
|
|
1368
|
+
def patch_format(format_id, format_partial_update, opts = {})
|
|
1369
|
+
patch_format_with_http_info(format_id, format_partial_update, opts)
|
|
1370
|
+
nil
|
|
1371
|
+
end
|
|
1372
|
+
|
|
1373
|
+
# Patches a format
|
|
1374
|
+
# Patches a single format by id.
|
|
1375
|
+
# @param format_id [Integer] ID of format
|
|
1376
|
+
# @param format_partial_update [FormatPartialUpdate] Pass in fields you want to update.
|
|
1377
|
+
# @param [Hash] opts the optional parameters
|
|
1378
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1379
|
+
def patch_format_with_http_info(format_id, format_partial_update, opts = {})
|
|
1380
|
+
if @api_client.config.debugging
|
|
1381
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.patch_format ...'
|
|
1382
|
+
end
|
|
1383
|
+
# verify the required parameter 'format_id' is set
|
|
1384
|
+
if @api_client.config.client_side_validation && format_id.nil?
|
|
1385
|
+
fail ArgumentError, "Missing the required parameter 'format_id' when calling RootServerApi.patch_format"
|
|
1386
|
+
end
|
|
1387
|
+
# verify the required parameter 'format_partial_update' is set
|
|
1388
|
+
if @api_client.config.client_side_validation && format_partial_update.nil?
|
|
1389
|
+
fail ArgumentError, "Missing the required parameter 'format_partial_update' when calling RootServerApi.patch_format"
|
|
1390
|
+
end
|
|
1391
|
+
# resource path
|
|
1392
|
+
local_var_path = '/api/v1/formats/{formatId}'.sub('{' + 'formatId' + '}', CGI.escape(format_id.to_s))
|
|
1393
|
+
|
|
1394
|
+
# query parameters
|
|
1395
|
+
query_params = opts[:query_params] || {}
|
|
1396
|
+
|
|
1397
|
+
# header parameters
|
|
1398
|
+
header_params = opts[:header_params] || {}
|
|
1399
|
+
# HTTP header 'Accept' (if needed)
|
|
1400
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1401
|
+
# HTTP header 'Content-Type'
|
|
1402
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1403
|
+
if !content_type.nil?
|
|
1404
|
+
header_params['Content-Type'] = content_type
|
|
1405
|
+
end
|
|
1406
|
+
|
|
1407
|
+
# form parameters
|
|
1408
|
+
form_params = opts[:form_params] || {}
|
|
1409
|
+
|
|
1410
|
+
# http body (model)
|
|
1411
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(format_partial_update)
|
|
1412
|
+
|
|
1413
|
+
# return_type
|
|
1414
|
+
return_type = opts[:debug_return_type]
|
|
1415
|
+
|
|
1416
|
+
# auth_names
|
|
1417
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1418
|
+
|
|
1419
|
+
new_options = opts.merge(
|
|
1420
|
+
:operation => :"RootServerApi.patch_format",
|
|
1421
|
+
:header_params => header_params,
|
|
1422
|
+
:query_params => query_params,
|
|
1423
|
+
:form_params => form_params,
|
|
1424
|
+
:body => post_body,
|
|
1425
|
+
:auth_names => auth_names,
|
|
1426
|
+
:return_type => return_type
|
|
1427
|
+
)
|
|
1428
|
+
|
|
1429
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1430
|
+
if @api_client.config.debugging
|
|
1431
|
+
@api_client.config.logger.debug "API called: RootServerApi#patch_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1432
|
+
end
|
|
1433
|
+
return data, status_code, headers
|
|
1434
|
+
end
|
|
1435
|
+
|
|
1436
|
+
# Patches a meeting
|
|
1437
|
+
# Patches a meeting by id
|
|
1438
|
+
# @param meeting_id [Integer] ID of meeting
|
|
1439
|
+
# @param meeting_partial_update [MeetingPartialUpdate] Pass in fields you want to update.
|
|
1440
|
+
# @param [Hash] opts the optional parameters
|
|
1441
|
+
# @return [nil]
|
|
1442
|
+
def patch_meeting(meeting_id, meeting_partial_update, opts = {})
|
|
1443
|
+
patch_meeting_with_http_info(meeting_id, meeting_partial_update, opts)
|
|
1444
|
+
nil
|
|
1445
|
+
end
|
|
1446
|
+
|
|
1447
|
+
# Patches a meeting
|
|
1448
|
+
# Patches a meeting by id
|
|
1449
|
+
# @param meeting_id [Integer] ID of meeting
|
|
1450
|
+
# @param meeting_partial_update [MeetingPartialUpdate] Pass in fields you want to update.
|
|
1451
|
+
# @param [Hash] opts the optional parameters
|
|
1452
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1453
|
+
def patch_meeting_with_http_info(meeting_id, meeting_partial_update, opts = {})
|
|
1454
|
+
if @api_client.config.debugging
|
|
1455
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.patch_meeting ...'
|
|
1456
|
+
end
|
|
1457
|
+
# verify the required parameter 'meeting_id' is set
|
|
1458
|
+
if @api_client.config.client_side_validation && meeting_id.nil?
|
|
1459
|
+
fail ArgumentError, "Missing the required parameter 'meeting_id' when calling RootServerApi.patch_meeting"
|
|
1460
|
+
end
|
|
1461
|
+
# verify the required parameter 'meeting_partial_update' is set
|
|
1462
|
+
if @api_client.config.client_side_validation && meeting_partial_update.nil?
|
|
1463
|
+
fail ArgumentError, "Missing the required parameter 'meeting_partial_update' when calling RootServerApi.patch_meeting"
|
|
1464
|
+
end
|
|
1465
|
+
# resource path
|
|
1466
|
+
local_var_path = '/api/v1/meetings/{meetingId}'.sub('{' + 'meetingId' + '}', CGI.escape(meeting_id.to_s))
|
|
1467
|
+
|
|
1468
|
+
# query parameters
|
|
1469
|
+
query_params = opts[:query_params] || {}
|
|
1470
|
+
|
|
1471
|
+
# header parameters
|
|
1472
|
+
header_params = opts[:header_params] || {}
|
|
1473
|
+
# HTTP header 'Accept' (if needed)
|
|
1474
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1475
|
+
# HTTP header 'Content-Type'
|
|
1476
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1477
|
+
if !content_type.nil?
|
|
1478
|
+
header_params['Content-Type'] = content_type
|
|
1479
|
+
end
|
|
1480
|
+
|
|
1481
|
+
# form parameters
|
|
1482
|
+
form_params = opts[:form_params] || {}
|
|
1483
|
+
|
|
1484
|
+
# http body (model)
|
|
1485
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(meeting_partial_update)
|
|
1486
|
+
|
|
1487
|
+
# return_type
|
|
1488
|
+
return_type = opts[:debug_return_type]
|
|
1489
|
+
|
|
1490
|
+
# auth_names
|
|
1491
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1492
|
+
|
|
1493
|
+
new_options = opts.merge(
|
|
1494
|
+
:operation => :"RootServerApi.patch_meeting",
|
|
1495
|
+
:header_params => header_params,
|
|
1496
|
+
:query_params => query_params,
|
|
1497
|
+
:form_params => form_params,
|
|
1498
|
+
:body => post_body,
|
|
1499
|
+
:auth_names => auth_names,
|
|
1500
|
+
:return_type => return_type
|
|
1501
|
+
)
|
|
1502
|
+
|
|
1503
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1504
|
+
if @api_client.config.debugging
|
|
1505
|
+
@api_client.config.logger.debug "API called: RootServerApi#patch_meeting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1506
|
+
end
|
|
1507
|
+
return data, status_code, headers
|
|
1508
|
+
end
|
|
1509
|
+
|
|
1510
|
+
# Patches a service body
|
|
1511
|
+
# Patches a single service body by id.
|
|
1512
|
+
# @param service_body_id [Integer] ID of service body
|
|
1513
|
+
# @param service_body_partial_update [ServiceBodyPartialUpdate] Pass in fields you want to update.
|
|
1514
|
+
# @param [Hash] opts the optional parameters
|
|
1515
|
+
# @return [nil]
|
|
1516
|
+
def patch_service_body(service_body_id, service_body_partial_update, opts = {})
|
|
1517
|
+
patch_service_body_with_http_info(service_body_id, service_body_partial_update, opts)
|
|
1518
|
+
nil
|
|
1519
|
+
end
|
|
1520
|
+
|
|
1521
|
+
# Patches a service body
|
|
1522
|
+
# Patches a single service body by id.
|
|
1523
|
+
# @param service_body_id [Integer] ID of service body
|
|
1524
|
+
# @param service_body_partial_update [ServiceBodyPartialUpdate] Pass in fields you want to update.
|
|
1525
|
+
# @param [Hash] opts the optional parameters
|
|
1526
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1527
|
+
def patch_service_body_with_http_info(service_body_id, service_body_partial_update, opts = {})
|
|
1528
|
+
if @api_client.config.debugging
|
|
1529
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.patch_service_body ...'
|
|
1530
|
+
end
|
|
1531
|
+
# verify the required parameter 'service_body_id' is set
|
|
1532
|
+
if @api_client.config.client_side_validation && service_body_id.nil?
|
|
1533
|
+
fail ArgumentError, "Missing the required parameter 'service_body_id' when calling RootServerApi.patch_service_body"
|
|
1534
|
+
end
|
|
1535
|
+
# verify the required parameter 'service_body_partial_update' is set
|
|
1536
|
+
if @api_client.config.client_side_validation && service_body_partial_update.nil?
|
|
1537
|
+
fail ArgumentError, "Missing the required parameter 'service_body_partial_update' when calling RootServerApi.patch_service_body"
|
|
1538
|
+
end
|
|
1539
|
+
# resource path
|
|
1540
|
+
local_var_path = '/api/v1/servicebodies/{serviceBodyId}'.sub('{' + 'serviceBodyId' + '}', CGI.escape(service_body_id.to_s))
|
|
1541
|
+
|
|
1542
|
+
# query parameters
|
|
1543
|
+
query_params = opts[:query_params] || {}
|
|
1544
|
+
|
|
1545
|
+
# header parameters
|
|
1546
|
+
header_params = opts[:header_params] || {}
|
|
1547
|
+
# HTTP header 'Accept' (if needed)
|
|
1548
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1549
|
+
# HTTP header 'Content-Type'
|
|
1550
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1551
|
+
if !content_type.nil?
|
|
1552
|
+
header_params['Content-Type'] = content_type
|
|
1553
|
+
end
|
|
1554
|
+
|
|
1555
|
+
# form parameters
|
|
1556
|
+
form_params = opts[:form_params] || {}
|
|
1557
|
+
|
|
1558
|
+
# http body (model)
|
|
1559
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(service_body_partial_update)
|
|
1560
|
+
|
|
1561
|
+
# return_type
|
|
1562
|
+
return_type = opts[:debug_return_type]
|
|
1563
|
+
|
|
1564
|
+
# auth_names
|
|
1565
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1566
|
+
|
|
1567
|
+
new_options = opts.merge(
|
|
1568
|
+
:operation => :"RootServerApi.patch_service_body",
|
|
1569
|
+
:header_params => header_params,
|
|
1570
|
+
:query_params => query_params,
|
|
1571
|
+
:form_params => form_params,
|
|
1572
|
+
:body => post_body,
|
|
1573
|
+
:auth_names => auth_names,
|
|
1574
|
+
:return_type => return_type
|
|
1575
|
+
)
|
|
1576
|
+
|
|
1577
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1578
|
+
if @api_client.config.debugging
|
|
1579
|
+
@api_client.config.logger.debug "API called: RootServerApi#patch_service_body\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1580
|
+
end
|
|
1581
|
+
return data, status_code, headers
|
|
1582
|
+
end
|
|
1583
|
+
|
|
1584
|
+
# Updates a format
|
|
1585
|
+
# Updates a format.
|
|
1586
|
+
# @param format_id [Integer] ID of format
|
|
1587
|
+
# @param format_update [FormatUpdate] Pass in format object
|
|
1588
|
+
# @param [Hash] opts the optional parameters
|
|
1589
|
+
# @return [nil]
|
|
1590
|
+
def update_format(format_id, format_update, opts = {})
|
|
1591
|
+
update_format_with_http_info(format_id, format_update, opts)
|
|
1592
|
+
nil
|
|
1593
|
+
end
|
|
1594
|
+
|
|
1595
|
+
# Updates a format
|
|
1596
|
+
# Updates a format.
|
|
1597
|
+
# @param format_id [Integer] ID of format
|
|
1598
|
+
# @param format_update [FormatUpdate] Pass in format object
|
|
1599
|
+
# @param [Hash] opts the optional parameters
|
|
1600
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1601
|
+
def update_format_with_http_info(format_id, format_update, opts = {})
|
|
1602
|
+
if @api_client.config.debugging
|
|
1603
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.update_format ...'
|
|
1604
|
+
end
|
|
1605
|
+
# verify the required parameter 'format_id' is set
|
|
1606
|
+
if @api_client.config.client_side_validation && format_id.nil?
|
|
1607
|
+
fail ArgumentError, "Missing the required parameter 'format_id' when calling RootServerApi.update_format"
|
|
1608
|
+
end
|
|
1609
|
+
# verify the required parameter 'format_update' is set
|
|
1610
|
+
if @api_client.config.client_side_validation && format_update.nil?
|
|
1611
|
+
fail ArgumentError, "Missing the required parameter 'format_update' when calling RootServerApi.update_format"
|
|
1612
|
+
end
|
|
1613
|
+
# resource path
|
|
1614
|
+
local_var_path = '/api/v1/formats/{formatId}'.sub('{' + 'formatId' + '}', CGI.escape(format_id.to_s))
|
|
1615
|
+
|
|
1616
|
+
# query parameters
|
|
1617
|
+
query_params = opts[:query_params] || {}
|
|
1618
|
+
|
|
1619
|
+
# header parameters
|
|
1620
|
+
header_params = opts[:header_params] || {}
|
|
1621
|
+
# HTTP header 'Accept' (if needed)
|
|
1622
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1623
|
+
# HTTP header 'Content-Type'
|
|
1624
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1625
|
+
if !content_type.nil?
|
|
1626
|
+
header_params['Content-Type'] = content_type
|
|
1627
|
+
end
|
|
1628
|
+
|
|
1629
|
+
# form parameters
|
|
1630
|
+
form_params = opts[:form_params] || {}
|
|
1631
|
+
|
|
1632
|
+
# http body (model)
|
|
1633
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(format_update)
|
|
1634
|
+
|
|
1635
|
+
# return_type
|
|
1636
|
+
return_type = opts[:debug_return_type]
|
|
1637
|
+
|
|
1638
|
+
# auth_names
|
|
1639
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1640
|
+
|
|
1641
|
+
new_options = opts.merge(
|
|
1642
|
+
:operation => :"RootServerApi.update_format",
|
|
1643
|
+
:header_params => header_params,
|
|
1644
|
+
:query_params => query_params,
|
|
1645
|
+
:form_params => form_params,
|
|
1646
|
+
:body => post_body,
|
|
1647
|
+
:auth_names => auth_names,
|
|
1648
|
+
:return_type => return_type
|
|
1649
|
+
)
|
|
1650
|
+
|
|
1651
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1652
|
+
if @api_client.config.debugging
|
|
1653
|
+
@api_client.config.logger.debug "API called: RootServerApi#update_format\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1654
|
+
end
|
|
1655
|
+
return data, status_code, headers
|
|
1656
|
+
end
|
|
1657
|
+
|
|
1658
|
+
# Updates a meeting
|
|
1659
|
+
# Updates a meeting.
|
|
1660
|
+
# @param meeting_id [Integer] ID of meeting
|
|
1661
|
+
# @param meeting_update [MeetingUpdate] Pass in meeting object
|
|
1662
|
+
# @param [Hash] opts the optional parameters
|
|
1663
|
+
# @return [nil]
|
|
1664
|
+
def update_meeting(meeting_id, meeting_update, opts = {})
|
|
1665
|
+
update_meeting_with_http_info(meeting_id, meeting_update, opts)
|
|
1666
|
+
nil
|
|
1667
|
+
end
|
|
1668
|
+
|
|
1669
|
+
# Updates a meeting
|
|
1670
|
+
# Updates a meeting.
|
|
1671
|
+
# @param meeting_id [Integer] ID of meeting
|
|
1672
|
+
# @param meeting_update [MeetingUpdate] Pass in meeting object
|
|
1673
|
+
# @param [Hash] opts the optional parameters
|
|
1674
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1675
|
+
def update_meeting_with_http_info(meeting_id, meeting_update, opts = {})
|
|
1676
|
+
if @api_client.config.debugging
|
|
1677
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.update_meeting ...'
|
|
1678
|
+
end
|
|
1679
|
+
# verify the required parameter 'meeting_id' is set
|
|
1680
|
+
if @api_client.config.client_side_validation && meeting_id.nil?
|
|
1681
|
+
fail ArgumentError, "Missing the required parameter 'meeting_id' when calling RootServerApi.update_meeting"
|
|
1682
|
+
end
|
|
1683
|
+
# verify the required parameter 'meeting_update' is set
|
|
1684
|
+
if @api_client.config.client_side_validation && meeting_update.nil?
|
|
1685
|
+
fail ArgumentError, "Missing the required parameter 'meeting_update' when calling RootServerApi.update_meeting"
|
|
1686
|
+
end
|
|
1687
|
+
# resource path
|
|
1688
|
+
local_var_path = '/api/v1/meetings/{meetingId}'.sub('{' + 'meetingId' + '}', CGI.escape(meeting_id.to_s))
|
|
1689
|
+
|
|
1690
|
+
# query parameters
|
|
1691
|
+
query_params = opts[:query_params] || {}
|
|
1692
|
+
|
|
1693
|
+
# header parameters
|
|
1694
|
+
header_params = opts[:header_params] || {}
|
|
1695
|
+
# HTTP header 'Accept' (if needed)
|
|
1696
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1697
|
+
# HTTP header 'Content-Type'
|
|
1698
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1699
|
+
if !content_type.nil?
|
|
1700
|
+
header_params['Content-Type'] = content_type
|
|
1701
|
+
end
|
|
1702
|
+
|
|
1703
|
+
# form parameters
|
|
1704
|
+
form_params = opts[:form_params] || {}
|
|
1705
|
+
|
|
1706
|
+
# http body (model)
|
|
1707
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(meeting_update)
|
|
1708
|
+
|
|
1709
|
+
# return_type
|
|
1710
|
+
return_type = opts[:debug_return_type]
|
|
1711
|
+
|
|
1712
|
+
# auth_names
|
|
1713
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1714
|
+
|
|
1715
|
+
new_options = opts.merge(
|
|
1716
|
+
:operation => :"RootServerApi.update_meeting",
|
|
1717
|
+
:header_params => header_params,
|
|
1718
|
+
:query_params => query_params,
|
|
1719
|
+
:form_params => form_params,
|
|
1720
|
+
:body => post_body,
|
|
1721
|
+
:auth_names => auth_names,
|
|
1722
|
+
:return_type => return_type
|
|
1723
|
+
)
|
|
1724
|
+
|
|
1725
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1726
|
+
if @api_client.config.debugging
|
|
1727
|
+
@api_client.config.logger.debug "API called: RootServerApi#update_meeting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1728
|
+
end
|
|
1729
|
+
return data, status_code, headers
|
|
1730
|
+
end
|
|
1731
|
+
|
|
1732
|
+
# Updates a Service Body
|
|
1733
|
+
# Updates a single service body.
|
|
1734
|
+
# @param service_body_id [Integer] ID of service body
|
|
1735
|
+
# @param service_body_update [ServiceBodyUpdate] Pass in service body object
|
|
1736
|
+
# @param [Hash] opts the optional parameters
|
|
1737
|
+
# @return [nil]
|
|
1738
|
+
def update_service_body(service_body_id, service_body_update, opts = {})
|
|
1739
|
+
update_service_body_with_http_info(service_body_id, service_body_update, opts)
|
|
1740
|
+
nil
|
|
1741
|
+
end
|
|
1742
|
+
|
|
1743
|
+
# Updates a Service Body
|
|
1744
|
+
# Updates a single service body.
|
|
1745
|
+
# @param service_body_id [Integer] ID of service body
|
|
1746
|
+
# @param service_body_update [ServiceBodyUpdate] Pass in service body object
|
|
1747
|
+
# @param [Hash] opts the optional parameters
|
|
1748
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1749
|
+
def update_service_body_with_http_info(service_body_id, service_body_update, opts = {})
|
|
1750
|
+
if @api_client.config.debugging
|
|
1751
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.update_service_body ...'
|
|
1752
|
+
end
|
|
1753
|
+
# verify the required parameter 'service_body_id' is set
|
|
1754
|
+
if @api_client.config.client_side_validation && service_body_id.nil?
|
|
1755
|
+
fail ArgumentError, "Missing the required parameter 'service_body_id' when calling RootServerApi.update_service_body"
|
|
1756
|
+
end
|
|
1757
|
+
# verify the required parameter 'service_body_update' is set
|
|
1758
|
+
if @api_client.config.client_side_validation && service_body_update.nil?
|
|
1759
|
+
fail ArgumentError, "Missing the required parameter 'service_body_update' when calling RootServerApi.update_service_body"
|
|
1760
|
+
end
|
|
1761
|
+
# resource path
|
|
1762
|
+
local_var_path = '/api/v1/servicebodies/{serviceBodyId}'.sub('{' + 'serviceBodyId' + '}', CGI.escape(service_body_id.to_s))
|
|
1763
|
+
|
|
1764
|
+
# query parameters
|
|
1765
|
+
query_params = opts[:query_params] || {}
|
|
1766
|
+
|
|
1767
|
+
# header parameters
|
|
1768
|
+
header_params = opts[:header_params] || {}
|
|
1769
|
+
# HTTP header 'Accept' (if needed)
|
|
1770
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1771
|
+
# HTTP header 'Content-Type'
|
|
1772
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1773
|
+
if !content_type.nil?
|
|
1774
|
+
header_params['Content-Type'] = content_type
|
|
1775
|
+
end
|
|
1776
|
+
|
|
1777
|
+
# form parameters
|
|
1778
|
+
form_params = opts[:form_params] || {}
|
|
1779
|
+
|
|
1780
|
+
# http body (model)
|
|
1781
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(service_body_update)
|
|
1782
|
+
|
|
1783
|
+
# return_type
|
|
1784
|
+
return_type = opts[:debug_return_type]
|
|
1785
|
+
|
|
1786
|
+
# auth_names
|
|
1787
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1788
|
+
|
|
1789
|
+
new_options = opts.merge(
|
|
1790
|
+
:operation => :"RootServerApi.update_service_body",
|
|
1791
|
+
:header_params => header_params,
|
|
1792
|
+
:query_params => query_params,
|
|
1793
|
+
:form_params => form_params,
|
|
1794
|
+
:body => post_body,
|
|
1795
|
+
:auth_names => auth_names,
|
|
1796
|
+
:return_type => return_type
|
|
1797
|
+
)
|
|
1798
|
+
|
|
1799
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1800
|
+
if @api_client.config.debugging
|
|
1801
|
+
@api_client.config.logger.debug "API called: RootServerApi#update_service_body\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1802
|
+
end
|
|
1803
|
+
return data, status_code, headers
|
|
1804
|
+
end
|
|
1805
|
+
|
|
1806
|
+
# Update single user
|
|
1807
|
+
# Updates a user.
|
|
1808
|
+
# @param user_id [Integer] ID of user
|
|
1809
|
+
# @param user_update [UserUpdate] Pass in user object
|
|
1810
|
+
# @param [Hash] opts the optional parameters
|
|
1811
|
+
# @return [nil]
|
|
1812
|
+
def update_user(user_id, user_update, opts = {})
|
|
1813
|
+
update_user_with_http_info(user_id, user_update, opts)
|
|
1814
|
+
nil
|
|
1815
|
+
end
|
|
1816
|
+
|
|
1817
|
+
# Update single user
|
|
1818
|
+
# Updates a user.
|
|
1819
|
+
# @param user_id [Integer] ID of user
|
|
1820
|
+
# @param user_update [UserUpdate] Pass in user object
|
|
1821
|
+
# @param [Hash] opts the optional parameters
|
|
1822
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1823
|
+
def update_user_with_http_info(user_id, user_update, opts = {})
|
|
1824
|
+
if @api_client.config.debugging
|
|
1825
|
+
@api_client.config.logger.debug 'Calling API: RootServerApi.update_user ...'
|
|
1826
|
+
end
|
|
1827
|
+
# verify the required parameter 'user_id' is set
|
|
1828
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
1829
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling RootServerApi.update_user"
|
|
1830
|
+
end
|
|
1831
|
+
# verify the required parameter 'user_update' is set
|
|
1832
|
+
if @api_client.config.client_side_validation && user_update.nil?
|
|
1833
|
+
fail ArgumentError, "Missing the required parameter 'user_update' when calling RootServerApi.update_user"
|
|
1834
|
+
end
|
|
1835
|
+
# resource path
|
|
1836
|
+
local_var_path = '/api/v1/users/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
|
1837
|
+
|
|
1838
|
+
# query parameters
|
|
1839
|
+
query_params = opts[:query_params] || {}
|
|
1840
|
+
|
|
1841
|
+
# header parameters
|
|
1842
|
+
header_params = opts[:header_params] || {}
|
|
1843
|
+
# HTTP header 'Accept' (if needed)
|
|
1844
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1845
|
+
# HTTP header 'Content-Type'
|
|
1846
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1847
|
+
if !content_type.nil?
|
|
1848
|
+
header_params['Content-Type'] = content_type
|
|
1849
|
+
end
|
|
1850
|
+
|
|
1851
|
+
# form parameters
|
|
1852
|
+
form_params = opts[:form_params] || {}
|
|
1853
|
+
|
|
1854
|
+
# http body (model)
|
|
1855
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(user_update)
|
|
1856
|
+
|
|
1857
|
+
# return_type
|
|
1858
|
+
return_type = opts[:debug_return_type]
|
|
1859
|
+
|
|
1860
|
+
# auth_names
|
|
1861
|
+
auth_names = opts[:debug_auth_names] || ['bmltToken']
|
|
1862
|
+
|
|
1863
|
+
new_options = opts.merge(
|
|
1864
|
+
:operation => :"RootServerApi.update_user",
|
|
1865
|
+
:header_params => header_params,
|
|
1866
|
+
:query_params => query_params,
|
|
1867
|
+
:form_params => form_params,
|
|
1868
|
+
:body => post_body,
|
|
1869
|
+
:auth_names => auth_names,
|
|
1870
|
+
:return_type => return_type
|
|
1871
|
+
)
|
|
1872
|
+
|
|
1873
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1874
|
+
if @api_client.config.debugging
|
|
1875
|
+
@api_client.config.logger.debug "API called: RootServerApi#update_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1876
|
+
end
|
|
1877
|
+
return data, status_code, headers
|
|
1878
|
+
end
|
|
1879
|
+
end
|
|
1880
|
+
end
|