rustici_software_cloud_v2 1.0.2 → 1.1.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/README.md +5 -4
- data/lib/rustici_software_cloud_v2.rb +1 -0
- data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
- data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
- data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
- data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/version.rb +2 -1
- data/rustici_software_cloud_v2.gemspec +8 -7
- data/spec/api_client_spec.rb +35 -34
- data/spec/configuration_spec.rb +9 -8
- data/spec/spec_helper.rb +1 -0
- metadata +16 -16
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
|
-
require
|
|
13
|
+
require 'uri'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
16
|
class ZoomiApi
|
|
@@ -18,14 +19,13 @@ module RusticiSoftwareCloudV2
|
|
|
18
19
|
def initialize(api_client = ApiClient.default)
|
|
19
20
|
@api_client = api_client
|
|
20
21
|
end
|
|
21
|
-
|
|
22
22
|
# Delete the keys for an application.
|
|
23
23
|
# Delete the keys for an application.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [nil]
|
|
26
26
|
def delete_application_zoomi_keys(opts = {})
|
|
27
27
|
delete_application_zoomi_keys_with_http_info(opts)
|
|
28
|
-
|
|
28
|
+
nil
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# Delete the keys for an application.
|
|
@@ -34,10 +34,10 @@ module RusticiSoftwareCloudV2
|
|
|
34
34
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
35
35
|
def delete_application_zoomi_keys_with_http_info(opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.delete_application_zoomi_keys ...'
|
|
38
38
|
end
|
|
39
39
|
# resource path
|
|
40
|
-
local_var_path =
|
|
40
|
+
local_var_path = '/zoomi/key'
|
|
41
41
|
|
|
42
42
|
# query parameters
|
|
43
43
|
query_params = {}
|
|
@@ -66,7 +66,6 @@ module RusticiSoftwareCloudV2
|
|
|
66
66
|
end
|
|
67
67
|
return data, status_code, headers
|
|
68
68
|
end
|
|
69
|
-
|
|
70
69
|
# Deletes the course in zoomi
|
|
71
70
|
# Deletes the course in zoomi
|
|
72
71
|
# @param course_id
|
|
@@ -75,7 +74,7 @@ module RusticiSoftwareCloudV2
|
|
|
75
74
|
# @return [nil]
|
|
76
75
|
def delete_zoomi_course(course_id, version_id, opts = {})
|
|
77
76
|
delete_zoomi_course_with_http_info(course_id, version_id, opts)
|
|
78
|
-
|
|
77
|
+
nil
|
|
79
78
|
end
|
|
80
79
|
|
|
81
80
|
# Deletes the course in zoomi
|
|
@@ -86,14 +85,18 @@ module RusticiSoftwareCloudV2
|
|
|
86
85
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
87
86
|
def delete_zoomi_course_with_http_info(course_id, version_id, opts = {})
|
|
88
87
|
if @api_client.config.debugging
|
|
89
|
-
@api_client.config.logger.debug
|
|
88
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.delete_zoomi_course ...'
|
|
90
89
|
end
|
|
91
90
|
# verify the required parameter 'course_id' is set
|
|
92
|
-
|
|
91
|
+
if @api_client.config.client_side_validation && course_id.nil?
|
|
92
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.delete_zoomi_course"
|
|
93
|
+
end
|
|
93
94
|
# verify the required parameter 'version_id' is set
|
|
94
|
-
|
|
95
|
+
if @api_client.config.client_side_validation && version_id.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.delete_zoomi_course"
|
|
97
|
+
end
|
|
95
98
|
# resource path
|
|
96
|
-
local_var_path =
|
|
99
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
|
97
100
|
|
|
98
101
|
# query parameters
|
|
99
102
|
query_params = {}
|
|
@@ -122,14 +125,13 @@ module RusticiSoftwareCloudV2
|
|
|
122
125
|
end
|
|
123
126
|
return data, status_code, headers
|
|
124
127
|
end
|
|
125
|
-
|
|
126
128
|
# Gets the zoomi company id of an application.
|
|
127
129
|
# Gets the zoomi company id of an application.
|
|
128
130
|
# @param [Hash] opts the optional parameters
|
|
129
131
|
# @return [StringResultSchema]
|
|
130
132
|
def get_application_zoomi_company_id(opts = {})
|
|
131
133
|
data, _status_code, _headers = get_application_zoomi_company_id_with_http_info(opts)
|
|
132
|
-
|
|
134
|
+
data
|
|
133
135
|
end
|
|
134
136
|
|
|
135
137
|
# Gets the zoomi company id of an application.
|
|
@@ -138,10 +140,10 @@ module RusticiSoftwareCloudV2
|
|
|
138
140
|
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
|
139
141
|
def get_application_zoomi_company_id_with_http_info(opts = {})
|
|
140
142
|
if @api_client.config.debugging
|
|
141
|
-
@api_client.config.logger.debug
|
|
143
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_application_zoomi_company_id ...'
|
|
142
144
|
end
|
|
143
145
|
# resource path
|
|
144
|
-
local_var_path =
|
|
146
|
+
local_var_path = '/zoomi'
|
|
145
147
|
|
|
146
148
|
# query parameters
|
|
147
149
|
query_params = {}
|
|
@@ -171,14 +173,13 @@ module RusticiSoftwareCloudV2
|
|
|
171
173
|
end
|
|
172
174
|
return data, status_code, headers
|
|
173
175
|
end
|
|
174
|
-
|
|
175
176
|
# Gets the public key for an application.
|
|
176
177
|
# Gets the public key for an application.
|
|
177
178
|
# @param [Hash] opts the optional parameters
|
|
178
179
|
# @return [StringResultSchema]
|
|
179
180
|
def get_application_zoomi_public_key(opts = {})
|
|
180
181
|
data, _status_code, _headers = get_application_zoomi_public_key_with_http_info(opts)
|
|
181
|
-
|
|
182
|
+
data
|
|
182
183
|
end
|
|
183
184
|
|
|
184
185
|
# Gets the public key for an application.
|
|
@@ -187,10 +188,10 @@ module RusticiSoftwareCloudV2
|
|
|
187
188
|
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
|
188
189
|
def get_application_zoomi_public_key_with_http_info(opts = {})
|
|
189
190
|
if @api_client.config.debugging
|
|
190
|
-
@api_client.config.logger.debug
|
|
191
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_application_zoomi_public_key ...'
|
|
191
192
|
end
|
|
192
193
|
# resource path
|
|
193
|
-
local_var_path =
|
|
194
|
+
local_var_path = '/zoomi/key'
|
|
194
195
|
|
|
195
196
|
# query parameters
|
|
196
197
|
query_params = {}
|
|
@@ -220,7 +221,6 @@ module RusticiSoftwareCloudV2
|
|
|
220
221
|
end
|
|
221
222
|
return data, status_code, headers
|
|
222
223
|
end
|
|
223
|
-
|
|
224
224
|
# Gets the zoomi enabled value of a course
|
|
225
225
|
# Gets the zoomi enabled value of a course
|
|
226
226
|
# @param course_id
|
|
@@ -229,7 +229,7 @@ module RusticiSoftwareCloudV2
|
|
|
229
229
|
# @return [EnabledSchema]
|
|
230
230
|
def get_course_zoomi_enabled(course_id, version_id, opts = {})
|
|
231
231
|
data, _status_code, _headers = get_course_zoomi_enabled_with_http_info(course_id, version_id, opts)
|
|
232
|
-
|
|
232
|
+
data
|
|
233
233
|
end
|
|
234
234
|
|
|
235
235
|
# Gets the zoomi enabled value of a course
|
|
@@ -240,14 +240,18 @@ module RusticiSoftwareCloudV2
|
|
|
240
240
|
# @return [Array<(EnabledSchema, Fixnum, Hash)>] EnabledSchema data, response status code and response headers
|
|
241
241
|
def get_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {})
|
|
242
242
|
if @api_client.config.debugging
|
|
243
|
-
@api_client.config.logger.debug
|
|
243
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_course_zoomi_enabled ...'
|
|
244
244
|
end
|
|
245
245
|
# verify the required parameter 'course_id' is set
|
|
246
|
-
|
|
246
|
+
if @api_client.config.client_side_validation && course_id.nil?
|
|
247
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_course_zoomi_enabled"
|
|
248
|
+
end
|
|
247
249
|
# verify the required parameter 'version_id' is set
|
|
248
|
-
|
|
250
|
+
if @api_client.config.client_side_validation && version_id.nil?
|
|
251
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_course_zoomi_enabled"
|
|
252
|
+
end
|
|
249
253
|
# resource path
|
|
250
|
-
local_var_path =
|
|
254
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}/enabled'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
|
251
255
|
|
|
252
256
|
# query parameters
|
|
253
257
|
query_params = {}
|
|
@@ -277,7 +281,6 @@ module RusticiSoftwareCloudV2
|
|
|
277
281
|
end
|
|
278
282
|
return data, status_code, headers
|
|
279
283
|
end
|
|
280
|
-
|
|
281
284
|
# Gets the status for a course and imports to Zoomi
|
|
282
285
|
# Gets the status for a course and imports to Zoomi
|
|
283
286
|
# @param course_id
|
|
@@ -286,7 +289,7 @@ module RusticiSoftwareCloudV2
|
|
|
286
289
|
# @return [StringResultSchema]
|
|
287
290
|
def get_zoomi_course_status(course_id, version_id, opts = {})
|
|
288
291
|
data, _status_code, _headers = get_zoomi_course_status_with_http_info(course_id, version_id, opts)
|
|
289
|
-
|
|
292
|
+
data
|
|
290
293
|
end
|
|
291
294
|
|
|
292
295
|
# Gets the status for a course and imports to Zoomi
|
|
@@ -297,14 +300,18 @@ module RusticiSoftwareCloudV2
|
|
|
297
300
|
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
|
298
301
|
def get_zoomi_course_status_with_http_info(course_id, version_id, opts = {})
|
|
299
302
|
if @api_client.config.debugging
|
|
300
|
-
@api_client.config.logger.debug
|
|
303
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_zoomi_course_status ...'
|
|
301
304
|
end
|
|
302
305
|
# verify the required parameter 'course_id' is set
|
|
303
|
-
|
|
306
|
+
if @api_client.config.client_side_validation && course_id.nil?
|
|
307
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_zoomi_course_status"
|
|
308
|
+
end
|
|
304
309
|
# verify the required parameter 'version_id' is set
|
|
305
|
-
|
|
310
|
+
if @api_client.config.client_side_validation && version_id.nil?
|
|
311
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_zoomi_course_status"
|
|
312
|
+
end
|
|
306
313
|
# resource path
|
|
307
|
-
local_var_path =
|
|
314
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
|
308
315
|
|
|
309
316
|
# query parameters
|
|
310
317
|
query_params = {}
|
|
@@ -334,7 +341,6 @@ module RusticiSoftwareCloudV2
|
|
|
334
341
|
end
|
|
335
342
|
return data, status_code, headers
|
|
336
343
|
end
|
|
337
|
-
|
|
338
344
|
# Set the zoomi company id value of an application.
|
|
339
345
|
# Set the zoomi company id value of an application.
|
|
340
346
|
# @param zoomi_company_id
|
|
@@ -342,7 +348,7 @@ module RusticiSoftwareCloudV2
|
|
|
342
348
|
# @return [nil]
|
|
343
349
|
def set_application_zoomi_company_id(zoomi_company_id, opts = {})
|
|
344
350
|
set_application_zoomi_company_id_with_http_info(zoomi_company_id, opts)
|
|
345
|
-
|
|
351
|
+
nil
|
|
346
352
|
end
|
|
347
353
|
|
|
348
354
|
# Set the zoomi company id value of an application.
|
|
@@ -352,12 +358,14 @@ module RusticiSoftwareCloudV2
|
|
|
352
358
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
353
359
|
def set_application_zoomi_company_id_with_http_info(zoomi_company_id, opts = {})
|
|
354
360
|
if @api_client.config.debugging
|
|
355
|
-
@api_client.config.logger.debug
|
|
361
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.set_application_zoomi_company_id ...'
|
|
356
362
|
end
|
|
357
363
|
# verify the required parameter 'zoomi_company_id' is set
|
|
358
|
-
|
|
364
|
+
if @api_client.config.client_side_validation && zoomi_company_id.nil?
|
|
365
|
+
fail ArgumentError, "Missing the required parameter 'zoomi_company_id' when calling ZoomiApi.set_application_zoomi_company_id"
|
|
366
|
+
end
|
|
359
367
|
# resource path
|
|
360
|
-
local_var_path =
|
|
368
|
+
local_var_path = '/zoomi'
|
|
361
369
|
|
|
362
370
|
# query parameters
|
|
363
371
|
query_params = {}
|
|
@@ -386,7 +394,6 @@ module RusticiSoftwareCloudV2
|
|
|
386
394
|
end
|
|
387
395
|
return data, status_code, headers
|
|
388
396
|
end
|
|
389
|
-
|
|
390
397
|
# Set the zoomi enabled value of a course.
|
|
391
398
|
# Set the zoomi enabled value of a course.
|
|
392
399
|
# @param course_id
|
|
@@ -396,7 +403,7 @@ module RusticiSoftwareCloudV2
|
|
|
396
403
|
# @return [nil]
|
|
397
404
|
def set_course_zoomi_enabled(course_id, version_id, opts = {})
|
|
398
405
|
set_course_zoomi_enabled_with_http_info(course_id, version_id, opts)
|
|
399
|
-
|
|
406
|
+
nil
|
|
400
407
|
end
|
|
401
408
|
|
|
402
409
|
# Set the zoomi enabled value of a course.
|
|
@@ -408,14 +415,18 @@ module RusticiSoftwareCloudV2
|
|
|
408
415
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
409
416
|
def set_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {})
|
|
410
417
|
if @api_client.config.debugging
|
|
411
|
-
@api_client.config.logger.debug
|
|
418
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.set_course_zoomi_enabled ...'
|
|
412
419
|
end
|
|
413
420
|
# verify the required parameter 'course_id' is set
|
|
414
|
-
|
|
421
|
+
if @api_client.config.client_side_validation && course_id.nil?
|
|
422
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.set_course_zoomi_enabled"
|
|
423
|
+
end
|
|
415
424
|
# verify the required parameter 'version_id' is set
|
|
416
|
-
|
|
425
|
+
if @api_client.config.client_side_validation && version_id.nil?
|
|
426
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.set_course_zoomi_enabled"
|
|
427
|
+
end
|
|
417
428
|
# resource path
|
|
418
|
-
local_var_path =
|
|
429
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}/enabled'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
|
419
430
|
|
|
420
431
|
# query parameters
|
|
421
432
|
query_params = {}
|
|
@@ -6,19 +6,18 @@
|
|
|
6
6
|
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
|
-
|
|
16
16
|
class AboutSchema
|
|
17
17
|
attr_accessor :version
|
|
18
18
|
|
|
19
19
|
attr_accessor :distribution
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
22
|
def self.attribute_map
|
|
24
23
|
{
|
|
@@ -41,7 +40,7 @@ module RusticiSoftwareCloudV2
|
|
|
41
40
|
return unless attributes.is_a?(Hash)
|
|
42
41
|
|
|
43
42
|
# convert string to symbol for hash key
|
|
44
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
45
44
|
|
|
46
45
|
if attributes.has_key?(:'version')
|
|
47
46
|
self.version = attributes[:'version']
|
|
@@ -50,20 +49,19 @@ module RusticiSoftwareCloudV2
|
|
|
50
49
|
if attributes.has_key?(:'distribution')
|
|
51
50
|
self.distribution = attributes[:'distribution']
|
|
52
51
|
end
|
|
53
|
-
|
|
54
52
|
end
|
|
55
53
|
|
|
56
54
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
57
|
-
# @return Array for valid
|
|
55
|
+
# @return Array for valid properties with the reasons
|
|
58
56
|
def list_invalid_properties
|
|
59
57
|
invalid_properties = Array.new
|
|
60
|
-
|
|
58
|
+
invalid_properties
|
|
61
59
|
end
|
|
62
60
|
|
|
63
61
|
# Check to see if the all the properties in the model are valid
|
|
64
62
|
# @return true if the model is valid
|
|
65
63
|
def valid?
|
|
66
|
-
|
|
64
|
+
true
|
|
67
65
|
end
|
|
68
66
|
|
|
69
67
|
# Checks equality by comparing each attribute.
|
|
@@ -97,7 +95,7 @@ module RusticiSoftwareCloudV2
|
|
|
97
95
|
# check to ensure the input is an array given that the the attribute
|
|
98
96
|
# is documented as an array but the input is not
|
|
99
97
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
100
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
101
99
|
end
|
|
102
100
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
103
101
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -179,7 +177,7 @@ module RusticiSoftwareCloudV2
|
|
|
179
177
|
# @return [Hash] Returns the value in the form of hash
|
|
180
178
|
def _to_hash(value)
|
|
181
179
|
if value.is_a?(Array)
|
|
182
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
|
183
181
|
elsif value.is_a?(Hash)
|
|
184
182
|
{}.tap do |hash|
|
|
185
183
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -190,7 +188,5 @@ module RusticiSoftwareCloudV2
|
|
|
190
188
|
value
|
|
191
189
|
end
|
|
192
190
|
end
|
|
193
|
-
|
|
194
191
|
end
|
|
195
|
-
|
|
196
192
|
end
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
|
-
|
|
16
16
|
class ActivityResultSchema
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
@@ -106,7 +106,7 @@ module RusticiSoftwareCloudV2
|
|
|
106
106
|
return unless attributes.is_a?(Hash)
|
|
107
107
|
|
|
108
108
|
# convert string to symbol for hash key
|
|
109
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
109
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
110
110
|
|
|
111
111
|
if attributes.has_key?(:'id')
|
|
112
112
|
self.id = attributes[:'id']
|
|
@@ -163,32 +163,31 @@ module RusticiSoftwareCloudV2
|
|
|
163
163
|
if attributes.has_key?(:'runtime')
|
|
164
164
|
self.runtime = attributes[:'runtime']
|
|
165
165
|
end
|
|
166
|
-
|
|
167
166
|
end
|
|
168
167
|
|
|
169
168
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
170
|
-
# @return Array for valid
|
|
169
|
+
# @return Array for valid properties with the reasons
|
|
171
170
|
def list_invalid_properties
|
|
172
171
|
invalid_properties = Array.new
|
|
173
|
-
|
|
172
|
+
invalid_properties
|
|
174
173
|
end
|
|
175
174
|
|
|
176
175
|
# Check to see if the all the properties in the model are valid
|
|
177
176
|
# @return true if the model is valid
|
|
178
177
|
def valid?
|
|
179
|
-
activity_completion_validator = EnumAttributeValidator.new('String', [
|
|
178
|
+
activity_completion_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
|
180
179
|
return false unless activity_completion_validator.valid?(@activity_completion)
|
|
181
|
-
activity_success_validator = EnumAttributeValidator.new('String', [
|
|
180
|
+
activity_success_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
182
181
|
return false unless activity_success_validator.valid?(@activity_success)
|
|
183
|
-
|
|
182
|
+
true
|
|
184
183
|
end
|
|
185
184
|
|
|
186
185
|
# Custom attribute writer method checking allowed values (enum).
|
|
187
186
|
# @param [Object] activity_completion Object to be assigned
|
|
188
187
|
def activity_completion=(activity_completion)
|
|
189
|
-
validator = EnumAttributeValidator.new('String', [
|
|
188
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
|
190
189
|
unless validator.valid?(activity_completion)
|
|
191
|
-
fail ArgumentError,
|
|
190
|
+
fail ArgumentError, 'invalid value for "activity_completion", must be one of #{validator.allowable_values}.'
|
|
192
191
|
end
|
|
193
192
|
@activity_completion = activity_completion
|
|
194
193
|
end
|
|
@@ -196,9 +195,9 @@ module RusticiSoftwareCloudV2
|
|
|
196
195
|
# Custom attribute writer method checking allowed values (enum).
|
|
197
196
|
# @param [Object] activity_success Object to be assigned
|
|
198
197
|
def activity_success=(activity_success)
|
|
199
|
-
validator = EnumAttributeValidator.new('String', [
|
|
198
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
200
199
|
unless validator.valid?(activity_success)
|
|
201
|
-
fail ArgumentError,
|
|
200
|
+
fail ArgumentError, 'invalid value for "activity_success", must be one of #{validator.allowable_values}.'
|
|
202
201
|
end
|
|
203
202
|
@activity_success = activity_success
|
|
204
203
|
end
|
|
@@ -245,7 +244,7 @@ module RusticiSoftwareCloudV2
|
|
|
245
244
|
# check to ensure the input is an array given that the the attribute
|
|
246
245
|
# is documented as an array but the input is not
|
|
247
246
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
248
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
247
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
249
248
|
end
|
|
250
249
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
251
250
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -327,7 +326,7 @@ module RusticiSoftwareCloudV2
|
|
|
327
326
|
# @return [Hash] Returns the value in the form of hash
|
|
328
327
|
def _to_hash(value)
|
|
329
328
|
if value.is_a?(Array)
|
|
330
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
329
|
+
value.compact.map { |v| _to_hash(v) }
|
|
331
330
|
elsif value.is_a?(Hash)
|
|
332
331
|
{}.tap do |hash|
|
|
333
332
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -338,7 +337,5 @@ module RusticiSoftwareCloudV2
|
|
|
338
337
|
value
|
|
339
338
|
end
|
|
340
339
|
end
|
|
341
|
-
|
|
342
340
|
end
|
|
343
|
-
|
|
344
341
|
end
|