rustici_software_cloud_v2 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +5 -5
  4. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +14 -8
  5. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +2 -2
  6. data/lib/rustici_software_cloud_v2/api_client.rb +1 -1
  7. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +24 -4
  8. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +1 -1
  9. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +24 -4
  10. data/lib/rustici_software_cloud_v2/models/{credential_created_schema.rb → destination_info_id_schema.rb} +9 -39
  11. data/lib/rustici_software_cloud_v2/models/destination_info_list_schema.rb +198 -0
  12. data/lib/rustici_software_cloud_v2/models/destination_info_schema.rb +263 -0
  13. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +4 -14
  14. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -4
  15. data/lib/rustici_software_cloud_v2/models/preview_launch_link_request_schema.rb +239 -0
  16. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +1 -1
  17. data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +1 -1
  18. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +3 -3
  19. data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +3 -3
  20. data/lib/rustici_software_cloud_v2/version.rb +1 -1
  21. data/lib/rustici_software_cloud_v2.rb +4 -1
  22. metadata +6 -3
@@ -0,0 +1,239 @@
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 PreviewLaunchLinkRequestSchema
17
+ # Number of seconds from now this link will expire in. Defaults to 120s. Range 10s:300s
18
+ attr_accessor :expiry
19
+
20
+ # The URL the application should redirect to when the learner exits a course. Alternatively one of the following keywords can be used to redirect to: - `closer` - A page that automatically tries to close the browser tab/window - `blank` - A blank page - `message` - A page with a message about the course being complete If an empty string is specified, the configured setting will be used (default www.scorm.com). If an invalid url is specified, the Message.html page will be loaded.
21
+ attr_accessor :redirect_on_exit_url
22
+
23
+ # For SCORM, SCO identifier to override launch, overriding the normal sequencing.
24
+ attr_accessor :start_sco
25
+
26
+ # This parameter should specify a culture code. If specified, and supported, the navigation and alerts in the player will be displayed in the associated language. If not specified, the locale of the user’s browser will be used.
27
+ attr_accessor :culture
28
+
29
+ # A url pointing to custom CSS for the player to use.
30
+ attr_accessor :css_url
31
+
32
+ attr_accessor :additionalvalues
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'expiry' => :'expiry',
38
+ :'redirect_on_exit_url' => :'redirectOnExitUrl',
39
+ :'start_sco' => :'startSco',
40
+ :'culture' => :'culture',
41
+ :'css_url' => :'cssUrl',
42
+ :'additionalvalues' => :'additionalvalues'
43
+ }
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.swagger_types
48
+ {
49
+ :'expiry' => :'Integer',
50
+ :'redirect_on_exit_url' => :'String',
51
+ :'start_sco' => :'String',
52
+ :'culture' => :'String',
53
+ :'css_url' => :'String',
54
+ :'additionalvalues' => :'Array<ItemValuePairSchema>'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ return unless attributes.is_a?(Hash)
62
+
63
+ # convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
+
66
+ if attributes.has_key?(:'expiry')
67
+ self.expiry = attributes[:'expiry']
68
+ else
69
+ self.expiry = 120
70
+ end
71
+
72
+ if attributes.has_key?(:'redirectOnExitUrl')
73
+ self.redirect_on_exit_url = attributes[:'redirectOnExitUrl']
74
+ end
75
+
76
+ if attributes.has_key?(:'startSco')
77
+ self.start_sco = attributes[:'startSco']
78
+ end
79
+
80
+ if attributes.has_key?(:'culture')
81
+ self.culture = attributes[:'culture']
82
+ end
83
+
84
+ if attributes.has_key?(:'cssUrl')
85
+ self.css_url = attributes[:'cssUrl']
86
+ end
87
+
88
+ if attributes.has_key?(:'additionalvalues')
89
+ if (value = attributes[:'additionalvalues']).is_a?(Array)
90
+ self.additionalvalues = value
91
+ end
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ invalid_properties
100
+ end
101
+
102
+ # Check to see if the all the properties in the model are valid
103
+ # @return true if the model is valid
104
+ def valid?
105
+ true
106
+ end
107
+
108
+
109
+ # Checks equality by comparing each attribute.
110
+ # @param [Object] Object to be compared
111
+ def ==(o)
112
+ return true if self.equal?(o)
113
+ self.class == o.class &&
114
+ expiry == o.expiry &&
115
+ redirect_on_exit_url == o.redirect_on_exit_url &&
116
+ start_sco == o.start_sco &&
117
+ culture == o.culture &&
118
+ css_url == o.css_url &&
119
+ additionalvalues == o.additionalvalues
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Fixnum] Hash code
130
+ def hash
131
+ [expiry, redirect_on_exit_url, start_sco, culture, css_url, additionalvalues].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ self.class.swagger_types.each_pair do |key, type|
140
+ if type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the attribute
142
+ # is documented as an array but the input is not
143
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
144
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
145
+ end
146
+ elsif !attributes[self.class.attribute_map[key]].nil?
147
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
148
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
149
+ end
150
+
151
+ self
152
+ end
153
+
154
+ # Deserializes the data based on type
155
+ # @param string type Data type
156
+ # @param string value Value to be deserialized
157
+ # @return [Object] Deserialized data
158
+ def _deserialize(type, value)
159
+ case type.to_sym
160
+ when :DateTime
161
+ DateTime.parse(value)
162
+ when :Date
163
+ Date.parse(value)
164
+ when :String
165
+ value.to_s
166
+ when :Integer
167
+ value.to_i
168
+ when :Float
169
+ value.to_f
170
+ when :BOOLEAN
171
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
+ true
173
+ else
174
+ false
175
+ end
176
+ when :Object
177
+ # generic object (usually a Hash), return directly
178
+ value
179
+ when /\AArray<(?<inner_type>.+)>\z/
180
+ inner_type = Regexp.last_match[:inner_type]
181
+ value.map { |v| _deserialize(inner_type, v) }
182
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
+ k_type = Regexp.last_match[:k_type]
184
+ v_type = Regexp.last_match[:v_type]
185
+ {}.tap do |hash|
186
+ value.each do |k, v|
187
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
188
+ end
189
+ end
190
+ else # model
191
+ temp_model = RusticiSoftwareCloudV2.const_get(type).new
192
+ temp_model.build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ next if value.nil?
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+
238
+ end
239
+ end
@@ -20,7 +20,7 @@ module RusticiSoftwareCloudV2
20
20
  # Course Id for this Invitation.
