rustici_software_cloud_v2 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/rustici_software_cloud_v2.rb +1 -0
- data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
- data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
- data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
- data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/version.rb +2 -1
- data/rustici_software_cloud_v2.gemspec +8 -7
- data/spec/api_client_spec.rb +35 -34
- data/spec/configuration_spec.rb +9 -8
- data/spec/spec_helper.rb +1 -0
- metadata +16 -16
@@ -6,10 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
12
|
-
require
|
13
|
+
require 'uri'
|
13
14
|
|
14
15
|
module RusticiSoftwareCloudV2
|
15
16
|
class 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
|
-
|
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
|
37
|
+
@api_client.config.logger.debug 'Calling API: ReportingApi.get_account_info ...'
|
38
38
|
end
|
39
39
|
# resource path
|
40
|
-
local_var_path =
|
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
|
-
|
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
|
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
|
-
|
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
|
-
|
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 =
|
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 `GET reportageAuth`
|
@@ -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
|
-
|
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
|
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
|
-
|
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
|
-
|
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 =
|
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
|
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
|
-
|
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
|
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
|
-
|
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 =
|
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
|
-
|
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
|
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
|
-
|
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 =
|
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
|
-
|
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
|
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
|
-
|
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 =
|
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
|
-
|
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
|
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
|
-
|
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 =
|
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
|
-
|
243
|
+
data
|
240
244
|
end
|
241
245
|
|
242
246
|
# Retrieves xAPI pipe for `xapiPipeId`
|
@@ -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
|
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
|
-
|
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 =
|
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
|
-
|
296
|
+
data
|
292
297
|
end
|
293
298
|
|
294
299
|
# Get all of the xapiPipes for `appId`
|
@@ -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
|
305
|
+
@api_client.config.logger.debug 'Calling API: XapiApi.get_statement_pipes ...'
|
301
306
|
end
|
302
307
|
# resource path
|
303
|
-
local_var_path =
|
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
|
-
|
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
|
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
|
-
|
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 =
|
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
|
-
|
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
|
411
|
+
@api_client.config.logger.debug 'Calling API: XapiApi.get_xapi_credentials ...'
|
407
412
|
end
|
408
413
|
# resource path
|
409
|
-
local_var_path =
|
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
|
-
|
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
|
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
|
-
|
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
|
-
|
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 =
|
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
|
-
|
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
|
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
|
-
|
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
|
-
|
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 =
|
536
|
+
local_var_path = '/xapi/credentials/{xapiCredentialId}'.sub('{' + 'xapiCredentialId' + '}', xapi_credential_id.to_s)
|
526
537
|
|
527
538
|
# query parameters
|
528
539
|
query_params = {}
|