Class: RusticiSoftwareCloudV2::RegistrationApi
- Inherits:
-
Object
- Object
- RusticiSoftwareCloudV2::RegistrationApi
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/rustici_software_cloud_v2/api/registration_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#build_registration_launch_link(registration_id, launch_link_request, opts = {}) ⇒ LaunchLinkSchema
Get a launch link for a Registration Returns the launch link to use to launch the course for the registration.
-
#build_registration_launch_link_with_http_info(registration_id, launch_link_request, opts = {}) ⇒ Array<(LaunchLinkSchema, Fixnum, Hash)>
Get a launch link for a Registration Returns the launch link to use to launch the course for the registration.
-
#create_new_registration_instance(registration_id, opts = {}) ⇒ nil
Create a Registration Instance Creates a new instance of the registration.
-
#create_new_registration_instance_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create a Registration Instance Creates a new instance of the registration.
-
#create_registration(registration, opts = {}) ⇒ nil
Create a Registration Creates a new registration.
-
#create_registration_with_http_info(registration, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create a Registration Creates a new registration.
-
#delete_registration(registration_id, opts = {}) ⇒ nil
Delete a Registration Deletes the specified registration.
-
#delete_registration_configuration_setting(registration_id, setting_id, opts = {}) ⇒ nil
Delete a configuration setting explicitly set for a Registration Clears the specified setting from the registration.
-
#delete_registration_configuration_setting_with_http_info(registration_id, setting_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a configuration setting explicitly set for a Registration Clears the specified setting from the registration.
-
#delete_registration_global_data(registration_id, opts = {}) ⇒ nil
Reset global data for a Registration Deletes the global data associated with the registration, but the registration itself will remain.
-
#delete_registration_global_data_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Reset global data for a Registration Deletes the global data associated with the registration, but the registration itself will remain.
-
#delete_registration_instance(registration_id, instance_id, opts = {}) ⇒ nil
Delete a Registration Instance Deletes the specified instance of the registration.
-
#delete_registration_instance_configuration_setting(registration_id, instance_id, setting_id, opts = {}) ⇒ nil
Delete a configuration setting explicitly set for a Registration Instance Clears the specified setting from the registration instance.
-
#delete_registration_instance_configuration_setting_with_http_info(registration_id, instance_id, setting_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a configuration setting explicitly set for a Registration Instance Clears the specified setting from the registration instance.
-
#delete_registration_instance_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Registration Instance Deletes the specified instance of the registration.
-
#delete_registration_progress(registration_id, opts = {}) ⇒ nil
Reset a Registration Deletes the data associated with the registration, but the registration itself will remain.
-
#delete_registration_progress_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Reset a Registration Deletes the data associated with the registration, but the registration itself will remain.
-
#delete_registration_tags(registration_id, tags, opts = {}) ⇒ nil
Delete tags from a Registration Deletes the specified tags from the registration.
-
#delete_registration_tags_with_http_info(registration_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete tags from a Registration Deletes the specified tags from the registration.
-
#delete_registration_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Registration Deletes the specified registration.
-
#get_registration(registration_id, opts = {}) ⇒ nil
Check that a Registration exists Checks that the registration exists within SCORM Cloud.
-
#get_registration_configuration(registration_id, opts = {}) ⇒ SettingListSchema
Get effective configuration settings for a Registration Returns the effective configuration settings for the registration.
-
#get_registration_configuration_with_http_info(registration_id, opts = {}) ⇒ Array<(SettingListSchema, Fixnum, Hash)>
Get effective configuration settings for a Registration Returns the effective configuration settings for the registration.
-
#get_registration_instance_configuration(registration_id, instance_id, opts = {}) ⇒ SettingListSchema
Get effective configuration settings for a Registration Instance Returns the effective configuration settings for the registration instance.
-
#get_registration_instance_configuration_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(SettingListSchema, Fixnum, Hash)>
Get effective configuration settings for a Registration Instance Returns the effective configuration settings for the registration instance.
-
#get_registration_instance_launch_history(registration_id, instance_id, opts = {}) ⇒ LaunchHistoryListSchema
Get launch history for a Registration Instance Returns the launch history of the registration instance.
-
#get_registration_instance_launch_history_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(LaunchHistoryListSchema, Fixnum, Hash)>
Get launch history for a Registration Instance Returns the launch history of the registration instance.
-
#get_registration_instance_progress(registration_id, instance_id, opts = {}) ⇒ RegistrationSchema
Get detailed information about a Registration Instance Returns detailed information about the registration instance.
-
#get_registration_instance_progress_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(RegistrationSchema, Fixnum, Hash)>
Get detailed information about a Registration Instance Returns detailed information about the registration instance.
-
#get_registration_instance_statements(registration_id, instance_id, opts = {}) ⇒ XapiStatementResult
Get xAPI statements for a Registration Instance Returns xAPI statements for the registration instance.
-
#get_registration_instance_statements_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(XapiStatementResult, Fixnum, Hash)>
Get xAPI statements for a Registration Instance Returns xAPI statements for the registration instance.
-
#get_registration_instances(registration_id, opts = {}) ⇒ RegistrationListSchema
Get a list of a Registration’s Instances Returns information about all instances of the registration.
-
#get_registration_instances_with_http_info(registration_id, opts = {}) ⇒ Array<(RegistrationListSchema, Fixnum, Hash)>
Get a list of a Registration's Instances Returns information about all instances of the registration.
-
#get_registration_launch_history(registration_id, opts = {}) ⇒ LaunchHistoryListSchema
Get launch history for a Registration Returns the launch history of the registration.
-
#get_registration_launch_history_with_http_info(registration_id, opts = {}) ⇒ Array<(LaunchHistoryListSchema, Fixnum, Hash)>
Get launch history for a Registration Returns the launch history of the registration.
-
#get_registration_progress(registration_id, opts = {}) ⇒ RegistrationSchema
Get detailed information about a Registration Returns detailed information about the registration.
-
#get_registration_progress_with_http_info(registration_id, opts = {}) ⇒ Array<(RegistrationSchema, Fixnum, Hash)>
Get detailed information about a Registration Returns detailed information about the registration.
-
#get_registration_statements(registration_id, opts = {}) ⇒ XapiStatementResult
Get xAPI statements for a Registration Returns xAPI statements for the registration.
-
#get_registration_statements_with_http_info(registration_id, opts = {}) ⇒ Array<(XapiStatementResult, Fixnum, Hash)>
Get xAPI statements for a Registration Returns xAPI statements for the registration.
-
#get_registration_tags(registration_id, opts = {}) ⇒ TagListSchema
Get tags for a Registration Returns the tags for the registration.
-
#get_registration_tags_with_http_info(registration_id, opts = {}) ⇒ Array<(TagListSchema, Fixnum, Hash)>
Get tags for a Registration Returns the tags for the registration.
-
#get_registration_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Check that a Registration exists Checks that the registration exists within SCORM Cloud.
-
#get_registrations(opts = {}) ⇒ RegistrationListSchema
Get a list of Registrations Returns a list of registrations.
-
#get_registrations_with_http_info(opts = {}) ⇒ Array<(RegistrationListSchema, Fixnum, Hash)>
Get a list of Registrations Returns a list of registrations.
-
#initialize(api_client = ApiClient.default) ⇒ RegistrationApi
constructor
A new instance of RegistrationApi.
-
#put_registration_tags(registration_id, tags, opts = {}) ⇒ nil
Add tags to a Registration Applies the provided tags to the registration.
-
#put_registration_tags_batch(batch, opts = {}) ⇒ nil
Add a group of tags to a group of Registrations Applies all of the provided tags on all of the provided registrations.
-
#put_registration_tags_batch_with_http_info(batch, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add a group of tags to a group of Registrations Applies all of the provided tags on all of the provided registrations.
-
#put_registration_tags_with_http_info(registration_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add tags to a Registration Applies the provided tags to the registration.
-
#set_registration_configuration(registration_id, configuration_settings, opts = {}) ⇒ nil
Update configuration settings for a Registration Updates configuration settings at the registration level.
-
#set_registration_configuration_with_http_info(registration_id, configuration_settings, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update configuration settings for a Registration Updates configuration settings at the registration level.
-
#set_registration_instance_configuration(registration_id, instance_id, configuration_settings, opts = {}) ⇒ nil
Update configuration settings for a Registration Instance Updates configuration settings at the registration level.
-
#set_registration_instance_configuration_with_http_info(registration_id, instance_id, configuration_settings, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update configuration settings for a Registration Instance Updates configuration settings at the registration level.
-
#test_registration_postback(post_back, opts = {}) ⇒ nil
Send a test postback with the provided configuration Sends a postback with dummy data to the url specified.
-
#test_registration_postback_with_http_info(post_back, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Send a test postback with the provided configuration Sends a postback with dummy data to the url specified.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ RegistrationApi
Returns a new instance of RegistrationApi.
18 19 20 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 18 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
16 17 18 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 16 def api_client @api_client end |
Instance Method Details
#build_registration_launch_link(registration_id, launch_link_request, opts = {}) ⇒ LaunchLinkSchema
Get a launch link for a Registration Returns the launch link to use to launch the course for the registration. Launch links are meant as a way to provide access to your content. When a learner visits the link, the course will be launched and registration progress will start to be tracked.
30 31 32 33 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 30 def build_registration_launch_link(registration_id, launch_link_request, opts = {}) data, _status_code, _headers = build_registration_launch_link_with_http_info(registration_id, launch_link_request, opts) data end |
#build_registration_launch_link_with_http_info(registration_id, launch_link_request, opts = {}) ⇒ Array<(LaunchLinkSchema, Fixnum, Hash)>
Get a launch link for a Registration Returns the launch link to use to launch the course for the registration. Launch links are meant as a way to provide access to your content. When a learner visits the link, the course will be launched and registration progress will start to be tracked.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 41 def build_registration_launch_link_with_http_info(registration_id, launch_link_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.build_registration_launch_link ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.build_registration_launch_link" end # verify the required parameter 'launch_link_request' is set if launch_link_request.nil? fail ArgumentError, "Missing the required parameter 'launch_link_request' when calling RegistrationApi.build_registration_launch_link" end # resource path local_var_path = '/registrations/{registrationId}/launchLink'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(launch_link_request) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'LaunchLinkSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#build_registration_launch_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_new_registration_instance(registration_id, opts = {}) ⇒ nil
Create a Registration Instance Creates a new instance of the registration. Registration instances will be automatically created when a learner launches a new version of the course. This allows for tracking registration progress for each of the versions of the course the learner has taken. When the created registration instance is "launched", the course specified at creation time will be launched.
90 91 92 93 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 90 def create_new_registration_instance(registration_id, opts = {}) create_new_registration_instance_with_http_info(registration_id, opts) nil end |
#create_new_registration_instance_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create a Registration Instance Creates a new instance of the registration. Registration instances will be automatically created when a learner launches a new version of the course. This allows for tracking registration progress for each of the versions of the course the learner has taken. When the created registration instance is "launched", the course specified at creation time will be launched.
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 100 def create_new_registration_instance_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.create_new_registration_instance ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.create_new_registration_instance" end # resource path local_var_path = '/registrations/{registrationId}/instances'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#create_new_registration_instance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_registration(registration, opts = {}) ⇒ nil
Create a Registration Creates a new registration. Registrations are the billable unit in SCORM Cloud, and represent a link between a learner and a course. A registration will contain a few pieces of information such as learner identifiers, the id of the course being registered for, and several other optional fields. 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.
145 146 147 148 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 145 def create_registration(registration, opts = {}) create_registration_with_http_info(registration, opts) nil end |
#create_registration_with_http_info(registration, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Create a Registration Creates a new registration. Registrations are the billable unit in SCORM Cloud, and represent a link between a learner and a course. A registration will contain a few pieces of information such as learner identifiers, the id of the course being registered for, and several other optional fields. 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.
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 156 def create_registration_with_http_info(registration, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.create_registration ...' end # verify the required parameter 'registration' is set if registration.nil? fail ArgumentError, "Missing the required parameter 'registration' when calling RegistrationApi.create_registration" end # resource path local_var_path = '/registrations' # query parameters query_params = {} query_params[:'courseVersion'] = opts[:'course_version'] if !opts[:'course_version'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(registration) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#create_registration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_registration(registration_id, opts = {}) ⇒ nil
Delete a Registration Deletes the specified registration. >Caution: >This will also delete all instances of the registration.
201 202 203 204 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 201 def delete_registration(registration_id, opts = {}) delete_registration_with_http_info(registration_id, opts) nil end |
#delete_registration_configuration_setting(registration_id, setting_id, opts = {}) ⇒ nil
Delete a configuration setting explicitly set for a Registration Clears the specified setting from the registration. This causes the setting to inherit a value from a higher level (e.g. course). If the configuration setting was not set at the registration level it will continue to persist and will require deletion from the level it was set.
256 257 258 259 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 256 def delete_registration_configuration_setting(registration_id, setting_id, opts = {}) delete_registration_configuration_setting_with_http_info(registration_id, setting_id, opts) nil end |
#delete_registration_configuration_setting_with_http_info(registration_id, setting_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a configuration setting explicitly set for a Registration Clears the specified setting from the registration. This causes the setting to inherit a value from a higher level (e.g. course). If the configuration setting was not set at the registration level it will continue to persist and will require deletion from the level it was set.
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 267 def delete_registration_configuration_setting_with_http_info(registration_id, setting_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_configuration_setting ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_configuration_setting" end # verify the required parameter 'setting_id' is set if setting_id.nil? fail ArgumentError, "Missing the required parameter 'setting_id' when calling RegistrationApi.delete_registration_configuration_setting" end # resource path local_var_path = '/registrations/{registrationId}/configuration/{settingId}'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'settingId' + '}', setting_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#delete_registration_configuration_setting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_registration_global_data(registration_id, opts = {}) ⇒ nil
Reset global data for a Registration Deletes the global data associated with the registration, but the registration itself will remain. This means any progress towards the global objectives will be removed.
315 316 317 318 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 315 def delete_registration_global_data(registration_id, opts = {}) delete_registration_global_data_with_http_info(registration_id, opts) nil end |
#delete_registration_global_data_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Reset global data for a Registration Deletes the global data associated with the registration, but the registration itself will remain. This means any progress towards the global objectives will be removed.
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 325 def delete_registration_global_data_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_global_data ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_global_data" end # resource path local_var_path = '/registrations/{registrationId}/globalData'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#delete_registration_global_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_registration_instance(registration_id, instance_id, opts = {}) ⇒ nil
Delete a Registration Instance Deletes the specified instance of the registration. If deleting the last remaining instance of the registration, the registration itself will be deleted along with any associated data.
370 371 372 373 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 370 def delete_registration_instance(registration_id, instance_id, opts = {}) delete_registration_instance_with_http_info(registration_id, instance_id, opts) nil end |
#delete_registration_instance_configuration_setting(registration_id, instance_id, setting_id, opts = {}) ⇒ nil
Delete a configuration setting explicitly set for a Registration Instance Clears the specified setting from the registration instance. This causes the setting to inherit a value from a higher level (e.g. course). If the configuration setting was not set at the registration level it will continue to persist and will require deletion from the level it was set.
431 432 433 434 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 431 def delete_registration_instance_configuration_setting(registration_id, instance_id, setting_id, opts = {}) delete_registration_instance_configuration_setting_with_http_info(registration_id, instance_id, setting_id, opts) nil end |
#delete_registration_instance_configuration_setting_with_http_info(registration_id, instance_id, setting_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a configuration setting explicitly set for a Registration Instance Clears the specified setting from the registration instance. This causes the setting to inherit a value from a higher level (e.g. course). If the configuration setting was not set at the registration level it will continue to persist and will require deletion from the level it was set.
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 443 def delete_registration_instance_configuration_setting_with_http_info(registration_id, instance_id, setting_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_instance_configuration_setting ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_instance_configuration_setting" end # verify the required parameter 'instance_id' is set if instance_id.nil? fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.delete_registration_instance_configuration_setting" end # verify the required parameter 'setting_id' is set if setting_id.nil? fail ArgumentError, "Missing the required parameter 'setting_id' when calling RegistrationApi.delete_registration_instance_configuration_setting" end # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#delete_registration_instance_configuration_setting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_registration_instance_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Registration Instance Deletes the specified instance of the registration. If deleting the last remaining instance of the registration, the registration itself will be deleted along with any associated data.
381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 381 def delete_registration_instance_with_http_info(registration_id, instance_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_instance ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_instance" end # verify the required parameter 'instance_id' is set if instance_id.nil? fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.delete_registration_instance" end # resource path local_var_path = '/registrations/{registrationId}/instances/{instanceId}'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#delete_registration_instance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_registration_progress(registration_id, opts = {}) ⇒ nil
Reset a Registration Deletes the data associated with the registration, but the registration itself will remain. This means any of the launch history, and progress will be removed. After the data has been deleted, the registration will automatically register itself for the latest version of the course.
495 496 497 498 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 495 def delete_registration_progress(registration_id, opts = {}) delete_registration_progress_with_http_info(registration_id, opts) nil end |
#delete_registration_progress_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Reset a Registration Deletes the data associated with the registration, but the registration itself will remain. This means any of the launch history, and progress will be removed. After the data has been deleted, the registration will automatically register itself for the latest version of the course.
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 505 def delete_registration_progress_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_progress ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_progress" end # resource path local_var_path = '/registrations/{registrationId}/progress'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#delete_registration_progress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_registration_tags(registration_id, tags, opts = {}) ⇒ nil
Delete tags from a Registration Deletes the specified tags from the registration. Deleting tags that do not exist will still result in a success.
550 551 552 553 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 550 def (registration_id, , opts = {}) (registration_id, , opts) nil end |
#delete_registration_tags_with_http_info(registration_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete tags from a Registration Deletes the specified tags from the registration. Deleting tags that do not exist will still result in a success.
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 561 def (registration_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration_tags ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration_tags" end # verify the required parameter 'tags' is set if .nil? fail ArgumentError, "Missing the required parameter 'tags' when calling RegistrationApi.delete_registration_tags" end # resource path local_var_path = '/registrations/{registrationId}/tags'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body() auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#delete_registration_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_registration_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Registration Deletes the specified registration. >Caution: >This will also delete all instances of the registration.
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 211 def delete_registration_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.delete_registration ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.delete_registration" end # resource path local_var_path = '/registrations/{registrationId}'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#delete_registration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration(registration_id, opts = {}) ⇒ nil
Check that a Registration exists Checks that the registration exists within SCORM Cloud. >Info: >No registration data will be returned for this call. A successful 200 response indicates that the registration exists. If the registration does not exist, a 404 error will be returned instead. If you are looking for information about the registration, try calling GetRegistrationProgress instead.
609 610 611 612 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 609 def get_registration(registration_id, opts = {}) get_registration_with_http_info(registration_id, opts) nil end |
#get_registration_configuration(registration_id, opts = {}) ⇒ SettingListSchema
Get effective configuration settings for a Registration Returns the effective configuration settings for the registration. If not set at the registration level, the setting will inherit a value from a higher level (e.g. course). Registrations are the bottom most level in the configuration hierarchy, so the values present at the registration level will be what are used when a course is launched.
664 665 666 667 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 664 def get_registration_configuration(registration_id, opts = {}) data, _status_code, _headers = get_registration_configuration_with_http_info(registration_id, opts) data end |
#get_registration_configuration_with_http_info(registration_id, opts = {}) ⇒ Array<(SettingListSchema, Fixnum, Hash)>
Get effective configuration settings for a Registration Returns the effective configuration settings for the registration. If not set at the registration level, the setting will inherit a value from a higher level (e.g. course). Registrations are the bottom most level in the configuration hierarchy, so the values present at the registration level will be what are used when a course is launched.
675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 675 def get_registration_configuration_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_configuration ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_configuration" end # resource path local_var_path = '/registrations/{registrationId}/configuration'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} query_params[:'includeMetadata'] = opts[:'include_metadata'] if !opts[:'include_metadata'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SettingListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_instance_configuration(registration_id, instance_id, opts = {}) ⇒ SettingListSchema
Get effective configuration settings for a Registration Instance Returns the effective configuration settings for the registration instance. If not set at the registration level, the setting will inherit a value from a higher level (e.g. course). Registrations are the bottom most level in the configuration hierarchy, so the values present at the registration level will be what are used when a course is launched.
723 724 725 726 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 723 def get_registration_instance_configuration(registration_id, instance_id, opts = {}) data, _status_code, _headers = get_registration_instance_configuration_with_http_info(registration_id, instance_id, opts) data end |
#get_registration_instance_configuration_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(SettingListSchema, Fixnum, Hash)>
Get effective configuration settings for a Registration Instance Returns the effective configuration settings for the registration instance. If not set at the registration level, the setting will inherit a value from a higher level (e.g. course). Registrations are the bottom most level in the configuration hierarchy, so the values present at the registration level will be what are used when a course is launched.
735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 735 def get_registration_instance_configuration_with_http_info(registration_id, instance_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instance_configuration ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instance_configuration" end # verify the required parameter 'instance_id' is set if instance_id.nil? fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.get_registration_instance_configuration" end # resource path local_var_path = '/registrations/{registrationId}/instances/{instanceId}/configuration'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s) # query parameters query_params = {} query_params[:'includeMetadata'] = opts[:'include_metadata'] if !opts[:'include_metadata'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SettingListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_instance_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_instance_launch_history(registration_id, instance_id, opts = {}) ⇒ LaunchHistoryListSchema
Get launch history for a Registration Instance Returns the launch history of the registration instance. This includes completion status, time taken, and pass/fail status.
787 788 789 790 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 787 def get_registration_instance_launch_history(registration_id, instance_id, opts = {}) data, _status_code, _headers = get_registration_instance_launch_history_with_http_info(registration_id, instance_id, opts) data end |
#get_registration_instance_launch_history_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(LaunchHistoryListSchema, Fixnum, Hash)>
Get launch history for a Registration Instance Returns the launch history of the registration instance. This includes completion status, time taken, and pass/fail status.
799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 799 def get_registration_instance_launch_history_with_http_info(registration_id, instance_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instance_launch_history ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instance_launch_history" end # verify the required parameter 'instance_id' is set if instance_id.nil? fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.get_registration_instance_launch_history" end # resource path local_var_path = '/registrations/{registrationId}/instances/{instanceId}/launchHistory'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s) # query parameters query_params = {} query_params[:'includeHistoryLog'] = opts[:'include_history_log'] if !opts[:'include_history_log'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'LaunchHistoryListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_instance_launch_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_instance_progress(registration_id, instance_id, opts = {}) ⇒ RegistrationSchema
Get detailed information about a Registration Instance Returns detailed information about the registration instance. This includes completion status, time taken, score, and pass/fail status.
853 854 855 856 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 853 def get_registration_instance_progress(registration_id, instance_id, opts = {}) data, _status_code, _headers = get_registration_instance_progress_with_http_info(registration_id, instance_id, opts) data end |
#get_registration_instance_progress_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(RegistrationSchema, Fixnum, Hash)>
Get detailed information about a Registration Instance Returns detailed information about the registration instance. This includes completion status, time taken, score, and pass/fail status.
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 867 def get_registration_instance_progress_with_http_info(registration_id, instance_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instance_progress ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instance_progress" end # verify the required parameter 'instance_id' is set if instance_id.nil? fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.get_registration_instance_progress" end # resource path local_var_path = '/registrations/{registrationId}/instances/{instanceId}'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s) # query parameters query_params = {} query_params[:'includeChildResults'] = opts[:'include_child_results'] if !opts[:'include_child_results'].nil? query_params[:'includeInteractionsAndObjectives'] = opts[:'include_interactions_and_objectives'] if !opts[:'include_interactions_and_objectives'].nil? query_params[:'includeRuntime'] = opts[:'include_runtime'] if !opts[:'include_runtime'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RegistrationSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_instance_progress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_instance_statements(registration_id, instance_id, opts = {}) ⇒ XapiStatementResult
Get xAPI statements for a Registration Instance Returns xAPI statements for the registration instance.
923 924 925 926 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 923 def get_registration_instance_statements(registration_id, instance_id, opts = {}) data, _status_code, _headers = get_registration_instance_statements_with_http_info(registration_id, instance_id, opts) data end |
#get_registration_instance_statements_with_http_info(registration_id, instance_id, opts = {}) ⇒ Array<(XapiStatementResult, Fixnum, Hash)>
Get xAPI statements for a Registration Instance Returns xAPI statements for the registration instance.
937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 937 def get_registration_instance_statements_with_http_info(registration_id, instance_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instance_statements ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instance_statements" end # verify the required parameter 'instance_id' is set if instance_id.nil? fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.get_registration_instance_statements" end # resource path local_var_path = '/registrations/{registrationId}/instances/{instanceId}/xAPIStatements'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s) # query parameters query_params = {} query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'until'] = opts[:'_until'] if !opts[:'_until'].nil? query_params[:'more'] = opts[:'more'] if !opts[:'more'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'XapiStatementResult') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_instance_statements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_instances(registration_id, opts = {}) ⇒ RegistrationListSchema
Get a list of a Registration’s Instances Returns information about all instances of the registration. This can be useful to see information such as registration progress across versions of a course.
995 996 997 998 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 995 def get_registration_instances(registration_id, opts = {}) data, _status_code, _headers = get_registration_instances_with_http_info(registration_id, opts) data end |
#get_registration_instances_with_http_info(registration_id, opts = {}) ⇒ Array<(RegistrationListSchema, Fixnum, Hash)>
Get a list of a Registration's Instances Returns information about all instances of the registration. This can be useful to see information such as registration progress across versions of a course.
1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1011 def get_registration_instances_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_instances ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_instances" end # resource path local_var_path = '/registrations/{registrationId}/instances'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} query_params[:'until'] = opts[:'_until'] if !opts[:'_until'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'more'] = opts[:'more'] if !opts[:'more'].nil? query_params[:'includeChildResults'] = opts[:'include_child_results'] if !opts[:'include_child_results'].nil? query_params[:'includeInteractionsAndObjectives'] = opts[:'include_interactions_and_objectives'] if !opts[:'include_interactions_and_objectives'].nil? query_params[:'includeRuntime'] = opts[:'include_runtime'] if !opts[:'include_runtime'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RegistrationListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_instances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_launch_history(registration_id, opts = {}) ⇒ LaunchHistoryListSchema
Get launch history for a Registration Returns the launch history of the registration. This includes completion status, time taken, and pass/fail status.
1063 1064 1065 1066 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1063 def get_registration_launch_history(registration_id, opts = {}) data, _status_code, _headers = get_registration_launch_history_with_http_info(registration_id, opts) data end |
#get_registration_launch_history_with_http_info(registration_id, opts = {}) ⇒ Array<(LaunchHistoryListSchema, Fixnum, Hash)>
Get launch history for a Registration Returns the launch history of the registration. This includes completion status, time taken, and pass/fail status.
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1074 def get_registration_launch_history_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_launch_history ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_launch_history" end # resource path local_var_path = '/registrations/{registrationId}/launchHistory'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} query_params[:'includeHistoryLog'] = opts[:'include_history_log'] if !opts[:'include_history_log'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'LaunchHistoryListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_launch_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_progress(registration_id, opts = {}) ⇒ RegistrationSchema
Get detailed information about a Registration Returns detailed information about the registration. This includes completion status, time taken, score, and pass/fail status. >Info: >If you find yourself making multiple calls to this endpoint, it may be worthwhile to utilize our [postback mechanism](cloud.scorm.com/docs/v2/guides/postback/) instead. The main premise is that you would set up an endpoint on your end, and when we detect a change to the registration progress: completion status, time taken, score, or pass/fail status, we would send a message to your system with the registration progress.
1123 1124 1125 1126 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1123 def get_registration_progress(registration_id, opts = {}) data, _status_code, _headers = get_registration_progress_with_http_info(registration_id, opts) data end |
#get_registration_progress_with_http_info(registration_id, opts = {}) ⇒ Array<(RegistrationSchema, Fixnum, Hash)>
Get detailed information about a Registration Returns detailed information about the registration. This includes completion status, time taken, score, and pass/fail status. >Info: >If you find yourself making multiple calls to this endpoint, it may be worthwhile to utilize our [postback mechanism](cloud.scorm.com/docs/v2/guides/postback/) instead. The main premise is that you would set up an endpoint on your end, and when we detect a change to the registration progress: completion status, time taken, score, or pass/fail status, we would send a message to your system with the registration progress.
1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1136 def get_registration_progress_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_progress ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_progress" end # resource path local_var_path = '/registrations/{registrationId}'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} query_params[:'includeChildResults'] = opts[:'include_child_results'] if !opts[:'include_child_results'].nil? query_params[:'includeInteractionsAndObjectives'] = opts[:'include_interactions_and_objectives'] if !opts[:'include_interactions_and_objectives'].nil? query_params[:'includeRuntime'] = opts[:'include_runtime'] if !opts[:'include_runtime'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RegistrationSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_progress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_statements(registration_id, opts = {}) ⇒ XapiStatementResult
Get xAPI statements for a Registration Returns xAPI statements for the registration.
1187 1188 1189 1190 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1187 def get_registration_statements(registration_id, opts = {}) data, _status_code, _headers = get_registration_statements_with_http_info(registration_id, opts) data end |
#get_registration_statements_with_http_info(registration_id, opts = {}) ⇒ Array<(XapiStatementResult, Fixnum, Hash)>
Get xAPI statements for a Registration Returns xAPI statements for the registration.
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1200 def get_registration_statements_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_statements ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_statements" end # resource path local_var_path = '/registrations/{registrationId}/xAPIStatements'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'until'] = opts[:'_until'] if !opts[:'_until'].nil? query_params[:'more'] = opts[:'more'] if !opts[:'more'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'XapiStatementResult') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_statements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_tags(registration_id, opts = {}) ⇒ TagListSchema
Get tags for a Registration Returns the tags for the registration.
1248 1249 1250 1251 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1248 def (registration_id, opts = {}) data, _status_code, _headers = (registration_id, opts) data end |
#get_registration_tags_with_http_info(registration_id, opts = {}) ⇒ Array<(TagListSchema, Fixnum, Hash)>
Get tags for a Registration Returns the tags for the registration.
1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1258 def (registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration_tags ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration_tags" end # resource path local_var_path = '/registrations/{registrationId}/tags'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'TagListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registration_with_http_info(registration_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Check that a Registration exists Checks that the registration exists within SCORM Cloud. >Info: >No registration data will be returned for this call. A successful `200` response indicates that the registration exists. If the registration does not exist, a `404` error will be returned instead. If you are looking for information about the registration, try calling `GetRegistrationProgress` instead.
619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 619 def get_registration_with_http_info(registration_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registration ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.get_registration" end # resource path local_var_path = '/registrations/{registrationId}'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_registrations(opts = {}) ⇒ RegistrationListSchema
Get a list of Registrations Returns a list of registrations. Can be filtered using the request parameters to provide a subset of results. >Note: >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a more token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >Info: >If you find yourself making multiple calls to this endpoint, it may be worthwhile to utilize our [postback mechanism](cloud.scorm.com/docs/v2/guides/postback/) instead. The main premise is that you would set up an endpoint on your end, and when we detect a change to the registration progress: completion status, time taken, score, or pass/fail status, we would send a message to your system with the registration progress.
1316 1317 1318 1319 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1316 def get_registrations(opts = {}) data, _status_code, _headers = get_registrations_with_http_info(opts) data end |
#get_registrations_with_http_info(opts = {}) ⇒ Array<(RegistrationListSchema, Fixnum, Hash)>
Get a list of Registrations Returns a list of registrations. Can be filtered using the request parameters to provide a subset of results. >Note: >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >Info: >If you find yourself making multiple calls to this endpoint, it may be worthwhile to utilize our [postback mechanism](cloud.scorm.com/docs/v2/guides/postback/) instead. The main premise is that you would set up an endpoint on your end, and when we detect a change to the registration progress: completion status, time taken, score, or pass/fail status, we would send a message to your system with the registration progress.
1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1339 def get_registrations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.get_registrations ...' end # resource path local_var_path = '/registrations' # query parameters query_params = {} query_params[:'courseId'] = opts[:'course_id'] if !opts[:'course_id'].nil? query_params[:'learnerId'] = opts[:'learner_id'] if !opts[:'learner_id'].nil? query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil? query_params[:'until'] = opts[:'_until'] if !opts[:'_until'].nil? query_params[:'datetimeFilter'] = opts[:'datetime_filter'] if !opts[:'datetime_filter'].nil? query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :csv) if !opts[:'tags'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'filterBy'] = opts[:'filter_by'] if !opts[:'filter_by'].nil? query_params[:'orderBy'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'more'] = opts[:'more'] if !opts[:'more'].nil? query_params[:'includeChildResults'] = opts[:'include_child_results'] if !opts[:'include_child_results'].nil? query_params[:'includeInteractionsAndObjectives'] = opts[:'include_interactions_and_objectives'] if !opts[:'include_interactions_and_objectives'].nil? query_params[:'includeRuntime'] = opts[:'include_runtime'] if !opts[:'include_runtime'].nil? query_params[:'includeTotalCount'] = opts[:'include_total_count'] if !opts[:'include_total_count'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RegistrationListSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#get_registrations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_registration_tags(registration_id, tags, opts = {}) ⇒ nil
Add tags to a Registration Applies the provided tags to the registration. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetRegistrations).
1395 1396 1397 1398 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1395 def (registration_id, , opts = {}) (registration_id, , opts) nil end |
#put_registration_tags_batch(batch, opts = {}) ⇒ nil
Add a group of tags to a group of Registrations Applies all of the provided tags on all of the provided registrations. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetRegistrations).
1454 1455 1456 1457 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1454 def (batch, opts = {}) (batch, opts) nil end |
#put_registration_tags_batch_with_http_info(batch, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add a group of tags to a group of Registrations Applies all of the provided tags on all of the provided registrations. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetRegistrations).
1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1464 def (batch, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.put_registration_tags_batch ...' end # verify the required parameter 'batch' is set if batch.nil? fail ArgumentError, "Missing the required parameter 'batch' when calling RegistrationApi.put_registration_tags_batch" end # resource path local_var_path = '/registrations/tags' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(batch) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#put_registration_tags_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_registration_tags_with_http_info(registration_id, tags, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Add tags to a Registration Applies the provided tags to the registration. Tags are used to easily identify resources. Adding tags can enable more refined searches when making calls to certain endpoints (e.g. GetRegistrations).
1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1406 def (registration_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.put_registration_tags ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.put_registration_tags" end # verify the required parameter 'tags' is set if .nil? fail ArgumentError, "Missing the required parameter 'tags' when calling RegistrationApi.put_registration_tags" end # resource path local_var_path = '/registrations/{registrationId}/tags'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body() auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#put_registration_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_registration_configuration(registration_id, configuration_settings, opts = {}) ⇒ nil
Update configuration settings for a Registration Updates configuration settings at the registration level. This will explicitly set a value at the registration level and override any settings from a higher level. Registrations are the bottom most level in the configuration hierarchy, so the values present at the registration level will be what are used when a course is launched.
1509 1510 1511 1512 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1509 def set_registration_configuration(registration_id, configuration_settings, opts = {}) set_registration_configuration_with_http_info(registration_id, configuration_settings, opts) nil end |
#set_registration_configuration_with_http_info(registration_id, configuration_settings, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update configuration settings for a Registration Updates configuration settings at the registration level. This will explicitly set a value at the registration level and override any settings from a higher level. Registrations are the bottom most level in the configuration hierarchy, so the values present at the registration level will be what are used when a course is launched.
1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1520 def set_registration_configuration_with_http_info(registration_id, configuration_settings, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.set_registration_configuration ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.set_registration_configuration" end # verify the required parameter 'configuration_settings' is set if configuration_settings.nil? fail ArgumentError, "Missing the required parameter 'configuration_settings' when calling RegistrationApi.set_registration_configuration" end # resource path local_var_path = '/registrations/{registrationId}/configuration'.sub('{' + 'registrationId' + '}', registration_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(configuration_settings) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#set_registration_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_registration_instance_configuration(registration_id, instance_id, configuration_settings, opts = {}) ⇒ nil
Update configuration settings for a Registration Instance Updates configuration settings at the registration level. This will explicitly set a value at the registration level and override any settings from a higher level. Registrations are the bottom most level in the configuration hierarchy, so the values present at the registration level will be what are used when a course is launched.
1570 1571 1572 1573 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1570 def set_registration_instance_configuration(registration_id, instance_id, configuration_settings, opts = {}) set_registration_instance_configuration_with_http_info(registration_id, instance_id, configuration_settings, opts) nil end |
#set_registration_instance_configuration_with_http_info(registration_id, instance_id, configuration_settings, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Update configuration settings for a Registration Instance Updates configuration settings at the registration level. This will explicitly set a value at the registration level and override any settings from a higher level. Registrations are the bottom most level in the configuration hierarchy, so the values present at the registration level will be what are used when a course is launched.
1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1582 def set_registration_instance_configuration_with_http_info(registration_id, instance_id, configuration_settings, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.set_registration_instance_configuration ...' end # verify the required parameter 'registration_id' is set if registration_id.nil? fail ArgumentError, "Missing the required parameter 'registration_id' when calling RegistrationApi.set_registration_instance_configuration" end # verify the required parameter 'instance_id' is set if instance_id.nil? fail ArgumentError, "Missing the required parameter 'instance_id' when calling RegistrationApi.set_registration_instance_configuration" end # verify the required parameter 'configuration_settings' is set if configuration_settings.nil? fail ArgumentError, "Missing the required parameter 'configuration_settings' when calling RegistrationApi.set_registration_instance_configuration" end # resource path local_var_path = '/registrations/{registrationId}/instances/{instanceId}/configuration'.sub('{' + 'registrationId' + '}', registration_id.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(configuration_settings) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#set_registration_instance_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#test_registration_postback(post_back, opts = {}) ⇒ nil
Send a test postback with the provided configuration Sends a postback with dummy data to the url specified. The postback will use additional information from the configuration provided with the request (e.g. a provided username/password will be sent along with the postback to allow for logging in to a secure page. The format of the data sent will differ depending on whether httpbasic or form is passed for authType. - With httpbasic, an authorization header will be sent with the base64 encoded credentials. The body will be JSON formatted data. - With form, the username and password will be sent in the body of the request along with the data. The whole body will be url encoded. >Note: >The data that will be sent to the provided url is the same format as the output of the GetRegistrationProgress endpoint.
1634 1635 1636 1637 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1634 def test_registration_postback(post_back, opts = {}) test_registration_postback_with_http_info(post_back, opts) nil end |
#test_registration_postback_with_http_info(post_back, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Send a test postback with the provided configuration Sends a postback with dummy data to the url specified. The postback will use additional information from the configuration provided with the request (e.g. a provided username/password will be sent along with the postback to allow for logging in to a secure page. The format of the data sent will differ depending on whether `httpbasic` or `form` is passed for `authType`. - With httpbasic, an authorization header will be sent with the base64 encoded credentials. The body will be JSON formatted data. - With form, the username and password will be sent in the body of the request along with the data. The whole body will be url encoded. >Note: >The data that will be sent to the provided url is the same format as the output of the GetRegistrationProgress endpoint.
1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 |
# File 'lib/rustici_software_cloud_v2/api/registration_api.rb', line 1644 def test_registration_postback_with_http_info(post_back, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RegistrationApi.test_registration_postback ...' end # verify the required parameter 'post_back' is set if post_back.nil? fail ArgumentError, "Missing the required parameter 'post_back' when calling RegistrationApi.test_registration_postback" end # resource path local_var_path = '/registrations/postBackTest' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(post_back) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: RegistrationApi#test_registration_postback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |