rustici_software_cloud_v2 1.1.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +355 -356
  4. data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
  5. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +191 -63
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +10 -18
  7. data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +236 -0
  8. data/lib/rustici_software_cloud_v2/api/course_api.rb +1046 -225
  9. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +634 -269
  10. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +213 -171
  11. data/lib/rustici_software_cloud_v2/api/learner_api.rb +49 -49
  12. data/lib/rustici_software_cloud_v2/api/ping_api.rb +3 -1
  13. data/lib/rustici_software_cloud_v2/api/registration_api.rb +256 -270
  14. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +20 -24
  15. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +82 -67
  16. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +125 -56
  17. data/lib/rustici_software_cloud_v2/api_client.rb +3 -3
  18. data/lib/rustici_software_cloud_v2/api_error.rb +1 -1
  19. data/lib/rustici_software_cloud_v2/configuration.rb +11 -4
  20. data/lib/rustici_software_cloud_v2/models/about_schema.rb +4 -2
  21. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +9 -37
  22. data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
  23. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +4 -2
  24. data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +186 -0
  25. data/lib/rustici_software_cloud_v2/models/application_schema.rb +4 -2
  26. data/lib/rustici_software_cloud_v2/models/application_token.rb +4 -2
  27. data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
  28. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +4 -2
  29. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +4 -2
  30. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +4 -2
  31. data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +188 -0
  32. data/lib/rustici_software_cloud_v2/models/connector_schema.rb +226 -0
  33. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +7 -31
  34. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +4 -2
  35. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +5 -2
  36. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +4 -2
  37. data/lib/rustici_software_cloud_v2/models/course_schema.rb +6 -30
  38. data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +218 -0
  39. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +3 -20
  40. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +4 -2
  41. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +5 -3
  42. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +5 -3
  43. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +5 -3
  44. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +4 -2
  45. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +4 -2
  46. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +4 -2
  47. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +4 -2
  48. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +4 -2
  49. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +4 -2
  50. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +5 -3
  51. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +35 -6
  52. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +4 -2
  53. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +5 -2
  54. data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +186 -0
  55. data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
  56. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +4 -2
  57. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +44 -4
  58. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +4 -2
  59. data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
  60. data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
  61. data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
  62. data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +207 -0
  63. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +30 -7
  64. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +6 -30
  65. data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
  66. data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +204 -0
  67. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +4 -2
  68. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +4 -2
  69. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +4 -2
  70. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +6 -30
  71. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +5 -2
  72. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +4 -2
  73. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +4 -2
  74. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +4 -2
  75. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +6 -30
  76. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +4 -2
  77. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +9 -37
  78. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +6 -4
  79. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +4 -2
  80. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +4 -2
  81. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +4 -2
  82. data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +261 -0
  83. data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +236 -0
  84. data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
  85. data/lib/rustici_software_cloud_v2/models/message_schema.rb +4 -2
  86. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +11 -9
  87. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +12 -44
  88. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +4 -2
  89. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +4 -2
  90. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +9 -37
  91. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +5 -2
  92. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +6 -4
  93. data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
  94. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +5 -2
  95. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +17 -6
  96. data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
  97. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +1 -1
  98. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +5 -2
  99. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +4 -2
  100. data/lib/rustici_software_cloud_v2/models/registration_success.rb +1 -1
  101. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +4 -2
  102. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +4 -2
  103. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +4 -2
  104. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +4 -2
  105. data/lib/rustici_software_cloud_v2/models/response_error.rb +4 -2
  106. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +6 -30
  107. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +9 -37
  108. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +6 -30
  109. data/lib/rustici_software_cloud_v2/models/score_schema.rb +4 -2
  110. data/lib/rustici_software_cloud_v2/models/setting_item.rb +6 -30
  111. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +4 -2
  112. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +6 -30
  113. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +4 -2
  114. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +4 -2
  115. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +4 -2
  116. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +4 -2
  117. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +4 -2
  118. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +4 -2
  119. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +4 -2
  120. data/lib/rustici_software_cloud_v2/models/title_schema.rb +4 -2
  121. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +4 -2
  122. data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
  123. data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +196 -0
  124. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +16 -4
  125. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +5 -2
  126. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +4 -2
  127. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +4 -2
  128. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +4 -2
  129. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +4 -2
  130. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +4 -2
  131. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +6 -30
  132. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +4 -2
  133. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +4 -2
  134. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +4 -2
  135. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +6 -30
  136. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +6 -30
  137. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +4 -2
  138. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +4 -2
  139. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +4 -2
  140. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +5 -2
  141. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +4 -2
  142. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +4 -2
  143. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +4 -2
  144. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +4 -2
  145. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +4 -2
  146. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +4 -2
  147. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +4 -2
  148. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +4 -2
  149. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +4 -2
  150. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +4 -2
  151. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +4 -2
  152. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +4 -2
  153. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +4 -2
  154. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +14 -2
  155. data/lib/rustici_software_cloud_v2/version.rb +2 -2
  156. data/lib/rustici_software_cloud_v2.rb +23 -1
  157. data/rustici_software_cloud_v2.gemspec +3 -2
  158. data/spec/api_client_spec.rb +18 -1
  159. data/spec/configuration_spec.rb +1 -1
  160. data/spec/spec_helper.rb +1 -1
  161. metadata +45 -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
 
@@ -64,6 +64,7 @@ module RusticiSoftwareCloudV2
64
64
  true
65
65
  end
66
66
 
67
+
67
68
  # Checks equality by comparing each attribute.
68
69
  # @param [Object] Object to be compared
69
70
  def ==(o)
@@ -92,7 +93,7 @@ module RusticiSoftwareCloudV2
92
93
  return nil unless attributes.is_a?(Hash)
93
94
  self.class.swagger_types.each_pair do |key, type|
94
95
  if type =~ /\AArray<(.*)>/i
95
- # check to ensure the input is an array given that the the attribute
96
+ # check to ensure the input is an array given that the attribute
96
97
  # is documented as an array but the input is not
97
98
  if attributes[self.class.attribute_map[key]].is_a?(Array)
98
99
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -188,5 +189,6 @@ module RusticiSoftwareCloudV2
188
189
  value
189
190
  end
190
191
  end
192
+
191
193
  end
192
194
  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
 
@@ -31,28 +31,6 @@ module RusticiSoftwareCloudV2
31
31
  # This paramenter is ONLY used for backwards compatibility with XML postback implementations. You probably shouldn't need to use this unless you're currently transitioning from the V1 api to the V2 api and already have existing XML postback logic in your application, but have not yet built out JSON postback logic. If a registration is created with the V2 api we will assume that you're expecting JSON results unless otherwise specified.
32
32
  attr_accessor :legacy
33
33
 
34
- class EnumAttributeValidator
35
- attr_reader :datatype
36
- attr_reader :allowable_values
37
-
38
- def initialize(datatype, allowable_values)
39
- @allowable_values = allowable_values.map do |value|
40
- case datatype.to_s
41
- when /Integer/i
42
- value.to_i
43
- when /Float/i
44
- value.to_f
45
- else
46
- value
47
- end
48
- end
49
- end
50
-
51
- def valid?(value)
52
- !value || allowable_values.include?(value)
53
- end
54
- end
55
-
56
34
  # Attribute mapping from ruby-style variable name to JSON key.
57
35
  def self.attribute_map
