rustici_software_cloud_v2 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/lib/rustici_software_cloud_v2.rb +1 -0
  4. data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
  5. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
  15. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
  16. data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
  17. data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
  18. data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
  19. data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
  20. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
  21. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
  22. data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
  23. data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
  24. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
  25. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
  26. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
  27. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
  28. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
  29. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
  30. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
  31. data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
  32. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
  33. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
  34. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
  35. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
  36. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
  37. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
  38. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
  39. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
  40. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
  41. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
  42. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
  43. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
  44. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
  45. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
  46. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
  47. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
  48. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
  49. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
  50. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
  51. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
  52. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
  53. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
  54. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
  55. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
  56. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
  57. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
  58. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
  59. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
  60. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
  61. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
  62. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
  63. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
  64. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
  65. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
  66. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
  67. data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
  68. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
  69. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
  70. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
  71. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
  72. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
  73. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
  74. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
  75. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
  76. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
  77. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
  78. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
  79. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
  80. data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
  81. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
  82. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
  83. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
  84. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
  85. data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
  86. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
  87. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
  88. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
  89. data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
  90. data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
  91. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
  92. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
  93. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
  94. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
  95. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
  96. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
  97. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
  98. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
  99. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
  100. data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
  101. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
  102. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
  103. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
  104. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
  105. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
  106. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
  107. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
  108. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
  109. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
  110. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
  111. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
  112. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
  113. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
  114. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
  115. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
  116. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
  117. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
  118. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
  119. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
  120. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
  121. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
  122. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
  123. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
  124. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
  125. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
  126. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
  127. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
  128. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
  129. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
  130. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
  131. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
  132. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
  133. data/lib/rustici_software_cloud_v2/version.rb +2 -1
  134. data/rustici_software_cloud_v2.gemspec +8 -7
  135. data/spec/api_client_spec.rb +35 -34
  136. data/spec/configuration_spec.rb +9 -8
  137. data/spec/spec_helper.rb +1 -0
  138. metadata +16 -16
@@ -6,13 +6,13 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class LaunchLinkRequestSchema
17
17
  # Number of seconds from now this link will expire in. Defaults to 120s. Range 10s:300s
18
18
  attr_accessor :expiry
@@ -42,7 +42,6 @@ module RusticiSoftwareCloudV2
42
42
 
43
43
  attr_accessor :launch_auth
44
44
 
45
-
46
45
  # Attribute mapping from ruby-style variable name to JSON key.
47
46
  def self.attribute_map
