rustici_software_cloud_v2 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 LearnerApi
|
@@ -18,7 +19,6 @@ module RusticiSoftwareCloudV2
|
|
18
19
|
def initialize(api_client = ApiClient.default)
|
19
20
|
@api_client = api_client
|
20
21
|
end
|
21
|
-
|
22
22
|
# Deletes all of the information associated with a learner in an application, by learner id.
|
23
23
|
# Deletes all of the information associated with a learner in an application, by learner id. This is meant for use with complying with GDPR requests from learners.
|
24
24
|
# @param learner_id The id of the learner for which to remove all data from an application
|
@@ -27,7 +27,7 @@ module RusticiSoftwareCloudV2
|
|
27
27
|
# @return [nil]
|
28
28
|
def delete_all_learner_data(learner_id, user_email, opts = {})
|
29
29
|
delete_all_learner_data_with_http_info(learner_id, user_email, opts)
|
30
|
-
|
30
|
+
nil
|
31
31
|
end
|
32
32
|
|
33
33
|
# Deletes all of the information associated with a learner in an application, by learner id.
|
@@ -38,14 +38,18 @@ module RusticiSoftwareCloudV2
|
|
38
38
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
39
39
|
def delete_all_learner_data_with_http_info(learner_id, user_email, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: LearnerApi.delete_all_learner_data ...'
|
42
42
|
end
|
43
43
|
# verify the required parameter 'learner_id' is set
|
44
|
-
|
44
|
+
if @api_client.config.client_side_validation && learner_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.delete_all_learner_data"
|
46
|
+
end
|
45
47
|
# verify the required parameter 'user_email' is set
|
46
|
-
|
48
|
+
if @api_client.config.client_side_validation && user_email.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'user_email' when calling LearnerApi.delete_all_learner_data"
|
50
|
+
end
|
47
51
|
# resource path
|
48
|
-
local_var_path =
|
52
|
+
local_var_path = '/learner/{learnerId}/delete-information'.sub('{' + 'learnerId' + '}', learner_id.to_s)
|
49
53
|
|
50
54
|
# query parameters
|
51
55
|
query_params = {}
|
@@ -75,7 +79,6 @@ module RusticiSoftwareCloudV2
|
|
75
79
|
end
|
76
80
|
return data, status_code, headers
|
77
81
|
end
|
78
|
-
|
79
82
|
# Delete the tags for this learner
|
80
83
|
# Delete the tags for this learner
|
81
84
|
# @param learner_id The id of the learner for which to remove all data from an application
|
@@ -84,7 +87,7 @@ module RusticiSoftwareCloudV2
|
|
84
87
|
# @return [nil]
|
85
88
|
def delete_learner_tags(learner_id, tags, opts = {})
|
86
89
|
delete_learner_tags_with_http_info(learner_id, tags, opts)
|
87
|
-
|
90
|
+
nil
|
88
91
|
end
|
89
92
|
|
90
93
|
# Delete the tags for this learner
|
@@ -95,14 +98,18 @@ module RusticiSoftwareCloudV2
|
|
95
98
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
96
99
|
def delete_learner_tags_with_http_info(learner_id, tags, opts = {})
|
97
100
|
if @api_client.config.debugging
|
98
|
-
@api_client.config.logger.debug
|
101
|
+
@api_client.config.logger.debug 'Calling API: LearnerApi.delete_learner_tags ...'
|
99
102
|
end
|
100
103
|
# verify the required parameter 'learner_id' is set
|
101
|
-
|
104
|
+
if @api_client.config.client_side_validation && learner_id.nil?
|
105
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.delete_learner_tags"
|
106
|
+
end
|
102
107
|
# verify the required parameter 'tags' is set
|
103
|
-
|
108
|
+
if @api_client.config.client_side_validation && tags.nil?
|
109
|
+
fail ArgumentError, "Missing the required parameter 'tags' when calling LearnerApi.delete_learner_tags"
|
110
|
+
end
|
104
111
|
# resource path
|
105
|
-
local_var_path =
|
112
|
+
local_var_path = '/learner/{learnerId}/tags'.sub('{' + 'learnerId' + '}', learner_id.to_s)
|
106
113
|
|
107
114
|
# query parameters
|
108
115
|
query_params = {}
|
@@ -131,7 +138,6 @@ module RusticiSoftwareCloudV2
|
|
131
138
|
end
|
132
139
|
return data, status_code, headers
|
133
140
|
end
|
134
|
-
|
135
141
|
# Get the tags for this learner
|
136
142
|
# Get the tags for this learner
|
137
143
|
# @param learner_id The id of the learner for which to remove all data from an application
|
@@ -139,7 +145,7 @@ module RusticiSoftwareCloudV2
|
|
139
145
|
# @return [TagListSchema]
|
140
146
|
def get_learner_tags(learner_id, opts = {})
|
141
147
|
data, _status_code, _headers = get_learner_tags_with_http_info(learner_id, opts)
|
142
|
-
|
148
|
+
data
|
143
149
|
end
|
144
150
|
|
145
151
|
# Get the tags for this learner
|
@@ -149,12 +155,14 @@ module RusticiSoftwareCloudV2
|
|
149
155
|
# @return [Array<(TagListSchema, Fixnum, Hash)>] TagListSchema data, response status code and response headers
|
150
156
|
def get_learner_tags_with_http_info(learner_id, opts = {})
|
151
157
|
if @api_client.config.debugging
|
152
|
-
@api_client.config.logger.debug
|
158
|
+
@api_client.config.logger.debug 'Calling API: LearnerApi.get_learner_tags ...'
|
153
159
|
end
|
154
160
|
# verify the required parameter 'learner_id' is set
|
155
|
-
|
161
|
+
if @api_client.config.client_side_validation && learner_id.nil?
|
162
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.get_learner_tags"
|
163
|
+
end
|
156
164
|
# resource path
|
157
|
-
local_var_path =
|
165
|
+
local_var_path = '/learner/{learnerId}/tags'.sub('{' + 'learnerId' + '}', learner_id.to_s)
|
158
166
|
|
159
167
|
# query parameters
|
160
168
|
query_params = {}
|
@@ -184,7 +192,6 @@ module RusticiSoftwareCloudV2
|
|
184
192
|
end
|
185
193
|
return data, status_code, headers
|
186
194
|
end
|
187
|
-
|
188
195
|
# Set the tags for this learner
|
189
196
|
# Set the tags for this learner
|
190
197
|
# @param learner_id The id of the learner for which to remove all data from an application
|
@@ -193,7 +200,7 @@ module RusticiSoftwareCloudV2
|
|
193
200
|
# @return [nil]
|
194
201
|
def put_learner_tags(learner_id, tags, opts = {})
|
195
202
|
put_learner_tags_with_http_info(learner_id, tags, opts)
|
196
|
-
|
203
|
+
nil
|
197
204
|
end
|
198
205
|
|
199
206
|
# Set the tags for this learner
|
@@ -204,14 +211,18 @@ module RusticiSoftwareCloudV2
|
|
204
211
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
205
212
|
def put_learner_tags_with_http_info(learner_id, tags, opts = {})
|
206
213
|
if @api_client.config.debugging
|
207
|
-
@api_client.config.logger.debug
|
214
|
+
@api_client.config.logger.debug 'Calling API: LearnerApi.put_learner_tags ...'
|
208
215
|
end
|
209
216
|
# verify the required parameter 'learner_id' is set
|
210
|
-
|
217
|
+
if @api_client.config.client_side_validation && learner_id.nil?
|
218
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.put_learner_tags"
|
219
|
+
end
|
211
220
|
# verify the required parameter 'tags' is set
|
212
|
-
|
221
|
+
if @api_client.config.client_side_validation && tags.nil?
|
222
|
+
fail ArgumentError, "Missing the required parameter 'tags' when calling LearnerApi.put_learner_tags"
|
223
|
+
end
|
213
224
|
# resource path
|
214
|
-
local_var_path =
|
225
|
+
local_var_path = '/learner/{learnerId}/tags'.sub('{' + 'learnerId' + '}', learner_id.to_s)
|
215
226
|
|
216
227
|
# query parameters
|
217
228
|
query_params = {}
|
@@ -240,7 +251,6 @@ module RusticiSoftwareCloudV2
|
|
240
251
|
end
|
241
252
|
return data, status_code, headers
|
242
253
|
end
|
243
|
-
|
244
254
|
# Sets all of the provided tags on all of the provided learners
|
245
255
|
# Sets all of the provided tags on all of the provided learners
|
246
256
|
# @param batch Object representing an array of ids to apply an array of tags to.
|
@@ -248,7 +258,7 @@ module RusticiSoftwareCloudV2
|
|
248
258
|
# @return [nil]
|
249
259
|
def put_learner_tags_batch(batch, opts = {})
|
250
260
|
put_learner_tags_batch_with_http_info(batch, opts)
|
251
|
-
|
261
|
+
nil
|
252
262
|
end
|
253
263
|
|
254
264
|
# Sets all of the provided tags on all of the provided learners
|
@@ -258,12 +268,14 @@ module RusticiSoftwareCloudV2
|
|
258
268
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
259
269
|
def put_learner_tags_batch_with_http_info(batch, opts = {})
|
260
270
|
if @api_client.config.debugging
|
261
|
-
@api_client.config.logger.debug
|
271
|
+
@api_client.config.logger.debug 'Calling API: LearnerApi.put_learner_tags_batch ...'
|
262
272
|
end
|
263
273
|
# verify the required parameter 'batch' is set
|
264
|
-
|
274
|
+
if @api_client.config.client_side_validation && batch.nil?
|
275
|
+
fail ArgumentError, "Missing the required parameter 'batch' when calling LearnerApi.put_learner_tags_batch"
|
276
|
+
end
|
265
277
|
# resource path
|
266
|
-
local_var_path =
|
278
|
+
local_var_path = '/learner/tags'
|
267
279
|
|
268
280
|
# query parameters
|
269
281
|
query_params = {}
|
@@ -292,7 +304,6 @@ module RusticiSoftwareCloudV2
|
|
292
304
|
end
|
293
305
|
return data, status_code, headers
|
294
306
|
end
|
295
|
-
|
296
307
|
# Update a learner's info on all of their registrations.
|
297
308
|
# A learner in SCORM Cloud is not an entity on its own. In fact, learners only exist as information on individual registrations. This method will update the information on each of the registrations that the provided `learnerId` is attached to. You may update any of the values available in the LearnerSchema which is posted. Any values you do not wish to alter, omit from the post. Depending on the field, providing something like an empty string may have unintended consequences. Lastly, it's important to note that this method is asynchronous. A success status will be returned, and that signifies that a background process has been spun up to alter the learner's info. As such, you may find a short period of delay in seeing the changes shown on all registrations.
|
298
309
|
# @param learner_id The id of the learner to be updated
|
@@ -301,7 +312,7 @@ module RusticiSoftwareCloudV2
|
|
301
312
|
# @return [nil]
|
302
313
|
def update_learner_info(learner_id, learner_info, opts = {})
|
303
314
|
update_learner_info_with_http_info(learner_id, learner_info, opts)
|
304
|
-
|
315
|
+
nil
|
305
316
|
end
|
306
317
|
|
307
318
|
# Update a learner's info on all of their registrations.
|
@@ -312,14 +323,18 @@ module RusticiSoftwareCloudV2
|
|
312
323
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
313
324
|
def update_learner_info_with_http_info(learner_id, learner_info, opts = {})
|
314
325
|
if @api_client.config.debugging
|
315
|
-
@api_client.config.logger.debug
|
326
|
+
@api_client.config.logger.debug 'Calling API: LearnerApi.update_learner_info ...'
|
316
327
|
end
|
317
328
|
# verify the required parameter 'learner_id' is set
|
318
|
-
|
329
|
+
if @api_client.config.client_side_validation && learner_id.nil?
|
330
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.update_learner_info"
|
331
|
+
end
|
319
332
|
# verify the required parameter 'learner_info' is set
|
320
|
-
|
333
|
+
if @api_client.config.client_side_validation && learner_info.nil?
|
334
|
+
fail ArgumentError, "Missing the required parameter 'learner_info' when calling LearnerApi.update_learner_info"
|
335
|
+
end
|
321
336
|
# resource path
|
322
|
-
local_var_path =
|
337
|
+
local_var_path = '/learner/{learnerId}/updateInfo'.sub('{' + 'learnerId' + '}', learner_id.to_s)
|
323
338
|
|
324
339
|
# query parameters
|
325
340
|
query_params = {}
|
@@ -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 PingApi
|
@@ -18,26 +19,23 @@ module RusticiSoftwareCloudV2
|
|
18
19
|
def initialize(api_client = ApiClient.default)
|
19
20
|
@api_client = api_client
|
20
21
|
end
|
21
|
-
|
22
|
-
#
|
23
22
|
# Get back a message indicating that the API is working.
|
24
23
|
# @param [Hash] opts the optional parameters
|
25
24
|
# @return [PingSchema]
|
26
25
|
def ping_app_id(opts = {})
|
27
26
|
data, _status_code, _headers = ping_app_id_with_http_info(opts)
|
28
|
-
|
27
|
+
data
|
29
28
|
end
|
30
29
|
|
31
|
-
#
|
32
30
|
# Get back a message indicating that the API is working.
|
33
31
|
# @param [Hash] opts the optional parameters
|
34
32
|
# @return [Array<(PingSchema, Fixnum, Hash)>] PingSchema data, response status code and response headers
|
35
33
|
def ping_app_id_with_http_info(opts = {})
|
36
34
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug
|
35
|
+
@api_client.config.logger.debug 'Calling API: PingApi.ping_app_id ...'
|
38
36
|
end
|
39
37
|
# resource path
|
40
|
-
local_var_path =
|
38
|
+
local_var_path = '/ping'
|
41
39
|
|
42
40
|
# query parameters
|
43
41
|
query_params = {}
|
@@ -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 RegistrationApi
|
@@ -18,7 +19,6 @@ module RusticiSoftwareCloudV2
|
|
18
19
|
def initialize(api_client = ApiClient.default)
|
19
20
|
@api_client = api_client
|
20
21
|
end
|
21
|
-
|
22
22
|
# Get registration launch link.
|
23
23
|
# Returns the link to use to launch this registration.
|
24
24
|
# @param registration_id id for this registration
|
@@ -27,7 +27,7 @@ module RusticiSoftwareCloudV2
|
|
27
27
|
# @return [LaunchLinkSchema]
|
28
28
|
def build_registration_launch_link(registration_id, launch_link_request, opts = {})
|
29
29
|
data, _status_code, _headers = build_registration_launch_link_with_http_info(registration_id, launch_link_request, opts)
|
30
|
-
|
30
|
+
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Get registration launch link.
|
@@ -38,14 +38,18 @@ module RusticiSoftwareCloudV2
|
|
38
38
|
# @return [Array<(LaunchLinkSchema, Fixnum, Hash)>] LaunchLinkSchema data, response status code and response headers
|
39
39
|
def build_registration_launch_link_with_http_info(registration_id, launch_link_request, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.build_registration_launch_link ...'
|
42
42
|
end
|
43
43
|
# verify the required parameter 'registration_id' is set
|
44
|
-
|
44
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.build_registration_launch_link"
|
46
|
+
end
|
45
47
|
# verify the required parameter 'launch_link_request' is set
|
46
|
-
|
48
|
+
if @api_client.config.client_side_validation && launch_link_request.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'launch_link_request' when calling RegistrationApi.build_registration_launch_link"
|
50
|
+
end
|
47
51
|
# resource path
|
48
|
-
local_var_path =
|
52
|
+
local_var_path = '/registrations/{registrationId}/launchLink'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
49
53
|
|
50
54
|
# query parameters
|
51
55
|
query_params = {}
|
@@ -75,30 +79,29 @@ module RusticiSoftwareCloudV2
|
|
75
79
|
end
|
76
80
|
return data, status_code, headers
|
77
81
|
end
|
78
|
-
|
79
|
-
#
|
80
82
|
# Create a new instance for this registration specified by the registration ID.
|
81
83
|
# @param registration_id id for this registration
|
82
84
|
# @param [Hash] opts the optional parameters
|
83
85
|
# @return [nil]
|
84
86
|
def create_new_registration_instance(registration_id, opts = {})
|
85
87
|
create_new_registration_instance_with_http_info(registration_id, opts)
|
86
|
-
|
88
|
+
nil
|
87
89
|
end
|
88
90
|
|
89
|
-
#
|
90
91
|
# Create a new instance for this registration specified by the registration ID.
|
91
92
|
# @param registration_id id for this registration
|
92
93
|
# @param [Hash] opts the optional parameters
|
93
94
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
94
95
|
def create_new_registration_instance_with_http_info(registration_id, opts = {})
|
95
96
|
if @api_client.config.debugging
|
96
|
-
@api_client.config.logger.debug
|
97
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.create_new_registration_instance ...'
|
97
98
|
end
|
98
99
|
# verify the required parameter 'registration_id' is set
|
99
|
-
|
100
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
101
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.create_new_registration_instance"
|
102
|
+
end
|
100
103
|
# resource path
|
101
|
-
local_var_path =
|
104
|
+
local_var_path = '/registrations/{registrationId}/instances'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
102
105
|
|
103
106
|
# query parameters
|
104
107
|
query_params = {}
|
@@ -127,7 +130,6 @@ module RusticiSoftwareCloudV2
|
|
127
130
|
end
|
128
131
|
return data, status_code, headers
|
129
132
|
end
|
130
|
-
|
131
133
|
# Create a registration.
|
132
134
|
# This method is used to create a new registration. A registration will contain a few pieces of information such as a learner name, a learner id, and optionally, information about where activity data should be posted (for client consumption), as well as a way to specify simple authentication schemes for posting said data. A registration must be tied to a specific course at creation time. When the created registration is “launched”, the course specified at creation time will be launched.
|
133
135
|
# @param registration
|
@@ -136,7 +138,7 @@ module RusticiSoftwareCloudV2
|
|
136
138
|
# @return [nil]
|
137
139
|
def create_registration(registration, opts = {})
|
138
140
|
create_registration_with_http_info(registration, opts)
|
139
|
-
|
141
|
+
nil
|
140
142
|
end
|
141
143
|
|
142
144
|
# Create a registration.
|
@@ -147,12 +149,14 @@ module RusticiSoftwareCloudV2
|
|
147
149
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
148
150
|
def create_registration_with_http_info(registration, opts = {})
|
149
151
|
if @api_client.config.debugging
|
150
|
-
@api_client.config.logger.debug
|
152
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.create_registration ...'
|
151
153
|
end
|
152
154
|
# verify the required parameter 'registration' is set
|
153
|
-
|
155
|
+
if @api_client.config.client_side_validation && registration.nil?
|
156
|
+
fail ArgumentError, "Missing the required parameter 'registration' when calling RegistrationApi.create_registration"
|
157
|
+
end
|
154
158
|
# resource path
|
155
|
-
local_var_path =
|
159
|
+
local_var_path = '/registrations'
|
156
160
|
|
157
161
|
# query parameters
|
158
162
|
query_params = {}
|
@@ -182,7 +186,6 @@ module RusticiSoftwareCloudV2
|
|
182
186
|
end
|
183
187
|
return data, status_code, headers
|
184
188
|
end
|
185
|
-
|
186
189
|
# Delete a registration.
|
187
190
|
# Delete `registrationId`. This includes all instances of this registration.
|
188
191
|
# @param registration_id id for this registration
|
@@ -190,7 +193,7 @@ module RusticiSoftwareCloudV2
|
|
190
193
|
# @return [nil]
|
191
194
|
def delete_registration(registration_id, opts = {})
|
192
195
|
delete_registration_with_http_info(registration_id, opts)
|
193
|
-
|
196
|
+
nil
|
194
197
|
end
|
195
198
|
|
196
199
|
# Delete a registration.
|
@@ -200,12 +203,14 @@ module RusticiSoftwareCloudV2
|
|
200
203
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
201
204
|
def delete_registration_with_http_info(registration_id, opts = {})
|
202
205
|
if @api_client.config.debugging
|
203
|
-
@api_client.config.logger.debug
|
206
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration ...'
|
204
207
|
end
|
205
208
|
# verify the required parameter 'registration_id' is set
|
206
|
-
|
209
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration"
|
211
|
+
end
|
207
212
|
# resource path
|
208
|
-
local_var_path =
|
213
|
+
local_var_path = '/registrations/{registrationId}'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
209
214
|
|
210
215
|
# query parameters
|
211
216
|
query_params = {}
|
@@ -234,7 +239,6 @@ module RusticiSoftwareCloudV2
|
|
234
239
|
end
|
235
240
|
return data, status_code, headers
|
236
241
|
end
|
237
|
-
|
238
242
|
# Clear a registration configuration.
|
239
243
|
# Clears the `settingId` value for this registration. The effective value will become the value at the next level which has an explicit value set. Possibilities are course, application, or default.
|
240
244
|
# @param registration_id id for this registration
|
@@ -243,7 +247,7 @@ module RusticiSoftwareCloudV2
|
|
243
247
|
# @return [nil]
|
244
248
|
def delete_registration_configuration_setting(registration_id, setting_id, opts = {})
|
245
249
|
delete_registration_configuration_setting_with_http_info(registration_id, setting_id, opts)
|
246
|
-
|
250
|
+
nil
|
247
251
|
end
|
248
252
|
|
249
253
|
# Clear a registration configuration.
|
@@ -254,14 +258,18 @@ module RusticiSoftwareCloudV2
|
|
254
258
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
255
259
|
def delete_registration_configuration_setting_with_http_info(registration_id, setting_id, opts = {})
|
256
260
|
if @api_client.config.debugging
|
257
|
-
@api_client.config.logger.debug
|
261
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_configuration_setting ...'
|
258
262
|
end
|
259
263
|
# verify the required parameter 'registration_id' is set
|
260
|
-
|
264
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
265
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_configuration_setting"
|
266
|
+
end
|
261
267
|
# verify the required parameter 'setting_id' is set
|
262
|
-
|
268
|
+
if @api_client.config.client_side_validation && setting_id.nil?
|
269
|
+
fail ArgumentError, "Missing the required parameter 'setting_id' when calling RegistrationApi.delete_registration_configuration_setting"
|
270
|
+
end
|
263
271
|
# resource path
|
264
|
-
local_var_path =
|
272
|
+
local_var_path = '/registrations/{registrationId}/configuration/{settingId}'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'settingId' + '}', setting_id.to_s)
|
265
273
|
|
266
274
|
# query parameters
|
267
275
|
query_params = {}
|
@@ -290,7 +298,6 @@ module RusticiSoftwareCloudV2
|
|
290
298
|
end
|
291
299
|
return data, status_code, headers
|
292
300
|
end
|
293
|
-
|
294
301
|
# Delete the global data of a registration.
|
295
302
|
# Delete global data associated with `registrationId`'. Calling this method will reset all global objectives associated with this registration, if any exist.
|
296
303
|
# @param registration_id id for this registration
|
@@ -298,7 +305,7 @@ module RusticiSoftwareCloudV2
|
|
298
305
|
# @return [nil]
|
299
306
|
def delete_registration_global_data(registration_id, opts = {})
|
300
307
|
delete_registration_global_data_with_http_info(registration_id, opts)
|
301
|
-
|
308
|
+
nil
|
302
309
|
end
|
303
310
|
|
304
311
|
# Delete the global data of a registration.
|
@@ -308,12 +315,14 @@ module RusticiSoftwareCloudV2
|
|
308
315
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
309
316
|
def delete_registration_global_data_with_http_info(registration_id, opts = {})
|
310
317
|
if @api_client.config.debugging
|
311
|
-
@api_client.config.logger.debug
|
318
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_global_data ...'
|
312
319
|
end
|
313
320
|
# verify the required parameter 'registration_id' is set
|
314
|
-
|
321
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
322
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_global_data"
|
323
|
+
end
|
315
324
|
# resource path
|
316
|
-
local_var_path =
|
325
|
+
local_var_path = '/registrations/{registrationId}/globalData'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
317
326
|
|
318
327
|
# query parameters
|
319
328
|
query_params = {}
|
@@ -342,7 +351,69 @@ module RusticiSoftwareCloudV2
|
|
342
351
|
end
|
343
352
|
return data, status_code, headers
|
344
353
|
end
|
354
|
+
# Delete instance `instanceId` of `registrationId`.
|
355
|
+
# Delete instance `instanceId` of `registrationId`. If this is the only existing instance of this registration, the registration will be deleted in its entirety along with any associated data.
|
356
|
+
# @param registration_id id for this registration
|
357
|
+
# @param instance_id The instance of this registration
|
358
|
+
# @param [Hash] opts the optional parameters
|
359
|
+
# @return [nil]
|
360
|
+
def delete_registration_instance(registration_id, instance_id, opts = {})
|
361
|
+
delete_registration_instance_with_http_info(registration_id, instance_id, opts)
|
362
|
+
nil
|
363
|
+
end
|
364
|
+
|
365
|
+
# Delete instance `instanceId` of `registrationId`.
|
366
|
+
# Delete instance `instanceId` of `registrationId`. If this is the only existing instance of this registration, the registration will be deleted in its entirety along with any associated data.
|
367
|
+
# @param registration_id id for this registration
|
368
|
+
# @param instance_id The instance of this registration
|
369
|
+
# @param [Hash] opts the optional parameters
|
370
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
371
|
+
def delete_registration_instance_with_http_info(registration_id, instance_id, opts = {})
|
372
|
+
if @api_client.config.debugging
|
373
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_instance ...'
|
374
|
+
end
|
375
|
+
# verify the required parameter 'registration_id' is set
|
376
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_instance"
|
378
|
+
end
|
379
|
+
# verify the required parameter 'instance_id' is set
|
380
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
381
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.delete_registration_instance"
|
382
|
+
end
|
383
|
+
if @api_client.config.client_side_validation && instance_id < 0
|
384
|
+
fail ArgumentError, 'invalid value for "instance_id" when calling RegistrationApi.delete_registration_instance, must be greater than or equal to 0.'
|
385
|
+
end
|
386
|
+
|
387
|
+
# resource path
|
388
|
+
local_var_path = '/registrations/{registrationId}/instances/{instanceId}'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
|
389
|
+
|
390
|
+
# query parameters
|
391
|
+
query_params = {}
|
345
392
|
|
393
|
+
# header parameters
|
394
|
+
header_params = {}
|
395
|
+
# HTTP header 'Accept' (if needed)
|
396
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
397
|
+
# HTTP header 'Content-Type'
|
398
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
399
|
+
|
400
|
+
# form parameters
|
401
|
+
form_params = {}
|
402
|
+
|
403
|
+
# http body (model)
|
404
|
+
post_body = nil
|
405
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
406
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
407
|
+
:header_params => header_params,
|
408
|
+
:query_params => query_params,
|
409
|
+
:form_params => form_params,
|
410
|
+
:body => post_body,
|
411
|
+
:auth_names => auth_names)
|
412
|
+
if @api_client.config.debugging
|
413
|
+
@api_client.config.logger.debug "API called: RegistrationApi#delete_registration_instance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
414
|
+
end
|
415
|
+
return data, status_code, headers
|
416
|
+
end
|
346
417
|
# Clear a configuration for an instance of a registration.
|
347
418
|
# Clears the `settingId` value for this registration instance.
|
348
419
|
# @param registration_id id for this registration
|
@@ -352,7 +423,7 @@ module RusticiSoftwareCloudV2
|
|
352
423
|
# @return [nil]
|
353
424
|
def delete_registration_instance_configuration_setting(registration_id, instance_id, setting_id, opts = {})
|
354
425
|
delete_registration_instance_configuration_setting_with_http_info(registration_id, instance_id, setting_id, opts)
|
355
|
-
|
426
|
+
nil
|
356
427
|
end
|
357
428
|
|
358
429
|
# Clear a configuration for an instance of a registration.
|
@@ -364,20 +435,26 @@ module RusticiSoftwareCloudV2
|
|
364
435
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
365
436
|
def delete_registration_instance_configuration_setting_with_http_info(registration_id, instance_id, setting_id, opts = {})
|
366
437
|
if @api_client.config.debugging
|
367
|
-
@api_client.config.logger.debug
|
438
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_instance_configuration_setting ...'
|
368
439
|
end
|
369
440
|
# verify the required parameter 'registration_id' is set
|
370
|
-
|
441
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
442
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_instance_configuration_setting"
|
443
|
+
end
|
371
444
|
# verify the required parameter 'instance_id' is set
|
372
|
-
|
373
|
-
|
445
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
446
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.delete_registration_instance_configuration_setting"
|
447
|
+
end
|
448
|
+
if @api_client.config.client_side_validation && instance_id < 0
|
374
449
|
fail ArgumentError, 'invalid value for "instance_id" when calling RegistrationApi.delete_registration_instance_configuration_setting, must be greater than or equal to 0.'
|
375
450
|
end
|
376
451
|
|
377
452
|
# verify the required parameter 'setting_id' is set
|
378
|
-
|
453
|
+
if @api_client.config.client_side_validation && setting_id.nil?
|
454
|
+
fail ArgumentError, "Missing the required parameter 'setting_id' when calling RegistrationApi.delete_registration_instance_configuration_setting"
|
455
|
+
end
|
379
456
|
# resource path
|
380
|
-
local_var_path =
|
457
|
+
local_var_path = '/registrations/{registrationId}/instances/{instanceId}/configuration/{settingId}'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s).sub('{' + 'settingId' + '}', setting_id.to_s)
|
381
458
|
|
382
459
|
# query parameters
|
383
460
|
query_params = {}
|
@@ -406,7 +483,6 @@ module RusticiSoftwareCloudV2
|
|
406
483
|
end
|
407
484
|
return data, status_code, headers
|
408
485
|
end
|
409
|
-
|
410
486
|
# Reset a registration.
|
411
487
|
# This method will reset the specified registration. This is essentially the same as deleting and recreating the registration, and as such, will delete all the data associated with the registration (including launch history, etc.). If the course for which the registration is registered has multiple versions, the registration being reset will automatically be registered for the latest version.
|
412
488
|
# @param registration_id id for this registration
|
@@ -414,7 +490,7 @@ module RusticiSoftwareCloudV2
|
|
414
490
|
# @return [nil]
|
415
491
|
def delete_registration_progress(registration_id, opts = {})
|
416
492
|
delete_registration_progress_with_http_info(registration_id, opts)
|
417
|
-
|
493
|
+
nil
|
418
494
|
end
|
419
495
|
|
420
496
|
# Reset a registration.
|
@@ -424,12 +500,14 @@ module RusticiSoftwareCloudV2
|
|
424
500
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
425
501
|
def delete_registration_progress_with_http_info(registration_id, opts = {})
|
426
502
|
if @api_client.config.debugging
|
427
|
-
@api_client.config.logger.debug
|
503
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_progress ...'
|
428
504
|
end
|
429
505
|
# verify the required parameter 'registration_id' is set
|
430
|
-
|
506
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
507
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_progress"
|
508
|
+
end
|
431
509
|
# resource path
|
432
|
-
local_var_path =
|
510
|
+
local_var_path = '/registrations/{registrationId}/progress'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
433
511
|
|
434
512
|
# query parameters
|
435
513
|
query_params = {}
|
@@ -458,7 +536,6 @@ module RusticiSoftwareCloudV2
|
|
458
536
|
end
|
459
537
|
return data, status_code, headers
|
460
538
|
end
|
461
|
-
|
462
539
|
# Delete tags from a registration.
|
463
540
|
# Delete the provided tags for this registration.
|
464
541
|
# @param registration_id id for this registration
|
@@ -467,7 +544,7 @@ module RusticiSoftwareCloudV2
|
|
467
544
|
# @return [nil]
|
468
545
|
def delete_registration_tags(registration_id, tags, opts = {})
|
469
546
|
delete_registration_tags_with_http_info(registration_id, tags, opts)
|
470
|
-
|
547
|
+
nil
|
471
548
|
end
|
472
549
|
|
473
550
|
# Delete tags from a registration.
|
@@ -478,14 +555,18 @@ module RusticiSoftwareCloudV2
|
|
478
555
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
479
556
|
def delete_registration_tags_with_http_info(registration_id, tags, opts = {})
|
480
557
|
if @api_client.config.debugging
|
481
|
-
@api_client.config.logger.debug
|
558
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_tags ...'
|
482
559
|
end
|
483
560
|
# verify the required parameter 'registration_id' is set
|
484
|
-
|
561
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
562
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_tags"
|
563
|
+
end
|
485
564
|
# verify the required parameter 'tags' is set
|
486
|
-
|
565
|
+
if @api_client.config.client_side_validation && tags.nil?
|
566
|
+
fail ArgumentError, "Missing the required parameter 'tags' when calling RegistrationApi.delete_registration_tags"
|
567
|
+
end
|
487
568
|
# resource path
|
488
|
-
local_var_path =
|
569
|
+
local_var_path = '/registrations/{registrationId}/tags'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
489
570
|
|
490
571
|
# query parameters
|
491
572
|
query_params = {}
|
@@ -514,7 +595,6 @@ module RusticiSoftwareCloudV2
|
|
514
595
|
end
|
515
596
|
return data, status_code, headers
|
516
597
|
end
|
517
|
-
|
518
598
|
# See if a registration exists.
|
519
599
|
# This method is meant to check if a registration with `registrationId` exists in the system.
|
520
600
|
# @param registration_id id for this registration
|
@@ -522,7 +602,7 @@ module RusticiSoftwareCloudV2
|
|
522
602
|
# @return [nil]
|
523
603
|
def get_registration(registration_id, opts = {})
|
524
604
|
get_registration_with_http_info(registration_id, opts)
|
525
|
-
|
605
|
+
nil
|
526
606
|
end
|
527
607
|
|
528
608
|
# See if a registration exists.
|
@@ -532,12 +612,14 @@ module RusticiSoftwareCloudV2
|
|
532
612
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
533
613
|
def get_registration_with_http_info(registration_id, opts = {})
|
534
614
|
if @api_client.config.debugging
|
535
|
-
@api_client.config.logger.debug
|
615
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration ...'
|
536
616
|
end
|
537
617
|
# verify the required parameter 'registration_id' is set
|
538
|
-
|
618
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
619
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration"
|
620
|
+
end
|
539
621
|
# resource path
|
540
|
-
local_var_path =
|
622
|
+
local_var_path = '/registrations/{registrationId}'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
541
623
|
|
542
624
|
# query parameters
|
543
625
|
query_params = {}
|
@@ -566,7 +648,6 @@ module RusticiSoftwareCloudV2
|
|
566
648
|
end
|
567
649
|
return data, status_code, headers
|
568
650
|
end
|
569
|
-
|
570
651
|
# Get registration configuration.
|
571
652
|
# Returns all configuration settings for this registration.
|
572
653
|
# @param registration_id id for this registration
|
@@ -575,7 +656,7 @@ module RusticiSoftwareCloudV2
|
|
575
656
|
# @return [SettingListSchema]
|
576
657
|
def get_registration_configuration(registration_id, opts = {})
|
577
658
|
data, _status_code, _headers = get_registration_configuration_with_http_info(registration_id, opts)
|
578
|
-
|
659
|
+
data
|
579
660
|
end
|
580
661
|
|
581
662
|
# Get registration configuration.
|
@@ -586,12 +667,14 @@ module RusticiSoftwareCloudV2
|
|
586
667
|
# @return [Array<(SettingListSchema, Fixnum, Hash)>] SettingListSchema data, response status code and response headers
|
587
668
|
def get_registration_configuration_with_http_info(registration_id, opts = {})
|
588
669
|
if @api_client.config.debugging
|
589
|
-
@api_client.config.logger.debug
|
670
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_configuration ...'
|
590
671
|
end
|
591
672
|
# verify the required parameter 'registration_id' is set
|
592
|
-
|
673
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
674
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_configuration"
|
675
|
+
end
|
593
676
|
# resource path
|
594
|
-
local_var_path =
|
677
|
+
local_var_path = '/registrations/{registrationId}/configuration'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
595
678
|
|
596
679
|
# query parameters
|
597
680
|
query_params = {}
|
@@ -622,7 +705,6 @@ module RusticiSoftwareCloudV2
|
|
622
705
|
end
|
623
706
|
return data, status_code, headers
|
624
707
|
end
|
625
|
-
|
626
708
|
# Get configuration for instance of registration.
|
627
709
|
# Returns all configuration settings for this registration instance.
|
628
710
|
# @param registration_id id for this registration
|
@@ -632,7 +714,7 @@ module RusticiSoftwareCloudV2
|
|
632
714
|
# @return [SettingListSchema]
|
633
715
|
def get_registration_instance_configuration(registration_id, instance_id, opts = {})
|
634
716
|
data, _status_code, _headers = get_registration_instance_configuration_with_http_info(registration_id, instance_id, opts)
|
635
|
-
|
717
|
+
data
|
636
718
|
end
|
637
719
|
|
638
720
|
# Get configuration for instance of registration.
|
@@ -644,18 +726,22 @@ module RusticiSoftwareCloudV2
|
|
644
726
|
# @return [Array<(SettingListSchema, Fixnum, Hash)>] SettingListSchema data, response status code and response headers
|
645
727
|
def get_registration_instance_configuration_with_http_info(registration_id, instance_id, opts = {})
|
646
728
|
if @api_client.config.debugging
|
647
|
-
@api_client.config.logger.debug
|
729
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instance_configuration ...'
|
648
730
|
end
|
649
731
|
# verify the required parameter 'registration_id' is set
|
650
|
-
|
732
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
733
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instance_configuration"
|
734
|
+
end
|
651
735
|
# verify the required parameter 'instance_id' is set
|
652
|
-
|
653
|
-
|
736
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
737
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.get_registration_instance_configuration"
|
738
|
+
end
|
739
|
+
if @api_client.config.client_side_validation && instance_id < 0
|
654
740
|
fail ArgumentError, 'invalid value for "instance_id" when calling RegistrationApi.get_registration_instance_configuration, must be greater than or equal to 0.'
|
655
741
|
end
|
656
742
|
|
657
743
|
# resource path
|
658
|
-
local_var_path =
|
744
|
+
local_var_path = '/registrations/{registrationId}/instances/{instanceId}/configuration'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
|
659
745
|
|
660
746
|
# query parameters
|
661
747
|
query_params = {}
|
@@ -686,7 +772,6 @@ module RusticiSoftwareCloudV2
|
|
686
772
|
end
|
687
773
|
return data, status_code, headers
|
688
774
|
end
|
689
|
-
|
690
775
|
# Get launch history for an instance of a registration.
|
691
776
|
# Returns history of the launches of the specified instance of this registration.
|
692
777
|
# @param registration_id id for this registration
|
@@ -696,7 +781,7 @@ module RusticiSoftwareCloudV2
|
|
696
781
|
# @return [LaunchHistoryListSchema]
|
697
782
|
def get_registration_instance_launch_history(registration_id, instance_id, opts = {})
|
698
783
|
data, _status_code, _headers = get_registration_instance_launch_history_with_http_info(registration_id, instance_id, opts)
|
699
|
-
|
784
|
+
data
|
700
785
|
end
|
701
786
|
|
702
787
|
# Get launch history for an instance of a registration.
|
@@ -708,18 +793,22 @@ module RusticiSoftwareCloudV2
|
|
708
793
|
# @return [Array<(LaunchHistoryListSchema, Fixnum, Hash)>] LaunchHistoryListSchema data, response status code and response headers
|
709
794
|
def get_registration_instance_launch_history_with_http_info(registration_id, instance_id, opts = {})
|
710
795
|
if @api_client.config.debugging
|
711
|
-
@api_client.config.logger.debug
|
796
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instance_launch_history ...'
|
712
797
|
end
|
713
798
|
# verify the required parameter 'registration_id' is set
|
714
|
-
|
799
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
800
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instance_launch_history"
|
801
|
+
end
|
715
802
|
# verify the required parameter 'instance_id' is set
|
716
|
-
|
717
|
-
|
803
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
804
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.get_registration_instance_launch_history"
|
805
|
+
end
|
806
|
+
if @api_client.config.client_side_validation && instance_id < 0
|
718
807
|
fail ArgumentError, 'invalid value for "instance_id" when calling RegistrationApi.get_registration_instance_launch_history, must be greater than or equal to 0.'
|
719
808
|
end
|
720
809
|
|
721
810
|
# resource path
|
722
|
-
local_var_path =
|
811
|
+
local_var_path = '/registrations/{registrationId}/instances/{instanceId}/launchHistory'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
|
723
812
|
|
724
813
|
# query parameters
|
725
814
|
query_params = {}
|
@@ -750,7 +839,6 @@ module RusticiSoftwareCloudV2
|
|
750
839
|
end
|
751
840
|
return data, status_code, headers
|
752
841
|
end
|
753
|
-
|
754
842
|
# Get details of an instance of a registration.
|
755
843
|
# Get registration progress for instance `instanceId` of `registrationId`'
|
756
844
|
# @param registration_id id for this registration
|
@@ -762,7 +850,7 @@ module RusticiSoftwareCloudV2
|
|
762
850
|
# @return [RegistrationSchema]
|
763
851
|
def get_registration_instance_progress(registration_id, instance_id, opts = {})
|
764
852
|
data, _status_code, _headers = get_registration_instance_progress_with_http_info(registration_id, instance_id, opts)
|
765
|
-
|
853
|
+
data
|
766
854
|
end
|
767
855
|
|
768
856
|
# Get details of an instance of a registration.
|
@@ -776,18 +864,22 @@ module RusticiSoftwareCloudV2
|
|
776
864
|
# @return [Array<(RegistrationSchema, Fixnum, Hash)>] RegistrationSchema data, response status code and response headers
|
777
865
|
def get_registration_instance_progress_with_http_info(registration_id, instance_id, opts = {})
|
778
866
|
if @api_client.config.debugging
|
779
|
-
@api_client.config.logger.debug
|
867
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instance_progress ...'
|
780
868
|
end
|
781
869
|
# verify the required parameter 'registration_id' is set
|
782
|
-
|
870
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
871
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instance_progress"
|
872
|
+
end
|
783
873
|
# verify the required parameter 'instance_id' is set
|
784
|
-
|
785
|
-
|
874
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
875
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.get_registration_instance_progress"
|
876
|
+
end
|
877
|
+
if @api_client.config.client_side_validation && instance_id < 0
|
786
878
|
fail ArgumentError, 'invalid value for "instance_id" when calling RegistrationApi.get_registration_instance_progress, must be greater than or equal to 0.'
|
787
879
|
end
|
788
880
|
|
789
881
|
# resource path
|
790
|
-
local_var_path =
|
882
|
+
local_var_path = '/registrations/{registrationId}/instances/{instanceId}'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
|
791
883
|
|
792
884
|
# query parameters
|
793
885
|
query_params = {}
|
@@ -820,7 +912,6 @@ module RusticiSoftwareCloudV2
|
|
820
912
|
end
|
821
913
|
return data, status_code, headers
|
822
914
|
end
|
823
|
-
|
824
915
|
# Get xAPI statements for an instance of a registration.
|
825
916
|
# Get xAPI statements for instance `instanceId` of `registrationId`.
|
826
917
|
# @param registration_id id for this registration
|
@@ -832,7 +923,7 @@ module RusticiSoftwareCloudV2
|
|
832
923
|
# @return [XapiStatementResult]
|
833
924
|
def get_registration_instance_statements(registration_id, instance_id, opts = {})
|
834
925
|
data, _status_code, _headers = get_registration_instance_statements_with_http_info(registration_id, instance_id, opts)
|
835
|
-
|
926
|
+
data
|
836
927
|
end
|
837
928
|
|
838
929
|
# Get xAPI statements for an instance of a registration.
|
@@ -846,18 +937,22 @@ module RusticiSoftwareCloudV2
|
|
846
937
|
# @return [Array<(XapiStatementResult, Fixnum, Hash)>] XapiStatementResult data, response status code and response headers
|
847
938
|
def get_registration_instance_statements_with_http_info(registration_id, instance_id, opts = {})
|
848
939
|
if @api_client.config.debugging
|
849
|
-
@api_client.config.logger.debug
|
940
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instance_statements ...'
|
850
941
|
end
|
851
942
|
# verify the required parameter 'registration_id' is set
|
852
|
-
|
943
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
944
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instance_statements"
|
945
|
+
end
|
853
946
|
# verify the required parameter 'instance_id' is set
|
854
|
-
|
855
|
-
|
947
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
948
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.get_registration_instance_statements"
|
949
|
+
end
|
950
|
+
if @api_client.config.client_side_validation && instance_id < 0
|
856
951
|
fail ArgumentError, 'invalid value for "instance_id" when calling RegistrationApi.get_registration_instance_statements, must be greater than or equal to 0.'
|
857
952
|
end
|
858
953
|
|
859
954
|
# resource path
|
860
|
-
local_var_path =
|
955
|
+
local_var_path = '/registrations/{registrationId}/instances/{instanceId}/xAPIStatements'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
|
861
956
|
|
862
957
|
# query parameters
|
863
958
|
query_params = {}
|
@@ -890,7 +985,6 @@ module RusticiSoftwareCloudV2
|
|
890
985
|
end
|
891
986
|
return data, status_code, headers
|
892
987
|
end
|
893
|
-
|
894
988
|
# Get all instances of a registration.
|
895
989
|
# Get all the instances of this the registration specified by the registration ID
|
896
990
|
# @param registration_id id for this registration
|
@@ -904,7 +998,7 @@ module RusticiSoftwareCloudV2
|
|
904
998
|
# @return [RegistrationListSchema]
|
905
999
|
def get_registration_instances(registration_id, opts = {})
|
906
1000
|
data, _status_code, _headers = get_registration_instances_with_http_info(registration_id, opts)
|
907
|
-
|
1001
|
+
data
|
908
1002
|
end
|
909
1003
|
|
910
1004
|
# Get all instances of a registration.
|
@@ -920,12 +1014,14 @@ module RusticiSoftwareCloudV2
|
|
920
1014
|
# @return [Array<(RegistrationListSchema, Fixnum, Hash)>] RegistrationListSchema data, response status code and response headers
|
921
1015
|
def get_registration_instances_with_http_info(registration_id, opts = {})
|
922
1016
|
if @api_client.config.debugging
|
923
|
-
@api_client.config.logger.debug
|
1017
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instances ...'
|
924
1018
|
end
|
925
1019
|
# verify the required parameter 'registration_id' is set
|
926
|
-
|
1020
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
1021
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instances"
|
1022
|
+
end
|
927
1023
|
# resource path
|
928
|
-
local_var_path =
|
1024
|
+
local_var_path = '/registrations/{registrationId}/instances'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
929
1025
|
|
930
1026
|
# query parameters
|
931
1027
|
query_params = {}
|
@@ -961,7 +1057,6 @@ module RusticiSoftwareCloudV2
|
|
961
1057
|
end
|
962
1058
|
return data, status_code, headers
|
963
1059
|
end
|
964
|
-
|
965
1060
|
# Get launch history for a registration.
|
966
1061
|
# Returns history of this registration's launches.
|
967
1062
|
# @param registration_id id for this registration
|
@@ -970,7 +1065,7 @@ module RusticiSoftwareCloudV2
|
|
970
1065
|
# @return [LaunchHistoryListSchema]
|
971
1066
|
def get_registration_launch_history(registration_id, opts = {})
|
972
1067
|
data, _status_code, _headers = get_registration_launch_history_with_http_info(registration_id, opts)
|
973
|
-
|
1068
|
+
data
|
974
1069
|
end
|
975
1070
|
|
976
1071
|
# Get launch history for a registration.
|
@@ -981,12 +1076,14 @@ module RusticiSoftwareCloudV2
|
|
981
1076
|
# @return [Array<(LaunchHistoryListSchema, Fixnum, Hash)>] LaunchHistoryListSchema data, response status code and response headers
|
982
1077
|
def get_registration_launch_history_with_http_info(registration_id, opts = {})
|
983
1078
|
if @api_client.config.debugging
|
984
|
-
@api_client.config.logger.debug
|
1079
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_launch_history ...'
|
985
1080
|
end
|
986
1081
|
# verify the required parameter 'registration_id' is set
|
987
|
-
|
1082
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
1083
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_launch_history"
|
1084
|
+
end
|
988
1085
|
# resource path
|
989
|
-
local_var_path =
|
1086
|
+
local_var_path = '/registrations/{registrationId}/launchHistory'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
990
1087
|
|
991
1088
|
# query parameters
|
992
1089
|
query_params = {}
|
@@ -1017,7 +1114,6 @@ module RusticiSoftwareCloudV2
|
|
1017
1114
|
end
|
1018
1115
|
return data, status_code, headers
|
1019
1116
|
end
|
1020
|
-
|
1021
1117
|
# Get details of a registration.
|
1022
1118
|
# Get detailed information about the latest instance of `registrationId`. Additional detail may be obtained by using the optional query parameters.
|
1023
1119
|
# @param registration_id id for this registration
|
@@ -1028,7 +1124,7 @@ module RusticiSoftwareCloudV2
|
|
1028
1124
|
# @return [RegistrationSchema]
|
1029
1125
|
def get_registration_progress(registration_id, opts = {})
|
1030
1126
|
data, _status_code, _headers = get_registration_progress_with_http_info(registration_id, opts)
|
1031
|
-
|
1127
|
+
data
|
1032
1128
|
end
|
1033
1129
|
|
1034
1130
|
# Get details of a registration.
|
@@ -1041,12 +1137,14 @@ module RusticiSoftwareCloudV2
|
|
1041
1137
|
# @return [Array<(RegistrationSchema, Fixnum, Hash)>] RegistrationSchema data, response status code and response headers
|
1042
1138
|
def get_registration_progress_with_http_info(registration_id, opts = {})
|
1043
1139
|
if @api_client.config.debugging
|
1044
|
-
@api_client.config.logger.debug
|
1140
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_progress ...'
|
1045
1141
|
end
|
1046
1142
|
# verify the required parameter 'registration_id' is set
|
1047
|
-
|
1143
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
1144
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_progress"
|
1145
|
+
end
|
1048
1146
|
# resource path
|
1049
|
-
local_var_path =
|
1147
|
+
local_var_path = '/registrations/{registrationId}'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
1050
1148
|
|
1051
1149
|
# query parameters
|
1052
1150
|
query_params = {}
|
@@ -1079,7 +1177,6 @@ module RusticiSoftwareCloudV2
|
|
1079
1177
|
end
|
1080
1178
|
return data, status_code, headers
|
1081
1179
|
end
|
1082
|
-
|
1083
1180
|
# Get xAPI statements for a registration.
|
1084
1181
|
# Get xAPI statements for `registrationId`.
|
1085
1182
|
# @param registration_id id for this registration
|
@@ -1090,7 +1187,7 @@ module RusticiSoftwareCloudV2
|
|
1090
1187
|
# @return [XapiStatementResult]
|
1091
1188
|
def get_registration_statements(registration_id, opts = {})
|
1092
1189
|
data, _status_code, _headers = get_registration_statements_with_http_info(registration_id, opts)
|
1093
|
-
|
1190
|
+
data
|
1094
1191
|
end
|
1095
1192
|
|
1096
1193
|
# Get xAPI statements for a registration.
|
@@ -1103,12 +1200,14 @@ module RusticiSoftwareCloudV2
|
|
1103
1200
|
# @return [Array<(XapiStatementResult, Fixnum, Hash)>] XapiStatementResult data, response status code and response headers
|
1104
1201
|
def get_registration_statements_with_http_info(registration_id, opts = {})
|
1105
1202
|
if @api_client.config.debugging
|
1106
|
-
@api_client.config.logger.debug
|
1203
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_statements ...'
|
1107
1204
|
end
|
1108
1205
|
# verify the required parameter 'registration_id' is set
|
1109
|
-
|
1206
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
1207
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_statements"
|
1208
|
+
end
|
1110
1209
|
# resource path
|
1111
|
-
local_var_path =
|
1210
|
+
local_var_path = '/registrations/{registrationId}/xAPIStatements'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
1112
1211
|
|
1113
1212
|
# query parameters
|
1114
1213
|
query_params = {}
|
@@ -1141,7 +1240,6 @@ module RusticiSoftwareCloudV2
|
|
1141
1240
|
end
|
1142
1241
|
return data, status_code, headers
|
1143
1242
|
end
|
1144
|
-
|
1145
1243
|
# Get tags for a registration.
|
1146
1244
|
# Get a list of the tags applied to this registration.
|
1147
1245
|
# @param registration_id id for this registration
|
@@ -1149,7 +1247,7 @@ module RusticiSoftwareCloudV2
|
|
1149
1247
|
# @return [TagListSchema]
|
1150
1248
|
def get_registration_tags(registration_id, opts = {})
|
1151
1249
|
data, _status_code, _headers = get_registration_tags_with_http_info(registration_id, opts)
|
1152
|
-
|
1250
|
+
data
|
1153
1251
|
end
|
1154
1252
|
|
1155
1253
|
# Get tags for a registration.
|
@@ -1159,12 +1257,14 @@ module RusticiSoftwareCloudV2
|
|
1159
1257
|
# @return [Array<(TagListSchema, Fixnum, Hash)>] TagListSchema data, response status code and response headers
|
1160
1258
|
def get_registration_tags_with_http_info(registration_id, opts = {})
|
1161
1259
|
if @api_client.config.debugging
|
1162
|
-
@api_client.config.logger.debug
|
1260
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_tags ...'
|
1163
1261
|
end
|
1164
1262
|
# verify the required parameter 'registration_id' is set
|
1165
|
-
|
1263
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
1264
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_tags"
|
1265
|
+
end
|
1166
1266
|
# resource path
|
1167
|
-
local_var_path =
|
1267
|
+
local_var_path = '/registrations/{registrationId}/tags'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
1168
1268
|
|
1169
1269
|
# query parameters
|
1170
1270
|
query_params = {}
|
@@ -1194,7 +1294,6 @@ module RusticiSoftwareCloudV2
|
|
1194
1294
|
end
|
1195
1295
|
return data, status_code, headers
|
1196
1296
|
end
|
1197
|
-
|
1198
1297
|
# Get a list of all registrations.
|
1199
1298
|
# Gets a list of registrations including a summary of the status of each registration.
|
1200
1299
|
# @param [Hash] opts the optional parameters
|
@@ -1210,7 +1309,7 @@ module RusticiSoftwareCloudV2
|
|
1210
1309
|
# @return [RegistrationListSchema]
|
1211
1310
|
def get_registrations(opts = {})
|
1212
1311
|
data, _status_code, _headers = get_registrations_with_http_info(opts)
|
1213
|
-
|
1312
|
+
data
|
1214
1313
|
end
|
1215
1314
|
|
1216
1315
|
# Get a list of all registrations.
|
@@ -1228,10 +1327,10 @@ module RusticiSoftwareCloudV2
|
|
1228
1327
|
# @return [Array<(RegistrationListSchema, Fixnum, Hash)>] RegistrationListSchema data, response status code and response headers
|
1229
1328
|
def get_registrations_with_http_info(opts = {})
|
1230
1329
|
if @api_client.config.debugging
|
1231
|
-
@api_client.config.logger.debug
|
1330
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.get_registrations ...'
|
1232
1331
|
end
|
1233
1332
|
# resource path
|
1234
|
-
local_var_path =
|
1333
|
+
local_var_path = '/registrations'
|
1235
1334
|
|
1236
1335
|
# query parameters
|
1237
1336
|
query_params = {}
|
@@ -1270,7 +1369,6 @@ module RusticiSoftwareCloudV2
|
|
1270
1369
|
end
|
1271
1370
|
return data, status_code, headers
|
1272
1371
|
end
|
1273
|
-
|
1274
1372
|
# Set tags on a registration.
|
1275
1373
|
# Set the tags for this registration. Note: any tags currently on this registration will be overwritten with the new array of tags.
|
1276
1374
|
# @param registration_id id for this registration
|
@@ -1279,7 +1377,7 @@ module RusticiSoftwareCloudV2
|
|
1279
1377
|
# @return [nil]
|
1280
1378
|
def put_registration_tags(registration_id, tags, opts = {})
|
1281
1379
|
put_registration_tags_with_http_info(registration_id, tags, opts)
|
1282
|
-
|
1380
|
+
nil
|
1283
1381
|
end
|
1284
1382
|
|
1285
1383
|
# Set tags on a registration.
|
@@ -1290,14 +1388,18 @@ module RusticiSoftwareCloudV2
|
|
1290
1388
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1291
1389
|
def put_registration_tags_with_http_info(registration_id, tags, opts = {})
|
1292
1390
|
if @api_client.config.debugging
|
1293
|
-
@api_client.config.logger.debug
|
1391
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.put_registration_tags ...'
|
1294
1392
|
end
|
1295
1393
|
# verify the required parameter 'registration_id' is set
|
1296
|
-
|
1394
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
1395
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.put_registration_tags"
|
1396
|
+
end
|
1297
1397
|
# verify the required parameter 'tags' is set
|
1298
|
-
|
1398
|
+
if @api_client.config.client_side_validation && tags.nil?
|
1399
|
+
fail ArgumentError, "Missing the required parameter 'tags' when calling RegistrationApi.put_registration_tags"
|
1400
|
+
end
|
1299
1401
|
# resource path
|
1300
|
-
local_var_path =
|
1402
|
+
local_var_path = '/registrations/{registrationId}/tags'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
1301
1403
|
|
1302
1404
|
# query parameters
|
1303
1405
|
query_params = {}
|
@@ -1326,7 +1428,6 @@ module RusticiSoftwareCloudV2
|
|
1326
1428
|
end
|
1327
1429
|
return data, status_code, headers
|
1328
1430
|
end
|
1329
|
-
|
1330
1431
|
# Set tags on registrations.
|
1331
1432
|
# Sets all of the provided tags on all of the provided registrations.
|
1332
1433
|
# @param batch Object representing an array of ids to apply an array of tags to.
|
@@ -1334,7 +1435,7 @@ module RusticiSoftwareCloudV2
|
|
1334
1435
|
# @return [nil]
|
1335
1436
|
def put_registration_tags_batch(batch, opts = {})
|
1336
1437
|
put_registration_tags_batch_with_http_info(batch, opts)
|
1337
|
-
|
1438
|
+
nil
|
1338
1439
|
end
|
1339
1440
|
|
1340
1441
|
# Set tags on registrations.
|
@@ -1344,12 +1445,14 @@ module RusticiSoftwareCloudV2
|
|
1344
1445
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1345
1446
|
def put_registration_tags_batch_with_http_info(batch, opts = {})
|
1346
1447
|
if @api_client.config.debugging
|
1347
|
-
@api_client.config.logger.debug
|
1448
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.put_registration_tags_batch ...'
|
1348
1449
|
end
|
1349
1450
|
# verify the required parameter 'batch' is set
|
1350
|
-
|
1451
|
+
if @api_client.config.client_side_validation && batch.nil?
|
1452
|
+
fail ArgumentError, "Missing the required parameter 'batch' when calling RegistrationApi.put_registration_tags_batch"
|
1453
|
+
end
|
1351
1454
|
# resource path
|
1352
|
-
local_var_path =
|
1455
|
+
local_var_path = '/registrations/tags'
|
1353
1456
|
|
1354
1457
|
# query parameters
|
1355
1458
|
query_params = {}
|
@@ -1378,7 +1481,6 @@ module RusticiSoftwareCloudV2
|
|
1378
1481
|
end
|
1379
1482
|
return data, status_code, headers
|
1380
1483
|
end
|
1381
|
-
|
1382
1484
|
# Set registration configuration.
|
1383
1485
|
# Set configuration settings for this registration.
|
1384
1486
|
# @param registration_id id for this registration
|
@@ -1387,7 +1489,7 @@ module RusticiSoftwareCloudV2
|
|
1387
1489
|
# @return [nil]
|
1388
1490
|
def set_registration_configuration(registration_id, configuration_settings, opts = {})
|
1389
1491
|
set_registration_configuration_with_http_info(registration_id, configuration_settings, opts)
|
1390
|
-
|
1492
|
+
nil
|
1391
1493
|
end
|
1392
1494
|
|
1393
1495
|
# Set registration configuration.
|
@@ -1398,14 +1500,18 @@ module RusticiSoftwareCloudV2
|
|
1398
1500
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1399
1501
|
def set_registration_configuration_with_http_info(registration_id, configuration_settings, opts = {})
|
1400
1502
|
if @api_client.config.debugging
|
1401
|
-
@api_client.config.logger.debug
|
1503
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.set_registration_configuration ...'
|
1402
1504
|
end
|
1403
1505
|
# verify the required parameter 'registration_id' is set
|
1404
|
-
|
1506
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
1507
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.set_registration_configuration"
|
1508
|
+
end
|
1405
1509
|
# verify the required parameter 'configuration_settings' is set
|
1406
|
-
|
1510
|
+
if @api_client.config.client_side_validation && configuration_settings.nil?
|
1511
|
+
fail ArgumentError, "Missing the required parameter 'configuration_settings' when calling RegistrationApi.set_registration_configuration"
|
1512
|
+
end
|
1407
1513
|
# resource path
|
1408
|
-
local_var_path =
|
1514
|
+
local_var_path = '/registrations/{registrationId}/configuration'.sub('{' + 'registrationId' + '}', registration_id.to_s)
|
1409
1515
|
|
1410
1516
|
# query parameters
|
1411
1517
|
query_params = {}
|
@@ -1434,7 +1540,6 @@ module RusticiSoftwareCloudV2
|
|
1434
1540
|
end
|
1435
1541
|
return data, status_code, headers
|
1436
1542
|
end
|
1437
|
-
|
1438
1543
|
# Set configuration for instance of registration.
|
1439
1544
|
# Set configuration settings for this registration instance.
|
1440
1545
|
# @param registration_id id for this registration
|
@@ -1444,7 +1549,7 @@ module RusticiSoftwareCloudV2
|
|
1444
1549
|
# @return [nil]
|
1445
1550
|
def set_registration_instance_configuration(registration_id, instance_id, configuration_settings, opts = {})
|
1446
1551
|
set_registration_instance_configuration_with_http_info(registration_id, instance_id, configuration_settings, opts)
|
1447
|
-
|
1552
|
+
nil
|
1448
1553
|
end
|
1449
1554
|
|
1450
1555
|
# Set configuration for instance of registration.
|
@@ -1456,20 +1561,26 @@ module RusticiSoftwareCloudV2
|
|
1456
1561
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1457
1562
|
def set_registration_instance_configuration_with_http_info(registration_id, instance_id, configuration_settings, opts = {})
|
1458
1563
|
if @api_client.config.debugging
|
1459
|
-
@api_client.config.logger.debug
|
1564
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.set_registration_instance_configuration ...'
|
1460
1565
|
end
|
1461
1566
|
# verify the required parameter 'registration_id' is set
|
1462
|
-
|
1567
|
+
if @api_client.config.client_side_validation && registration_id.nil?
|
1568
|
+
fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.set_registration_instance_configuration"
|
1569
|
+
end
|
1463
1570
|
# verify the required parameter 'instance_id' is set
|
1464
|
-
|
1465
|
-
|
1571
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
1572
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.set_registration_instance_configuration"
|
1573
|
+
end
|
1574
|
+
if @api_client.config.client_side_validation && instance_id < 0
|
1466
1575
|
fail ArgumentError, 'invalid value for "instance_id" when calling RegistrationApi.set_registration_instance_configuration, must be greater than or equal to 0.'
|
1467
1576
|
end
|
1468
1577
|
|
1469
1578
|
# verify the required parameter 'configuration_settings' is set
|
1470
|
-
|
1579
|
+
if @api_client.config.client_side_validation && configuration_settings.nil?
|
1580
|
+
fail ArgumentError, "Missing the required parameter 'configuration_settings' when calling RegistrationApi.set_registration_instance_configuration"
|
1581
|
+
end
|
1471
1582
|
# resource path
|
1472
|
-
local_var_path =
|
1583
|
+
local_var_path = '/registrations/{registrationId}/instances/{instanceId}/configuration'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
|
1473
1584
|
|
1474
1585
|
# query parameters
|
1475
1586
|
query_params = {}
|
@@ -1498,7 +1609,6 @@ module RusticiSoftwareCloudV2
|
|
1498
1609
|
end
|
1499
1610
|
return data, status_code, headers
|
1500
1611
|
end
|
1501
|
-
|
1502
1612
|
# Send a test postback with a provided configuration.
|
1503
1613
|
# This method will allow testing a postback configuration that you provide by sending dummy data to the url specified, with the format you specify.
|
1504
1614
|
# @param post_back
|
@@ -1506,7 +1616,7 @@ module RusticiSoftwareCloudV2
|
|
1506
1616
|
# @return [nil]
|
1507
1617
|
def test_registration_postback(post_back, opts = {})
|
1508
1618
|
test_registration_postback_with_http_info(post_back, opts)
|
1509
|
-
|
1619
|
+
nil
|
1510
1620
|
end
|
1511
1621
|
|
1512
1622
|
# Send a test postback with a provided configuration.
|
@@ -1516,12 +1626,14 @@ module RusticiSoftwareCloudV2
|
|
1516
1626
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1517
1627
|
def test_registration_postback_with_http_info(post_back, opts = {})
|
1518
1628
|
if @api_client.config.debugging
|
1519
|
-
@api_client.config.logger.debug
|
1629
|
+
@api_client.config.logger.debug 'Calling API: RegistrationApi.test_registration_postback ...'
|
1520
1630
|
end
|
1521
1631
|
# verify the required parameter 'post_back' is set
|
1522
|
-
|
1632
|
+
if @api_client.config.client_side_validation && post_back.nil?
|
1633
|
+
fail ArgumentError, "Missing the required parameter 'post_back' when calling RegistrationApi.test_registration_postback"
|
1634
|
+
end
|
1523
1635
|
# resource path
|
1524
|
-
local_var_path =
|
1636
|
+
local_var_path = '/registrations/postBackTest'
|
1525
1637
|
|
1526
1638
|
# query parameters
|
1527
1639
|
query_params = {}
|