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
@@ -27,28 +27,6 @@ module RusticiSoftwareCloudV2
|
|
27
27
|
|
28
28
|
attr_accessor :metadata
|
29
29
|
|
30
|
-
class EnumAttributeValidator
|
31
|
-
attr_reader :datatype
|
32
|
-
attr_reader :allowable_values
|
33
|
-
|
34
|
-
def initialize(datatype, allowable_values)
|
35
|
-
@allowable_values = allowable_values.map do |value|
|
36
|
-
case datatype.to_s
|
37
|
-
when /Integer/i
|
38
|
-
value.to_i
|
39
|
-
when /Float/i
|
40
|
-
value.to_f
|
41
|
-
else
|
42
|
-
value
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
def valid?(value)
|
48
|
-
!value || allowable_values.include?(value)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
31
|
def self.attribute_map
|
54
32
|
{
|
@@ -110,18 +88,15 @@ module RusticiSoftwareCloudV2
|
|
110
88
|
# Check to see if the all the properties in the model are valid
|
111
89
|
# @return true if the model is valid
|
112
90
|
def valid?
|
113
|
-
effective_value_source_validator = EnumAttributeValidator.new('String', ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration'])
|
114
|
-
return false unless effective_value_source_validator.valid?(@effective_value_source)
|
115
91
|
true
|
116
92
|
end
|
117
93
|
|
118
94
|
# Custom attribute writer method checking allowed values (enum).
|
95
|
+
#
|
96
|
+
# allowable_values = ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration']
|
97
|
+
#
|
119
98
|
# @param [Object] effective_value_source Object to be assigned
|
120
99
|
def effective_value_source=(effective_value_source)
|
121
|
-
validator = EnumAttributeValidator.new('String', ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration'])
|
122
|
-
unless validator.valid?(effective_value_source)
|
123
|
-
fail ArgumentError, 'invalid value for "effective_value_source", must be one of #{validator.allowable_values}.'
|
124
|
-
end
|
125
100
|
@effective_value_source = effective_value_source
|
126
101
|
end
|
127
102
|
|
@@ -156,7 +131,7 @@ module RusticiSoftwareCloudV2
|
|
156
131
|
return nil unless attributes.is_a?(Hash)
|
157
132
|
self.class.swagger_types.each_pair do |key, type|
|
158
133
|
if type =~ /\AArray<(.*)>/i
|
159
|
-
# check to ensure the input is an array given that the
|
134
|
+
# check to ensure the input is an array given that the attribute
|
160
135
|
# is documented as an array but the input is not
|
161
136
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
162
137
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -252,5 +227,6 @@ module RusticiSoftwareCloudV2
|
|
252
227
|
value
|
253
228
|
end
|
254
229
|
end
|
230
|
+
|
255
231
|
end
|
256
232
|
end
|
@@ -63,6 +63,7 @@ module RusticiSoftwareCloudV2
|
|
63
63
|
true
|
64
64
|
end
|
65
65
|
|
66
|
+
|
66
67
|
# Checks equality by comparing each attribute.
|
67
68
|
# @param [Object] Object to be compared
|
68
69
|
def ==(o)
|
@@ -90,7 +91,7 @@ module RusticiSoftwareCloudV2
|
|
90
91
|
return nil unless attributes.is_a?(Hash)
|
91
92
|
self.class.swagger_types.each_pair do |key, type|
|
92
93
|
if type =~ /\AArray<(.*)>/i
|
93
|
-
# check to ensure the input is an array given that the
|
94
|
+
# check to ensure the input is an array given that the attribute
|
94
95
|
# is documented as an array but the input is not
|
95
96
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
96
97
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -186,5 +187,6 @@ module RusticiSoftwareCloudV2
|
|
186
187
|
value
|
187
188
|
end
|
188
189
|
end
|
190
|
+
|
189
191
|
end
|
190
192
|
end
|
@@ -38,28 +38,6 @@ module RusticiSoftwareCloudV2
|
|
38
38
|
# For settings with a fixed list of valid values, the list of those values
|
39
39
|
attr_accessor :valid_values
|
40
40
|
|
41
|
-
class EnumAttributeValidator
|
42
|
-
attr_reader :datatype
|
43
|
-
attr_reader :allowable_values
|
44
|
-
|
45
|
-
def initialize(datatype, allowable_values)
|
46
|
-
@allowable_values = allowable_values.map do |value|
|
47
|
-
case datatype.to_s
|
48
|
-
when /Integer/i
|
49
|
-
value.to_i
|
50
|
-
when /Float/i
|
51
|
-
value.to_f
|
52
|
-
else
|
53
|
-
value
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
def valid?(value)
|
59
|
-
!value || allowable_values.include?(value)
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
64
42
|
def self.attribute_map
|
65
43
|
{
|
@@ -145,18 +123,15 @@ module RusticiSoftwareCloudV2
|
|
145
123
|
# Check to see if the all the properties in the model are valid
|
146
124
|
# @return true if the model is valid
|
147
125
|
def valid?
|
148
|
-
learning_standard_variant_validator = EnumAttributeValidator.new('String', ['singleScoOnly', 'multiScoOnly', 'either'])
|
149
|
-
return false unless learning_standard_variant_validator.valid?(@learning_standard_variant)
|
150
126
|
true
|
151
127
|
end
|
152
128
|
|
153
129
|
# Custom attribute writer method checking allowed values (enum).
|
130
|
+
#
|
131
|
+
# allowable_values = ['singleScoOnly', 'multiScoOnly', 'either']
|
132
|
+
#
|
154
133
|
# @param [Object] learning_standard_variant Object to be assigned
|
155
134
|
def learning_standard_variant=(learning_standard_variant)
|
156
|
-
validator = EnumAttributeValidator.new('String', ['singleScoOnly', 'multiScoOnly', 'either'])
|
157
|
-
unless validator.valid?(learning_standard_variant)
|
158
|
-
fail ArgumentError, 'invalid value for "learning_standard_variant", must be one of #{validator.allowable_values}.'
|
159
|
-
end
|
160
135
|
@learning_standard_variant = learning_standard_variant
|
161
136
|
end
|
162
137
|
|
@@ -194,7 +169,7 @@ module RusticiSoftwareCloudV2
|
|
194
169
|
return nil unless attributes.is_a?(Hash)
|
195
170
|
self.class.swagger_types.each_pair do |key, type|
|
196
171
|
if type =~ /\AArray<(.*)>/i
|
197
|
-
# check to ensure the input is an array given that the
|
172
|
+
# check to ensure the input is an array given that the attribute
|
198
173
|
# is documented as an array but the input is not
|
199
174
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
200
175
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -290,5 +265,6 @@ module RusticiSoftwareCloudV2
|
|
290
265
|
value
|
291
266
|
end
|
292
267
|
end
|
268
|
+
|
293
269
|
end
|
294
270
|
end
|
@@ -65,6 +65,7 @@ module RusticiSoftwareCloudV2
|
|
65
65
|
true
|
66
66
|
end
|
67
67
|
|
68
|
+
|
68
69
|
# Checks equality by comparing each attribute.
|
69
70
|
# @param [Object] Object to be compared
|
70
71
|
def ==(o)
|
@@ -93,7 +94,7 @@ module RusticiSoftwareCloudV2
|
|
93
94
|
return nil unless attributes.is_a?(Hash)
|
94
95
|
self.class.swagger_types.each_pair do |key, type|
|
95
96
|
if type =~ /\AArray<(.*)>/i
|
96
|
-
# check to ensure the input is an array given that the
|
97
|
+
# check to ensure the input is an array given that the attribute
|
97
98
|
# is documented as an array but the input is not
|
98
99
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
99
100
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -189,5 +190,6 @@ module RusticiSoftwareCloudV2
|
|
189
190
|
value
|
190
191
|
end
|
191
192
|
end
|
193
|
+
|
192
194
|
end
|
193
195
|
end
|
@@ -74,6 +74,7 @@ module RusticiSoftwareCloudV2
|
|
74
74
|
true
|
75
75
|
end
|
76
76
|
|
77
|
+
|
77
78
|
# Checks equality by comparing each attribute.
|
78
79
|
# @param [Object] Object to be compared
|
79
80
|
def ==(o)
|
@@ -103,7 +104,7 @@ module RusticiSoftwareCloudV2
|
|
103
104
|
return nil unless attributes.is_a?(Hash)
|
104
105
|
self.class.swagger_types.each_pair do |key, type|
|
105
106
|
if type =~ /\AArray<(.*)>/i
|
106
|
-
# check to ensure the input is an array given that the
|
107
|
+
# check to ensure the input is an array given that the attribute
|
107
108
|
# is documented as an array but the input is not
|
108
109
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
110
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -199,5 +200,6 @@ module RusticiSoftwareCloudV2
|
|
199
200
|
value
|
200
201
|
end
|
201
202
|
end
|
203
|
+
|
202
204
|
end
|
203
205
|
end
|
@@ -58,6 +58,7 @@ module RusticiSoftwareCloudV2
|
|
58
58
|
true
|
59
59
|
end
|
60
60
|
|
61
|
+
|
61
62
|
# Checks equality by comparing each attribute.
|
62
63
|
# @param [Object] Object to be compared
|
63
64
|
def ==(o)
|
@@ -85,7 +86,7 @@ module RusticiSoftwareCloudV2
|
|
85
86
|
return nil unless attributes.is_a?(Hash)
|
86
87
|
self.class.swagger_types.each_pair do |key, type|
|
87
88
|
if type =~ /\AArray<(.*)>/i
|
88
|
-
# check to ensure the input is an array given that the
|
89
|
+
# check to ensure the input is an array given that the attribute
|
89
90
|
# is documented as an array but the input is not
|
90
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
91
92
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -181,5 +182,6 @@ module RusticiSoftwareCloudV2
|
|
181
182
|
value
|
182
183
|
end
|
183
184
|
end
|
185
|
+
|
184
186
|
end
|
185
187
|
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
|
@@ -96,6 +96,7 @@ module RusticiSoftwareCloudV2
|
|
96
96
|
true
|
97
97
|
end
|
98
98
|
|
99
|
+
|
99
100
|
# Checks equality by comparing each attribute.
|
100
101
|
# @param [Object] Object to be compared
|
101
102
|
def ==(o)
|
@@ -128,7 +129,7 @@ module RusticiSoftwareCloudV2
|
|
128
129
|
return nil unless attributes.is_a?(Hash)
|
129
130
|
self.class.swagger_types.each_pair do |key, type|
|
130
131
|
if type =~ /\AArray<(.*)>/i
|
131
|
-
# check to ensure the input is an array given that the
|
132
|
+
# check to ensure the input is an array given that the attribute
|
132
133
|
# is documented as an array but the input is not
|
133
134
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
134
135
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -224,5 +225,6 @@ module RusticiSoftwareCloudV2
|
|
224
225
|
value
|
225
226
|
end
|
226
227
|
end
|
228
|
+
|
227
229
|
end
|
228
230
|
end
|
@@ -61,6 +61,7 @@ module RusticiSoftwareCloudV2
|
|
61
61
|
true
|
62
62
|
end
|
63
63
|
|
64
|
+
|
64
65
|
# Checks equality by comparing each attribute.
|
65
66
|
# @param [Object] Object to be compared
|
66
67
|
def ==(o)
|
@@ -88,7 +89,7 @@ module RusticiSoftwareCloudV2
|
|
88
89
|
return nil unless attributes.is_a?(Hash)
|
89
90
|
self.class.swagger_types.each_pair do |key, type|
|
90
91
|
if type =~ /\AArray<(.*)>/i
|
91
|
-
# check to ensure the input is an array given that the
|
92
|
+
# check to ensure the input is an array given that the attribute
|
92
93
|
# is documented as an array but the input is not
|
93
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
95
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -184,5 +185,6 @@ module RusticiSoftwareCloudV2
|
|
184
185
|
value
|
185
186
|
end
|
186
187
|
end
|
188
|
+
|
187
189
|
end
|
188
190
|
end
|
@@ -58,6 +58,7 @@ module RusticiSoftwareCloudV2
|
|
58
58
|
true
|
59
59
|
end
|
60
60
|
|
61
|
+
|
61
62
|
# Checks equality by comparing each attribute.
|
62
63
|
# @param [Object] Object to be compared
|
63
64
|
def ==(o)
|
@@ -85,7 +86,7 @@ module RusticiSoftwareCloudV2
|
|
85
86
|
return nil unless attributes.is_a?(Hash)
|
86
87
|
self.class.swagger_types.each_pair do |key, type|
|
87
88
|
if type =~ /\AArray<(.*)>/i
|
88
|
-
# check to ensure the input is an array given that the
|
89
|
+
# check to ensure the input is an array given that the attribute
|
89
90
|
# is documented as an array but the input is not
|
90
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
91
92
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -181,5 +182,6 @@ module RusticiSoftwareCloudV2
|
|
181
182
|
value
|
182
183
|
end
|
183
184
|
end
|
185
|
+
|
184
186
|
end
|
185
187
|
end
|
@@ -56,6 +56,7 @@ module RusticiSoftwareCloudV2
|
|
56
56
|
true
|
57
57
|
end
|
58
58
|
|
59
|
+
|
59
60
|
# Checks equality by comparing each attribute.
|
60
61
|
# @param [Object] Object to be compared
|
61
62
|
def ==(o)
|
@@ -83,7 +84,7 @@ module RusticiSoftwareCloudV2
|
|
83
84
|
return nil unless attributes.is_a?(Hash)
|
84
85
|
self.class.swagger_types.each_pair do |key, type|
|
85
86
|
if type =~ /\AArray<(.*)>/i
|
86
|
-
# check to ensure the input is an array given that the
|
87
|
+
# check to ensure the input is an array given that the attribute
|
87
88
|
# is documented as an array but the input is not
|
88
89
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
89
90
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -179,5 +180,6 @@ module RusticiSoftwareCloudV2
|
|
179
180
|
value
|
180
181
|
end
|
181
182
|
end
|
183
|
+
|
182
184
|
end
|
183
185
|
end
|
@@ -75,6 +75,7 @@ module RusticiSoftwareCloudV2
|
|
75
75
|
true
|
76
76
|
end
|
77
77
|
|
78
|
+
|
78
79
|
# Checks equality by comparing each attribute.
|
79
80
|
# @param [Object] Object to be compared
|
80
81
|
def ==(o)
|
@@ -103,7 +104,7 @@ module RusticiSoftwareCloudV2
|
|
103
104
|
return nil unless attributes.is_a?(Hash)
|
104
105
|
self.class.swagger_types.each_pair do |key, type|
|
105
106
|
if type =~ /\AArray<(.*)>/i
|
106
|
-
# check to ensure the input is an array given that the
|
107
|
+
# check to ensure the input is an array given that the attribute
|
107
108
|
# is documented as an array but the input is not
|
108
109
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
110
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -199,5 +200,6 @@ module RusticiSoftwareCloudV2
|
|
199
200
|
value
|
200
201
|
end
|
201
202
|
end
|
203
|
+
|
202
204
|
end
|
203
205
|
end
|
@@ -0,0 +1,196 @@
|
|
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 UpdateApplicationSchema
|
17
|
+
# The new name of the application.
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# Whether or not the application is allowed to perform deletion operations.
|
21
|
+
attr_accessor :allow_delete
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'name' => :'name',
|
27
|
+
:'allow_delete' => :'allowDelete'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.swagger_types
|
33
|
+
{
|
34
|
+
:'name' => :'String',
|
35
|
+
:'allow_delete' => :'BOOLEAN'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
+
|
47
|
+
if attributes.has_key?(:'name')
|
48
|
+
self.name = attributes[:'name']
|
49
|
+
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'allowDelete')
|
52
|
+
self.allow_delete = attributes[:'allowDelete']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
invalid_properties
|
61
|
+
end
|
62
|
+
|
63
|
+
# Check to see if the all the properties in the model are valid
|
64
|
+
# @return true if the model is valid
|
65
|
+
def valid?
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
69
|
+
|
70
|
+
# Checks equality by comparing each attribute.
|
71
|
+
# @param [Object] Object to be compared
|
72
|
+
def ==(o)
|
73
|
+
return true if self.equal?(o)
|
74
|
+
self.class == o.class &&
|
75
|
+
name == o.name &&
|
76
|
+
allow_delete == o.allow_delete
|
77
|
+
end
|
78
|
+
|
79
|
+
# @see the `==` method
|
80
|
+
# @param [Object] Object to be compared
|
81
|
+
def eql?(o)
|
82
|
+
self == o
|
83
|
+
end
|
84
|
+
|
85
|
+
# Calculates hash code according to all attributes.
|
86
|
+
# @return [Fixnum] Hash code
|
87
|
+
def hash
|
88
|
+
[name, allow_delete].hash
|
89
|
+
end
|
90
|
+
|
91
|
+
# Builds the object from hash
|
92
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
93
|
+
# @return [Object] Returns the model itself
|
94
|
+
def build_from_hash(attributes)
|
95
|
+
return nil unless attributes.is_a?(Hash)
|
96
|
+
self.class.swagger_types.each_pair do |key, type|
|
97
|
+
if type =~ /\AArray<(.*)>/i
|
98
|
+
# check to ensure the input is an array given that the attribute
|
99
|
+
# is documented as an array but the input is not
|
100
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
101
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
102
|
+
end
|
103
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
104
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
105
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
106
|
+
end
|
107
|
+
|
108
|
+
self
|
109
|
+
end
|
110
|
+
|
111
|
+
# Deserializes the data based on type
|
112
|
+
# @param string type Data type
|
113
|
+
# @param string value Value to be deserialized
|
114
|
+
# @return [Object] Deserialized data
|
115
|
+
def _deserialize(type, value)
|
116
|
+
case type.to_sym
|
117
|
+
when :DateTime
|
118
|
+
DateTime.parse(value)
|
119
|
+
when :Date
|
120
|
+
Date.parse(value)
|
121
|
+
when :String
|
122
|
+
value.to_s
|
123
|
+
when :Integer
|
124
|
+
value.to_i
|
125
|
+
when :Float
|
126
|
+
value.to_f
|
127
|
+
when :BOOLEAN
|
128
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
129
|
+
true
|
130
|
+
else
|
131
|
+
false
|
132
|
+
end
|
133
|
+
when :Object
|
134
|
+
# generic object (usually a Hash), return directly
|
135
|
+
value
|
136
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
137
|
+
inner_type = Regexp.last_match[:inner_type]
|
138
|
+
value.map { |v| _deserialize(inner_type, v) }
|
139
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
140
|
+
k_type = Regexp.last_match[:k_type]
|
141
|
+
v_type = Regexp.last_match[:v_type]
|
142
|
+
{}.tap do |hash|
|
143
|
+
value.each do |k, v|
|
144
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
else # model
|
148
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
149
|
+
temp_model.build_from_hash(value)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# Returns the string representation of the object
|
154
|
+
# @return [String] String presentation of the object
|
155
|
+
def to_s
|
156
|
+
to_hash.to_s
|
157
|
+
end
|
158
|
+
|
159
|
+
# to_body is an alias to to_hash (backward compatibility)
|
160
|
+
# @return [Hash] Returns the object in the form of hash
|
161
|
+
def to_body
|
162
|
+
to_hash
|
163
|
+
end
|
164
|
+
|
165
|
+
# Returns the object in the form of hash
|
166
|
+
# @return [Hash] Returns the object in the form of hash
|
167
|
+
def to_hash
|
168
|
+
hash = {}
|
169
|
+
self.class.attribute_map.each_pair do |attr, param|
|
170
|
+
value = self.send(attr)
|
171
|
+
next if value.nil?
|
172
|
+
hash[param] = _to_hash(value)
|
173
|
+
end
|
174
|
+
hash
|
175
|
+
end
|
176
|
+
|
177
|
+
# Outputs non-array value in the form of hash
|
178
|
+
# For object, use to_hash. Otherwise, just return the value
|
179
|
+
# @param [Object] value Any valid value
|
180
|
+
# @return [Hash] Returns the value in the form of hash
|
181
|
+
def _to_hash(value)
|
182
|
+
if value.is_a?(Array)
|
183
|
+
value.compact.map { |v| _to_hash(v) }
|
184
|
+
elsif value.is_a?(Hash)
|
185
|
+
{}.tap do |hash|
|
186
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
187
|
+
end
|
188
|
+
elsif value.respond_to? :to_hash
|
189
|
+
value.to_hash
|
190
|
+
else
|
191
|
+
value
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
end
|
196
|
+
end
|
@@ -23,7 +23,10 @@ module RusticiSoftwareCloudV2
|
|
23
23
|
# The maximum number of registrations that can be created for this dispatch, where '0' means 'unlimited registrations'.
|
24
24
|
attr_accessor :registration_cap
|
25
25
|
|
26
|
-
# The
|
26
|
+
# The current number of registrations that have been created for this dispatch.
|
27
|
+
attr_accessor :registration_count
|
28
|
+
|
29
|
+
# The ISO 8601 TimeStamp (defaults to UTC) after which this dispatch will be disabled. An empty value will represent no expiration date.
|
27
30
|
attr_accessor :expiration_date
|
28
31
|
|
29
32
|
# If true, then this dispatch can be launched.
|
@@ -44,6 +47,7 @@ module RusticiSoftwareCloudV2
|
|
44
47
|
:'allow_new_registrations' => :'allowNewRegistrations',
|
45
48
|
:'instanced' => :'instanced',
|
46
49
|
:'registration_cap' => :'registrationCap',
|
50
|
+
:'registration_count' => :'registrationCount',
|
47
51
|
:'expiration_date' => :'expirationDate',
|
48
52
|
:'enabled' => :'enabled',
|
49
53
|
:'email' => :'email',
|
@@ -58,6 +62,7 @@ module RusticiSoftwareCloudV2
|
|
58
62
|
:'allow_new_registrations' => :'BOOLEAN',
|
59
63
|
:'instanced' => :'BOOLEAN',
|
60
64
|
:'registration_cap' => :'Integer',
|
65
|
+
:'registration_count' => :'Integer',
|
61
66
|
:'expiration_date' => :'DateTime',
|
62
67
|
:'enabled' => :'BOOLEAN',
|
63
68
|
:'email' => :'String',
|
@@ -86,6 +91,10 @@ module RusticiSoftwareCloudV2
|
|
86
91
|
self.registration_cap = attributes[:'registrationCap']
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.has_key?(:'registrationCount')
|
95
|
+
self.registration_count = attributes[:'registrationCount']
|
96
|
+
end
|
97
|
+
|
89
98
|
if attributes.has_key?(:'expirationDate')
|
90
99
|
self.expiration_date = attributes[:'expirationDate']
|
91
100
|
end
|
@@ -120,6 +129,7 @@ module RusticiSoftwareCloudV2
|
|
120
129
|
true
|
121
130
|
end
|
122
131
|
|
132
|
+
|
123
133
|
# Checks equality by comparing each attribute.
|
124
134
|
# @param [Object] Object to be compared
|
125
135
|
def ==(o)
|
@@ -128,6 +138,7 @@ module RusticiSoftwareCloudV2
|
|
128
138
|
allow_new_registrations == o.allow_new_registrations &&
|
129
139
|
instanced == o.instanced &&
|
130
140
|
registration_cap == o.registration_cap &&
|
141
|
+
registration_count == o.registration_count &&
|
131
142
|
expiration_date == o.expiration_date &&
|
132
143
|
enabled == o.enabled &&
|
133
144
|
email == o.email &&
|
@@ -144,7 +155,7 @@ module RusticiSoftwareCloudV2
|
|
144
155
|
# Calculates hash code according to all attributes.
|
145
156
|
# @return [Fixnum] Hash code
|
146
157
|
def hash
|
147
|
-
[allow_new_registrations, instanced, registration_cap, expiration_date, enabled, email, notes, post_back].hash
|
158
|
+
[allow_new_registrations, instanced, registration_cap, registration_count, expiration_date, enabled, email, notes, post_back].hash
|
148
159
|
end
|
149
160
|
|
150
161
|
# Builds the object from hash
|
@@ -154,7 +165,7 @@ module RusticiSoftwareCloudV2
|
|
154
165
|
return nil unless attributes.is_a?(Hash)
|
155
166
|
self.class.swagger_types.each_pair do |key, type|
|
156
167
|
if type =~ /\AArray<(.*)>/i
|
157
|
-
# check to ensure the input is an array given that the
|
168
|
+
# check to ensure the input is an array given that the attribute
|
158
169
|
# is documented as an array but the input is not
|
159
170
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
160
171
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -250,5 +261,6 @@ module RusticiSoftwareCloudV2
|
|
250
261
|
value
|
251
262
|
end
|
252
263
|
end
|
264
|
+
|
253
265
|
end
|
254
266
|
end
|
@@ -17,6 +17,7 @@ module RusticiSoftwareCloudV2
|
|
17
17
|
# A list of user invitation objects.
|
18
18
|
attr_accessor :user_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
|