rustici_software_cloud_v2 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/lib/rustici_software_cloud_v2.rb +1 -0
  4. data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
  5. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
  15. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
  16. data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
  17. data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
  18. data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
  19. data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
  20. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
  21. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
  22. data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
  23. data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
  24. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
  25. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
  26. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
  27. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
  28. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
  29. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
  30. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
  31. data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
  32. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
  33. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
  34. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
  35. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
  36. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
  37. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
  38. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
  39. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
  40. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
  41. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
  42. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
  43. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
  44. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
  45. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
  46. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
  47. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
  48. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
  49. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
  50. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
  51. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
  52. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
  53. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
  54. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
  55. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
  56. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
  57. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
  58. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
  59. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
  60. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
  61. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
  62. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
  63. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
  64. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
  65. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
  66. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
  67. data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
  68. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
  69. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
  70. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
  71. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
  72. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
  73. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
  74. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
  75. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
  76. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
  77. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
  78. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
  79. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
  80. data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
  81. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
  82. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
  83. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
  84. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
  85. data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
  86. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
  87. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
  88. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
  89. data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
  90. data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
  91. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
  92. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
  93. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
  94. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
  95. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
  96. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
  97. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
  98. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
  99. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
  100. data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
  101. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
  102. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
  103. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
  104. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
  105. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
  106. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
  107. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
  108. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
  109. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
  110. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
  111. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
  112. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
  113. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
  114. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
  115. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
  116. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
  117. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
  118. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
  119. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
  120. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
  121. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
  122. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
  123. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
  124. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
  125. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
  126. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
  127. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
  128. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
  129. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
  130. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
  131. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
  132. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
  133. data/lib/rustici_software_cloud_v2/version.rb +2 -1
  134. data/rustici_software_cloud_v2.gemspec +8 -7
  135. data/spec/api_client_spec.rb +35 -34
  136. data/spec/configuration_spec.rb +9 -8
  137. data/spec/spec_helper.rb +1 -0
  138. metadata +16 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 643a97d01f730b178cbabd2b0ed798e459a423b06aa77e1d80c3a27c3667b25b
4
- data.tar.gz: 3cdfb7dba39c40623659d99bcf5e56b35b7cc21f19e974f5729edf5ead0387e4
3
+ metadata.gz: 5d058e6e13f80bdb18025ef48adf63326c6308077fd27227307dd0eae68fdd6b
4
+ data.tar.gz: 032e6f0551fdba12a9f2f55c51305989888b53b8a562952e4b776393a2dffb7a
5
5
  SHA512:
6
- metadata.gz: 7b4e53438de1110ddcb62a4272a8e51a40b996814f3f48cb8f97655824fdad6015d8514c63b76274e38c6824c540bb1f13d2c3d6c50905c664c6eef69b421686
7
- data.tar.gz: 6b2b649a1fc7f24ff4a5e68e21dfcbbc913348b20fe66296065408d8eb04edb3043c49d94db9a7b842f8ec9b3d8c380b109599ccfb4f45354d0fe2ac4e383a50
6
+ metadata.gz: 96ff1b99b4a3aed7479b06954ce50dc5e2c7620a033bd3b6c1fb086cc1ac59861bc130d1a6b078aaa993c5e9b041396860315ba599049deae886ad876108252b
7
+ data.tar.gz: d43db17e4df7574f04030e5a20d781be3a0227798b94ad3d7df0532351dcd13ee9806ce10ded8179e41a5ca125d0fca4b381503057db630049b0a26e6a3b0c6b
data/README.md CHANGED
@@ -7,7 +7,7 @@ REST API used for SCORM Cloud integrations.
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0
10
- - Package version: 1.0.2
10
+ - Package version: 1.1.0
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build rustici_software_cloud_v2.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./rustici_software_cloud_v2-1.0.2.gem
26
+ gem install ./rustici_software_cloud_v2-1.1.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./rustici_software_cloud_v2-1.0.2.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./rustici_software_cloud_v2-1.1.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'rustici_software_cloud_v2', '~> 1.0.2'
34
+ gem 'rustici_software_cloud_v2', '~> 1.1.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -183,6 +183,7 @@ Class | Method | HTTP request | Description
183
183
  *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration**](docs/RegistrationApi.md#delete_registration) | **DELETE** /registrations/{registrationId} | Delete a registration.
184
184
  *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_configuration_setting**](docs/RegistrationApi.md#delete_registration_configuration_setting) | **DELETE** /registrations/{registrationId}/configuration/{settingId} | Clear a registration configuration.
185
185
  *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_global_data**](docs/RegistrationApi.md#delete_registration_global_data) | **DELETE** /registrations/{registrationId}/globalData | Delete the global data of a registration.
186
+ *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_instance**](docs/RegistrationApi.md#delete_registration_instance) | **DELETE** /registrations/{registrationId}/instances/{instanceId} | Delete instance `instanceId` of `registrationId`.
186
187
  *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_instance_configuration_setting**](docs/RegistrationApi.md#delete_registration_instance_configuration_setting) | **DELETE** /registrations/{registrationId}/instances/{instanceId}/configuration/{settingId} | Clear a configuration for an instance of a registration.
187
188
  *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_progress**](docs/RegistrationApi.md#delete_registration_progress) | **DELETE** /registrations/{registrationId}/progress | Reset a registration.
188
189
  *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_tags**](docs/RegistrationApi.md#delete_registration_tags) | **DELETE** /registrations/{registrationId}/tags | Delete tags from a registration.
@@ -6,6 +6,7 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
@@ -6,10 +6,11 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
- require "uri"
13
+ require 'uri'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
16
  class AboutApi
@@ -18,14 +19,13 @@ module RusticiSoftwareCloudV2
18
19
  def initialize(api_client = ApiClient.default)
19
20
  @api_client = api_client
20
21
  end
21
-
22
22
  # Get back the API version and application name.
23
23
  # Get back the API version and application name.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [AboutSchema]
26
26
  def get_about(opts = {})
27
27
  data, _status_code, _headers = get_about_with_http_info(opts)
28
- return data
28
+ data
29
29
  end
30
30
 
31
31
  # Get back the API version and application name.
@@ -34,10 +34,10 @@ module RusticiSoftwareCloudV2
34
34
  # @return [Array<(AboutSchema, Fixnum, Hash)>] AboutSchema data, response status code and response headers
35
35
  def get_about_with_http_info(opts = {})
36
36
  if @api_client.config.debugging
37
- @api_client.config.logger.debug "Calling API: AboutApi.get_about ..."
37
+ @api_client.config.logger.debug 'Calling API: AboutApi.get_about ...'
38
38
  end
39
39
  # resource path
40
- local_var_path = "/about".sub('{format}','json')
40
+ local_var_path = '/about'
41
41
 
42
42
  # query parameters
43
43
  query_params = {}
@@ -6,10 +6,11 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
- require "uri"
13
+ require 'uri'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
16
  class ApplicationManagementApi
@@ -18,30 +19,29 @@ module RusticiSoftwareCloudV2
18
19
  def initialize(api_client = ApiClient.default)
19
20
  @api_client = api_client
20
21
  end
21
-
22
- #
23
22
  # A call to this method will create a new application and return a basic object describing it.
24
23
  # @param application_name
25
24
  # @param [Hash] opts the optional parameters
26
25
  # @return [ApplicationSchema]
27
26
  def create_application(application_name, opts = {})
28
27
  data, _status_code, _headers = create_application_with_http_info(application_name, opts)
29
- return data
28
+ data
30
29
  end
31
30
 
32
- #
33
31
  # A call to this method will create a new application and return a basic object describing it.
34
32
  # @param application_name
35
33
  # @param [Hash] opts the optional parameters
36
34
  # @return [Array<(ApplicationSchema, Fixnum, Hash)>] ApplicationSchema data, response status code and response headers
37
35
  def create_application_with_http_info(application_name, opts = {})
38
36
  if @api_client.config.debugging
39
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.create_application ..."
37
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.create_application ...'
40
38
  end
41
39
  # verify the required parameter 'application_name' is set
42
- fail ArgumentError, "Missing the required parameter 'application_name' when calling ApplicationManagementApi.create_application" if application_name.nil?
40
+ if @api_client.config.client_side_validation && application_name.nil?
41
+ fail ArgumentError, "Missing the required parameter 'application_name' when calling ApplicationManagementApi.create_application"
42
+ end
43
43
  # resource path
44
- local_var_path = "/appManagement/applications".sub('{format}','json')
44
+ local_var_path = '/appManagement/applications'
45
45
 
46
46
  # query parameters
47
47
  query_params = {}
@@ -71,8 +71,6 @@ module RusticiSoftwareCloudV2
71
71
  end
72
72
  return data, status_code, headers
73
73
  end
74
-
75
- #
76
74
  # Create a new credential (aka secret key) for use with the `childAppId`.
77
75
  # @param child_app_id
78
76
  # @param credential_request
@@ -80,10 +78,9 @@ module RusticiSoftwareCloudV2
80
78
  # @return [CredentialCreatedSchema]
81
79
  def create_credential(child_app_id, credential_request, opts = {})
82
80
  data, _status_code, _headers = create_credential_with_http_info(child_app_id, credential_request, opts)
83
- return data
81
+ data
84
82
  end
85
83
 
86
- #
87
84
  # Create a new credential (aka secret key) for use with the &#x60;childAppId&#x60;.
88
85
  # @param child_app_id
89
86
  # @param credential_request
@@ -91,14 +88,18 @@ module RusticiSoftwareCloudV2
91
88
  # @return [Array<(CredentialCreatedSchema, Fixnum, Hash)>] CredentialCreatedSchema data, response status code and response headers
92
89
  def create_credential_with_http_info(child_app_id, credential_request, opts = {})
93
90
  if @api_client.config.debugging
94
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.create_credential ..."
91
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.create_credential ...'
95
92
  end
96
93
  # verify the required parameter 'child_app_id' is set
97
- fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.create_credential" if child_app_id.nil?
94
+ if @api_client.config.client_side_validation && child_app_id.nil?
95
+ fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.create_credential"
96
+ end
98
97
  # verify the required parameter 'credential_request' is set
99
- fail ArgumentError, "Missing the required parameter 'credential_request' when calling ApplicationManagementApi.create_credential" if credential_request.nil?
98
+ if @api_client.config.client_side_validation && credential_request.nil?
99
+ fail ArgumentError, "Missing the required parameter 'credential_request' when calling ApplicationManagementApi.create_credential"
100
+ end
100
101
  # resource path
101
- local_var_path = "/appManagement/{childAppId}/credentials".sub('{format}','json').sub('{' + 'childAppId' + '}', child_app_id.to_s)
102
+ local_var_path = '/appManagement/{childAppId}/credentials'.sub('{' + 'childAppId' + '}', child_app_id.to_s)
102
103
 
103
104
  # query parameters
104
105
  query_params = {}
@@ -128,30 +129,29 @@ module RusticiSoftwareCloudV2
128
129
  end
129
130
  return data, status_code, headers
130
131
  end
131
-
132
- #
133
132
  # Creates, signs and returns an OAuth2 token based on the provided permissions, if the credentials used to request the token have the permissions being requested. Note: the token is not stored and therefore can not be modified or deleted. The requested permissions are encoded in the token which is then signed. As long as the secret used to create it is not changed the token will be valid until it expires.
134
133
  # @param token_request
135
134
  # @param [Hash] opts the optional parameters
136
135
  # @return [StringResultSchema]
137
136
  def create_token(token_request, opts = {})
138
137
  data, _status_code, _headers = create_token_with_http_info(token_request, opts)
139
- return data
138
+ data
140
139
  end
141
140
 
142
- #
143
141
  # Creates, signs and returns an OAuth2 token based on the provided permissions, if the credentials used to request the token have the permissions being requested. Note: the token is not stored and therefore can not be modified or deleted. The requested permissions are encoded in the token which is then signed. As long as the secret used to create it is not changed the token will be valid until it expires.
144
142
  # @param token_request
145
143
  # @param [Hash] opts the optional parameters
146
144
  # @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
147
145
  def create_token_with_http_info(token_request, opts = {})
148
146
  if @api_client.config.debugging
149
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.create_token ..."
147
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.create_token ...'
150
148
  end
151
149
  # verify the required parameter 'token_request' is set
152
- fail ArgumentError, "Missing the required parameter 'token_request' when calling ApplicationManagementApi.create_token" if token_request.nil?
150
+ if @api_client.config.client_side_validation && token_request.nil?
151
+ fail ArgumentError, "Missing the required parameter 'token_request' when calling ApplicationManagementApi.create_token"
152
+ end
153
153
  # resource path
154
- local_var_path = "/appManagement/token".sub('{format}','json')
154
+ local_var_path = '/appManagement/token'
155
155
 
156
156
  # query parameters
157
157
  query_params = {}
@@ -181,30 +181,29 @@ module RusticiSoftwareCloudV2
181
181
  end
182
182
  return data, status_code, headers
183
183
  end
184
-
185
- #
186
184
  # Delete an application. If the application contains content, it must first be manually removed before calling this method, else an error will be thrown.
187
185
  # @param child_app_id
188
186
  # @param [Hash] opts the optional parameters
189
187
  # @return [nil]
190
188
  def delete_application(child_app_id, opts = {})
191
189
  delete_application_with_http_info(child_app_id, opts)
192
- return nil
190
+ nil
193
191
  end
194
192
 
195
- #
196
193
  # Delete an application. If the application contains content, it must first be manually removed before calling this method, else an error will be thrown.
197
194
  # @param child_app_id
198
195
  # @param [Hash] opts the optional parameters
199
196
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
200
197
  def delete_application_with_http_info(child_app_id, opts = {})
201
198
  if @api_client.config.debugging
202
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.delete_application ..."
199
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.delete_application ...'
203
200
  end
204
201
  # verify the required parameter 'child_app_id' is set
205
- fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.delete_application" if child_app_id.nil?
202
+ if @api_client.config.client_side_validation && child_app_id.nil?
203
+ fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.delete_application"
204
+ end
206
205
  # resource path
207
- local_var_path = "/appManagement/applications/{childAppId}".sub('{format}','json').sub('{' + 'childAppId' + '}', child_app_id.to_s)
206
+ local_var_path = '/appManagement/applications/{childAppId}'.sub('{' + 'childAppId' + '}', child_app_id.to_s)
208
207
 
209
208
  # query parameters
210
209
  query_params = {}
@@ -233,7 +232,6 @@ module RusticiSoftwareCloudV2
233
232
  end
234
233
  return data, status_code, headers
235
234
  end
236
-
237
235
  # Clears the `settingId` value for this level
238
236
  # Clears the setting value at this level. This is effectively reverting the setting to the system level default.
239
237
  # @param setting_id
@@ -243,7 +241,7 @@ module RusticiSoftwareCloudV2
243
241
  # @return [nil]
244
242
  def delete_application_configuration_setting(setting_id, opts = {})
245
243
  delete_application_configuration_setting_with_http_info(setting_id, opts)
246
- return nil
244
+ nil
247
245
  end
248
246
 
249
247
  # Clears the &#x60;settingId&#x60; value for this level
@@ -255,15 +253,17 @@ module RusticiSoftwareCloudV2
255
253
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
256
254
  def delete_application_configuration_setting_with_http_info(setting_id, opts = {})
257
255
  if @api_client.config.debugging
258
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.delete_application_configuration_setting ..."
256
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.delete_application_configuration_setting ...'
259
257
  end
260
258
  # verify the required parameter 'setting_id' is set
261
- fail ArgumentError, "Missing the required parameter 'setting_id' when calling ApplicationManagementApi.delete_application_configuration_setting" if setting_id.nil?
262
- if opts[:'learning_standard'] && !['SCORM_11', 'SCORM_12', 'SCORM_2004_2ND_EDITION', 'SCORM_2004_3RD_EDITION', 'SCORM_2004_4TH_EDITION', 'AICC', 'XAPI', 'CMI5'].include?(opts[:'learning_standard'])
259
+ if @api_client.config.client_side_validation && setting_id.nil?
260
+ fail ArgumentError, "Missing the required parameter 'setting_id' when calling ApplicationManagementApi.delete_application_configuration_setting"
261
+ end
262
+ if @api_client.config.client_side_validation && opts[:'learning_standard'] && !['SCORM_11', 'SCORM_12', 'SCORM_2004_2ND_EDITION', 'SCORM_2004_3RD_EDITION', 'SCORM_2004_4TH_EDITION', 'AICC', 'XAPI', 'CMI5'].include?(opts[:'learning_standard'])
263
263
  fail ArgumentError, 'invalid value for "learning_standard", must be one of SCORM_11, SCORM_12, SCORM_2004_2ND_EDITION, SCORM_2004_3RD_EDITION, SCORM_2004_4TH_EDITION, AICC, XAPI, CMI5'
264
264
  end
265
265
  # resource path
266
- local_var_path = "/appManagement/configuration/{settingId}".sub('{format}','json').sub('{' + 'settingId' + '}', setting_id.to_s)
266
+ local_var_path = '/appManagement/configuration/{settingId}'.sub('{' + 'settingId' + '}', setting_id.to_s)
267
267
 
268
268
  # query parameters
269
269
  query_params = {}
@@ -294,8 +294,6 @@ module RusticiSoftwareCloudV2
294
294
  end
295
295
  return data, status_code, headers
296
296
  end
297
-
298
- #
299
297
  # Delete `credentialId` from the system. Note: if an application's last secret key is deleted it will not be able to use the SCORM Cloud api until another key is granted to it via `CreateCredential`. Removing the last secret key may also disable some priviledges in the website.
300
298
  # @param child_app_id
301
299
  # @param credential_id
@@ -303,10 +301,9 @@ module RusticiSoftwareCloudV2
303
301
  # @return [nil]
304
302
  def delete_credential(child_app_id, credential_id, opts = {})
305
303
  delete_credential_with_http_info(child_app_id, credential_id, opts)
306
- return nil
304
+ nil
307
305
  end
308
306
 
309
- #
310
307
  # Delete &#x60;credentialId&#x60; from the system. Note: if an application&#39;s last secret key is deleted it will not be able to use the SCORM Cloud api until another key is granted to it via &#x60;CreateCredential&#x60;. Removing the last secret key may also disable some priviledges in the website.
311
308
  # @param child_app_id
312
309
  # @param credential_id
@@ -314,14 +311,18 @@ module RusticiSoftwareCloudV2
314
311
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
315
312
  def delete_credential_with_http_info(child_app_id, credential_id, opts = {})
316
313
  if @api_client.config.debugging
317
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.delete_credential ..."
314
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.delete_credential ...'
318
315
  end
319
316
  # verify the required parameter 'child_app_id' is set
320
- fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.delete_credential" if child_app_id.nil?
317
+ if @api_client.config.client_side_validation && child_app_id.nil?
318
+ fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.delete_credential"
319
+ end
321
320
  # verify the required parameter 'credential_id' is set
322
- fail ArgumentError, "Missing the required parameter 'credential_id' when calling ApplicationManagementApi.delete_credential" if credential_id.nil?
321
+ if @api_client.config.client_side_validation && credential_id.nil?
322
+ fail ArgumentError, "Missing the required parameter 'credential_id' when calling ApplicationManagementApi.delete_credential"
323
+ end
323
324
  # resource path
324
- local_var_path = "/appManagement/{childAppId}/credentials/{credentialId}".sub('{format}','json').sub('{' + 'childAppId' + '}', child_app_id.to_s).sub('{' + 'credentialId' + '}', credential_id.to_s)
325
+ local_var_path = '/appManagement/{childAppId}/credentials/{credentialId}'.sub('{' + 'childAppId' + '}', child_app_id.to_s).sub('{' + 'credentialId' + '}', credential_id.to_s)
325
326
 
326
327
  # query parameters
327
328
  query_params = {}
@@ -350,8 +351,6 @@ module RusticiSoftwareCloudV2
350
351
  end
351
352
  return data, status_code, headers
352
353
  end
353
-
354
- #
355
354
  # Returns all configuration settings for this level. These settings will only affect items within this application which do not have that setting themselves. >Note ----- >This resource actually represents 2 distinct levels which are: >- ALL content in an application. This is achieved by leaving `learningStandard` and `singleSco` as `null`. Anything set at the learningStandard/singleSco level will take precedence over these settings. - Content falling into a learningStandard/singleSco category. This allows setting more specific defaults for a particular learningStandard/singleSco combination. Note: both `learningStandard` and `singleSco` must be provided, as this level is considered to be identified by those items joined.
356
355
  # @param [Hash] opts the optional parameters
357
356
  # @option opts [String] :learning_standard If specified, the request will be scoped to the provided learning standard.
@@ -360,10 +359,9 @@ module RusticiSoftwareCloudV2
360
359
  # @return [SettingListSchema]
361
360
  def get_application_configuration(opts = {})
362
361
  data, _status_code, _headers = get_application_configuration_with_http_info(opts)
363
- return data
362
+ data
364
363
  end
365
364
 
366
- #
367
365
  # Returns all configuration settings for this level. These settings will only affect items within this application which do not have that setting themselves. &gt;Note ----- &gt;This resource actually represents 2 distinct levels which are: &gt;- ALL content in an application. This is achieved by leaving &#x60;learningStandard&#x60; and &#x60;singleSco&#x60; as &#x60;null&#x60;. Anything set at the learningStandard/singleSco level will take precedence over these settings. - Content falling into a learningStandard/singleSco category. This allows setting more specific defaults for a particular learningStandard/singleSco combination. Note: both &#x60;learningStandard&#x60; and &#x60;singleSco&#x60; must be provided, as this level is considered to be identified by those items joined.
368
366
  # @param [Hash] opts the optional parameters
369
367
  # @option opts [String] :learning_standard If specified, the request will be scoped to the provided learning standard.
@@ -372,13 +370,13 @@ module RusticiSoftwareCloudV2
372
370
  # @return [Array<(SettingListSchema, Fixnum, Hash)>] SettingListSchema data, response status code and response headers
373
371
  def get_application_configuration_with_http_info(opts = {})
374
372
  if @api_client.config.debugging
375
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.get_application_configuration ..."
373
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.get_application_configuration ...'
376
374
  end
377
- if opts[:'learning_standard'] && !['SCORM_11', 'SCORM_12', 'SCORM_2004_2ND_EDITION', 'SCORM_2004_3RD_EDITION', 'SCORM_2004_4TH_EDITION', 'AICC', 'XAPI', 'CMI5'].include?(opts[:'learning_standard'])
375
+ if @api_client.config.client_side_validation && opts[:'learning_standard'] && !['SCORM_11', 'SCORM_12', 'SCORM_2004_2ND_EDITION', 'SCORM_2004_3RD_EDITION', 'SCORM_2004_4TH_EDITION', 'AICC', 'XAPI', 'CMI5'].include?(opts[:'learning_standard'])
378
376
  fail ArgumentError, 'invalid value for "learning_standard", must be one of SCORM_11, SCORM_12, SCORM_2004_2ND_EDITION, SCORM_2004_3RD_EDITION, SCORM_2004_4TH_EDITION, AICC, XAPI, CMI5'
379
377
  end
380
378
  # resource path
381
- local_var_path = "/appManagement/configuration".sub('{format}','json')
379
+ local_var_path = '/appManagement/configuration'
382
380
 
383
381
  # query parameters
384
382
  query_params = {}
@@ -411,14 +409,13 @@ module RusticiSoftwareCloudV2
411
409
  end
412
410
  return data, status_code, headers
413
411
  end
414
-
415
412
  # Get a list of all applications for the realm.
416
413
  # Get list of all applications in this realm.
417
414
  # @param [Hash] opts the optional parameters
418
415
  # @return [ApplicationListSchema]
419
416
  def get_application_list(opts = {})
420
417
  data, _status_code, _headers = get_application_list_with_http_info(opts)
421
- return data
418
+ data
422
419
  end
423
420
 
424
421
  # Get a list of all applications for the realm.
@@ -427,10 +424,10 @@ module RusticiSoftwareCloudV2
427
424
  # @return [Array<(ApplicationListSchema, Fixnum, Hash)>] ApplicationListSchema data, response status code and response headers
428
425
  def get_application_list_with_http_info(opts = {})
429
426
  if @api_client.config.debugging
430
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.get_application_list ..."
427
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.get_application_list ...'
431
428
  end
432
429
  # resource path
433
- local_var_path = "/appManagement/applications".sub('{format}','json')
430
+ local_var_path = '/appManagement/applications'
434
431
 
435
432
  # query parameters
436
433
  query_params = {}
@@ -460,30 +457,29 @@ module RusticiSoftwareCloudV2
460
457
  end
461
458
  return data, status_code, headers
462
459
  end
463
-
464
- #
465
460
  # Retrieve a list of all credentials (aka secret keys) belonging to `childAppId` and their statuses.
466
461
  # @param child_app_id
467
462
  # @param [Hash] opts the optional parameters
468
463
  # @return [CredentialListSchema]
469
464
  def get_credentials(child_app_id, opts = {})
470
465
  data, _status_code, _headers = get_credentials_with_http_info(child_app_id, opts)
471
- return data
466
+ data
472
467
  end
473
468
 
474
- #
475
469
  # Retrieve a list of all credentials (aka secret keys) belonging to &#x60;childAppId&#x60; and their statuses.
476
470
  # @param child_app_id
477
471
  # @param [Hash] opts the optional parameters
478
472
  # @return [Array<(CredentialListSchema, Fixnum, Hash)>] CredentialListSchema data, response status code and response headers
479
473
  def get_credentials_with_http_info(child_app_id, opts = {})
480
474
  if @api_client.config.debugging
481
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.get_credentials ..."
475
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.get_credentials ...'
482
476
  end
483
477
  # verify the required parameter 'child_app_id' is set
484
- fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.get_credentials" if child_app_id.nil?
478
+ if @api_client.config.client_side_validation && child_app_id.nil?
479
+ fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.get_credentials"
480
+ end
485
481
  # resource path
486
- local_var_path = "/appManagement/{childAppId}/credentials".sub('{format}','json').sub('{' + 'childAppId' + '}', child_app_id.to_s)
482
+ local_var_path = '/appManagement/{childAppId}/credentials'.sub('{' + 'childAppId' + '}', child_app_id.to_s)
487
483
 
488
484
  # query parameters
489
485
  query_params = {}
@@ -513,8 +509,6 @@ module RusticiSoftwareCloudV2
513
509
  end
514
510
  return data, status_code, headers
515
511
  end
516
-
517
- #
518
512
  # Set configuration settings for the application level. These settings will only affect items within the application which do not have their own configuration set. This can be used to effectively set application level defaults.
519
513
  # @param configuration_settings
520
514
  # @param [Hash] opts the optional parameters
@@ -523,10 +517,9 @@ module RusticiSoftwareCloudV2
523
517
  # @return [nil]
524
518
  def set_application_configuration(configuration_settings, opts = {})
525
519
  set_application_configuration_with_http_info(configuration_settings, opts)
526
- return nil
520
+ nil
527
521
  end
528
522
 
529
- #
530
523
  # Set configuration settings for the application level. These settings will only affect items within the application which do not have their own configuration set. This can be used to effectively set application level defaults.
531
524
  # @param configuration_settings
532
525
  # @param [Hash] opts the optional parameters
@@ -535,15 +528,17 @@ module RusticiSoftwareCloudV2
535
528
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
536
529
  def set_application_configuration_with_http_info(configuration_settings, opts = {})
537
530
  if @api_client.config.debugging
538
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.set_application_configuration ..."
531
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.set_application_configuration ...'
539
532
  end
540
533
  # verify the required parameter 'configuration_settings' is set
541
- fail ArgumentError, "Missing the required parameter 'configuration_settings' when calling ApplicationManagementApi.set_application_configuration" if configuration_settings.nil?
542
- if opts[:'learning_standard'] && !['SCORM_11', 'SCORM_12', 'SCORM_2004_2ND_EDITION', 'SCORM_2004_3RD_EDITION', 'SCORM_2004_4TH_EDITION', 'AICC', 'XAPI', 'CMI5'].include?(opts[:'learning_standard'])
534
+ if @api_client.config.client_side_validation && configuration_settings.nil?
535
+ fail ArgumentError, "Missing the required parameter 'configuration_settings' when calling ApplicationManagementApi.set_application_configuration"
536
+ end
537
+ if @api_client.config.client_side_validation && opts[:'learning_standard'] && !['SCORM_11', 'SCORM_12', 'SCORM_2004_2ND_EDITION', 'SCORM_2004_3RD_EDITION', 'SCORM_2004_4TH_EDITION', 'AICC', 'XAPI', 'CMI5'].include?(opts[:'learning_standard'])
543
538
  fail ArgumentError, 'invalid value for "learning_standard", must be one of SCORM_11, SCORM_12, SCORM_2004_2ND_EDITION, SCORM_2004_3RD_EDITION, SCORM_2004_4TH_EDITION, AICC, XAPI, CMI5'
544
539
  end
545
540
  # resource path
546
- local_var_path = "/appManagement/configuration".sub('{format}','json')
541
+ local_var_path = '/appManagement/configuration'
547
542
 
548
543
  # query parameters
549
544
  query_params = {}
@@ -574,8 +569,6 @@ module RusticiSoftwareCloudV2
574
569
  end
575
570
  return data, status_code, headers
576
571
  end
577
-
578
- #
579
572
  # Update the name or status associated with `credentialId`. If the status is updated to disabled, the credential will no longer be valid for authorization through the API. If the last (or only) key for an application is disabled it may affect some website priviledges
580
573
  # @param child_app_id
581
574
  # @param credential_id
@@ -584,10 +577,9 @@ module RusticiSoftwareCloudV2
584
577
  # @return [nil]
585
578
  def update_credential(child_app_id, credential_id, credential_update, opts = {})
586
579
  update_credential_with_http_info(child_app_id, credential_id, credential_update, opts)
587
- return nil
580
+ nil
588
581
  end
589
582
 
590
- #
591
583
  # Update the name or status associated with &#x60;credentialId&#x60;. If the status is updated to disabled, the credential will no longer be valid for authorization through the API. If the last (or only) key for an application is disabled it may affect some website priviledges
592
584
  # @param child_app_id
593
585
  # @param credential_id
@@ -596,16 +588,22 @@ module RusticiSoftwareCloudV2
596
588
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
597
589
  def update_credential_with_http_info(child_app_id, credential_id, credential_update, opts = {})
598
590
  if @api_client.config.debugging
599
- @api_client.config.logger.debug "Calling API: ApplicationManagementApi.update_credential ..."
591
+ @api_client.config.logger.debug 'Calling API: ApplicationManagementApi.update_credential ...'
600
592
  end
601
593
  # verify the required parameter 'child_app_id' is set
602
- fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.update_credential" if child_app_id.nil?
594
+ if @api_client.config.client_side_validation && child_app_id.nil?
595
+ fail ArgumentError, "Missing the required parameter 'child_app_id' when calling ApplicationManagementApi.update_credential"
596
+ end
603
597
  # verify the required parameter 'credential_id' is set
604
- fail ArgumentError, "Missing the required parameter 'credential_id' when calling ApplicationManagementApi.update_credential" if credential_id.nil?
598
+ if @api_client.config.client_side_validation && credential_id.nil?
599
+ fail ArgumentError, "Missing the required parameter 'credential_id' when calling ApplicationManagementApi.update_credential"
600
+ end
605
601
  # verify the required parameter 'credential_update' is set
606
- fail ArgumentError, "Missing the required parameter 'credential_update' when calling ApplicationManagementApi.update_credential" if credential_update.nil?
602
+ if @api_client.config.client_side_validation && credential_update.nil?
603
+ fail ArgumentError, "Missing the required parameter 'credential_update' when calling ApplicationManagementApi.update_credential"
604
+ end
607
605
  # resource path
608
- local_var_path = "/appManagement/{childAppId}/credentials/{credentialId}".sub('{format}','json').sub('{' + 'childAppId' + '}', child_app_id.to_s).sub('{' + 'credentialId' + '}', credential_id.to_s)
606
+ local_var_path = '/appManagement/{childAppId}/credentials/{credentialId}'.sub('{' + 'childAppId' + '}', child_app_id.to_s).sub('{' + 'credentialId' + '}', credential_id.to_s)
609
607
 
610
608
  # query parameters
611
609
  query_params = {}