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.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/lib/rustici_software_cloud_v2/api/about_api.rb +1 -1
  4. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +19 -19
  5. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +2 -2
  6. data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +4 -4
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +46 -37
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +59 -47
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +28 -22
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +6 -6
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +1 -1
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +27 -27
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +3 -3
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +10 -10
  15. data/lib/rustici_software_cloud_v2/api_client.rb +2 -2
  16. data/lib/rustici_software_cloud_v2/models/about_schema.rb +1 -1
  17. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +1 -1
  18. data/lib/rustici_software_cloud_v2/models/application_info_list_schema.rb +1 -1
  19. data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +1 -1
  20. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +1 -1
  21. data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +1 -1
  22. data/lib/rustici_software_cloud_v2/models/application_schema.rb +1 -1
  23. data/lib/rustici_software_cloud_v2/models/application_token.rb +1 -1
  24. data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +1 -1
  25. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +1 -1
  26. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +1 -1
  27. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +1 -1
  28. data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +1 -1
  29. data/lib/rustici_software_cloud_v2/models/connector_schema.rb +1 -1
  30. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +1 -1
  31. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +1 -1
  32. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +1 -1
  33. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +1 -1
  34. data/lib/rustici_software_cloud_v2/models/course_schema.rb +1 -1
  35. data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +1 -1
  36. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +1 -1
  37. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +1 -1
  38. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +1 -1
  39. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +25 -5
  40. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +2 -2
  41. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +1 -1
  42. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +1 -1
  43. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +1 -1
  44. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +25 -5
  45. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +1 -1
  46. data/lib/rustici_software_cloud_v2/models/{zoomi_company_id.rb → destination_info_id_schema.rb} +19 -9
  47. data/lib/rustici_software_cloud_v2/models/{zoomi_course_options_schema.rb → destination_info_list_schema.rb} +19 -25
  48. data/lib/rustici_software_cloud_v2/models/destination_info_schema.rb +263 -0
  49. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +5 -15
  50. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +1 -1
  51. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +1 -1
  52. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +1 -1
  53. data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +1 -1
  54. data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +1 -1
  55. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +2 -1
  56. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +12 -2
  57. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +1 -1
  58. data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +1 -1
  59. data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +1 -1
  60. data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +1 -1
  61. data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +1 -1
  62. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +1 -1
  63. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +1 -1
  64. data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +1 -1
  65. data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +1 -1
  66. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +1 -1
  67. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +1 -1
  68. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +1 -1
  69. data/lib/rustici_software_cloud_v2/models/{credential_created_schema.rb → invitation_email_update_schema.rb} +17 -46
  70. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +1 -1
  71. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +1 -1
  72. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +1 -1
  73. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +1 -1
  74. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +1 -1
  75. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +1 -1
  76. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +1 -1
  77. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +16 -5
  78. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +1 -1
  79. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +1 -1
  80. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +1 -1
  81. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +1 -1
  82. data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +1 -1
  83. data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +1 -1
  84. data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +1 -1
  85. data/lib/rustici_software_cloud_v2/models/message_schema.rb +1 -1
  86. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +1 -1
  87. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +1 -1
  88. data/lib/rustici_software_cloud_v2/models/paginated_list.rb +1 -1
  89. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +1 -1
  90. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +1 -1
  91. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +1 -1
  92. data/lib/rustici_software_cloud_v2/models/preview_launch_link_request_schema.rb +239 -0
  93. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +1 -1
  94. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +26 -6
  95. data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +3 -3
  96. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +1 -1
  97. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +15 -16
  98. data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +4 -6
  99. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +1 -1
  100. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +1 -1
  101. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +1 -1
  102. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +1 -1
  103. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +1 -1
  104. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +1 -1
  105. data/lib/rustici_software_cloud_v2/models/response_error.rb +1 -1
  106. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +1 -1
  107. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +1 -1
  108. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +1 -1
  109. data/lib/rustici_software_cloud_v2/models/score_schema.rb +1 -1
  110. data/lib/rustici_software_cloud_v2/models/setting_item.rb +1 -1
  111. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +1 -1
  112. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +1 -1
  113. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +1 -1
  114. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +1 -1
  115. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +1 -1
  116. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +1 -1
  117. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +1 -1
  118. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +1 -1
  119. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +1 -1
  120. data/lib/rustici_software_cloud_v2/models/title_schema.rb +1 -1
  121. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +1 -1
  122. data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +1 -1
  123. data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +1 -1
  124. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +1 -1
  125. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +1 -1
  126. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +1 -1
  127. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +1 -1
  128. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +1 -1
  129. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +1 -1
  130. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +1 -1
  131. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +1 -1
  132. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +1 -1
  133. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +1 -1
  134. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +1 -1
  135. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +1 -1
  136. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +1 -1
  137. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +1 -1
  138. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +1 -1
  139. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +1 -1
  140. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +1 -1
  141. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +1 -1
  142. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +1 -1
  143. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +1 -1
  144. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +1 -1
  145. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +1 -1
  146. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +1 -1
  147. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +1 -1
  148. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +1 -1
  149. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +1 -1
  150. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +1 -1
  151. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +1 -1
  152. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +1 -1
  153. data/lib/rustici_software_cloud_v2/version.rb +1 -1
  154. data/lib/rustici_software_cloud_v2.rb +5 -4
  155. data/rustici_software_cloud_v2.gemspec +9 -13
  156. data/spec/api_client_spec.rb +1 -1
  157. metadata +33 -121
  158. 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 ZoomiCourseOptionsSchema