48
47
  {
@@ -83,7 +82,7 @@ module RusticiSoftwareCloudV2
83
82
  return unless attributes.is_a?(Hash)
84
83
 
85
84
  # convert string to symbol for hash key
86
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
85
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
87
86
 
88
87
  if attributes.has_key?(:'expiry')
89
88
  self.expiry = attributes[:'expiry']
@@ -140,25 +139,24 @@ module RusticiSoftwareCloudV2
140
139
  if attributes.has_key?(:'launchAuth')
141
140
  self.launch_auth = attributes[:'launchAuth']
142
141
  end
143
-
144
142
  end
145
143
 
146
144
  # Show invalid properties with the reasons. Usually used together with valid?
147
- # @return Array for valid properies with the reasons
145
+ # @return Array for valid properties with the reasons
148
146
  def list_invalid_properties
149
147
  invalid_properties = Array.new
150
148
  if @redirect_on_exit_url.nil?
151
- invalid_properties.push("invalid value for 'redirect_on_exit_url', redirect_on_exit_url cannot be nil.")
149
+ invalid_properties.push('invalid value for "redirect_on_exit_url", redirect_on_exit_url cannot be nil.')
152
150
  end
153
151
 
154
- return invalid_properties
152
+ invalid_properties
155
153
  end
156
154
 
157
155
  # Check to see if the all the properties in the model are valid
158
156
  # @return true if the model is valid
159
157
  def valid?
160
158
  return false if @redirect_on_exit_url.nil?
161
- return true
159
+ true
162
160
  end
163
161
 
164
162
  # Checks equality by comparing each attribute.
@@ -201,7 +199,7 @@ module RusticiSoftwareCloudV2
201
199
  # check to ensure the input is an array given that the the attribute
202
200
  # is documented as an array but the input is not
203
201
  if attributes[self.class.attribute_map[key]].is_a?(Array)
204
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
202
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
205
203
  end
206
204
  elsif !attributes[self.class.attribute_map[key]].nil?
207
205
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -283,7 +281,7 @@ module RusticiSoftwareCloudV2
283
281
  # @return [Hash] Returns the value in the form of hash
284
282
  def _to_hash(value)
285
283
  if value.is_a?(Array)
286
- value.compact.map{ |v| _to_hash(v) }
284
+ value.compact.map { |v| _to_hash(v) }
287
285
  elsif value.is_a?(Hash)
288
286
  {}.tap do |hash|
289
287
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -294,7 +292,5 @@ module RusticiSoftwareCloudV2
294
292
  value
295
293
  end
296
294
  end
297
-
298
295
  end
299
-
300
296
  end
@@ -6,17 +6,16 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class LaunchLinkSchema
17
17
  attr_accessor :launch_link
18
18
 
19
-
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
@@ -37,30 +36,29 @@ module RusticiSoftwareCloudV2
37
36
  return unless attributes.is_a?(Hash)
38
37
 
39
38
  # convert string to symbol for hash key
40
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
40
 
42
41
  if attributes.has_key?(:'launchLink')
43
42
  self.launch_link = attributes[:'launchLink']
44
43
  end
45
-
46
44
  end
47
45
 
48
46
  # Show invalid properties with the reasons. Usually used together with valid?
49
- # @return Array for valid properies with the reasons
47
+ # @return Array for valid properties with the reasons
50
48
  def list_invalid_properties
51
49
  invalid_properties = Array.new
52
50
  if @launch_link.nil?
53
- invalid_properties.push("invalid value for 'launch_link', launch_link cannot be nil.")
51
+ invalid_properties.push('invalid value for "launch_link", launch_link cannot be nil.')
54
52
  end
55
53
 
56
- return invalid_properties
54
+ invalid_properties
57
55
  end
58
56
 
59
57
  # Check to see if the all the properties in the model are valid
60
58
  # @return true if the model is valid
61
59
  def valid?
62
60
  return false if @launch_link.nil?
63
- return true
61
+ true
64
62
  end
65
63
 
66
64
  # Checks equality by comparing each attribute.
@@ -93,7 +91,7 @@ module RusticiSoftwareCloudV2
93
91
  # check to ensure the input is an array given that the the attribute
94
92
  # is documented as an array but the input is not
95
93
  if attributes[self.class.attribute_map[key]].is_a?(Array)
96
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
94
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
97
95
  end
98
96
  elsif !attributes[self.class.attribute_map[key]].nil?
99
97
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -175,7 +173,7 @@ module RusticiSoftwareCloudV2
175
173
  # @return [Hash] Returns the value in the form of hash
176
174
  def _to_hash(value)
177
175
  if value.is_a?(Array)
178
- value.compact.map{ |v| _to_hash(v) }
176
+ value.compact.map { |v| _to_hash(v) }
179
177
  elsif value.is_a?(Hash)
180
178
  {}.tap do |hash|
181
179
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -186,7 +184,5 @@ module RusticiSoftwareCloudV2
186
184
  value
187
185
  end
188
186
  end
189
-
190
187
  end
191
-
192
188
  end
@@ -6,13 +6,13 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class LearnerPreferenceSchema
17
17
  attr_accessor :audio_level
18
18
 
@@ -22,7 +22,6 @@ module RusticiSoftwareCloudV2
22
22
 
23
23
  attr_accessor :audio_captioning
24
24
 
25
-
26
25
  # Attribute mapping from ruby-style variable name to JSON key.
27
26
  def self.attribute_map
28
27
  {
@@ -49,7 +48,7 @@ module RusticiSoftwareCloudV2
49
48
  return unless attributes.is_a?(Hash)
50
49
 
51
50
  # convert string to symbol for hash key
52
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
52
 
54
53
  if attributes.has_key?(:'audioLevel')
55
54
  self.audio_level = attributes[:'audioLevel']
@@ -66,20 +65,19 @@ module RusticiSoftwareCloudV2
66
65
  if attributes.has_key?(:'audioCaptioning')
67
66
  self.audio_captioning = attributes[:'audioCaptioning']
68
67
  end
69
-
70
68
  end
71
69
 
72
70
  # Show invalid properties with the reasons. Usually used together with valid?
73
- # @return Array for valid properies with the reasons
71
+ # @return Array for valid properties with the reasons
74
72
  def list_invalid_properties
75
73
  invalid_properties = Array.new
76
- return invalid_properties
74
+ invalid_properties
77
75
  end
78
76
 
79
77
  # Check to see if the all the properties in the model are valid
80
78
  # @return true if the model is valid
81
79
  def valid?
82
- return true
80
+ true
83
81
  end
84
82
 
85
83
  # Checks equality by comparing each attribute.
@@ -115,7 +113,7 @@ module RusticiSoftwareCloudV2
115
113
  # check to ensure the input is an array given that the the attribute
116
114
  # is documented as an array but the input is not
117
115
  if attributes[self.class.attribute_map[key]].is_a?(Array)
118
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
117
  end
120
118
  elsif !attributes[self.class.attribute_map[key]].nil?
121
119
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -197,7 +195,7 @@ module RusticiSoftwareCloudV2
197
195
  # @return [Hash] Returns the value in the form of hash
198
196
  def _to_hash(value)
199
197
  if value.is_a?(Array)
200
- value.compact.map{ |v| _to_hash(v) }
198
+ value.compact.map { |v| _to_hash(v) }
201
199
  elsif value.is_a?(Hash)
202
200
  {}.tap do |hash|
203
201
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -208,7 +206,5 @@ module RusticiSoftwareCloudV2
208
206
  value
209
207
  end
210
208
  end
211
-
212
209
  end
213
-
214
210
  end
@@ -6,13 +6,13 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class LearnerSchema
17
17
  attr_accessor :id
18
18
 
@@ -23,7 +23,6 @@ module RusticiSoftwareCloudV2
23
23
 
24
24
  attr_accessor :last_name
25
25
 
26
-
27
26
  # Attribute mapping from ruby-style variable name to JSON key.
28
27
  def self.attribute_map
29
28
  {
@@ -50,7 +49,7 @@ module RusticiSoftwareCloudV2
50
49
  return unless attributes.is_a?(Hash)
51
50
 
52
51
  # convert string to symbol for hash key
53
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
54
53
 
55
54
  if attributes.has_key?(:'id')
56
55
  self.id = attributes[:'id']
@@ -67,25 +66,24 @@ module RusticiSoftwareCloudV2
67
66
  if attributes.has_key?(:'lastName')
68
67
  self.last_name = attributes[:'lastName']
69
68
  end
70
-
71
69
  end
72
70
 
73
71
  # Show invalid properties with the reasons. Usually used together with valid?
74
- # @return Array for valid properies with the reasons
72
+ # @return Array for valid properties with the reasons
75
73
  def list_invalid_properties
76
74
  invalid_properties = Array.new
77
75
  if @id.nil?
78
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
76
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
79
77
  end
80
78
 
81
- return invalid_properties
79
+ invalid_properties
82
80
  end
83
81
 
84
82
  # Check to see if the all the properties in the model are valid
85
83
  # @return true if the model is valid
86
84
  def valid?
87
85
  return false if @id.nil?
88
- return true
86
+ true
89
87
  end
90
88
 
91
89
  # Checks equality by comparing each attribute.
@@ -121,7 +119,7 @@ module RusticiSoftwareCloudV2
121
119
  # check to ensure the input is an array given that the the attribute
122
120
  # is documented as an array but the input is not
123
121
  if attributes[self.class.attribute_map[key]].is_a?(Array)
124
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
122
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
123
  end
126
124
  elsif !attributes[self.class.attribute_map[key]].nil?
127
125
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -203,7 +201,7 @@ module RusticiSoftwareCloudV2
203
201
  # @return [Hash] Returns the value in the form of hash
204
202
  def _to_hash(value)
205
203
  if value.is_a?(Array)
206
- value.compact.map{ |v| _to_hash(v) }
204
+ value.compact.map { |v| _to_hash(v) }
207
205
  elsif value.is_a?(Hash)
208
206
  {}.tap do |hash|
209
207
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -214,7 +212,5 @@ module RusticiSoftwareCloudV2
214
212
  value
215
213
  end
216
214
  end
217
-
218
215
  end
219
-
220
216
  end
@@ -6,17 +6,16 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class MessageSchema
17
17
  attr_accessor :message
18
18
 
19
-
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
@@ -37,30 +36,29 @@ module RusticiSoftwareCloudV2
37
36
  return unless attributes.is_a?(Hash)
38
37
 
39
38
  # convert string to symbol for hash key
40
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
40
 
42
41
  if attributes.has_key?(:'message')
43
42
  self.message = attributes[:'message']
44
43
  end
45
-
46
44
  end
47
45
 
48
46
  # Show invalid properties with the reasons. Usually used together with valid?
49
- # @return Array for valid properies with the reasons
47
+ # @return Array for valid properties with the reasons
50
48
  def list_invalid_properties
51
49
  invalid_properties = Array.new
52
50
  if @message.nil?
53
- invalid_properties.push("invalid value for 'message', message cannot be nil.")
51
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
54
52
  end
55
53
 
56
- return invalid_properties
54
+ invalid_properties
57
55
  end
58
56
 
59
57
  # Check to see if the all the properties in the model are valid
60
58
  # @return true if the model is valid
61
59
  def valid?
62
60
  return false if @message.nil?
63
- return true
61
+ true
64
62
  end
65
63
 
66
64
  # Checks equality by comparing each attribute.
@@ -93,7 +91,7 @@ module RusticiSoftwareCloudV2
93
91
  # check to ensure the input is an array given that the the attribute
94
92
  # is documented as an array but the input is not
95
93
  if attributes[self.class.attribute_map[key]].is_a?(Array)
96
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
94
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
97
95
  end
98
96
  elsif !attributes[self.class.attribute_map[key]].nil?
99
97
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -175,7 +173,7 @@ module RusticiSoftwareCloudV2
175
173
  # @return [Hash] Returns the value in the form of hash
176
174
  def _to_hash(value)
177
175
  if value.is_a?(Array)
178
- value.compact.map{ |v| _to_hash(v) }
176
+ value.compact.map { |v| _to_hash(v) }
179
177
  elsif value.is_a?(Hash)
180
178
  {}.tap do |hash|
181
179
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -186,7 +184,5 @@ module RusticiSoftwareCloudV2
186
184
  value
187
185
  end
188
186
  end
189
-
190
187
  end
191
-
192
188
  end
@@ -6,13 +6,13 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
13
  require 'date'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
-
16
16
  class MetadataSchema
17
17
  attr_accessor :title
18
18
 
@@ -28,7 +28,6 @@ module RusticiSoftwareCloudV2
28
28
 
29
29
  attr_accessor :keywords
30
30
 
31
-
32
31
  # Attribute mapping from ruby-style variable name to JSON key.
33
32
  def self.attribute_map
34
33
  {
@@ -61,7 +60,7 @@ module RusticiSoftwareCloudV2
61
60
  return unless attributes.is_a?(Hash)
62
61
 
63
62
  # convert string to symbol for hash key
64
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
63
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
64
 
66
65
  if attributes.has_key?(:'title')
67
66
  self.title = attributes[:'title']
@@ -92,20 +91,19 @@ module RusticiSoftwareCloudV2
92
91
  self.keywords = value
93
92
  end
94
93
  end
95
-
96
94
  end
97
95
 
98
96
  # Show invalid properties with the reasons. Usually used together with valid?
99
- # @return Array for valid properies with the reasons
97
+ # @return Array for valid properties with the reasons
100
98
  def list_invalid_properties
101
99
  invalid_properties = Array.new
102
- return invalid_properties
100
+ invalid_properties
103
101
  end
104
102
 
105
103
  # Check to see if the all the properties in the model are valid
106
104
  # @return true if the model is valid
107
105
  def valid?
108
- return true
106
+ true
109
107
  end
110
108
 
111
109
  # Checks equality by comparing each attribute.
@@ -144,7 +142,7 @@ module RusticiSoftwareCloudV2
144
142
  # check to ensure the input is an array given that the the attribute
145
143
  # is documented as an array but the input is not
146
144
  if attributes[self.class.attribute_map[key]].is_a?(Array)
147
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
148
146
  end
149
147
  elsif !attributes[self.class.attribute_map[key]].nil?
150
148
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -226,7 +224,7 @@ module RusticiSoftwareCloudV2
226
224
  # @return [Hash] Returns the value in the form of hash
227
225
  def _to_hash(value)
228
226
  if value.is_a?(Array)
229
- value.compact.map{ |v| _to_hash(v) }
227
+ value.compact.map { |v| _to_hash(v) }
230
228
  elsif value.is_a?(Hash)
231
229
  {}.tap do |hash|
232
230
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -237,7 +235,5 @@ module RusticiSoftwareCloudV2
237
235
  value
238
236
  end
239
237
  end
240
-
241
238
  end
242
-
243
239
  end