rustici_software_cloud_v2 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +355 -356
- data/lib/rustici_software_cloud_v2/api/about_api.rb +4 -4
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +190 -62
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +9 -17
- data/lib/rustici_software_cloud_v2/api/course_api.rb +903 -196
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +458 -268
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +212 -170
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +48 -48
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +2 -0
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +255 -269
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +19 -23
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +81 -66
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +124 -55
- data/lib/rustici_software_cloud_v2/api_client.rb +2 -2
- data/lib/rustici_software_cloud_v2/configuration.rb +3 -3
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +8 -36
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/application_token.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +2 -19
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +43 -3
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +29 -6
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +195 -0
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +8 -36
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +10 -8
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +11 -43
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +8 -36
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +6 -4
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/response_error.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +8 -36
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +15 -3
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +13 -1
- data/lib/rustici_software_cloud_v2/version.rb +1 -1
- data/lib/rustici_software_cloud_v2.rb +13 -0
- data/rustici_software_cloud_v2.gemspec +2 -1
- data/spec/api_client_spec.rb +17 -0
- metadata +35 -2
@@ -67,6 +67,7 @@ module RusticiSoftwareCloudV2
|
|
67
67
|
true
|
68
68
|
end
|
69
69
|
|
70
|
+
|
70
71
|
# Checks equality by comparing each attribute.
|
71
72
|
# @param [Object] Object to be compared
|
72
73
|
def ==(o)
|
@@ -95,7 +96,7 @@ module RusticiSoftwareCloudV2
|
|
95
96
|
return nil unless attributes.is_a?(Hash)
|
96
97
|
self.class.swagger_types.each_pair do |key, type|
|
97
98
|
if type =~ /\AArray<(.*)>/i
|
98
|
-
# check to ensure the input is an array given that the
|
99
|
+
# check to ensure the input is an array given that the attribute
|
99
100
|
# is documented as an array but the input is not
|
100
101
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
101
102
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -191,5 +192,6 @@ module RusticiSoftwareCloudV2
|
|
191
192
|
value
|
192
193
|
end
|
193
194
|
end
|
195
|
+
|
194
196
|
end
|
195
197
|
end
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
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
|
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.12
|
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
|
@@ -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
|
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
|
@@ -20,10 +20,10 @@ 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
|
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
|
26
|
+
# If true, then new registrations can be created for this invitation.
|
27
27
|
attr_accessor :allow_new_registrations
|
28
28
|
|
29
29
|
# The launch URL for the invitation
|
@@ -37,7 +37,7 @@ module RusticiSoftwareCloudV2
|
|
37
37
|
# Specifies a URL for which to post activity and status data in real time as the course is completed
|
38
38
|
attr_accessor :post_back
|
39
39
|
|
40
|
-
# The
|
40
|
+
# 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
41
|
attr_accessor :expiration_date
|
42
42
|
|
43
43
|
# Integer value that limits the amount of registrations a public invitation can generate.
|
@@ -148,6 +148,7 @@ module RusticiSoftwareCloudV2
|
|
148
148
|
true
|
149
149
|
end
|
150
150
|
|
151
|
+
|
151
152
|
# Checks equality by comparing each attribute.
|
152
153
|
# @param [Object] Object to be compared
|
153
154
|
def ==(o)
|
@@ -185,7 +186,7 @@ module RusticiSoftwareCloudV2
|
|
185
186
|
return nil unless attributes.is_a?(Hash)
|
186
187
|
self.class.swagger_types.each_pair do |key, type|
|
187
188
|
if type =~ /\AArray<(.*)>/i
|
188
|
-
# check to ensure the input is an array given that the
|
189
|
+
# check to ensure the input is an array given that the attribute
|
189
190
|
# is documented as an array but the input is not
|
190
191
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
191
192
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -281,5 +282,6 @@ module RusticiSoftwareCloudV2
|
|
281
282
|
value
|
282
283
|
end
|
283
284
|
end
|
285
|
+
|
284
286
|
end
|
285
287
|
end
|