rustici_software_cloud_v2 3.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/lib/rustici_software_cloud_v2/api/about_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +19 -19
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +2 -2
- data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +4 -4
- data/lib/rustici_software_cloud_v2/api/course_api.rb +46 -37
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +59 -47
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +28 -22
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +6 -6
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +1 -1
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +27 -27
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +3 -3
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +10 -10
- data/lib/rustici_software_cloud_v2/api_client.rb +2 -2
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_info_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/application_token.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/connector_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +25 -5
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +2 -2
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +25 -5
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/{zoomi_company_id.rb → destination_info_id_schema.rb} +19 -9
- data/lib/rustici_software_cloud_v2/models/{zoomi_course_options_schema.rb → destination_info_list_schema.rb} +19 -25
- data/lib/rustici_software_cloud_v2/models/destination_info_schema.rb +263 -0
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +5 -15
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +2 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +12 -2
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/{credential_created_schema.rb → invitation_email_update_schema.rb} +17 -46
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +16 -5
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/paginated_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/preview_launch_link_request_schema.rb +239 -0
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +26 -6
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +3 -3
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +15 -16
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +4 -6
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/response_error.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +1 -1
- data/lib/rustici_software_cloud_v2/version.rb +1 -1
- data/lib/rustici_software_cloud_v2.rb +5 -4
- data/rustici_software_cloud_v2.gemspec +9 -13
- data/spec/api_client_spec.rb +1 -1
- metadata +33 -121
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +0 -538
|
@@ -13,24 +13,26 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
module RusticiSoftwareCloudV2
|
|
16
|
-
class
|
|
17
|
-
|
|
16
|
+
class DestinationInfoListSchema
|
|
17
|
+
#
|
|
18
|
+
attr_accessor :destinations
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
# Token for getting the next set of results, from the prior set of results.
|
|
21
|
+
attr_accessor :more
|
|
20
22
|
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
24
|
def self.attribute_map
|
|
23
25
|
{
|
|
24
|
-
:'
|
|
25
|
-
:'
|
|
26
|
+
:'destinations' => :'destinations',
|
|
27
|
+
:'more' => :'more'
|
|
26
28
|
}
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
# Attribute type mapping.
|
|
30
32
|
def self.swagger_types
|
|
31
33
|
{
|
|
32
|
-
:'
|
|
33
|
-
:'
|
|
34
|
+
:'destinations' => :'Array<DestinationInfoIdSchema>',
|
|
35
|
+
:'more' => :'String'
|
|
34
36
|
}
|
|
35
37
|
end
|
|
36
38
|
|
|
@@ -42,12 +44,14 @@ module RusticiSoftwareCloudV2
|
|
|
42
44
|
# convert string to symbol for hash key
|
|
43
45
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
44
46
|
|
|
45
|
-
if attributes.has_key?(:'
|
|
46
|
-
|
|
47
|
+
if attributes.has_key?(:'destinations')
|
|
48
|
+
if (value = attributes[:'destinations']).is_a?(Array)
|
|
49
|
+
self.destinations = value
|
|
50
|
+
end
|
|
47
51
|
end
|
|
48
52
|
|
|
49
|
-
if attributes.has_key?(:'
|
|
50
|
-
self.
|
|
53
|
+
if attributes.has_key?(:'more')
|
|
54
|
+
self.more = attributes[:'more']
|
|
51
55
|
end
|
|
52
56
|
end
|
|
53
57
|
|
|
@@ -55,22 +59,12 @@ module RusticiSoftwareCloudV2
|
|
|
55
59
|
# @return Array for valid properties with the reasons
|
|
56
60
|
def list_invalid_properties
|
|
57
61
|
invalid_properties = Array.new
|
|
58
|
-
if @nti.nil?
|
|
59
|
-
invalid_properties.push('invalid value for "nti", nti cannot be nil.')
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
if @cta.nil?
|
|
63
|
-
invalid_properties.push('invalid value for "cta", cta cannot be nil.')
|
|
64
|
-
end
|
|
65
|
-
|
|
66
62
|
invalid_properties
|
|
67
63
|
end
|
|
68
64
|
|
|
69
65
|
# Check to see if the all the properties in the model are valid
|
|
70
66
|
# @return true if the model is valid
|
|
71
67
|
def valid?
|
|
72
|
-
return false if @nti.nil?
|
|
73
|
-
return false if @cta.nil?
|
|
74
68
|
true
|
|
75
69
|
end
|
|
76
70
|
|
|
@@ -80,8 +74,8 @@ module RusticiSoftwareCloudV2
|
|
|
80
74
|
def ==(o)
|
|
81
75
|
return true if self.equal?(o)
|
|
82
76
|
self.class == o.class &&
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
destinations == o.destinations &&
|
|
78
|
+
more == o.more
|
|
85
79
|
end
|
|
86
80
|
|
|
87
81
|
# @see the `==` method
|
|
@@ -91,9 +85,9 @@ module RusticiSoftwareCloudV2
|
|
|
91
85
|
end
|
|
92
86
|
|
|
93
87
|
# Calculates hash code according to all attributes.
|
|
94
|
-
# @return [
|
|
88
|
+
# @return [Integer] Hash code
|
|
95
89
|
def hash
|
|
96
|
-
[
|
|
90
|
+
[destinations, more].hash
|
|
97
91
|
end
|
|
98
92
|
|
|
99
93
|
# Builds the object from hash
|
|
@@ -0,0 +1,263 @@
|
|
|
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
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
module RusticiSoftwareCloudV2
|
|
16
|
+
class DestinationInfoSchema
|
|
17
|
+
# The destination's name.
|
|
18
|
+
attr_accessor :name
|
|
19
|
+
|
|
20
|
+
attr_accessor :dispatch_count
|
|
21
|
+
|
|
22
|
+
attr_accessor :updated
|
|
23
|
+
|
|
24
|
+
attr_accessor :created
|
|
25
|
+
|
|
26
|
+
# Optional array of tags.
|
|
27
|
+
attr_accessor :tags
|
|
28
|
+
|
|
29
|
+
# SCORM Cloud user e-mail associated with this destination. If this is not provided, it will default to the owner of the Realm.
|
|
30
|
+
attr_accessor :email
|
|
31
|
+
|
|
32
|
+
# Any provided notes about this Destination
|
|
33
|
+
attr_accessor :notes
|
|
34
|
+
|
|
35
|
+
attr_accessor :launch_auth
|
|
36
|
+
|
|
37
|
+
attr_accessor :lti13_data
|
|
38
|
+
|
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'name' => :'name',
|
|
43
|
+
:'dispatch_count' => :'dispatchCount',
|
|
44
|
+
:'updated' => :'updated',
|
|
45
|
+
:'created' => :'created',
|
|
46
|
+
:'tags' => :'tags',
|
|
47
|
+
:'email' => :'email',
|
|
48
|
+
:'notes' => :'notes',
|
|
49
|
+
:'launch_auth' => :'launchAuth',
|
|
50
|
+
:'lti13_data' => :'lti13Data'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute type mapping.
|
|
55
|
+
def self.swagger_types
|
|
56
|
+
{
|
|
57
|
+
:'name' => :'String',
|
|
58
|
+
:'dispatch_count' => :'Integer',
|
|
59
|
+
:'updated' => :'DateTime',
|
|
60
|
+
:'created' => :'DateTime',
|
|
61
|
+
:'tags' => :'Array<String>',
|
|
62
|
+
:'email' => :'String',
|
|
63
|
+
:'notes' => :'String',
|
|
64
|
+
:'launch_auth' => :'LaunchAuthSchema',
|
|
65
|
+
:'lti13_data' => :'Lti13PlatformConfigurationSchema'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Initializes the object
|
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
71
|
+
def initialize(attributes = {})
|
|
72
|
+
return unless attributes.is_a?(Hash)
|
|
73
|
+
|
|
74
|
+
# convert string to symbol for hash key
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
76
|
+
|
|
77
|
+
if attributes.has_key?(:'name')
|
|
78
|
+
self.name = attributes[:'name']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'dispatchCount')
|
|
82
|
+
self.dispatch_count = attributes[:'dispatchCount']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.has_key?(:'updated')
|
|
86
|
+
self.updated = attributes[:'updated']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.has_key?(:'created')
|
|
90
|
+
self.created = attributes[:'created']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.has_key?(:'tags')
|
|
94
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
95
|
+
self.tags = value
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.has_key?(:'email')
|
|
100
|
+
self.email = attributes[:'email']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.has_key?(:'notes')
|
|
104
|
+
self.notes = attributes[:'notes']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.has_key?(:'launchAuth')
|
|
108
|
+
self.launch_auth = attributes[:'launchAuth']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.has_key?(:'lti13Data')
|
|
112
|
+
self.lti13_data = attributes[:'lti13Data']
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
117
|
+
# @return Array for valid properties with the reasons
|
|
118
|
+
def list_invalid_properties
|
|
119
|
+
invalid_properties = Array.new
|
|
120
|
+
invalid_properties
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Check to see if the all the properties in the model are valid
|
|
124
|
+
# @return true if the model is valid
|
|
125
|
+
def valid?
|
|
126
|
+
true
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
# Checks equality by comparing each attribute.
|
|
131
|
+
# @param [Object] Object to be compared
|
|
132
|
+
def ==(o)
|
|
133
|
+
return true if self.equal?(o)
|
|
134
|
+
self.class == o.class &&
|
|
135
|
+
name == o.name &&
|
|
136
|
+
dispatch_count == o.dispatch_count &&
|
|
137
|
+
updated == o.updated &&
|
|
138
|
+
created == o.created &&
|
|
139
|
+
tags == o.tags &&
|
|
140
|
+
email == o.email &&
|
|
141
|
+
notes == o.notes &&
|
|
142
|
+
launch_auth == o.launch_auth &&
|
|
143
|
+
lti13_data == o.lti13_data
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# @see the `==` method
|
|
147
|
+
# @param [Object] Object to be compared
|
|
148
|
+
def eql?(o)
|
|
149
|
+
self == o
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Calculates hash code according to all attributes.
|
|
153
|
+
# @return [Integer] Hash code
|
|
154
|
+
def hash
|
|
155
|
+
[name, dispatch_count, updated, created, tags, email, notes, launch_auth, lti13_data].hash
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Builds the object from hash
|
|
159
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
160
|
+
# @return [Object] Returns the model itself
|
|
161
|
+
def build_from_hash(attributes)
|
|
162
|
+
return nil unless attributes.is_a?(Hash)
|
|
163
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
164
|
+
if type =~ /\AArray<(.*)>/i
|
|
165
|
+
# check to ensure the input is an array given that the attribute
|
|
166
|
+
# is documented as an array but the input is not
|
|
167
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
168
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
169
|
+
end
|
|
170
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
171
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
172
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
self
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Deserializes the data based on type
|
|
179
|
+
# @param string type Data type
|
|
180
|
+
# @param string value Value to be deserialized
|
|
181
|
+
# @return [Object] Deserialized data
|
|
182
|
+
def _deserialize(type, value)
|
|
183
|
+
case type.to_sym
|
|
184
|
+
when :DateTime
|
|
185
|
+
DateTime.parse(value)
|
|
186
|
+
when :Date
|
|
187
|
+
Date.parse(value)
|
|
188
|
+
when :String
|
|
189
|
+
value.to_s
|
|
190
|
+
when :Integer
|
|
191
|
+
value.to_i
|
|
192
|
+
when :Float
|
|
193
|
+
value.to_f
|
|
194
|
+
when :BOOLEAN
|
|
195
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
196
|
+
true
|
|
197
|
+
else
|
|
198
|
+
false
|
|
199
|
+
end
|
|
200
|
+
when :Object
|
|
201
|
+
# generic object (usually a Hash), return directly
|
|
202
|
+
value
|
|
203
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
204
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
205
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
206
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
207
|
+
k_type = Regexp.last_match[:k_type]
|
|
208
|
+
v_type = Regexp.last_match[:v_type]
|
|
209
|
+
{}.tap do |hash|
|
|
210
|
+
value.each do |k, v|
|
|
211
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
else # model
|
|
215
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
|
216
|
+
temp_model.build_from_hash(value)
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Returns the string representation of the object
|
|
221
|
+
# @return [String] String presentation of the object
|
|
222
|
+
def to_s
|
|
223
|
+
to_hash.to_s
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
|
228
|
+
def to_body
|
|
229
|
+
to_hash
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Returns the object in the form of hash
|
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
|
234
|
+
def to_hash
|
|
235
|
+
hash = {}
|
|
236
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
237
|
+
value = self.send(attr)
|
|
238
|
+
next if value.nil?
|
|
239
|
+
hash[param] = _to_hash(value)
|
|
240
|
+
end
|
|
241
|
+
hash
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Outputs non-array value in the form of hash
|
|
245
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
246
|
+
# @param [Object] value Any valid value
|
|
247
|
+
# @return [Hash] Returns the value in the form of hash
|
|
248
|
+
def _to_hash(value)
|
|
249
|
+
if value.is_a?(Array)
|
|
250
|
+
value.compact.map { |v| _to_hash(v) }
|
|
251
|
+
elsif value.is_a?(Hash)
|
|
252
|
+
{}.tap do |hash|
|
|
253
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
254
|
+
end
|
|
255
|
+
elsif value.respond_to? :to_hash
|
|
256
|
+
value.to_hash
|
|
257
|
+
else
|
|
258
|
+
value
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
end
|
|
263
|
+
end
|
|
@@ -17,22 +17,17 @@ module RusticiSoftwareCloudV2
|
|
|
17
17
|
#
|
|
18
18
|
attr_accessor :destinations
|
|
19
19
|
|
|
20
|
-
# Token for getting the next set of results, from the prior set of results.
|
|
21
|
-
attr_accessor :more
|
|
22
|
-
|
|
23
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
21
|
def self.attribute_map
|
|
25
22
|
{
|
|
26
|
-
:'destinations' => :'destinations'
|
|
27
|
-
:'more' => :'more'
|
|
23
|
+
:'destinations' => :'destinations'
|
|
28
24
|
}
|
|
29
25
|
end
|
|
30
26
|
|
|
31
27
|
# Attribute type mapping.
|
|
32
28
|
def self.swagger_types
|
|
33
29
|
{
|
|
34
|
-
:'destinations' => :'Array<DestinationIdSchema>'
|
|
35
|
-
:'more' => :'String'
|
|
30
|
+
:'destinations' => :'Array<DestinationIdSchema>'
|
|
36
31
|
}
|
|
37
32
|
end
|
|
38
33
|
|
|
@@ -49,10 +44,6 @@ module RusticiSoftwareCloudV2
|
|
|
49
44
|
self.destinations = value
|
|
50
45
|
end
|
|
51
46
|
end
|
|
52
|
-
|
|
53
|
-
if attributes.has_key?(:'more')
|
|
54
|
-
self.more = attributes[:'more']
|
|
55
|
-
end
|
|
56
47
|
end
|
|
57
48
|
|
|
58
49
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -74,8 +65,7 @@ module RusticiSoftwareCloudV2
|
|
|
74
65
|
def ==(o)
|
|
75
66
|
return true if self.equal?(o)
|
|
76
67
|
self.class == o.class &&
|
|
77
|
-
destinations == o.destinations
|
|
78
|
-
more == o.more
|
|
68
|
+
destinations == o.destinations
|
|
79
69
|
end
|
|
80
70
|
|
|
81
71
|
# @see the `==` method
|
|
@@ -85,9 +75,9 @@ module RusticiSoftwareCloudV2
|
|
|
85
75
|
end
|
|
86
76
|
|
|
87
77
|
# Calculates hash code according to all attributes.
|
|
88
|
-
# @return [
|
|
78
|
+
# @return [Integer] Hash code
|
|
89
79
|
def hash
|
|
90
|
-
[destinations
|
|
80
|
+
[destinations].hash
|
|
91
81
|
end
|
|
92
82
|
|
|
93
83
|
# Builds the object from hash
|
|
@@ -141,7 +141,7 @@ module RusticiSoftwareCloudV2
|
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
# Calculates hash code according to all attributes.
|
|
144
|
-
# @return [
|
|
144
|
+
# @return [Integer] Hash code
|
|
145
145
|
def hash
|
|
146
146
|
[name, updated, created, tags, email, notes, launch_auth, lti13_data].hash
|
|
147
147
|
end
|
|
@@ -16,6 +16,7 @@ module RusticiSoftwareCloudV2
|
|
|
16
16
|
class DispatchRegistrationCountSchema
|
|
17
17
|
attr_accessor :registration_count
|
|
18
18
|
|
|
19
|
+
# The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset.
|
|
19
20
|
attr_accessor :last_reset_date
|
|
20
21
|
|
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -81,7 +82,7 @@ module RusticiSoftwareCloudV2
|
|
|
81
82
|
end
|
|
82
83
|
|
|
83
84
|
# Calculates hash code according to all attributes.
|
|
84
|
-
# @return [
|
|
85
|
+
# @return [Integer] Hash code
|
|
85
86
|
def hash
|
|
86
87
|
[registration_count, last_reset_date].hash
|
|
87
88
|
end
|
|
@@ -45,6 +45,9 @@ module RusticiSoftwareCloudV2
|
|
|
45
45
|
# The current number of registrations that have been created for this dispatch.
|
|
46
46
|
attr_accessor :registration_count
|
|
47
47
|
|
|
48
|
+
# The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset.
|
|
49
|
+
attr_accessor :registration_reset_date
|
|
50
|
+
|
|
48
51
|
# The ISO 8601 TimeStamp (defaults to UTC) after which this dispatch will be disabled. An empty value will represent no expiration date.
|
|
49
52
|
attr_accessor :expiration_date
|
|
50
53
|
|
|
@@ -71,6 +74,7 @@ module RusticiSoftwareCloudV2
|
|
|
71
74
|
:'instanced' => :'instanced',
|
|
72
75
|
:'registration_cap' => :'registrationCap',
|
|
73
76
|
:'registration_count' => :'registrationCount',
|
|
77
|
+
:'registration_reset_date' => :'registrationResetDate',
|
|
74
78
|
:'expiration_date' => :'expirationDate',
|
|
75
79
|
:'tags' => :'tags',
|
|
76
80
|
:'email' => :'email',
|
|
@@ -92,6 +96,7 @@ module RusticiSoftwareCloudV2
|
|
|
92
96
|
:'instanced' => :'BOOLEAN',
|
|
93
97
|
:'registration_cap' => :'Integer',
|
|
94
98
|
:'registration_count' => :'Integer',
|
|
99
|
+
:'registration_reset_date' => :'DateTime',
|
|
95
100
|
:'expiration_date' => :'DateTime',
|
|
96
101
|
:'tags' => :'Array<String>',
|
|
97
102
|
:'email' => :'String',
|
|
@@ -151,6 +156,10 @@ module RusticiSoftwareCloudV2
|
|
|
151
156
|
self.registration_count = attributes[:'registrationCount']
|
|
152
157
|
end
|
|
153
158
|
|
|
159
|
+
if attributes.has_key?(:'registrationResetDate')
|
|
160
|
+
self.registration_reset_date = attributes[:'registrationResetDate']
|
|
161
|
+
end
|
|
162
|
+
|
|
154
163
|
if attributes.has_key?(:'expirationDate')
|
|
155
164
|
self.expiration_date = attributes[:'expirationDate']
|
|
156
165
|
end
|
|
@@ -200,6 +209,7 @@ module RusticiSoftwareCloudV2
|
|
|
200
209
|
instanced == o.instanced &&
|
|
201
210
|
registration_cap == o.registration_cap &&
|
|
202
211
|
registration_count == o.registration_count &&
|
|
212
|
+
registration_reset_date == o.registration_reset_date &&
|
|
203
213
|
expiration_date == o.expiration_date &&
|
|
204
214
|
tags == o.tags &&
|
|
205
215
|
email == o.email &&
|
|
@@ -213,9 +223,9 @@ module RusticiSoftwareCloudV2
|
|
|
213
223
|
end
|
|
214
224
|
|
|
215
225
|
# Calculates hash code according to all attributes.
|
|
216
|
-
# @return [
|
|
226
|
+
# @return [Integer] Hash code
|
|
217
227
|
def hash
|
|
218
|
-
[destination_id, destination_name, course_id, course_title, updated, created, allow_new_registrations, enabled, instanced, registration_cap, registration_count, expiration_date, tags, email, notes].hash
|
|
228
|
+
[destination_id, destination_name, course_id, course_title, updated, created, allow_new_registrations, enabled, instanced, registration_cap, registration_count, registration_reset_date, expiration_date, tags, email, notes].hash
|
|
219
229
|
end
|
|
220
230
|
|
|
221
231
|
# Builds the object from hash
|
|
@@ -91,7 +91,7 @@ module RusticiSoftwareCloudV2
|
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# Calculates hash code according to all attributes.
|
|
94
|
-
# @return [
|
|
94
|
+
# @return [Integer] Hash code
|
|
95
95
|
def hash
|
|
96
96
|
[fetch_request, media_file_reference_request, connector_reference_request].hash
|
|
97
97
|
end
|
|
@@ -104,7 +104,7 @@ module RusticiSoftwareCloudV2
|
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
# Calculates hash code according to all attributes.
|
|
107
|
-
# @return [
|
|
107
|
+
# @return [Integer] Hash code
|
|
108
108
|
def hash
|
|
109
109
|
[web_path_to_course, parser_warnings, course_languages, course].hash
|
|
110
110
|
end
|