58
36
  {
@@ -124,30 +102,23 @@ module RusticiSoftwareCloudV2
124
102
  # Check to see if the all the properties in the model are valid
125
103
  # @return true if the model is valid
126
104
  def valid?
127
- auth_type_validator = EnumAttributeValidator.new('String', ['UNDEFINED', 'FORM', 'HTTPBASIC'])
128
- return false unless auth_type_validator.valid?(@auth_type)
129
- results_format_validator = EnumAttributeValidator.new('String', ['UNDEFINED', 'COURSE', 'ACTIVITY', 'FULL'])
130
- return false unless results_format_validator.valid?(@results_format)
131
105
  true
132
106
  end
133
107
 
134
108
  # Custom attribute writer method checking allowed values (enum).
109
+ #
110
+ # allowable_values = ['UNDEFINED', 'FORM', 'HTTPBASIC']
111
+ #
135
112
  # @param [Object] auth_type Object to be assigned
136
113
  def auth_type=(auth_type)
137
- validator = EnumAttributeValidator.new('String', ['UNDEFINED', 'FORM', 'HTTPBASIC'])
138
- unless validator.valid?(auth_type)
139
- fail ArgumentError, 'invalid value for "auth_type", must be one of #{validator.allowable_values}.'
140
- end
141
114
  @auth_type = auth_type
142
115
  end
143
-
144
116
  # Custom attribute writer method checking allowed values (enum).
117
+ #
118
+ # allowable_values = ['UNDEFINED', 'COURSE', 'ACTIVITY', 'FULL']
119
+ #
145
120
  # @param [Object] results_format Object to be assigned
146
121
  def results_format=(results_format)
147
- validator = EnumAttributeValidator.new('String', ['UNDEFINED', 'COURSE', 'ACTIVITY', 'FULL'])
148
- unless validator.valid?(results_format)
149
- fail ArgumentError, 'invalid value for "results_format", must be one of #{validator.allowable_values}.'
150
- end
151
122
  @results_format = results_format
152
123
  end
153
124
 
@@ -183,7 +154,7 @@ module RusticiSoftwareCloudV2
183
154
  return nil unless attributes.is_a?(Hash)
184
155
  self.class.swagger_types.each_pair do |key, type|
185
156
  if type =~ /\AArray<(.*)>/i
186
- # check to ensure the input is an array given that the the attribute
157
+ # check to ensure the input is an array given that the attribute
187
158
  # is documented as an array but the input is not
188
159
  if attributes[self.class.attribute_map[key]].is_a?(Array)
189
160
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -279,5 +250,6 @@ module RusticiSoftwareCloudV2
279
250
  value
280
251
  end
281
252
  end
253
+
282
254
  end
283
255
  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
 
@@ -17,6 +17,7 @@ module RusticiSoftwareCloudV2
17
17
  # A list of private invitation objects.
18
18
  attr_accessor :invitations
19
19
 
20
+ # Token for getting the next set of results, from the prior set of results.
20
21
  attr_accessor :more
21
22
 
22
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -67,6 +68,7 @@ module RusticiSoftwareCloudV2
67
68
  true
68
69
  end
69
70
 
71
+
70
72
  # Checks equality by comparing each attribute.
71
73
  # @param [Object] Object to be compared
72
74
  def ==(o)
@@ -95,7 +97,7 @@ module RusticiSoftwareCloudV2
95
97
  return nil unless attributes.is_a?(Hash)
96
98
  self.class.swagger_types.each_pair do |key, type|
97
99
  if type =~ /\AArray<(.*)>/i
98
- # check to ensure the input is an array given that the the attribute
100
+ # check to ensure the input is an array given that the attribute
99
101
  # is documented as an array but the input is not
100
102
  if attributes[self.class.attribute_map[key]].is_a?(Array)
101
103
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -191,5 +193,6 @@ module RusticiSoftwareCloudV2
191
193
  value
192
194
  end
193
195
  end
196
+
194
197
  end
195
198
  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
 
@@ -20,7 +20,7 @@ module RusticiSoftwareCloudV2
20
20
  # Course Id for this Invitation.
21
21
  attr_accessor :course_id
22
22
 
23
- # If true, then new registrations can be created for this dispatch.
23
+ # If true, then new registrations can be created for this invitation.
24
24
  attr_accessor :allow_launch
25
25
 
26
26
  attr_accessor :invitation_email
@@ -33,7 +33,7 @@ module RusticiSoftwareCloudV2
33
33
  # Specifies a URL for which to post activity and status data in real time as the course is completed
34
34
  attr_accessor :post_back
35
35
 
36
- # The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time).
36
+ # The ISO 8601 TimeStamp (defaults to UTC) after which this invitation will expire and can no longer be launched. An empty value will represent no expiration date.
37
37
  attr_accessor :expiration_date
38
38
 
39
39
  # The count of registrations for this invitation
@@ -127,6 +127,7 @@ module RusticiSoftwareCloudV2
127
127
  true
128
128
  end
129
129
 
130
+
130
131
  # Checks equality by comparing each attribute.
131
132
  # @param [Object] Object to be compared
132
133
  def ==(o)
@@ -162,7 +163,7 @@ module RusticiSoftwareCloudV2
162
163
  return nil unless attributes.is_a?(Hash)
163
164
  self.class.swagger_types.each_pair do |key, type|
164
165
  if type =~ /\AArray<(.*)>/i
165
- # check to ensure the input is an array given that the the attribute
166
+ # check to ensure the input is an array given that the attribute
166
167
  # is documented as an array but the input is not
167
168
  if attributes[self.class.attribute_map[key]].is_a?(Array)
168
169
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -258,5 +259,6 @@ module RusticiSoftwareCloudV2
258
259
  value
259
260
  end
260
261
  end
262
+
261
263
  end
262
264
  end
@@ -0,0 +1,215 @@
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 PrivateInvitationUpdateSchema
17
+ # If true, then new registrations can be created for this invitation.
18
+ attr_accessor :allow_launch
19
+
20
+ attr_accessor :invitation_email
21
+
22
+ # Specifies a URL for which to post activity and status data in real time as the course is completed
23
+ attr_accessor :post_back
24
+
25
+ # The ISO 8601 TimeStamp (defaults to UTC) after which this invitation will expire and can no longer be launched. An empty value will represent no expiration date.
26
+ attr_accessor :expiration_date
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'allow_launch' => :'allowLaunch',
32
+ :'invitation_email' => :'invitationEmail',
33
+ :'post_back' => :'postBack',
34
+ :'expiration_date' => :'expirationDate'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'allow_launch' => :'BOOLEAN',
42
+ :'invitation_email' => :'InvitationEmailSchema',
43
+ :'post_back' => :'PostBackSchema',
44
+ :'expiration_date' => :'DateTime'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
+
56
+ if attributes.has_key?(:'allowLaunch')
57
+ self.allow_launch = attributes[:'allowLaunch']
58
+ end
59
+
60
+ if attributes.has_key?(:'invitationEmail')
61
+ self.invitation_email = attributes[:'invitationEmail']
62
+ end
63
+
64
+ if attributes.has_key?(:'postBack')
65
+ self.post_back = attributes[:'postBack']
66
+ end
67
+
68
+ if attributes.has_key?(:'expirationDate')
69
+ self.expiration_date = attributes[:'expirationDate']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ allow_launch == o.allow_launch &&
93
+ invitation_email == o.invitation_email &&
94
+ post_back == o.post_back &&
95
+ expiration_date == o.expiration_date
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [allow_launch, invitation_email, post_back, expiration_date].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :DateTime
137
+ DateTime.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :BOOLEAN
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ temp_model = RusticiSoftwareCloudV2.const_get(type).new
168
+ temp_model.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ next if value.nil?
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+ 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
 
@@ -17,6 +17,7 @@ module RusticiSoftwareCloudV2
17
17
  # A list of public invitation objects.
18
18
  attr_accessor :invitations
19
19
 
20
+ # Token for getting the next set of results, from the prior set of results.
20
21
  attr_accessor :more
21
22
 
22
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -67,6 +68,7 @@ module RusticiSoftwareCloudV2
67
68
  true
68
69
  end
69
70
 
71
+
70
72
  # Checks equality by comparing each attribute.
71
73
  # @param [Object] Object to be compared
72
74
  def ==(o)
@@ -95,7 +97,7 @@ module RusticiSoftwareCloudV2
95
97
  return nil unless attributes.is_a?(Hash)
96
98
  self.class.swagger_types.each_pair do |key, type|
97
99
  if type =~ /\AArray<(.*)>/i
98
- # check to ensure the input is an array given that the the attribute
100
+ # check to ensure the input is an array given that the attribute
99
101
  # is documented as an array but the input is not
100
102
  if attributes[self.class.attribute_map[key]].is_a?(Array)
101
103
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -191,5 +193,6 @@ module RusticiSoftwareCloudV2
191
193
  value
192
194
  end
193
195
  end
196
+
194
197
  end
195
198
  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
 
@@ -20,10 +20,12 @@ module RusticiSoftwareCloudV2
20
20
  # Course Id for this Invitation.
21
21
  attr_accessor :course_id
22
22
 
23
- # If true, then new registrations can be created for this dispatch.
23
+ # If true, then new registrations can be created for this invitation.
24
24
  attr_accessor :allow_launch
25
25
 
26
- # If true, then new registrations can be created for this dispatch.
26
+ attr_accessor :invitation_email
27
+
28
+ # If true, then new registrations can be created for this invitation.
27
29
  attr_accessor :allow_new_registrations
28
30
 
29
31
  # The launch URL for the invitation
@@ -37,7 +39,7 @@ module RusticiSoftwareCloudV2
37
39
  # Specifies a URL for which to post activity and status data in real time as the course is completed
38
40
  attr_accessor :post_back
39
41
 
40
- # The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time).
42
+ # The ISO 8601 TimeStamp (defaults to UTC) after which this invitation will expire and can no longer be launched. An empty value will represent no expiration date.
41
43
  attr_accessor :expiration_date
42
44
 
43
45
  # Integer value that limits the amount of registrations a public invitation can generate.
@@ -52,6 +54,7 @@ module RusticiSoftwareCloudV2
52
54
  :'id' => :'id',
53
55
  :'course_id' => :'courseId',
54
56
  :'allow_launch' => :'allowLaunch',
57
+ :'invitation_email' => :'invitationEmail',
55
58
  :'allow_new_registrations' => :'allowNewRegistrations',
56
59
  :'url' => :'url',
57
60
  :'create_date' => :'createDate',
@@ -69,6 +72,7 @@ module RusticiSoftwareCloudV2
69
72
  :'id' => :'String',
70
73
  :'course_id' => :'String',
71
74
  :'allow_launch' => :'BOOLEAN',
75
+ :'invitation_email' => :'InvitationEmailSchema',
72
76
  :'allow_new_registrations' => :'BOOLEAN',
73
77
  :'url' => :'String',
74
78
  :'create_date' => :'DateTime',
@@ -100,6 +104,10 @@ module RusticiSoftwareCloudV2
100
104
  self.allow_launch = attributes[:'allowLaunch']
101
105
  end
102
106
 
107
+ if attributes.has_key?(:'invitationEmail')
108
+ self.invitation_email = attributes[:'invitationEmail']
109
+ end
110
+
103
111
  if attributes.has_key?(:'allowNewRegistrations')
104
112
  self.allow_new_registrations = attributes[:'allowNewRegistrations']
105
113
  end
@@ -148,6 +156,7 @@ module RusticiSoftwareCloudV2
148
156
  true
149
157
  end
150
158
 
159
+
151
160
  # Checks equality by comparing each attribute.
152
161
  # @param [Object] Object to be compared
153
162
  def ==(o)
@@ -156,6 +165,7 @@ module RusticiSoftwareCloudV2
156
165
  id == o.id &&
157
166
  course_id == o.course_id &&
158
167
  allow_launch == o.allow_launch &&
168
+ invitation_email == o.invitation_email &&
159
169
  allow_new_registrations == o.allow_new_registrations &&
160
170
  url == o.url &&
161
171
  create_date == o.create_date &&
@@ -175,7 +185,7 @@ module RusticiSoftwareCloudV2
175
185
  # Calculates hash code according to all attributes.
176
186
  # @return [Fixnum] Hash code
177
187
  def hash
178
- [id, course_id, allow_launch, allow_new_registrations, url, create_date, updated, post_back, expiration_date, registration_cap, registration_count].hash
188
+ [id, course_id, allow_launch, invitation_email, allow_new_registrations, url, create_date, updated, post_back, expiration_date, registration_cap, registration_count].hash
179
189
  end
180
190
 
181
191
  # Builds the object from hash
@@ -185,7 +195,7 @@ module RusticiSoftwareCloudV2
185
195
  return nil unless attributes.is_a?(Hash)
186
196
  self.class.swagger_types.each_pair do |key, type|
187
197
  if type =~ /\AArray<(.*)>/i
188
- # check to ensure the input is an array given that the the attribute
198
+ # check to ensure the input is an array given that the attribute
189
199
  # is documented as an array but the input is not
190
200
  if attributes[self.class.attribute_map[key]].is_a?(Array)
191
201
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -281,5 +291,6 @@ module RusticiSoftwareCloudV2
281
291
  value
282
292
  end
283
293
  end
294
+
284
295
  end
285
296
  end