21
21
  attr_accessor :course_id
22
22
 
23
- # If true, then new registrations can be created for this invitation.
23
+ # Determines if learners are allowed to launch the invitation. If false, the invitation is disabled and no new or existing learners are allowed to launch it.
24
24
  attr_accessor :allow_launch
25
25
 
26
26
  attr_accessor :invitation_email
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module RusticiSoftwareCloudV2
16
16
  class PrivateInvitationUpdateSchema
17
- # If true, then new registrations can be created for this invitation.
17
+ # Determines if learners are allowed to launch the invitation. If false, the invitation is disabled and no new or existing learners are allowed to launch it.
18
18
  attr_accessor :allow_launch
19
19
 
20
20
  attr_accessor :invitation_email
@@ -20,12 +20,12 @@ module RusticiSoftwareCloudV2
20
20
  # Course Id for this Invitation.
21
21
  attr_accessor :course_id
22
22
 
23
- # If true, then new registrations can be created for this invitation.
23
+ # Determines if learners are allowed to launch the invitation. If false, the invitation is disabled and no new or existing learners are allowed to launch it.
24
24
  attr_accessor :allow_launch
25
25
 
26
26
  attr_accessor :invitation_email
27
27
 
28
- # If true, then new registrations can be created for this invitation.
28
+ # Determines if new registrations can be created for this public invitation. If false, no new registrations can be created for the invitation, so only learners with existing registrations can access the invitation.
29
29
  attr_accessor :allow_new_registrations
30
30
 
31
31
  # The launch URL for the invitation
@@ -42,7 +42,7 @@ module RusticiSoftwareCloudV2
42
42
  # The ISO 8601 TimeStamp (defaults to UTC) after which this invitation will expire and can no longer be launched. An empty value will represent no expiration date.
43
43
  attr_accessor :expiration_date
44
44
 
45
- # Integer value that limits the amount of registrations a public invitation can generate.
45
+ # Integer value that represents the maximum number of registrations that can be created for a public invitation. Setting this value to '0' allows an unlimited amount of registrations to be created for the invitation.
46
46
  attr_accessor :registration_cap
47
47
 
48
48
  # The count of registrations for this invitation
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module RusticiSoftwareCloudV2
16
16
  class PublicInvitationUpdateSchema
17
- # If true, then new registrations can be created for this invitation.
17
+ # Determines if learners are allowed to launch the invitation. If false, the invitation is disabled and no new or existing learners are allowed to launch it.
18
18
  attr_accessor :allow_launch
19
19
 
20
- # If true, then new registrations can be created for this invitation.
20
+ # Determines if new registrations can be created for this public invitation. If false, no new registrations can be created for the invitation, so only learners with existing registrations can access the invitation.
21
21
  attr_accessor :allow_new_registrations