17
- attr_accessor :nti
16
+ class DestinationInfoListSchema
17
+ #
18
+ attr_accessor :destinations
18
19
 
19
- attr_accessor :cta
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
- :'nti' => :'nti',
25
- :'cta' => :'cta'
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
- :'nti' => :'String',
33
- :'cta' => :'String'
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?(:'nti')
46
- self.nti = attributes[:'nti']
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?(:'cta')
50
- self.cta = attributes[:'cta']
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
- nti == o.nti &&
84
- cta == o.cta
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 [Fixnum] Hash code
88
+ # @return [Integer] Hash code
95
89
  def hash
96
- [nti, cta].hash
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 [Fixnum] Hash code
78
+ # @return [Integer] Hash code
89
79
  def hash
90
- [destinations, more].hash
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 [Fixnum] Hash code
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
@@ -81,7 +81,7 @@ module RusticiSoftwareCloudV2
81
81
  end
82
82
 
83
83
  # Calculates hash code according to all attributes.
84
- # @return [Fixnum] Hash code
84
+ # @return [Integer] Hash code
85
85
  def hash
86
86
  [id, data].hash
87
87
  end
@@ -84,7 +84,7 @@ module RusticiSoftwareCloudV2
84
84
  end
85
85
 
86
86
  # Calculates hash code according to all attributes.
87
- # @return [Fixnum] Hash code
87
+ # @return [Integer] Hash code
88
88
  def hash
89
89
  [dispatches, more].hash
90
90
  end
@@ -73,7 +73,7 @@ module RusticiSoftwareCloudV2
73
73
  end
74
74
 
75
75
  # Calculates hash code according to all attributes.
76
- # @return [Fixnum] Hash code
76
+ # @return [Integer] Hash code
77
77
  def hash
78
78
  [target_link_uri].hash
79
79
  end
@@ -108,7 +108,7 @@ module RusticiSoftwareCloudV2
108
108
  end
109
109
 
110
110
  # Calculates hash code according to all attributes.
111
- # @return [Fixnum] Hash code
111
+ # @return [Integer] Hash code
112
112
  def hash
113
113
  [url, consumer_key, shared_secret].hash
