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
@@ -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 ReportingApi
@@ -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 all of the account information specified by the given app ID
23
23
  # Get all of the account information specified by the given app ID
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [ReportageAccountInfoSchema]
26
26
  def get_account_info(opts = {})
27
27
  data, _status_code, _headers = get_account_info_with_http_info(opts)
28
- return data
28
+ data
29
29
  end
30
30
 
31
31
  # Get all of the account information specified by the given app ID
@@ -34,10 +34,10 @@ module RusticiSoftwareCloudV2
34
34
  # @return [Array<(ReportageAccountInfoSchema, Fixnum, Hash)>] ReportageAccountInfoSchema data, response status code and response headers
35
35
  def get_account_info_with_http_info(opts = {})
36
36
  if @api_client.config.debugging
37
- @api_client.config.logger.debug "Calling API: ReportingApi.get_account_info ..."
37
+ @api_client.config.logger.debug 'Calling API: ReportingApi.get_account_info ...'
38
38
  end
39
39
  # resource path
40
- local_var_path = "/reporting/accountInfo".sub('{format}','json')
40
+ local_var_path = '/reporting/accountInfo'
41
41
 
42
42
  # query parameters
43
43
  query_params = {}
@@ -67,7 +67,6 @@ module RusticiSoftwareCloudV2
67
67
  end
68
68
  return data, status_code, headers
69
69
  end
70
-
71
70
  # Get a session authentication token to use when launching Reportage
72
71
  # Get a session authentication token to use when launching Reportage
73
72
  # @param nav_permission The navigation permissions for this Reportage session
@@ -76,7 +75,7 @@ module RusticiSoftwareCloudV2
76
75
  # @return [ReportageAuthTokenSchema]
77
76
  def get_reportage_auth_token(nav_permission, opts = {})
78
77
  data, _status_code, _headers = get_reportage_auth_token_with_http_info(nav_permission, opts)
79
- return data
78
+ data
80
79
  end
81
80
 
82
81
  # Get a session authentication token to use when launching Reportage
@@ -87,16 +86,18 @@ module RusticiSoftwareCloudV2
87
86
  # @return [Array<(ReportageAuthTokenSchema, Fixnum, Hash)>] ReportageAuthTokenSchema data, response status code and response headers
88
87
  def get_reportage_auth_token_with_http_info(nav_permission, opts = {})
89
88
  if @api_client.config.debugging
90
- @api_client.config.logger.debug "Calling API: ReportingApi.get_reportage_auth_token ..."
89
+ @api_client.config.logger.debug 'Calling API: ReportingApi.get_reportage_auth_token ...'
91
90
  end
92
91
  # verify the required parameter 'nav_permission' is set
93
- fail ArgumentError, "Missing the required parameter 'nav_permission' when calling ReportingApi.get_reportage_auth_token" if nav_permission.nil?
92
+ if @api_client.config.client_side_validation && nav_permission.nil?
93
+ fail ArgumentError, "Missing the required parameter 'nav_permission' when calling ReportingApi.get_reportage_auth_token"
94
+ end
94
95
  # verify enum value
95
- unless ['NONAV', 'DOWNONLY', 'FREENAV'].include?(nav_permission)
96
+ if @api_client.config.client_side_validation && !['NONAV', 'DOWNONLY', 'FREENAV'].include?(nav_permission)
96
97
  fail ArgumentError, "invalid value for 'nav_permission', must be one of NONAV, DOWNONLY, FREENAV"
97
98
  end
98
99
  # resource path
99
- local_var_path = "/reporting/reportageAuth".sub('{format}','json')
100
+ local_var_path = '/reporting/reportageAuth'
100
101
 
101
102
  # query parameters
102
103
  query_params = {}
@@ -128,7 +129,6 @@ module RusticiSoftwareCloudV2
128
129
  end
129
130
  return data, status_code, headers
130
131
  end
131
-
132
132
  # Get the link to a page in Reportage with the given authentication and permissions
