rustici_software_cloud_v2 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/lib/rustici_software_cloud_v2/api/about_api.rb +1 -1
  4. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +1 -1
  5. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +1 -1
  6. data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +236 -0
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +117 -3
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +178 -3
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +1 -1
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +1 -1
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +1 -1
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +1 -1
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +1 -1
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +1 -1
  15. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +1 -1
  16. data/lib/rustici_software_cloud_v2/api_client.rb +1 -1
  17. data/lib/rustici_software_cloud_v2/api_error.rb +1 -1
  18. data/lib/rustici_software_cloud_v2/configuration.rb +8 -1
  19. data/lib/rustici_software_cloud_v2/models/about_schema.rb +1 -1
  20. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +1 -1
  21. data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +1 -1
  22. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +1 -1
  23. data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +1 -1
  24. data/lib/rustici_software_cloud_v2/models/application_schema.rb +1 -1
  25. data/lib/rustici_software_cloud_v2/models/application_token.rb +1 -1
  26. data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +1 -1
  27. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +1 -1
  28. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +1 -1
  29. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +1 -1
  30. data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +188 -0
  31. data/lib/rustici_software_cloud_v2/models/connector_schema.rb +226 -0
  32. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +2 -2
  33. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +1 -1
  34. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +1 -1
  35. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +1 -1
  36. data/lib/rustici_software_cloud_v2/models/course_schema.rb +2 -2
  37. data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +218 -0
  38. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +1 -1
  39. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +1 -1
  40. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +1 -1
  41. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +1 -1
  42. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +1 -1
  43. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +1 -1
  44. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +1 -1
  45. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +1 -1
  46. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +1 -1
  47. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +1 -1
  48. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +1 -1
  49. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +1 -1
  50. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +32 -5
  51. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +1 -1
  52. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +1 -1
  53. data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +186 -0
  54. data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +1 -1
  55. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +1 -1
  56. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +1 -1
  57. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +1 -1
  58. data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +1 -1
  59. data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +1 -1
  60. data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +1 -1
  61. data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +207 -0
  62. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +1 -1
  63. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +1 -1
  64. data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +1 -1
  65. data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +15 -6
  66. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +1 -1
  67. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +1 -1
  68. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +1 -1
  69. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +1 -1
  70. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +1 -1
  71. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +1 -1
  72. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +1 -1
  73. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +1 -1
  74. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +1 -1
  75. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +1 -1
  76. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +1 -1
  77. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +1 -1
  78. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +1 -1
  79. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +1 -1
  80. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +1 -1
  81. data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +261 -0
  82. data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +236 -0
  83. data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +1 -1
  84. data/lib/rustici_software_cloud_v2/models/message_schema.rb +1 -1
  85. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +1 -1
  86. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +1 -1
  87. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +1 -1
  88. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +1 -1
  89. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +1 -1
  90. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +1 -1
  91. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +1 -1
  92. data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +1 -1
  93. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +1 -1
  94. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +11 -2
  95. data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +1 -1
  96. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +1 -1
  97. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +1 -1
  98. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +1 -1
  99. data/lib/rustici_software_cloud_v2/models/registration_success.rb +1 -1
  100. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +1 -1
  101. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +1 -1
  102. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +1 -1
  103. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +1 -1
  104. data/lib/rustici_software_cloud_v2/models/response_error.rb +1 -1
  105. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +1 -1
  106. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +1 -1
  107. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +1 -1
  108. data/lib/rustici_software_cloud_v2/models/score_schema.rb +1 -1
  109. data/lib/rustici_software_cloud_v2/models/setting_item.rb +1 -1
  110. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +1 -1
  111. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +1 -1
  112. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +1 -1
  113. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +1 -1
  114. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +1 -1
  115. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +1 -1
  116. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +1 -1
  117. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +1 -1
  118. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +1 -1
  119. data/lib/rustici_software_cloud_v2/models/title_schema.rb +1 -1
  120. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +1 -1
  121. data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +1 -1
  122. data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +196 -0
  123. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +1 -1
  124. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +1 -1
  125. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +1 -1
  126. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +1 -1
  127. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +1 -1
  128. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +1 -1
  129. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +1 -1
  130. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +1 -1
  131. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +1 -1
  132. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +1 -1
  133. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +1 -1
  134. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +1 -1
  135. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +1 -1
  136. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +1 -1
  137. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +1 -1
  138. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +1 -1
  139. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +1 -1
  140. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +1 -1
  141. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +1 -1
  142. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +1 -1
  143. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +1 -1
  144. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +1 -1
  145. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +1 -1
  146. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +1 -1
  147. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +1 -1
  148. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +1 -1
  149. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +1 -1
  150. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +1 -1
  151. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +1 -1
  152. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +1 -1
  153. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +1 -1
  154. data/lib/rustici_software_cloud_v2/version.rb +2 -2
  155. data/lib/rustici_software_cloud_v2.rb +10 -1
  156. data/rustici_software_cloud_v2.gemspec +1 -1
  157. data/spec/api_client_spec.rb +1 -1
  158. data/spec/configuration_spec.rb +1 -1
  159. data/spec/spec_helper.rb +1 -1
  160. 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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,261 @@
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
+ class Lti13PlatformConfigurationSchema
17
+ # OAuth2 client Id for this tool
18
+ attr_accessor :client_id
19
+
20
+ # Issuer identifier identifying the learning platform
21
+ attr_accessor :platform_issuer_identifier
22
+
23
+ # An unchanging identifier (locally unique within the platformIssuerIdentifier) for the platform-tool integration
24
+ attr_accessor :deployment_id
25
+
26
+ # Endpoint that will initiate the OIDC Authentication Request
27
+ attr_accessor :oidc_authorization_endpoint
28
+
29
+ # Path to the platform's JSON Web Key Set
30
+ attr_accessor :json_web_key_set_url
31
+
32
+ # Endpoint that will return OAuth 2 access tokens for the platform
33
+ attr_accessor :access_token_url
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'client_id' => :'clientId',
39
+ :'platform_issuer_identifier' => :'platformIssuerIdentifier',
40
+ :'deployment_id' => :'deploymentId',
41
+ :'oidc_authorization_endpoint' => :'oidcAuthorizationEndpoint',
42
+ :'json_web_key_set_url' => :'jsonWebKeySetUrl',
43
+ :'access_token_url' => :'accessTokenUrl'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'client_id' => :'String',
51
+ :'platform_issuer_identifier' => :'String',
52
+ :'deployment_id' => :'String',
53
+ :'oidc_authorization_endpoint' => :'String',
54
+ :'json_web_key_set_url' => :'String',
55
+ :'access_token_url' => :'String'
56
+ }
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ return unless attributes.is_a?(Hash)
63
+
64
+ # convert string to symbol for hash key
65
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
66
+
67
+ if attributes.has_key?(:'clientId')
68
+ self.client_id = attributes[:'clientId']
69
+ end
70
+
71
+ if attributes.has_key?(:'platformIssuerIdentifier')
72
+ self.platform_issuer_identifier = attributes[:'platformIssuerIdentifier']
73
+ end
74
+
75
+ if attributes.has_key?(:'deploymentId')
76
+ self.deployment_id = attributes[:'deploymentId']
77
+ end
78
+
79
+ if attributes.has_key?(:'oidcAuthorizationEndpoint')
80
+ self.oidc_authorization_endpoint = attributes[:'oidcAuthorizationEndpoint']
81
+ end
82
+
83
+ if attributes.has_key?(:'jsonWebKeySetUrl')
84
+ self.json_web_key_set_url = attributes[:'jsonWebKeySetUrl']
85
+ end
86
+
87
+ if attributes.has_key?(:'accessTokenUrl')
88
+ self.access_token_url = attributes[:'accessTokenUrl']
89
+ end
90
+ end
91
+
92
+ # Show invalid properties with the reasons. Usually used together with valid?
93
+ # @return Array for valid properties with the reasons
94
+ def list_invalid_properties
95
+ invalid_properties = Array.new
96
+ if @client_id.nil?
97
+ invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
98
+ end
99
+
100
+ if @platform_issuer_identifier.nil?
101
+ invalid_properties.push('invalid value for "platform_issuer_identifier", platform_issuer_identifier cannot be nil.')
102
+ end
103
+
104
+ if @deployment_id.nil?
105
+ invalid_properties.push('invalid value for "deployment_id", deployment_id cannot be nil.')
106
+ end
107
+
108
+ if @oidc_authorization_endpoint.nil?
109
+ invalid_properties.push('invalid value for "oidc_authorization_endpoint", oidc_authorization_endpoint cannot be nil.')
110
+ end
111
+
112
+ if @json_web_key_set_url.nil?
113
+ invalid_properties.push('invalid value for "json_web_key_set_url", json_web_key_set_url cannot be nil.')
114
+ end
115
+
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ return false if @client_id.nil?
123
+ return false if @platform_issuer_identifier.nil?
124
+ return false if @deployment_id.nil?
125
+ return false if @oidc_authorization_endpoint.nil?
126
+ return false if @json_web_key_set_url.nil?
127
+ true
128
+ end
129
+
130
+
131
+ # Checks equality by comparing each attribute.
132
+ # @param [Object] Object to be compared
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ client_id == o.client_id &&
137
+ platform_issuer_identifier == o.platform_issuer_identifier &&
138
+ deployment_id == o.deployment_id &&
139
+ oidc_authorization_endpoint == o.oidc_authorization_endpoint &&
140
+ json_web_key_set_url == o.json_web_key_set_url &&
141
+ access_token_url == o.access_token_url
142
+ end
143
+
144
+ # @see the `==` method
145
+ # @param [Object] Object to be compared
146
+ def eql?(o)
147
+ self == o
148
+ end
149
+
150
+ # Calculates hash code according to all attributes.
151
+ # @return [Fixnum] Hash code
152
+ def hash
153
+ [client_id, platform_issuer_identifier, deployment_id, oidc_authorization_endpoint, json_web_key_set_url, access_token_url].hash
154
+ end
155
+
156
+ # Builds the object from hash
157
+ # @param [Hash] attributes Model attributes in the form of hash
158
+ # @return [Object] Returns the model itself
159
+ def build_from_hash(attributes)
160
+ return nil unless attributes.is_a?(Hash)
161
+ self.class.swagger_types.each_pair do |key, type|
162
+ if type =~ /\AArray<(.*)>/i
163
+ # check to ensure the input is an array given that the attribute
164
+ # is documented as an array but the input is not
165
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
166
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
167
+ end
168
+ elsif !attributes[self.class.attribute_map[key]].nil?
169
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
170
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
171
+ end
172
+
173
+ self
174
+ end
175
+
176
+ # Deserializes the data based on type
177
+ # @param string type Data type
178
+ # @param string value Value to be deserialized
179
+ # @return [Object] Deserialized data
180
+ def _deserialize(type, value)
181
+ case type.to_sym
182
+ when :DateTime
183
+ DateTime.parse(value)
184
+ when :Date
185
+ Date.parse(value)
186
+ when :String
187
+ value.to_s
188
+ when :Integer
189
+ value.to_i
190
+ when :Float
191
+ value.to_f
192
+ when :BOOLEAN
193
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
194
+ true
195
+ else
196
+ false
197
+ end
198
+ when :Object
199
+ # generic object (usually a Hash), return directly
200
+ value
201
+ when /\AArray<(?<inner_type>.+)>\z/
202
+ inner_type = Regexp.last_match[:inner_type]
203
+ value.map { |v| _deserialize(inner_type, v) }
204
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
205
+ k_type = Regexp.last_match[:k_type]
206
+ v_type = Regexp.last_match[:v_type]
207
+ {}.tap do |hash|
208
+ value.each do |k, v|
209
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
210
+ end
211
+ end
212
+ else # model
213
+ temp_model = RusticiSoftwareCloudV2.const_get(type).new
214
+ temp_model.build_from_hash(value)
215
+ end
216
+ end
217
+
218
+ # Returns the string representation of the object
219
+ # @return [String] String presentation of the object
220
+ def to_s
221
+ to_hash.to_s
222
+ end
223
+
224
+ # to_body is an alias to to_hash (backward compatibility)
225
+ # @return [Hash] Returns the object in the form of hash
226
+ def to_body
227
+ to_hash
228
+ end
229
+
230
+ # Returns the object in the form of hash
231
+ # @return [Hash] Returns the object in the form of hash
232
+ def to_hash
233
+ hash = {}
234
+ self.class.attribute_map.each_pair do |attr, param|
235
+ value = self.send(attr)
236
+ next if value.nil?
237
+ hash[param] = _to_hash(value)
238
+ end
239
+ hash
240
+ end
241
+
242
+ # Outputs non-array value in the form of hash
243
+ # For object, use to_hash. Otherwise, just return the value
244
+ # @param [Object] value Any valid value
245
+ # @return [Hash] Returns the value in the form of hash
246
+ def _to_hash(value)
247
+ if value.is_a?(Array)
248
+ value.compact.map { |v| _to_hash(v) }
249
+ elsif value.is_a?(Hash)
250
+ {}.tap do |hash|
251
+ value.each { |k, v| hash[k] = _to_hash(v) }
252
+ end
253
+ elsif value.respond_to? :to_hash
254
+ value.to_hash
255
+ else
256
+ value
257
+ end
258
+ end
259
+
260
+ end
261
+ end
@@ -0,0 +1,236 @@
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
+ class Lti13ToolConfigurationSchema
17
+ # Public key for LTI 1.3 tool
18
+ attr_accessor :public_key
19
+
20
+ # Endpoint where the OIDC Authorization flow will be initiated
21
+ attr_accessor :oidc_login_initiations_url
22
+
23
+ # Endpoint where the OIDC Authorization Response should be sent
24
+ attr_accessor :redirect_uri
25
+
26
+ # Path to the tool's JSON Web Key Set
27
+ attr_accessor :json_web_key_set_url
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'public_key' => :'publicKey',
33
+ :'oidc_login_initiations_url' => :'oidcLoginInitiationsUrl',
34
+ :'redirect_uri' => :'redirectUri',
35
+ :'json_web_key_set_url' => :'jsonWebKeySetUrl'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'public_key' => :'String',
43
+ :'oidc_login_initiations_url' => :'String',
44
+ :'redirect_uri' => :'String',
45
+ :'json_web_key_set_url' => :'String'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
+
57
+ if attributes.has_key?(:'publicKey')
58
+ self.public_key = attributes[:'publicKey']
59
+ end
60
+
61
+ if attributes.has_key?(:'oidcLoginInitiationsUrl')
62
+ self.oidc_login_initiations_url = attributes[:'oidcLoginInitiationsUrl']
63
+ end
64
+
65
+ if attributes.has_key?(:'redirectUri')
66
+ self.redirect_uri = attributes[:'redirectUri']
67
+ end
68
+
69
+ if attributes.has_key?(:'jsonWebKeySetUrl')
70
+ self.json_web_key_set_url = attributes[:'jsonWebKeySetUrl']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ if @public_key.nil?
79
+ invalid_properties.push('invalid value for "public_key", public_key cannot be nil.')
80
+ end
81
+
82
+ if @oidc_login_initiations_url.nil?
83
+ invalid_properties.push('invalid value for "oidc_login_initiations_url", oidc_login_initiations_url cannot be nil.')
84
+ end
85
+
86
+ if @redirect_uri.nil?
87
+ invalid_properties.push('invalid value for "redirect_uri", redirect_uri cannot be nil.')
88
+ end
89
+
90
+ if @json_web_key_set_url.nil?
91
+ invalid_properties.push('invalid value for "json_web_key_set_url", json_web_key_set_url cannot be nil.')
92
+ end
93
+
94
+ invalid_properties
95
+ end
96
+
97
+ # Check to see if the all the properties in the model are valid
98
+ # @return true if the model is valid
99
+ def valid?
100
+ return false if @public_key.nil?
101
+ return false if @oidc_login_initiations_url.nil?
102
+ return false if @redirect_uri.nil?
103
+ return false if @json_web_key_set_url.nil?
104
+ true
105
+ end
106
+
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ public_key == o.public_key &&
114
+ oidc_login_initiations_url == o.oidc_login_initiations_url &&
115
+ redirect_uri == o.redirect_uri &&
116
+ json_web_key_set_url == o.json_web_key_set_url
117
+ end
118
+
119
+ # @see the `==` method
120
+ # @param [Object] Object to be compared
121
+ def eql?(o)
122
+ self == o
123
+ end
124
+
125
+ # Calculates hash code according to all attributes.
126
+ # @return [Fixnum] Hash code
127
+ def hash
128
+ [public_key, oidc_login_initiations_url, redirect_uri, json_web_key_set_url].hash
129
+ end
130
+
131
+ # Builds the object from hash
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ # @return [Object] Returns the model itself
134
+ def build_from_hash(attributes)
135
+ return nil unless attributes.is_a?(Hash)
136
+ self.class.swagger_types.each_pair do |key, type|
137
+ if type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the attribute
139
+ # is documented as an array but the input is not
140
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
141
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
142
+ end
143
+ elsif !attributes[self.class.attribute_map[key]].nil?
144
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
146
+ end
147
+
148
+ self
149
+ end
150
+
151
+ # Deserializes the data based on type
152
+ # @param string type Data type
153
+ # @param string value Value to be deserialized
154
+ # @return [Object] Deserialized data
155
+ def _deserialize(type, value)
156
+ case type.to_sym
157
+ when :DateTime
158
+ DateTime.parse(value)
159
+ when :Date
160
+ Date.parse(value)
161
+ when :String
162
+ value.to_s
163
+ when :Integer
164
+ value.to_i
165
+ when :Float
166
+ value.to_f
167
+ when :BOOLEAN
168
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
169
+ true
170
+ else
171
+ false
172
+ end
173
+ when :Object
174
+ # generic object (usually a Hash), return directly
175
+ value
176
+ when /\AArray<(?<inner_type>.+)>\z/
177
+ inner_type = Regexp.last_match[:inner_type]
178
+ value.map { |v| _deserialize(inner_type, v) }
179
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
180
+ k_type = Regexp.last_match[:k_type]
181
+ v_type = Regexp.last_match[:v_type]
182
+ {}.tap do |hash|
183
+ value.each do |k, v|
184
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
185
+ end
186
+ end
187
+ else # model
188
+ temp_model = RusticiSoftwareCloudV2.const_get(type).new
189
+ temp_model.build_from_hash(value)
190
+ end
191
+ end
192
+
193
+ # Returns the string representation of the object
194
+ # @return [String] String presentation of the object
195
+ def to_s
196
+ to_hash.to_s
197
+ end
198
+
199
+ # to_body is an alias to to_hash (backward compatibility)
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_body
202
+ to_hash
203
+ end
204
+
205
+ # Returns the object in the form of hash
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_hash
208
+ hash = {}
209
+ self.class.attribute_map.each_pair do |attr, param|
210
+ value = self.send(attr)
211
+ next if value.nil?
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+
235
+ end
236
+ end
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -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.12
9
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12