114
114
  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 [Fixnum] Hash code
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 [Fixnum] Hash code
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
@@ -72,7 +72,7 @@ module RusticiSoftwareCloudV2
72
72
  end
73
73
 
74
74
  # Calculates hash code according to all attributes.
75
- # @return [Fixnum] Hash code
75
+ # @return [Integer] Hash code
76
76
  def hash
77
77
  [enabled].hash
78
78
  end
@@ -92,7 +92,7 @@ module RusticiSoftwareCloudV2
92
92
  end
93
93
 
94
94
  # Calculates hash code according to all attributes.
95
- # @return [Fixnum] Hash code
95
+ # @return [Integer] Hash code
96
96
  def hash
97
97
  [path, size, modified].hash
98
98
  end
@@ -74,7 +74,7 @@ module RusticiSoftwareCloudV2
74
74
  end
75
75
 
76
76
  # Calculates hash code according to all attributes.
77
- # @return [Fixnum] Hash code
77
+ # @return [Integer] Hash code
78
78
  def hash
79
79
  [files].hash
80
80
  end
@@ -94,7 +94,7 @@ module RusticiSoftwareCloudV2
94
94
  end
95
95
 
96
96
  # Calculates hash code according to all attributes.
97
- # @return [Fixnum] Hash code
97
+ # @return [Integer] Hash code
98
98
  def hash
99
99
  [fetch_url, destination].hash
100
100
  end
@@ -94,7 +94,7 @@ module RusticiSoftwareCloudV2
94
94
  end
95
95
 
96
96
  # Calculates hash code according to all attributes.
97
- # @return [Fixnum] Hash code
97
+ # @return [Integer] Hash code
98
98
  def hash
99
99
  [connector_id, connector_id_for_content, metadata_for_connector].hash
100
100
  end
@@ -100,7 +100,7 @@ module RusticiSoftwareCloudV2
100
100
  end
101
101
 
102
102
  # Calculates hash code according to all attributes.
103
- # @return [Fixnum] Hash code
103
+ # @return [Integer] Hash code
104
104
  def hash
105
105
  [url, content_type, media_file_metadata].hash
106
106
  end
@@ -107,7 +107,7 @@ module RusticiSoftwareCloudV2
107
107
  end
108
108
 
109
109
  # Calculates hash code according to all attributes.
110
- # @return [Fixnum] Hash code
110
+ # @return [Integer] Hash code
111
111
  def hash
112
112
  [job_id, status, message, import_result].hash
113
113
  end
@@ -103,7 +103,7 @@ module RusticiSoftwareCloudV2
103
103
  end
104
104
 
105
105
  # Calculates hash code according to all attributes.
106
- # @return [Fixnum] Hash code
106
+ # @return [Integer] Hash code
107
107
  def hash
108
108
  [url, content_type, media_file_metadata].hash
109
109
  end
@@ -91,7 +91,7 @@ module RusticiSoftwareCloudV2
91
91
  end
92
92
 
93
93
  # Calculates hash code according to all attributes.
94
- # @return [Fixnum] Hash code
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 [Fixnum] Hash code
107
+ # @return [Integer] Hash code
108
108
  def hash
109
109
  [web_path_to_course, parser_warnings, course_languages, course].hash
110
110
  end
@@ -77,7 +77,7 @@ module RusticiSoftwareCloudV2
77
77
  end
78
78
 
79
79
  # Calculates hash code according to all attributes.
80
- # @return [Fixnum] Hash code
80
+ # @return [Integer] Hash code
81
81
  def hash
82
82
  [result].hash
83
83
  end
@@ -101,7 +101,7 @@ module RusticiSoftwareCloudV2
101
101
  end
102
102
 
103
103
  # Calculates hash code according to all attributes.
104
- # @return [Fixnum] Hash code
104
+ # @return [Integer] Hash code
105
105
  def hash
106
106
  [subject, body, addresses].hash
107
107
  end