133
133
  # Get the link to a page in Reportage with the given authentication and permissions
134
134
  # @param auth The reportage authentication token retrieved from a previous call to &#x60;GET reportageAuth&#x60;
@@ -137,7 +137,7 @@ module RusticiSoftwareCloudV2
137
137
  # @return [ReportageLinkSchema]
138
138
  def get_reportage_link(auth, report_url, opts = {})
139
139
  data, _status_code, _headers = get_reportage_link_with_http_info(auth, report_url, opts)
140
- return data
140
+ data
141
141
  end
142
142
 
143
143
  # Get the link to a page in Reportage with the given authentication and permissions
@@ -148,14 +148,18 @@ module RusticiSoftwareCloudV2
148
148
  # @return [Array<(ReportageLinkSchema, Fixnum, Hash)>] ReportageLinkSchema data, response status code and response headers
149
149
  def get_reportage_link_with_http_info(auth, report_url, opts = {})
150
150
  if @api_client.config.debugging
151
- @api_client.config.logger.debug "Calling API: ReportingApi.get_reportage_link ..."
151
+ @api_client.config.logger.debug 'Calling API: ReportingApi.get_reportage_link ...'
152
152
  end
153
153
  # verify the required parameter 'auth' is set
154
- fail ArgumentError, "Missing the required parameter 'auth' when calling ReportingApi.get_reportage_link" if auth.nil?
154
+ if @api_client.config.client_side_validation && auth.nil?
155
+ fail ArgumentError, "Missing the required parameter 'auth' when calling ReportingApi.get_reportage_link"
156
+ end
155
157
  # verify the required parameter 'report_url' is set
156
- fail ArgumentError, "Missing the required parameter 'report_url' when calling ReportingApi.get_reportage_link" if report_url.nil?
158
+ if @api_client.config.client_side_validation && report_url.nil?
159
+ fail ArgumentError, "Missing the required parameter 'report_url' when calling ReportingApi.get_reportage_link"
160
+ end
157
161
  # resource path
158
- local_var_path = "/reporting/reportageLink".sub('{format}','json')
162
+ local_var_path = '/reporting/reportageLink'
159
163
 
160
164
  # query parameters
161
165
  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 XapiApi
@@ -18,7 +19,6 @@ module RusticiSoftwareCloudV2
18
19
  def initialize(api_client = ApiClient.default)
19
20
  @api_client = api_client
20
21
  end
21
-
22
22
  # Create an xAPI statement pipe.
23
23
  # Create an xAPI statement pipe.
24
24
  # @param xapi_statement_pipe
@@ -26,7 +26,7 @@ module RusticiSoftwareCloudV2
26
26
  # @return [StringResultSchema]
27
27
  def create_statement_pipe(xapi_statement_pipe, opts = {})
28
28
  data, _status_code, _headers = create_statement_pipe_with_http_info(xapi_statement_pipe, opts)
29
- return data
29
+ data
30
30
  end
31
31
 
32
32
  # Create an xAPI statement pipe.
@@ -36,12 +36,14 @@ module RusticiSoftwareCloudV2
36
36
  # @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
37
37
  def create_statement_pipe_with_http_info(xapi_statement_pipe, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug "Calling API: XapiApi.create_statement_pipe ..."
39
+ @api_client.config.logger.debug 'Calling API: XapiApi.create_statement_pipe ...'
40
40
  end
41
41
  # verify the required parameter 'xapi_statement_pipe' is set
42
- fail ArgumentError, "Missing the required parameter 'xapi_statement_pipe' when calling XapiApi.create_statement_pipe" if xapi_statement_pipe.nil?
42
+ if @api_client.config.client_side_validation && xapi_statement_pipe.nil?
43
+ fail ArgumentError, "Missing the required parameter 'xapi_statement_pipe' when calling XapiApi.create_statement_pipe"
44
+ end
43
45
  # resource path
44
- local_var_path = "/xapi/statementPipes".sub('{format}','json')
46
+ local_var_path = '/xapi/statementPipes'
45
47
 
46
48
  # query parameters
47
49
  query_params = {}
@@ -71,7 +73,6 @@ module RusticiSoftwareCloudV2
71
73
  end
72
74
  return data, status_code, headers
73
75
  end
74
-
75
76
  # Create a xAPI credential.
76
77
  # Create a xAPI credential.
77
78
  # @param xapi_credential
@@ -79,7 +80,7 @@ module RusticiSoftwareCloudV2
79
80
  # @return [StringResultSchema]
80
81
  def create_xapi_credential(xapi_credential, opts = {})
81
82
  data, _status_code, _headers = create_xapi_credential_with_http_info(xapi_credential, opts)
82
- return data
83
+ data
83
84
  end
84
85
 
85
86
  # Create a xAPI credential.
@@ -89,12 +90,14 @@ module RusticiSoftwareCloudV2
89
90
  # @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
90
91
  def create_xapi_credential_with_http_info(xapi_credential, opts = {})
91
92
  if @api_client.config.debugging
92
- @api_client.config.logger.debug "Calling API: XapiApi.create_xapi_credential ..."
93
+ @api_client.config.logger.debug 'Calling API: XapiApi.create_xapi_credential ...'
93
94
  end
94
95
  # verify the required parameter 'xapi_credential' is set
95
- fail ArgumentError, "Missing the required parameter 'xapi_credential' when calling XapiApi.create_xapi_credential" if xapi_credential.nil?
96
+ if @api_client.config.client_side_validation && xapi_credential.nil?
97
+ fail ArgumentError, "Missing the required parameter 'xapi_credential' when calling XapiApi.create_xapi_credential"
98
+ end
96
99
  # resource path
97
- local_var_path = "/xapi/credentials".sub('{format}','json')
100
+ local_var_path = '/xapi/credentials'
98
101
 
99
102
  # query parameters
100
103
  query_params = {}
@@ -124,7 +127,6 @@ module RusticiSoftwareCloudV2
124
127
  end
125
128
  return data, status_code, headers
126
129
  end
127
-
128
130
  # Deletes this xAPI pipe.
129
131
  # Caution: avoid re-creating a pipe with the same ID quickly after a delete. The old version could still be processing, in which case the new pipe could be updated improperly by the processor.
130
132
  # @param statement_pipe_id id for this xAPI statement pipe
@@ -132,7 +134,7 @@ module RusticiSoftwareCloudV2
132
134
  # @return [nil]
133
135
  def delete_statement_pipe(statement_pipe_id, opts = {})
134
136
  delete_statement_pipe_with_http_info(statement_pipe_id, opts)
135
- return nil
137
+ nil
136
138
  end
137
139
 
138
140
  # Deletes this xAPI pipe.
@@ -142,12 +144,14 @@ module RusticiSoftwareCloudV2
142
144
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
143
145
  def delete_statement_pipe_with_http_info(statement_pipe_id, opts = {})
144
146
  if @api_client.config.debugging
145
- @api_client.config.logger.debug "Calling API: XapiApi.delete_statement_pipe ..."
147
+ @api_client.config.logger.debug 'Calling API: XapiApi.delete_statement_pipe ...'
146
148
  end
147
149
  # verify the required parameter 'statement_pipe_id' is set
148
- fail ArgumentError, "Missing the required parameter 'statement_pipe_id' when calling XapiApi.delete_statement_pipe" if statement_pipe_id.nil?
150
+ if @api_client.config.client_side_validation && statement_pipe_id.nil?
151
+ fail ArgumentError, "Missing the required parameter 'statement_pipe_id' when calling XapiApi.delete_statement_pipe"
152
+ end
149
153
  # resource path
150
- local_var_path = "/xapi/statementPipes/{statementPipeId}".sub('{format}','json').sub('{' + 'statementPipeId' + '}', statement_pipe_id.to_s)
154
+ local_var_path = '/xapi/statementPipes/{statementPipeId}'.sub('{' + 'statementPipeId' + '}', statement_pipe_id.to_s)
151
155
 
152
156
  # query parameters
153
157
  query_params = {}
@@ -176,7 +180,6 @@ module RusticiSoftwareCloudV2
176
180
  end
177
181
  return data, status_code, headers
178
182
  end
179
-
180
183
  # Deletes the xAPI credentials specified by the xAPI credentials id
181
184
  # Deletes the xAPI credentials specified by the xAPI credentials id
182
185
  # @param xapi_credential_id id for this xAPI credential
@@ -184,7 +187,7 @@ module RusticiSoftwareCloudV2
184
187
  # @return [nil]
185
188
  def delete_xapi_credential(xapi_credential_id, opts = {})
186
189
  delete_xapi_credential_with_http_info(xapi_credential_id, opts)
187
- return nil
190
+ nil
188
191
  end
189
192
 
190
193
  # Deletes the xAPI credentials specified by the xAPI credentials id
@@ -194,12 +197,14 @@ module RusticiSoftwareCloudV2
194
197
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
195
198
  def delete_xapi_credential_with_http_info(xapi_credential_id, opts = {})
196
199
  if @api_client.config.debugging
197
- @api_client.config.logger.debug "Calling API: XapiApi.delete_xapi_credential ..."
200
+ @api_client.config.logger.debug 'Calling API: XapiApi.delete_xapi_credential ...'
198
201
  end
199
202
  # verify the required parameter 'xapi_credential_id' is set
200
- fail ArgumentError, "Missing the required parameter 'xapi_credential_id' when calling XapiApi.delete_xapi_credential" if xapi_credential_id.nil?
203
+ if @api_client.config.client_side_validation && xapi_credential_id.nil?
204
+ fail ArgumentError, "Missing the required parameter 'xapi_credential_id' when calling XapiApi.delete_xapi_credential"
205
+ end
201
206
  # resource path
202
- local_var_path = "/xapi/credentials/{xapiCredentialId}".sub('{format}','json').sub('{' + 'xapiCredentialId' + '}', xapi_credential_id.to_s)
207
+ local_var_path = '/xapi/credentials/{xapiCredentialId}'.sub('{' + 'xapiCredentialId' + '}', xapi_credential_id.to_s)
203
208
 
204
209
  # query parameters
205
210
  query_params = {}
@@ -228,7 +233,6 @@ module RusticiSoftwareCloudV2
228
233
  end
229
234
  return data, status_code, headers
230
235
  end
231
-
232
236
  # Retrieves xAPI pipe for `xapiPipeId`
233
237
  # Retrieves xAPI pipe for `xapiPipeId`
234
238
  # @param statement_pipe_id id for this xAPI statement pipe
@@ -236,7 +240,7 @@ module RusticiSoftwareCloudV2
236
240
  # @return [XapiStatementPipeSchema]
237
241
  def get_statement_pipe(statement_pipe_id, opts = {})
238
242
  data, _status_code, _headers = get_statement_pipe_with_http_info(statement_pipe_id, opts)
239
- return data
243
+ data
240
244
  end
241
245
 
242
246
  # Retrieves xAPI pipe for &#x60;xapiPipeId&#x60;
@@ -246,12 +250,14 @@ module RusticiSoftwareCloudV2
246
250
  # @return [Array<(XapiStatementPipeSchema, Fixnum, Hash)>] XapiStatementPipeSchema data, response status code and response headers
247
251
  def get_statement_pipe_with_http_info(statement_pipe_id, opts = {})
248
252
  if @api_client.config.debugging
249
- @api_client.config.logger.debug "Calling API: XapiApi.get_statement_pipe ..."
253
+ @api_client.config.logger.debug 'Calling API: XapiApi.get_statement_pipe ...'
250
254
  end
251
255
  # verify the required parameter 'statement_pipe_id' is set
252
- fail ArgumentError, "Missing the required parameter 'statement_pipe_id' when calling XapiApi.get_statement_pipe" if statement_pipe_id.nil?
256
+ if @api_client.config.client_side_validation && statement_pipe_id.nil?
257
+ fail ArgumentError, "Missing the required parameter 'statement_pipe_id' when calling XapiApi.get_statement_pipe"
258
+ end
253
259
  # resource path
254
- local_var_path = "/xapi/statementPipes/{statementPipeId}".sub('{format}','json').sub('{' + 'statementPipeId' + '}', statement_pipe_id.to_s)
260
+ local_var_path = '/xapi/statementPipes/{statementPipeId}'.sub('{' + 'statementPipeId' + '}', statement_pipe_id.to_s)
255
261
 
256
262
  # query parameters
257
263
  query_params = {}
@@ -281,14 +287,13 @@ module RusticiSoftwareCloudV2
281
287
  end
282
288
  return data, status_code, headers
283
289
  end
284
-
285
290
  # Get all of the xapiPipes for `appId`
286
291
  # Get all of the xapiPipes for `appId`
287
292
  # @param [Hash] opts the optional parameters
288
293
  # @return [XapiStatementPipeListSchema]
289
294
  def get_statement_pipes(opts = {})
290
295
  data, _status_code, _headers = get_statement_pipes_with_http_info(opts)
291
- return data
296
+ data
292
297
  end
293
298
 
294
299
  # Get all of the xapiPipes for &#x60;appId&#x60;
@@ -297,10 +302,10 @@ module RusticiSoftwareCloudV2
297
302
  # @return [Array<(XapiStatementPipeListSchema, Fixnum, Hash)>] XapiStatementPipeListSchema data, response status code and response headers
298
303
  def get_statement_pipes_with_http_info(opts = {})
299
304
  if @api_client.config.debugging
300
- @api_client.config.logger.debug "Calling API: XapiApi.get_statement_pipes ..."
305
+ @api_client.config.logger.debug 'Calling API: XapiApi.get_statement_pipes ...'
301
306
  end
302
307
  # resource path
303
- local_var_path = "/xapi/statementPipes".sub('{format}','json')
308
+ local_var_path = '/xapi/statementPipes'
304
309
 
305
310
  # query parameters
306
311
  query_params = {}
@@ -330,7 +335,6 @@ module RusticiSoftwareCloudV2
330
335
  end
331
336
  return data, status_code, headers
332
337
  end
333
-
334
338
  # Retrieves the xAPI credentials specified by the xAPI credentials id.
335
339
  # Retrieves the xAPI credentials specified by the xAPI credentials id.
336
340
  # @param xapi_credential_id id for this xAPI credential
@@ -338,7 +342,7 @@ module RusticiSoftwareCloudV2
338
342
  # @return [XapiCredentialSchema]
339
343
  def get_xapi_credential(xapi_credential_id, opts = {})
340
344
  data, _status_code, _headers = get_xapi_credential_with_http_info(xapi_credential_id, opts)
341
- return data
345
+ data
342
346
  end
343
347
 
344
348
  # Retrieves the xAPI credentials specified by the xAPI credentials id.
@@ -348,12 +352,14 @@ module RusticiSoftwareCloudV2
348
352
  # @return [Array<(XapiCredentialSchema, Fixnum, Hash)>] XapiCredentialSchema data, response status code and response headers
349
353
  def get_xapi_credential_with_http_info(xapi_credential_id, opts = {})
350
354
  if @api_client.config.debugging
351
- @api_client.config.logger.debug "Calling API: XapiApi.get_xapi_credential ..."
355
+ @api_client.config.logger.debug 'Calling API: XapiApi.get_xapi_credential ...'
352
356
  end
353
357
  # verify the required parameter 'xapi_credential_id' is set
354
- fail ArgumentError, "Missing the required parameter 'xapi_credential_id' when calling XapiApi.get_xapi_credential" if xapi_credential_id.nil?
358
+ if @api_client.config.client_side_validation && xapi_credential_id.nil?
359
+ fail ArgumentError, "Missing the required parameter 'xapi_credential_id' when calling XapiApi.get_xapi_credential"
360
+ end
355
361
  # resource path
356
- local_var_path = "/xapi/credentials/{xapiCredentialId}".sub('{format}','json').sub('{' + 'xapiCredentialId' + '}', xapi_credential_id.to_s)
362
+ local_var_path = '/xapi/credentials/{xapiCredentialId}'.sub('{' + 'xapiCredentialId' + '}', xapi_credential_id.to_s)
357
363
 
358
364
  # query parameters
359
365
  query_params = {}
@@ -383,7 +389,6 @@ module RusticiSoftwareCloudV2
383
389
  end
384
390
  return data, status_code, headers
385
391
  end
386
-
387
392
  # Get the list of xapiCredentials
388
393
  # Get the list of xapiCredentials
389
394
  # @param [Hash] opts the optional parameters
@@ -392,7 +397,7 @@ module RusticiSoftwareCloudV2
392
397
  # @return [XapiCredentialsListSchema]
393
398
  def get_xapi_credentials(opts = {})
394
399
  data, _status_code, _headers = get_xapi_credentials_with_http_info(opts)
395
- return data
400
+ data
396
401
  end
397
402
 
398
403
  # Get the list of xapiCredentials
@@ -403,10 +408,10 @@ module RusticiSoftwareCloudV2
403
408
  # @return [Array<(XapiCredentialsListSchema, Fixnum, Hash)>] XapiCredentialsListSchema data, response status code and response headers
404
409
  def get_xapi_credentials_with_http_info(opts = {})
405
410
  if @api_client.config.debugging
406
- @api_client.config.logger.debug "Calling API: XapiApi.get_xapi_credentials ..."
411
+ @api_client.config.logger.debug 'Calling API: XapiApi.get_xapi_credentials ...'
407
412
  end
408
413
  # resource path
409
- local_var_path = "/xapi/credentials".sub('{format}','json')
414
+ local_var_path = '/xapi/credentials'
410
415
 
411
416
  # query parameters
412
417
  query_params = {}
@@ -438,7 +443,6 @@ module RusticiSoftwareCloudV2
438
443
  end
439
444
  return data, status_code, headers
440
445
  end
441
-
442
446
  # Edit an existing xAPI pipe or create a new one.
443
447
  # Editing a pipe will cause it to start over and forward any statements it finds, even if the prior version of the pipe had already forwarded those statements. If the pipe being edited is currently being processed, the this request will fail with a status code of 409.
444
448
  # @param statement_pipe_id id for this xAPI statement pipe
@@ -447,7 +451,7 @@ module RusticiSoftwareCloudV2
447
451
  # @return [StringResultSchema]
448
452
  def set_statement_pipe(statement_pipe_id, xapi_statement_pipe, opts = {})
449
453
  data, _status_code, _headers = set_statement_pipe_with_http_info(statement_pipe_id, xapi_statement_pipe, opts)
450
- return data
454
+ data
451
455
  end
452
456
 
453
457
  # Edit an existing xAPI pipe or create a new one.
@@ -458,14 +462,18 @@ module RusticiSoftwareCloudV2
458
462
  # @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
459
463
  def set_statement_pipe_with_http_info(statement_pipe_id, xapi_statement_pipe, opts = {})
460
464
  if @api_client.config.debugging
461
- @api_client.config.logger.debug "Calling API: XapiApi.set_statement_pipe ..."
465
+ @api_client.config.logger.debug 'Calling API: XapiApi.set_statement_pipe ...'
462
466
  end
463
467
  # verify the required parameter 'statement_pipe_id' is set
464
- fail ArgumentError, "Missing the required parameter 'statement_pipe_id' when calling XapiApi.set_statement_pipe" if statement_pipe_id.nil?
468
+ if @api_client.config.client_side_validation && statement_pipe_id.nil?
469
+ fail ArgumentError, "Missing the required parameter 'statement_pipe_id' when calling XapiApi.set_statement_pipe"
470
+ end
465
471
  # verify the required parameter 'xapi_statement_pipe' is set
466
- fail ArgumentError, "Missing the required parameter 'xapi_statement_pipe' when calling XapiApi.set_statement_pipe" if xapi_statement_pipe.nil?
472
+ if @api_client.config.client_side_validation && xapi_statement_pipe.nil?
473
+ fail ArgumentError, "Missing the required parameter 'xapi_statement_pipe' when calling XapiApi.set_statement_pipe"
474
+ end
467
475
  # resource path
468
- local_var_path = "/xapi/statementPipes/{statementPipeId}".sub('{format}','json').sub('{' + 'statementPipeId' + '}', statement_pipe_id.to_s)
476
+ local_var_path = '/xapi/statementPipes/{statementPipeId}'.sub('{' + 'statementPipeId' + '}', statement_pipe_id.to_s)
469
477
 
470
478
  # query parameters
471
479
  query_params = {}
@@ -495,7 +503,6 @@ module RusticiSoftwareCloudV2
495
503
  end
496
504
  return data, status_code, headers
497
505
  end
498
-
499
506
  # Edit an existing xAPI credential or create a new one, specified by the xAPI credentials id
500
507
  # Edit an existing xAPI credential or create a new one, specified by the xAPI credentials id
501
508
  # @param xapi_credential_id id for this xAPI credential
@@ -504,7 +511,7 @@ module RusticiSoftwareCloudV2
504
511
  # @return [nil]
505
512
  def set_xapi_credential(xapi_credential_id, xapi_credential, opts = {})
506
513
  set_xapi_credential_with_http_info(xapi_credential_id, xapi_credential, opts)
507
- return nil
514
+ nil
508
515
  end
509
516
 
510
517
  # Edit an existing xAPI credential or create a new one, specified by the xAPI credentials id
@@ -515,14 +522,18 @@ module RusticiSoftwareCloudV2
515
522
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
516
523
  def set_xapi_credential_with_http_info(xapi_credential_id, xapi_credential, opts = {})
517
524
  if @api_client.config.debugging
518
- @api_client.config.logger.debug "Calling API: XapiApi.set_xapi_credential ..."
525
+ @api_client.config.logger.debug 'Calling API: XapiApi.set_xapi_credential ...'
519
526
  end
520
527
  # verify the required parameter 'xapi_credential_id' is set
521
- fail ArgumentError, "Missing the required parameter 'xapi_credential_id' when calling XapiApi.set_xapi_credential" if xapi_credential_id.nil?
528
+ if @api_client.config.client_side_validation && xapi_credential_id.nil?
529
+ fail ArgumentError, "Missing the required parameter 'xapi_credential_id' when calling XapiApi.set_xapi_credential"
530
+ end
522
531
  # verify the required parameter 'xapi_credential' is set
523
- fail ArgumentError, "Missing the required parameter 'xapi_credential' when calling XapiApi.set_xapi_credential" if xapi_credential.nil?
532
+ if @api_client.config.client_side_validation && xapi_credential.nil?
533
+ fail ArgumentError, "Missing the required parameter 'xapi_credential' when calling XapiApi.set_xapi_credential"
534
+ end
524
535
  # resource path
525
- local_var_path = "/xapi/credentials/{xapiCredentialId}".sub('{format}','json').sub('{' + 'xapiCredentialId' + '}', xapi_credential_id.to_s)
536
+ local_var_path = '/xapi/credentials/{xapiCredentialId}'.sub('{' + 'xapiCredentialId' + '}', xapi_credential_id.to_s)
526
537
 
527
538
  # query parameters
528
539
  query_params = {}