rustici_software_cloud_v2 1.0.0beta → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +194 -88
- data/lib/rustici_software_cloud_v2/api/about_api.rb +71 -0
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +161 -97
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +13 -13
- data/lib/rustici_software_cloud_v2/api/course_api.rb +246 -260
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +1994 -0
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +964 -0
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +296 -0
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +10 -8
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +379 -324
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +191 -0
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +555 -0
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +448 -0
- data/lib/rustici_software_cloud_v2/api_client.rb +2 -3
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -2
- data/lib/rustici_software_cloud_v2/configuration.rb +9 -19
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +17 -14
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/application_token.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/{course_tags_batch_schema.rb → batch_tags_schema.rb} +29 -23
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +225 -0
- data/lib/rustici_software_cloud_v2/models/{link_schema.rb → create_dispatch_list_schema.rb} +22 -21
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +308 -0
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +254 -0
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +252 -0
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +15 -11
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +197 -0
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +200 -0
- data/lib/rustici_software_cloud_v2/models/{setting_metadata_valid_values.rb → destination_schema.rb} +42 -31
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +290 -0
- data/lib/rustici_software_cloud_v2/models/{tag_post_schema.rb → enabled_schema.rb} +24 -11
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +253 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +227 -0
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +19 -16
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +17 -8
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +23 -20
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +28 -20
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +33 -20
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +266 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +289 -0
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +5 -14
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +24 -9
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +5 -14
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +259 -0
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +214 -0
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/response_error.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +19 -16
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +15 -12
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +15 -12
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +14 -10
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +258 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +236 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +214 -0
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +14 -12
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +18 -15
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +220 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +220 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +252 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +266 -0
- data/lib/rustici_software_cloud_v2/models/{registration_tags_batch_schema.rb → xapi_credentials_list_schema.rb} +30 -31
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +241 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/version.rb +2 -3
- data/lib/rustici_software_cloud_v2.rb +50 -6
- data/rustici_software_cloud_v2.gemspec +10 -11
- data/spec/api_client_spec.rb +1 -13
- data/spec/configuration_spec.rb +9 -10
- data/spec/spec_helper.rb +1 -13
- metadata +107 -271
- data/docs/ActivityResultSchema.md +0 -20
- data/docs/ApplicationListSchema.md +0 -8
- data/docs/ApplicationManagementApi.md +0 -570
- data/docs/ApplicationSchema.md +0 -9
- data/docs/ApplicationToken.md +0 -10
- data/docs/AuthenticationApi.md +0 -64
- data/docs/CommentSchema.md +0 -10
- data/docs/CompletionAmountSchema.md +0 -8
- data/docs/CourseActivitySchema.md +0 -15
- data/docs/CourseApi.md +0 -1459
- data/docs/CourseListNonPagedSchema.md +0 -8
- data/docs/CourseListSchema.md +0 -9
- data/docs/CourseReferenceSchema.md +0 -10
- data/docs/CourseSchema.md +0 -20
- data/docs/CourseTagsBatchSchema.md +0 -9
- data/docs/CreateRegistrationSchema.md +0 -17
- data/docs/CredentialCreatedSchema.md +0 -12
- data/docs/CredentialListSchema.md +0 -8
- data/docs/CredentialRequestSchema.md +0 -9
- data/docs/CredentialSchema.md +0 -12
- data/docs/ImportFetchRequestSchema.md +0 -8
- data/docs/ImportJobResultSchema.md +0 -11
- data/docs/ImportResultSchema.md +0 -11
- data/docs/IntegerResultSchema.md +0 -8
- data/docs/ItemValuePairSchema.md +0 -9
- data/docs/LaunchHistoryListSchema.md +0 -8
- data/docs/LaunchHistorySchema.md +0 -17
- data/docs/LaunchLinkRequestSchema.md +0 -17
- data/docs/LaunchLinkSchema.md +0 -8
- data/docs/LearnerPreferenceSchema.md +0 -11
- data/docs/LearnerSchema.md +0 -11
- data/docs/LinkSchema.md +0 -8
- data/docs/MessageSchema.md +0 -8
- data/docs/MetadataSchema.md +0 -14
- data/docs/ObjectiveSchema.md +0 -20
- data/docs/PermissionsSchema.md +0 -9
- data/docs/PingApi.md +0 -57
- data/docs/PingSchema.md +0 -8
- data/docs/PostBackSchema.md +0 -12
- data/docs/RegistrationApi.md +0 -1490
- data/docs/RegistrationCompletion.md +0 -7
- data/docs/RegistrationListSchema.md +0 -9
- data/docs/RegistrationSchema.md +0 -27
- data/docs/RegistrationSuccess.md +0 -7
- data/docs/RegistrationTagsBatchSchema.md +0 -9
- data/docs/ResponseError.md +0 -8
- data/docs/RuntimeInteractionSchema.md +0 -18
- data/docs/RuntimeObjectiveSchema.md +0 -16
- data/docs/RuntimeSchema.md +0 -27
- data/docs/ScoreSchema.md +0 -8
- data/docs/SettingItem.md +0 -12
- data/docs/SettingListSchema.md +0 -8
- data/docs/SettingMetadata.md +0 -15
- data/docs/SettingMetadataValidValues.md +0 -9
- data/docs/SettingValidValue.md +0 -9
- data/docs/SettingsIndividualSchema.md +0 -10
- data/docs/SettingsPostSchema.md +0 -8
- data/docs/SharedDataEntrySchema.md +0 -9
- data/docs/StaticPropertiesSchema.md +0 -13
- data/docs/StringResultSchema.md +0 -8
- data/docs/TagListSchema.md +0 -8
- data/docs/TagPostSchema.md +0 -7
- data/docs/TitleSchema.md +0 -8
- data/docs/TokenRequestSchema.md +0 -9
- data/docs/XapiAccount.md +0 -9
- data/docs/XapiActivity.md +0 -10
- data/docs/XapiActivityDefinition.md +0 -19
- data/docs/XapiAgentGroup.md +0 -14
- data/docs/XapiAttachment.md +0 -14
- data/docs/XapiContext.md +0 -16
- data/docs/XapiContextActivity.md +0 -11
- data/docs/XapiInteractionComponent.md +0 -9
- data/docs/XapiResult.md +0 -13
- data/docs/XapiScore.md +0 -11
- data/docs/XapiStatement.md +0 -20
- data/docs/XapiStatementReference.md +0 -9
- data/docs/XapiStatementResult.md +0 -9
- data/docs/XapiVerb.md +0 -9
- data/git_push.sh +0 -55
- data/spec/models/activity_result_schema_spec.rb +0 -133
- data/spec/models/application_list_schema_spec.rb +0 -53
- data/spec/models/application_schema_spec.rb +0 -59
- data/spec/models/application_token_spec.rb +0 -65
- data/spec/models/comment_schema_spec.rb +0 -65
- data/spec/models/completion_amount_schema_spec.rb +0 -53
- data/spec/models/course_activity_schema_spec.rb +0 -99
- data/spec/models/course_list_non_paged_schema_spec.rb +0 -53
- data/spec/models/course_list_schema_spec.rb +0 -59
- data/spec/models/course_reference_schema_spec.rb +0 -65
- data/spec/models/course_schema_spec.rb +0 -129
- data/spec/models/create_registration_schema_spec.rb +0 -107
- data/spec/models/credential_created_schema_spec.rb +0 -77
- data/spec/models/credential_list_schema_spec.rb +0 -53
- data/spec/models/credential_request_schema_spec.rb +0 -59
- data/spec/models/credential_schema_spec.rb +0 -77
- data/spec/models/import_fetch_request_schema_spec.rb +0 -53
- data/spec/models/import_job_result_schema_spec.rb +0 -75
- data/spec/models/import_result_schema_spec.rb +0 -71
- data/spec/models/integer_result_schema_spec.rb +0 -53
- data/spec/models/item_value_pair_schema_spec.rb +0 -59
- data/spec/models/launch_history_list_schema_spec.rb +0 -53
- data/spec/models/launch_history_schema_spec.rb +0 -115
- data/spec/models/launch_link_request_schema_spec.rb +0 -107
- data/spec/models/launch_link_schema_spec.rb +0 -53
- data/spec/models/learner_preference_schema_spec.rb +0 -71
- data/spec/models/learner_schema_spec.rb +0 -71
- data/spec/models/link_schema_spec.rb +0 -53
- data/spec/models/message_schema_spec.rb +0 -53
- data/spec/models/metadata_schema_spec.rb +0 -89
- data/spec/models/objective_schema_spec.rb +0 -137
- data/spec/models/permissions_schema_spec.rb +0 -59
- data/spec/models/ping_schema_spec.rb +0 -53
- data/spec/models/post_back_schema_spec.rb +0 -85
- data/spec/models/registration_completion_spec.rb +0 -47
- data/spec/models/registration_list_schema_spec.rb +0 -59
- data/spec/models/registration_schema_spec.rb +0 -167
- data/spec/models/registration_success_spec.rb +0 -47
- data/spec/models/response_error_spec.rb +0 -53
- data/spec/models/runtime_interaction_schema_spec.rb +0 -117
- data/spec/models/runtime_objective_schema_spec.rb +0 -109
- data/spec/models/runtime_schema_spec.rb +0 -171
- data/spec/models/score_schema_spec.rb +0 -53
- data/spec/models/setting_item_spec.rb +0 -81
- data/spec/models/setting_list_schema_spec.rb +0 -53
- data/spec/models/setting_metadata_spec.rb +0 -99
- data/spec/models/setting_metadata_valid_values_spec.rb +0 -59
- data/spec/models/settings_individual_schema_spec.rb +0 -65
- data/spec/models/settings_post_schema_spec.rb +0 -53
- data/spec/models/shared_data_entry_schema_spec.rb +0 -59
- data/spec/models/static_properties_schema_spec.rb +0 -83
- data/spec/models/string_result_schema_spec.rb +0 -53
- data/spec/models/title_schema_spec.rb +0 -53
- data/spec/models/token_request_schema_spec.rb +0 -59
- data/swagger-codegen.config +0 -11
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SCORM Cloud Rest API
|
|
3
|
+
|
|
4
|
+
#REST API used for SCORM Cloud integrations.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require "uri"
|
|
13
|
+
|
|
14
|
+
module RusticiSoftwareCloudV2
|
|
15
|
+
class LearnerApi
|
|
16
|
+
attr_accessor :api_client
|
|
17
|
+
|
|
18
|
+
def initialize(api_client = ApiClient.default)
|
|
19
|
+
@api_client = api_client
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Deletes all of the information associated with a learner in an application, by learner id.
|
|
23
|
+
# Deletes all of the information associated with a learner in an application, by learner id. This is meant for use with complying with GDPR requests from learners.
|
|
24
|
+
# @param learner_id The id of the learner for which to remove all data from an application
|
|
25
|
+
# @param user_email The email of the user initiating this request on behalf of the learner being deleted. This must be a valid primary email address for a SCORM Cloud realm which this application is in.
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [nil]
|
|
28
|
+
def delete_all_learner_data(learner_id, user_email, opts = {})
|
|
29
|
+
delete_all_learner_data_with_http_info(learner_id, user_email, opts)
|
|
30
|
+
return nil
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Deletes all of the information associated with a learner in an application, by learner id.
|
|
34
|
+
# Deletes all of the information associated with a learner in an application, by learner id. This is meant for use with complying with GDPR requests from learners.
|
|
35
|
+
# @param learner_id The id of the learner for which to remove all data from an application
|
|
36
|
+
# @param user_email The email of the user initiating this request on behalf of the learner being deleted. This must be a valid primary email address for a SCORM Cloud realm which this application is in.
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
39
|
+
def delete_all_learner_data_with_http_info(learner_id, user_email, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug "Calling API: LearnerApi.delete_all_learner_data ..."
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'learner_id' is set
|
|
44
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.delete_all_learner_data" if learner_id.nil?
|
|
45
|
+
# verify the required parameter 'user_email' is set
|
|
46
|
+
fail ArgumentError, "Missing the required parameter 'user_email' when calling LearnerApi.delete_all_learner_data" if user_email.nil?
|
|
47
|
+
# resource path
|
|
48
|
+
local_var_path = "/learner/{learnerId}/delete-information".sub('{format}','json').sub('{' + 'learnerId' + '}', learner_id.to_s)
|
|
49
|
+
|
|
50
|
+
# query parameters
|
|
51
|
+
query_params = {}
|
|
52
|
+
query_params[:'userEmail'] = user_email
|
|
53
|
+
|
|
54
|
+
# header parameters
|
|
55
|
+
header_params = {}
|
|
56
|
+
# HTTP header 'Accept' (if needed)
|
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
58
|
+
# HTTP header 'Content-Type'
|
|
59
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = nil
|
|
66
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
|
67
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names)
|
|
73
|
+
if @api_client.config.debugging
|
|
74
|
+
@api_client.config.logger.debug "API called: LearnerApi#delete_all_learner_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
|
+
end
|
|
76
|
+
return data, status_code, headers
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Delete the tags for this learner
|
|
80
|
+
# Delete the tags for this learner
|
|
81
|
+
# @param learner_id The id of the learner for which to remove all data from an application
|
|
82
|
+
# @param tags
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [nil]
|
|
85
|
+
def delete_learner_tags(learner_id, tags, opts = {})
|
|
86
|
+
delete_learner_tags_with_http_info(learner_id, tags, opts)
|
|
87
|
+
return nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Delete the tags for this learner
|
|
91
|
+
# Delete the tags for this learner
|
|
92
|
+
# @param learner_id The id of the learner for which to remove all data from an application
|
|
93
|
+
# @param tags
|
|
94
|
+
# @param [Hash] opts the optional parameters
|
|
95
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
96
|
+
def delete_learner_tags_with_http_info(learner_id, tags, opts = {})
|
|
97
|
+
if @api_client.config.debugging
|
|
98
|
+
@api_client.config.logger.debug "Calling API: LearnerApi.delete_learner_tags ..."
|
|
99
|
+
end
|
|
100
|
+
# verify the required parameter 'learner_id' is set
|
|
101
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.delete_learner_tags" if learner_id.nil?
|
|
102
|
+
# verify the required parameter 'tags' is set
|
|
103
|
+
fail ArgumentError, "Missing the required parameter 'tags' when calling LearnerApi.delete_learner_tags" if tags.nil?
|
|
104
|
+
# resource path
|
|
105
|
+
local_var_path = "/learner/{learnerId}/tags".sub('{format}','json').sub('{' + 'learnerId' + '}', learner_id.to_s)
|
|
106
|
+
|
|
107
|
+
# query parameters
|
|
108
|
+
query_params = {}
|
|
109
|
+
|
|
110
|
+
# header parameters
|
|
111
|
+
header_params = {}
|
|
112
|
+
# HTTP header 'Accept' (if needed)
|
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
114
|
+
# HTTP header 'Content-Type'
|
|
115
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
116
|
+
|
|
117
|
+
# form parameters
|
|
118
|
+
form_params = {}
|
|
119
|
+
|
|
120
|
+
# http body (model)
|
|
121
|
+
post_body = @api_client.object_to_http_body(tags)
|
|
122
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
|
123
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
124
|
+
:header_params => header_params,
|
|
125
|
+
:query_params => query_params,
|
|
126
|
+
:form_params => form_params,
|
|
127
|
+
:body => post_body,
|
|
128
|
+
:auth_names => auth_names)
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug "API called: LearnerApi#delete_learner_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
131
|
+
end
|
|
132
|
+
return data, status_code, headers
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Get the tags for this learner
|
|
136
|
+
# Get the tags for this learner
|
|
137
|
+
# @param learner_id The id of the learner for which to remove all data from an application
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @return [TagListSchema]
|
|
140
|
+
def get_learner_tags(learner_id, opts = {})
|
|
141
|
+
data, _status_code, _headers = get_learner_tags_with_http_info(learner_id, opts)
|
|
142
|
+
return data
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Get the tags for this learner
|
|
146
|
+
# Get the tags for this learner
|
|
147
|
+
# @param learner_id The id of the learner for which to remove all data from an application
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @return [Array<(TagListSchema, Fixnum, Hash)>] TagListSchema data, response status code and response headers
|
|
150
|
+
def get_learner_tags_with_http_info(learner_id, opts = {})
|
|
151
|
+
if @api_client.config.debugging
|
|
152
|
+
@api_client.config.logger.debug "Calling API: LearnerApi.get_learner_tags ..."
|
|
153
|
+
end
|
|
154
|
+
# verify the required parameter 'learner_id' is set
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.get_learner_tags" if learner_id.nil?
|
|
156
|
+
# resource path
|
|
157
|
+
local_var_path = "/learner/{learnerId}/tags".sub('{format}','json').sub('{' + 'learnerId' + '}', learner_id.to_s)
|
|
158
|
+
|
|
159
|
+
# query parameters
|
|
160
|
+
query_params = {}
|
|
161
|
+
|
|
162
|
+
# header parameters
|
|
163
|
+
header_params = {}
|
|
164
|
+
# HTTP header 'Accept' (if needed)
|
|
165
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
166
|
+
# HTTP header 'Content-Type'
|
|
167
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
168
|
+
|
|
169
|
+
# form parameters
|
|
170
|
+
form_params = {}
|
|
171
|
+
|
|
172
|
+
# http body (model)
|
|
173
|
+
post_body = nil
|
|
174
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
|
175
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
176
|
+
:header_params => header_params,
|
|
177
|
+
:query_params => query_params,
|
|
178
|
+
:form_params => form_params,
|
|
179
|
+
:body => post_body,
|
|
180
|
+
:auth_names => auth_names,
|
|
181
|
+
:return_type => 'TagListSchema')
|
|
182
|
+
if @api_client.config.debugging
|
|
183
|
+
@api_client.config.logger.debug "API called: LearnerApi#get_learner_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
184
|
+
end
|
|
185
|
+
return data, status_code, headers
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Set the tags for this learner
|
|
189
|
+
# Set the tags for this learner
|
|
190
|
+
# @param learner_id The id of the learner for which to remove all data from an application
|
|
191
|
+
# @param tags
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @return [nil]
|
|
194
|
+
def put_learner_tags(learner_id, tags, opts = {})
|
|
195
|
+
put_learner_tags_with_http_info(learner_id, tags, opts)
|
|
196
|
+
return nil
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Set the tags for this learner
|
|
200
|
+
# Set the tags for this learner
|
|
201
|
+
# @param learner_id The id of the learner for which to remove all data from an application
|
|
202
|
+
# @param tags
|
|
203
|
+
# @param [Hash] opts the optional parameters
|
|
204
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
205
|
+
def put_learner_tags_with_http_info(learner_id, tags, opts = {})
|
|
206
|
+
if @api_client.config.debugging
|
|
207
|
+
@api_client.config.logger.debug "Calling API: LearnerApi.put_learner_tags ..."
|
|
208
|
+
end
|
|
209
|
+
# verify the required parameter 'learner_id' is set
|
|
210
|
+
fail ArgumentError, "Missing the required parameter 'learner_id' when calling LearnerApi.put_learner_tags" if learner_id.nil?
|
|
211
|
+
# verify the required parameter 'tags' is set
|
|
212
|
+
fail ArgumentError, "Missing the required parameter 'tags' when calling LearnerApi.put_learner_tags" if tags.nil?
|
|
213
|
+
# resource path
|
|
214
|
+
local_var_path = "/learner/{learnerId}/tags".sub('{format}','json').sub('{' + 'learnerId' + '}', learner_id.to_s)
|
|
215
|
+
|
|
216
|
+
# query parameters
|
|
217
|
+
query_params = {}
|
|
218
|
+
|
|
219
|
+
# header parameters
|
|
220
|
+
header_params = {}
|
|
221
|
+
# HTTP header 'Accept' (if needed)
|
|
222
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
223
|
+
# HTTP header 'Content-Type'
|
|
224
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
225
|
+
|
|
226
|
+
# form parameters
|
|
227
|
+
form_params = {}
|
|
228
|
+
|
|
229
|
+
# http body (model)
|
|
230
|
+
post_body = @api_client.object_to_http_body(tags)
|
|
231
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
|
232
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
233
|
+
:header_params => header_params,
|
|
234
|
+
:query_params => query_params,
|
|
235
|
+
:form_params => form_params,
|
|
236
|
+
:body => post_body,
|
|
237
|
+
:auth_names => auth_names)
|
|
238
|
+
if @api_client.config.debugging
|
|
239
|
+
@api_client.config.logger.debug "API called: LearnerApi#put_learner_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
240
|
+
end
|
|
241
|
+
return data, status_code, headers
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Sets all of the provided tags on all of the provided learners
|
|
245
|
+
# Sets all of the provided tags on all of the provided learners
|
|
246
|
+
# @param batch Object representing an array of ids to apply an array of tags to.
|
|
247
|
+
# @param [Hash] opts the optional parameters
|
|
248
|
+
# @return [nil]
|
|
249
|
+
def put_learner_tags_batch(batch, opts = {})
|
|
250
|
+
put_learner_tags_batch_with_http_info(batch, opts)
|
|
251
|
+
return nil
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Sets all of the provided tags on all of the provided learners
|
|
255
|
+
# Sets all of the provided tags on all of the provided learners
|
|
256
|
+
# @param batch Object representing an array of ids to apply an array of tags to.
|
|
257
|
+
# @param [Hash] opts the optional parameters
|
|
258
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
259
|
+
def put_learner_tags_batch_with_http_info(batch, opts = {})
|
|
260
|
+
if @api_client.config.debugging
|
|
261
|
+
@api_client.config.logger.debug "Calling API: LearnerApi.put_learner_tags_batch ..."
|
|
262
|
+
end
|
|
263
|
+
# verify the required parameter 'batch' is set
|
|
264
|
+
fail ArgumentError, "Missing the required parameter 'batch' when calling LearnerApi.put_learner_tags_batch" if batch.nil?
|
|
265
|
+
# resource path
|
|
266
|
+
local_var_path = "/learner/tags".sub('{format}','json')
|
|
267
|
+
|
|
268
|
+
# query parameters
|
|
269
|
+
query_params = {}
|
|
270
|
+
|
|
271
|
+
# header parameters
|
|
272
|
+
header_params = {}
|
|
273
|
+
# HTTP header 'Accept' (if needed)
|
|
274
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
275
|
+
# HTTP header 'Content-Type'
|
|
276
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
277
|
+
|
|
278
|
+
# form parameters
|
|
279
|
+
form_params = {}
|
|
280
|
+
|
|
281
|
+
# http body (model)
|
|
282
|
+
post_body = @api_client.object_to_http_body(batch)
|
|
283
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
|
284
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
285
|
+
:header_params => header_params,
|
|
286
|
+
:query_params => query_params,
|
|
287
|
+
:form_params => form_params,
|
|
288
|
+
:body => post_body,
|
|
289
|
+
:auth_names => auth_names)
|
|
290
|
+
if @api_client.config.debugging
|
|
291
|
+
@api_client.config.logger.debug "API called: LearnerApi#put_learner_tags_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
292
|
+
end
|
|
293
|
+
return data, status_code, headers
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
end
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.0
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.3
|
|
10
9
|
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
|
-
require
|
|
12
|
+
require "uri"
|
|
14
13
|
|
|
15
14
|
module RusticiSoftwareCloudV2
|
|
16
15
|
class PingApi
|
|
@@ -19,23 +18,26 @@ module RusticiSoftwareCloudV2
|
|
|
19
18
|
def initialize(api_client = ApiClient.default)
|
|
20
19
|
@api_client = api_client
|
|
21
20
|
end
|
|
22
|
-
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Get back a message indicating that the API is working.
|
|
23
24
|
# @param [Hash] opts the optional parameters
|
|
24
25
|
# @return [PingSchema]
|
|
25
26
|
def ping_app_id(opts = {})
|
|
26
27
|
data, _status_code, _headers = ping_app_id_with_http_info(opts)
|
|
27
|
-
data
|
|
28
|
+
return data
|
|
28
29
|
end
|
|
29
30
|
|
|
30
|
-
#
|
|
31
|
+
#
|
|
32
|
+
# Get back a message indicating that the API is working.
|
|
31
33
|
# @param [Hash] opts the optional parameters
|
|
32
34
|
# @return [Array<(PingSchema, Fixnum, Hash)>] PingSchema data, response status code and response headers
|
|
33
35
|
def ping_app_id_with_http_info(opts = {})
|
|
34
36
|
if @api_client.config.debugging
|
|
35
|
-
@api_client.config.logger.debug
|
|
37
|
+
@api_client.config.logger.debug "Calling API: PingApi.ping_app_id ..."
|
|
36
38
|
end
|
|
37
39
|
# resource path
|
|
38
|
-
local_var_path =
|
|
40
|
+
local_var_path = "/ping".sub('{format}','json')
|
|
39
41
|
|
|
40
42
|
# query parameters
|
|
41
43
|
query_params = {}
|