22
22
 
23
23
  # Specifies a URL for which to post activity and status data in real time as the course is completed
@@ -26,7 +26,7 @@ module RusticiSoftwareCloudV2
26
26
  # The ISO 8601 TimeStamp (defaults to UTC) after which this invitation will expire and can no longer be launched. An empty value will represent no expiration date.
27
27
  attr_accessor :expiration_date
28
28
 
29
- # Integer value that limits the amount of registrations a public invitation can generate.
29
+ # Integer value that represents the maximum number of registrations that can be created for a public invitation. Setting this value to '0' allows an unlimited amount of registrations to be created for the invitation.
30
30
  attr_accessor :registration_cap
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -10,5 +10,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  =end
11
11
 
12
12
  module RusticiSoftwareCloudV2
13
- VERSION = '3.0.0'
13
+ VERSION = '4.0.0'
14
14
  end
@@ -42,11 +42,13 @@ require 'rustici_software_cloud_v2/models/create_dispatch_schema'
42
42
  require 'rustici_software_cloud_v2/models/create_private_invitation_schema'
43
43
  require 'rustici_software_cloud_v2/models/create_public_invitation_schema'
44
44
  require 'rustici_software_cloud_v2/models/create_registration_schema'
45
- require 'rustici_software_cloud_v2/models/credential_created_schema'
46
45
  require 'rustici_software_cloud_v2/models/credential_list_schema'
47
46
  require 'rustici_software_cloud_v2/models/credential_request_schema'
48
47
  require 'rustici_software_cloud_v2/models/credential_schema'
49
48
  require 'rustici_software_cloud_v2/models/destination_id_schema'
49
+ require 'rustici_software_cloud_v2/models/destination_info_id_schema'
50
+ require 'rustici_software_cloud_v2/models/destination_info_list_schema'
51
+ require 'rustici_software_cloud_v2/models/destination_info_schema'
50
52
  require 'rustici_software_cloud_v2/models/destination_list_schema'
51
53
  require 'rustici_software_cloud_v2/models/destination_schema'
52
54
  require 'rustici_software_cloud_v2/models/dispatch_id_schema'
@@ -89,6 +91,7 @@ require 'rustici_software_cloud_v2/models/paginated_list'
89
91
  require 'rustici_software_cloud_v2/models/permissions_schema'
90
92
  require 'rustici_software_cloud_v2/models/ping_schema'
91
93
  require 'rustici_software_cloud_v2/models/post_back_schema'
94
+ require 'rustici_software_cloud_v2/models/preview_launch_link_request_schema'
92
95
  require 'rustici_software_cloud_v2/models/private_invitation_list'
93
96
  require 'rustici_software_cloud_v2/models/private_invitation_schema'
94
97
  require 'rustici_software_cloud_v2/models/private_invitation_update_schema'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rustici_software_cloud_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustici Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-10 00:00:00.000000000 Z
11
+ date: 2024-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -264,11 +264,13 @@ files:
264
264
  - lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb
265
265
  - lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb
266
266
  - lib/rustici_software_cloud_v2/models/create_registration_schema.rb
267
- - lib/rustici_software_cloud_v2/models/credential_created_schema.rb
268
267
  - lib/rustici_software_cloud_v2/models/credential_list_schema.rb
269
268
  - lib/rustici_software_cloud_v2/models/credential_request_schema.rb
270
269
  - lib/rustici_software_cloud_v2/models/credential_schema.rb
271
270
  - lib/rustici_software_cloud_v2/models/destination_id_schema.rb
271
+ - lib/rustici_software_cloud_v2/models/destination_info_id_schema.rb
272
+ - lib/rustici_software_cloud_v2/models/destination_info_list_schema.rb
273
+ - lib/rustici_software_cloud_v2/models/destination_info_schema.rb
272
274
  - lib/rustici_software_cloud_v2/models/destination_list_schema.rb
273
275
  - lib/rustici_software_cloud_v2/models/destination_schema.rb
274
276
  - lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb
@@ -311,6 +313,7 @@ files:
311
313
  - lib/rustici_software_cloud_v2/models/permissions_schema.rb
312
314
  - lib/rustici_software_cloud_v2/models/ping_schema.rb
313
315
  - lib/rustici_software_cloud_v2/models/post_back_schema.rb
316
+ - lib/rustici_software_cloud_v2/models/preview_launch_link_request_schema.rb
314
317
  - lib/rustici_software_cloud_v2/models/private_invitation_list.rb
315
318
  - lib/rustici_software_cloud_v2/models/private_invitation_schema.rb
316
319
  - lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb