rustici_software_cloud_v2 2.0.0 → 2.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 -5
- data/lib/rustici_software_cloud_v2/api/about_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +236 -0
- data/lib/rustici_software_cloud_v2/api/course_api.rb +117 -3
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +178 -3
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api_client.rb +1 -1
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -1
- data/lib/rustici_software_cloud_v2/configuration.rb +8 -1
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_token.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +188 -0
- data/lib/rustici_software_cloud_v2/models/connector_schema.rb +226 -0
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +2 -2
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +2 -2
- data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +218 -0
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +32 -5
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +15 -6
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +261 -0
- data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +236 -0
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +11 -2
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/response_error.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/version.rb +2 -2
- data/lib/rustici_software_cloud_v2.rb +10 -1
- data/rustici_software_cloud_v2.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +12 -3
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1422,7 +1422,181 @@ module RusticiSoftwareCloudV2
|
|
1422
1422
|
end
|
1423
1423
|
return data, status_code, headers
|
1424
1424
|
end
|
1425
|
+
# Get the information necessary to import this dispatch as a resource link according to the IMS LTI 1.3 specification.
|
1426
|
+
# Get the information necessary to import this dispatch as a resource link according to the IMS LTI 1.3 specification. The information from this call will be provided to the platform during the configuration step.
|
1427
|
+
# @param dispatch_id Identifier for the dispatch
|
1428
|
+
# @param [Hash] opts the optional parameters
|
1429
|
+
# @return [DispatchLti13InfoSchema]
|
1430
|
+
def get_lti13_dispatch(dispatch_id, opts = {})
|
1431
|
+
data, _status_code, _headers = get_lti13_dispatch_with_http_info(dispatch_id, opts)
|
1432
|
+
data
|
1433
|
+
end
|
1434
|
+
|
1435
|
+
# Get the information necessary to import this dispatch as a resource link according to the IMS LTI 1.3 specification.
|
1436
|
+
# Get the information necessary to import this dispatch as a resource link according to the IMS LTI 1.3 specification. The information from this call will be provided to the platform during the configuration step.
|
1437
|
+
# @param dispatch_id Identifier for the dispatch
|
1438
|
+
# @param [Hash] opts the optional parameters
|
1439
|
+
# @return [Array<(DispatchLti13InfoSchema, Fixnum, Hash)>] DispatchLti13InfoSchema data, response status code and response headers
|
1440
|
+
def get_lti13_dispatch_with_http_info(dispatch_id, opts = {})
|
1441
|
+
if @api_client.config.debugging
|
1442
|
+
@api_client.config.logger.debug 'Calling API: DispatchApi.get_lti13_dispatch ...'
|
1443
|
+
end
|
1444
|
+
# verify the required parameter 'dispatch_id' is set
|
1445
|
+
if dispatch_id.nil?
|
1446
|
+
fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_lti13_dispatch"
|
1447
|
+
end
|
1448
|
+
# resource path
|
1449
|
+
local_var_path = '/dispatch/dispatches/{dispatchId}/lti13'.sub('{' + 'dispatchId' + '}', dispatch_id.to_s)
|
1450
|
+
|
1451
|
+
# query parameters
|
1452
|
+
query_params = {}
|
1453
|
+
|
1454
|
+
# header parameters
|
1455
|
+
header_params = {}
|
1456
|
+
# HTTP header 'Accept' (if needed)
|
1457
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1458
|
+
# HTTP header 'Content-Type'
|
1459
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1460
|
+
|
1461
|
+
# form parameters
|
1462
|
+
form_params = {}
|
1463
|
+
|
1464
|
+
# http body (model)
|
1465
|
+
post_body = nil
|
1466
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
1467
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1468
|
+
:header_params => header_params,
|
1469
|
+
:query_params => query_params,
|
1470
|
+
:form_params => form_params,
|
1471
|
+
:body => post_body,
|
1472
|
+
:auth_names => auth_names,
|
1473
|
+
:return_type => 'DispatchLti13InfoSchema')
|
1474
|
+
if @api_client.config.debugging
|
1475
|
+
@api_client.config.logger.debug "API called: DispatchApi#get_lti13_dispatch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1476
|
+
end
|
1477
|
+
return data, status_code, headers
|
1478
|
+
end
|
1479
|
+
# Launch this dispatch using the IMS LTI 1.3 specification.
|
1480
|
+
# Launch this dispatch using the IMS LTI 1.3 specification. This is the final step in the LTI 1.3 launch process, and is the request that redirects to the resource link (i.e. course).
|
1481
|
+
# @param dispatch_id Identifier for the dispatch
|
1482
|
+
# @param external_config External configuration object
|
1483
|
+
# @param jwt
|
1484
|
+
# @param [Hash] opts the optional parameters
|
1485
|
+
# @return [nil]
|
1486
|
+
def get_lti13_dispatch_launch(dispatch_id, external_config, jwt, opts = {})
|
1487
|
+
get_lti13_dispatch_launch_with_http_info(dispatch_id, external_config, jwt, opts)
|
1488
|
+
nil
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
# Launch this dispatch using the IMS LTI 1.3 specification.
|
1492
|
+
# Launch this dispatch using the IMS LTI 1.3 specification. This is the final step in the LTI 1.3 launch process, and is the request that redirects to the resource link (i.e. course).
|
1493
|
+
# @param dispatch_id Identifier for the dispatch
|
1494
|
+
# @param external_config External configuration object
|
1495
|
+
# @param jwt
|
1496
|
+
# @param [Hash] opts the optional parameters
|
1497
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1498
|
+
def get_lti13_dispatch_launch_with_http_info(dispatch_id, external_config, jwt, opts = {})
|
1499
|
+
if @api_client.config.debugging
|
1500
|
+
@api_client.config.logger.debug 'Calling API: DispatchApi.get_lti13_dispatch_launch ...'
|
1501
|
+
end
|
1502
|
+
# verify the required parameter 'dispatch_id' is set
|
1503
|
+
if dispatch_id.nil?
|
1504
|
+
fail ArgumentError, "Missing the required parameter 'dispatch_id' when calling DispatchApi.get_lti13_dispatch_launch"
|
1505
|
+
end
|
1506
|
+
# verify the required parameter 'external_config' is set
|
1507
|
+
if external_config.nil?
|
1508
|
+
fail ArgumentError, "Missing the required parameter 'external_config' when calling DispatchApi.get_lti13_dispatch_launch"
|
1509
|
+
end
|
1510
|
+
# verify the required parameter 'jwt' is set
|
1511
|
+
if jwt.nil?
|
1512
|
+
fail ArgumentError, "Missing the required parameter 'jwt' when calling DispatchApi.get_lti13_dispatch_launch"
|
1513
|
+
end
|
1514
|
+
# resource path
|
1515
|
+
local_var_path = '/dispatch/dispatches/{dispatchId}/launches'.sub('{' + 'dispatchId' + '}', dispatch_id.to_s)
|
1516
|
+
|
1517
|
+
# query parameters
|
1518
|
+
query_params = {}
|
1519
|
+
query_params[:'externalConfig'] = external_config
|
1520
|
+
query_params[:'jwt'] = jwt
|
1521
|
+
|
1522
|
+
# header parameters
|
1523
|
+
header_params = {}
|
1524
|
+
# HTTP header 'Accept' (if needed)
|
1525
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1526
|
+
# HTTP header 'Content-Type'
|
1527
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1528
|
+
|
1529
|
+
# form parameters
|
1530
|
+
form_params = {}
|
1531
|
+
|
1532
|
+
# http body (model)
|
1533
|
+
post_body = nil
|
1534
|
+
auth_names = ['UNSECURED']
|
1535
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1536
|
+
:header_params => header_params,
|
1537
|
+
:query_params => query_params,
|
1538
|
+
:form_params => form_params,
|
1539
|
+
:body => post_body,
|
1540
|
+
:auth_names => auth_names)
|
1541
|
+
if @api_client.config.debugging
|
1542
|
+
@api_client.config.logger.debug "API called: DispatchApi#get_lti13_dispatch_launch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1543
|
+
end
|
1544
|
+
return data, status_code, headers
|
1545
|
+
end
|
1546
|
+
# Get the information needed to configure a LTI 1.3 platform with the destination id `destinationId`
|
1547
|
+
# @param destination_id Identifier for the destination
|
1548
|
+
# @param [Hash] opts the optional parameters
|
1549
|
+
# @return [Lti13ToolConfigurationSchema]
|
1550
|
+
def get_lti13_tool_configuration_schema(destination_id, opts = {})
|
1551
|
+
data, _status_code, _headers = get_lti13_tool_configuration_schema_with_http_info(destination_id, opts)
|
1552
|
+
data
|
1553
|
+
end
|
1554
|
+
|
1555
|
+
# Get the information needed to configure a LTI 1.3 platform with the destination id `destinationId`
|
1556
|
+
# @param destination_id Identifier for the destination
|
1557
|
+
# @param [Hash] opts the optional parameters
|
1558
|
+
# @return [Array<(Lti13ToolConfigurationSchema, Fixnum, Hash)>] Lti13ToolConfigurationSchema data, response status code and response headers
|
1559
|
+
def get_lti13_tool_configuration_schema_with_http_info(destination_id, opts = {})
|
1560
|
+
if @api_client.config.debugging
|
1561
|
+
@api_client.config.logger.debug 'Calling API: DispatchApi.get_lti13_tool_configuration_schema ...'
|
1562
|
+
end
|
1563
|
+
# verify the required parameter 'destination_id' is set
|
1564
|
+
if destination_id.nil?
|
1565
|
+
fail ArgumentError, "Missing the required parameter 'destination_id' when calling DispatchApi.get_lti13_tool_configuration_schema"
|
1566
|
+
end
|
1567
|
+
# resource path
|
1568
|
+
local_var_path = '/dispatch/destinations/{destinationId}/lti13'.sub('{' + 'destinationId' + '}', destination_id.to_s)
|
1569
|
+
|
1570
|
+
# query parameters
|
1571
|
+
query_params = {}
|
1572
|
+
|
1573
|
+
# header parameters
|
1574
|
+
header_params = {}
|
1575
|
+
# HTTP header 'Accept' (if needed)
|
1576
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1577
|
+
# HTTP header 'Content-Type'
|
1578
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1579
|
+
|
1580
|
+
# form parameters
|
1581
|
+
form_params = {}
|
1582
|
+
|
1583
|
+
# http body (model)
|
1584
|
+
post_body = nil
|
1585
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
1586
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1587
|
+
:header_params => header_params,
|
1588
|
+
:query_params => query_params,
|
1589
|
+
:form_params => form_params,
|
1590
|
+
:body => post_body,
|
1591
|
+
:auth_names => auth_names,
|
1592
|
+
:return_type => 'Lti13ToolConfigurationSchema')
|
1593
|
+
if @api_client.config.debugging
|
1594
|
+
@api_client.config.logger.debug "API called: DispatchApi#get_lti13_tool_configuration_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1595
|
+
end
|
1596
|
+
return data, status_code, headers
|
1597
|
+
end
|
1425
1598
|
# Get the information necessary to launch this dispatch using the IMS LTI 1.1 specification.
|
1599
|
+
# Retrieve the information needed to launch this dispatch using the IMS LTI 1.1 specification. This information is then provided to the platform so it can launch this dispatch.
|
1426
1600
|
# @param dispatch_id Identifier for the dispatch
|
1427
1601
|
# @param [Hash] opts the optional parameters
|
1428
1602
|
# @return [DispatchLtiInfoSchema]
|
@@ -1432,6 +1606,7 @@ module RusticiSoftwareCloudV2
|
|
1432
1606
|
end
|
1433
1607
|
|
1434
1608
|
# Get the information necessary to launch this dispatch using the IMS LTI 1.1 specification.
|
1609
|
+
# Retrieve the information needed to launch this dispatch using the IMS LTI 1.1 specification. This information is then provided to the platform so it can launch this dispatch.
|
1435
1610
|
# @param dispatch_id Identifier for the dispatch
|
1436
1611
|
# @param [Hash] opts the optional parameters
|
1437
1612
|
# @return [Array<(DispatchLtiInfoSchema, Fixnum, Hash)>] DispatchLtiInfoSchema data, response status code and response headers
|
@@ -1805,7 +1980,7 @@ module RusticiSoftwareCloudV2
|
|
1805
1980
|
return data, status_code, headers
|
1806
1981
|
end
|
1807
1982
|
# Create or update a Destination
|
1808
|
-
# Creates or updates information about the destination. -If the destination is being created, a name should be provided in the DestinationSchema. If one is not present in the request an error will be thrown. -If the destination is instead being updated, only non-null values that are provided will be updated. You may also optionally supply the e-mail address of the user to be associated with this destination. This e-mail address should correspond to a SCORM Cloud user account.
|
1983
|
+
# Creates or updates information about the destination. -If the destination is being created, a name should be provided in the DestinationSchema. If one is not present in the request an error will be thrown. -If the destination is instead being updated, only non-null values that are provided will be updated. You may also optionally supply the e-mail address of the user to be associated with this destination. This e-mail address should correspond to a SCORM Cloud user account. >**Note:** >While the \"updated\" and \"created\" values are present in the destination schema, any attempts to manually change those values with SetDestination will be ignored.
|
1809
1984
|
# @param destination_id Identifier for the destination
|
1810
1985
|
# @param destination
|
1811
1986
|
# @param [Hash] opts the optional parameters
|
@@ -1816,7 +1991,7 @@ module RusticiSoftwareCloudV2
|
|
1816
1991
|
end
|
1817
1992
|
|
1818
1993
|
# Create or update a Destination
|
1819
|
-
# Creates or updates information about the destination. -If the destination is being created, a name should be provided in the DestinationSchema. If one is not present in the request an error will be thrown. -If the destination is instead being updated, only non-null values that are provided will be updated. You may also optionally supply the e-mail address of the user to be associated with this destination. This e-mail address should correspond to a SCORM Cloud user account.
|
1994
|
+
# Creates or updates information about the destination. -If the destination is being created, a name should be provided in the DestinationSchema. If one is not present in the request an error will be thrown. -If the destination is instead being updated, only non-null values that are provided will be updated. You may also optionally supply the e-mail address of the user to be associated with this destination. This e-mail address should correspond to a SCORM Cloud user account. >**Note:** >While the \"updated\" and \"created\" values are present in the destination schema, any attempts to manually change those values with SetDestination will be ignored.
|
1820
1995
|
# @param destination_id Identifier for the destination
|
1821
1996
|
# @param destination
|
1822
1997
|
# @param [Hash] opts the optional parameters
|
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -222,6 +222,13 @@ module RusticiSoftwareCloudV2
|
|
222
222
|
key: 'Authorization',
|
223
223
|
value: oauth2_token
|
224
224
|
},
|
225
|
+
'UNSECURED' =>
|
226
|
+
{
|
227
|
+
type: 'basic',
|
228
|
+
in: 'header',
|
229
|
+
key: 'Authorization',
|
230
|
+
value: basic_auth_token
|
231
|
+
},
|
225
232
|
}
|
226
233
|
end
|
227
234
|
end
|
@@ -0,0 +1,188 @@
|
|
1
|
+
=begin
|
2
|
+
#SCORM Cloud Rest API
|
3
|
+
|
4
|
+
#REST API used for SCORM Cloud integrations.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module RusticiSoftwareCloudV2
|
16
|
+
# List of content connectors.
|
17
|
+
class ConnectorListSchema
|
18
|
+
attr_accessor :connector_entries
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'connector_entries' => :'connectorEntries'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'connector_entries' => :'Array<ConnectorSchema>'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Initializes the object
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
41
|
+
|
42
|
+
if attributes.has_key?(:'connectorEntries')
|
43
|
+
if (value = attributes[:'connectorEntries']).is_a?(Array)
|
44
|
+
self.connector_entries = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
+
# @return Array for valid properties with the reasons
|
51
|
+
def list_invalid_properties
|
52
|
+
invalid_properties = Array.new
|
53
|
+
invalid_properties
|
54
|
+
end
|
55
|
+
|
56
|
+
# Check to see if the all the properties in the model are valid
|
57
|
+
# @return true if the model is valid
|
58
|
+
def valid?
|
59
|
+
true
|
60
|
+
end
|
61
|
+
|
62
|
+
|
63
|
+
# Checks equality by comparing each attribute.
|
64
|
+
# @param [Object] Object to be compared
|
65
|
+
def ==(o)
|
66
|
+
return true if self.equal?(o)
|
67
|
+
self.class == o.class &&
|
68
|
+
connector_entries == o.connector_entries
|
69
|
+
end
|
70
|
+
|
71
|
+
# @see the `==` method
|
72
|
+
# @param [Object] Object to be compared
|
73
|
+
def eql?(o)
|
74
|
+
self == o
|
75
|
+
end
|
76
|
+
|
77
|
+
# Calculates hash code according to all attributes.
|
78
|
+
# @return [Fixnum] Hash code
|
79
|
+
def hash
|
80
|
+
[connector_entries].hash
|
81
|
+
end
|
82
|
+
|
83
|
+
# Builds the object from hash
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
85
|
+
# @return [Object] Returns the model itself
|
86
|
+
def build_from_hash(attributes)
|
87
|
+
return nil unless attributes.is_a?(Hash)
|
88
|
+
self.class.swagger_types.each_pair do |key, type|
|
89
|
+
if type =~ /\AArray<(.*)>/i
|
90
|
+
# check to ensure the input is an array given that the attribute
|
91
|
+
# is documented as an array but the input is not
|
92
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
94
|
+
end
|
95
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
96
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
97
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
98
|
+
end
|
99
|
+
|
100
|
+
self
|
101
|
+
end
|
102
|
+
|
103
|
+
# Deserializes the data based on type
|
104
|
+
# @param string type Data type
|
105
|
+
# @param string value Value to be deserialized
|
106
|
+
# @return [Object] Deserialized data
|
107
|
+
def _deserialize(type, value)
|
108
|
+
case type.to_sym
|
109
|
+
when :DateTime
|
110
|
+
DateTime.parse(value)
|
111
|
+
when :Date
|
112
|
+
Date.parse(value)
|
113
|
+
when :String
|
114
|
+
value.to_s
|
115
|
+
when :Integer
|
116
|
+
value.to_i
|
117
|
+
when :Float
|
118
|
+
value.to_f
|
119
|
+
when :BOOLEAN
|
120
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
121
|
+
true
|
122
|
+
else
|
123
|
+
false
|
124
|
+
end
|
125
|
+
when :Object
|
126
|
+
# generic object (usually a Hash), return directly
|
127
|
+
value
|
128
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
129
|
+
inner_type = Regexp.last_match[:inner_type]
|
130
|
+
value.map { |v| _deserialize(inner_type, v) }
|
131
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
132
|
+
k_type = Regexp.last_match[:k_type]
|
133
|
+
v_type = Regexp.last_match[:v_type]
|
134
|
+
{}.tap do |hash|
|
135
|
+
value.each do |k, v|
|
136
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
else # model
|
140
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
141
|
+
temp_model.build_from_hash(value)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# Returns the string representation of the object
|
146
|
+
# @return [String] String presentation of the object
|
147
|
+
def to_s
|
148
|
+
to_hash.to_s
|
149
|
+
end
|
150
|
+
|
151
|
+
# to_body is an alias to to_hash (backward compatibility)
|
152
|
+
# @return [Hash] Returns the object in the form of hash
|
153
|
+
def to_body
|
154
|
+
to_hash
|
155
|
+
end
|
156
|
+
|
157
|
+
# Returns the object in the form of hash
|
158
|
+
# @return [Hash] Returns the object in the form of hash
|
159
|
+
def to_hash
|
160
|
+
hash = {}
|
161
|
+
self.class.attribute_map.each_pair do |attr, param|
|
162
|
+
value = self.send(attr)
|
163
|
+
next if value.nil?
|
164
|
+
hash[param] = _to_hash(value)
|
165
|
+
end
|
166
|
+
hash
|
167
|
+
end
|
168
|
+
|
169
|
+
# Outputs non-array value in the form of hash
|
170
|
+
# For object, use to_hash. Otherwise, just return the value
|
171
|
+
# @param [Object] value Any valid value
|
172
|
+
# @return [Hash] Returns the value in the form of hash
|
173
|
+
def _to_hash(value)
|
174
|
+
if value.is_a?(Array)
|
175
|
+
value.compact.map { |v| _to_hash(v) }
|
176
|
+
elsif value.is_a?(Hash)
|
177
|
+
{}.tap do |hash|
|
178
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
179
|
+
end
|
180
|
+
elsif value.respond_to? :to_hash
|
181
|
+
value.to_hash
|
182
|
+
else
|
183
|
+
value
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
end
|
188
|
+
end
|