rustici_software_cloud_v2 1.0.2 → 1.1.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 (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,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 CredentialListSchema
17
17
  attr_accessor :credentials
18
18
 
19
-
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
@@ -37,27 +36,26 @@ 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?(:'credentials')
43
42
  if (value = attributes[:'credentials']).is_a?(Array)
44
43
  self.credentials = value
45
44
  end
46
45
  end
47
-
48
46
  end
49
47
 
50
48
  # Show invalid properties with the reasons. Usually used together with valid?
51
- # @return Array for valid properies with the reasons
49
+ # @return Array for valid properties with the reasons
52
50
  def list_invalid_properties
53
51
  invalid_properties = Array.new
54
- return invalid_properties
52
+ invalid_properties
55
53
  end
56
54
 
57
55
  # Check to see if the all the properties in the model are valid
58
56
  # @return true if the model is valid
59
57
  def valid?
60
- return true
58
+ true
61
59
  end
62
60
 
63
61
  # Checks equality by comparing each attribute.
@@ -90,7 +88,7 @@ module RusticiSoftwareCloudV2
90
88
  # check to ensure the input is an array given that the the attribute
91
89
  # is documented as an array but the input is not
92
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
93
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
94
92
  end
95
93
  elsif !attributes[self.class.attribute_map[key]].nil?
96
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -172,7 +170,7 @@ module RusticiSoftwareCloudV2
172
170
  # @return [Hash] Returns the value in the form of hash
173
171
  def _to_hash(value)
174
172
  if value.is_a?(Array)
175
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
176
174
  elsif value.is_a?(Hash)
177
175
  {}.tap do |hash|
178
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -183,7 +181,5 @@ module RusticiSoftwareCloudV2
183
181
  value
184
182
  end
185
183
  end
186
-
187
184
  end
188
-
189
185
  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 CredentialRequestSchema
17
17
  # name for this credential
18
18
  attr_accessor :name
@@ -20,7 +20,6 @@ module RusticiSoftwareCloudV2
20
20
  # A flag denoting if the key is available for use.
21
21
  attr_accessor :active
22
22
 
23
-
24
23
  # Attribute mapping from ruby-style variable name to JSON key.
25
24
  def self.attribute_map
26
25
  {
@@ -43,7 +42,7 @@ module RusticiSoftwareCloudV2
43
42
  return unless attributes.is_a?(Hash)
44
43
 
45
44
  # convert string to symbol for hash key
46
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
46
 
48
47
  if attributes.has_key?(:'name')
49
48
  self.name = attributes[:'name']
@@ -52,20 +51,19 @@ module RusticiSoftwareCloudV2
52
51
  if attributes.has_key?(:'active')
53
52
  self.active = attributes[:'active']
54
53
  end
55
-
56
54
  end
57
55
 
58
56
  # Show invalid properties with the reasons. Usually used together with valid?
59
- # @return Array for valid properies with the reasons
57
+ # @return Array for valid properties with the reasons
60
58
  def list_invalid_properties
61
59
  invalid_properties = Array.new
62
- return invalid_properties
60
+ invalid_properties
63
61
  end
64
62
 
65
63
  # Check to see if the all the properties in the model are valid
66
64
  # @return true if the model is valid
67
65
  def valid?
68
- return true
66
+ true
69
67
  end
70
68
 
71
69
  # Checks equality by comparing each attribute.
@@ -99,7 +97,7 @@ module RusticiSoftwareCloudV2
99
97
  # check to ensure the input is an array given that the the attribute
100
98
  # is documented as an array but the input is not
101
99
  if attributes[self.class.attribute_map[key]].is_a?(Array)
102
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
103
101
  end
104
102
  elsif !attributes[self.class.attribute_map[key]].nil?
105
103
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -181,7 +179,7 @@ module RusticiSoftwareCloudV2
181
179
  # @return [Hash] Returns the value in the form of hash
182
180
  def _to_hash(value)
183
181
  if value.is_a?(Array)
184
- value.compact.map{ |v| _to_hash(v) }
182
+ value.compact.map { |v| _to_hash(v) }
185
183
  elsif value.is_a?(Hash)
186
184
  {}.tap do |hash|
187
185
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -192,7 +190,5 @@ module RusticiSoftwareCloudV2
192
190
  value
193
191
  end
194
192
  end
195
-
196
193
  end
197
-
198
194
  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 CredentialSchema
17
17
  # id for this credential
18
18
  attr_accessor :id
@@ -28,7 +28,6 @@ module RusticiSoftwareCloudV2
28
28
 
29
29
  attr_accessor :status
30
30
 
31
-
32
31
  # Attribute mapping from ruby-style variable name to JSON key.
33
32
  def self.attribute_map
34
33
  {
@@ -57,7 +56,7 @@ module RusticiSoftwareCloudV2
57
56
  return unless attributes.is_a?(Hash)
58
57
 
59
58
  # convert string to symbol for hash key
60
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
61
60
 
62
61
  if attributes.has_key?(:'id')
63
62
  self.id = attributes[:'id']
@@ -78,20 +77,19 @@ module RusticiSoftwareCloudV2
78
77
  if attributes.has_key?(:'status')
79
78
  self.status = attributes[:'status']
80
79
  end
81
-
82
80
  end
83
81
 
84
82
  # Show invalid properties with the reasons. Usually used together with valid?
85
- # @return Array for valid properies with the reasons
83
+ # @return Array for valid properties with the reasons
86
84
  def list_invalid_properties
87
85
  invalid_properties = Array.new
88
- return invalid_properties
86
+ invalid_properties
89
87
  end
90
88
 
91
89
  # Check to see if the all the properties in the model are valid
92
90
  # @return true if the model is valid
93
91
  def valid?
94
- return true
92
+ true
95
93
  end
96
94
 
97
95
  # Checks equality by comparing each attribute.
@@ -128,7 +126,7 @@ module RusticiSoftwareCloudV2
128
126
  # check to ensure the input is an array given that the the attribute
129
127
  # is documented as an array but the input is not
130
128
  if attributes[self.class.attribute_map[key]].is_a?(Array)
131
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
130
  end
133
131
  elsif !attributes[self.class.attribute_map[key]].nil?
134
132
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -210,7 +208,7 @@ module RusticiSoftwareCloudV2
210
208
  # @return [Hash] Returns the value in the form of hash
211
209
  def _to_hash(value)
212
210
  if value.is_a?(Array)
213
- value.compact.map{ |v| _to_hash(v) }
211
+ value.compact.map { |v| _to_hash(v) }
214
212
  elsif value.is_a?(Hash)
215
213
  {}.tap do |hash|
216
214
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -221,7 +219,5 @@ module RusticiSoftwareCloudV2
221
219
  value
222
220
  end
223
221
  end
224
-
225
222
  end
226
-
227
223
  end
@@ -6,20 +6,19 @@
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 DestinationIdSchema
17
17
  #
18
18
  attr_accessor :id
19
19
 
20
20
  attr_accessor :data
21
21
 
22
-
23
22
  # Attribute mapping from ruby-style variable name to JSON key.
24
23
  def self.attribute_map
25
24
  {
@@ -42,7 +41,7 @@ module RusticiSoftwareCloudV2
42
41
  return unless attributes.is_a?(Hash)
43
42
 
44
43
  # convert string to symbol for hash key
45
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
44
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
45
 
47
46
  if attributes.has_key?(:'id')
48
47
  self.id = attributes[:'id']
@@ -51,20 +50,19 @@ module RusticiSoftwareCloudV2
51
50
  if attributes.has_key?(:'data')
52
51
  self.data = attributes[:'data']
53
52
  end
54
-
55
53
  end
56
54
 
57
55
  # Show invalid properties with the reasons. Usually used together with valid?
58
- # @return Array for valid properies with the reasons
56
+ # @return Array for valid properties with the reasons
59
57
  def list_invalid_properties
60
58
  invalid_properties = Array.new
61
- return invalid_properties
59
+ invalid_properties
62
60
  end
63
61
 
64
62
  # Check to see if the all the properties in the model are valid
65
63
  # @return true if the model is valid
66
64
  def valid?
67
- return true
65
+ true
68
66
  end
69
67
 
70
68
  # Checks equality by comparing each attribute.
@@ -98,7 +96,7 @@ module RusticiSoftwareCloudV2
98
96
  # check to ensure the input is an array given that the the attribute
99
97
  # is documented as an array but the input is not
100
98
  if attributes[self.class.attribute_map[key]].is_a?(Array)
101
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
99
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
102
100
  end
103
101
  elsif !attributes[self.class.attribute_map[key]].nil?
104
102
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -180,7 +178,7 @@ module RusticiSoftwareCloudV2
180
178
  # @return [Hash] Returns the value in the form of hash
181
179
  def _to_hash(value)
182
180
  if value.is_a?(Array)
183
- value.compact.map{ |v| _to_hash(v) }
181
+ value.compact.map { |v| _to_hash(v) }
184
182
  elsif value.is_a?(Hash)
185
183
  {}.tap do |hash|
186
184
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -191,7 +189,5 @@ module RusticiSoftwareCloudV2
191
189
  value
192
190
  end
193
191
  end
194
-
195
192
  end
196
-
197
193
  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 DestinationListSchema
17
17
  #
18
18
  attr_accessor :destinations
@@ -20,7 +20,6 @@ module RusticiSoftwareCloudV2
20
20
  #
21
21
  attr_accessor :more
22
22
 
23
-
24
23
  # Attribute mapping from ruby-style variable name to JSON key.
25
24
  def self.attribute_map
26
25
  {
@@ -43,7 +42,7 @@ module RusticiSoftwareCloudV2
43
42
  return unless attributes.is_a?(Hash)
44
43
 
45
44
  # convert string to symbol for hash key
46
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
46
 
48
47
  if attributes.has_key?(:'destinations')
49
48
  if (value = attributes[:'destinations']).is_a?(Array)
@@ -54,20 +53,19 @@ module RusticiSoftwareCloudV2
54
53
  if attributes.has_key?(:'more')
55
54
  self.more = attributes[:'more']
56
55
  end
57
-
58
56
  end
59
57
 
60
58
  # Show invalid properties with the reasons. Usually used together with valid?
61
- # @return Array for valid properies with the reasons
59
+ # @return Array for valid properties with the reasons
62
60
  def list_invalid_properties
63
61
  invalid_properties = Array.new
64
- return invalid_properties
62
+ invalid_properties
65
63
  end
66
64
 
67
65
  # Check to see if the all the properties in the model are valid
68
66
  # @return true if the model is valid
69
67
  def valid?
70
- return true
68
+ true
71
69
  end
72
70
 
73
71
  # Checks equality by comparing each attribute.
@@ -101,7 +99,7 @@ module RusticiSoftwareCloudV2
101
99
  # check to ensure the input is an array given that the the attribute
102
100
  # is documented as an array but the input is not
103
101
  if attributes[self.class.attribute_map[key]].is_a?(Array)
104
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
102
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
105
103
  end
106
104
  elsif !attributes[self.class.attribute_map[key]].nil?
107
105
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -183,7 +181,7 @@ module RusticiSoftwareCloudV2
183
181
  # @return [Hash] Returns the value in the form of hash
184
182
  def _to_hash(value)
185
183
  if value.is_a?(Array)
186
- value.compact.map{ |v| _to_hash(v) }
184
+ value.compact.map { |v| _to_hash(v) }
187
185
  elsif value.is_a?(Hash)
188
186
  {}.tap do |hash|
189
187
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -194,7 +192,5 @@ module RusticiSoftwareCloudV2
194
192
  value
195
193
  end
196
194
  end
197
-
198
195
  end
199
-
200
196
  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 DestinationSchema
17
17
  # The destination's name.
18
18
  attr_accessor :name
@@ -28,7 +28,6 @@ module RusticiSoftwareCloudV2
28
28
 
29
29
  attr_accessor :launch_auth
30
30
 
31
-
32
31
  # Attribute mapping from ruby-style variable name to JSON key.
33
32
  def self.attribute_map
34
33
  {
@@ -57,7 +56,7 @@ module RusticiSoftwareCloudV2
57
56
  return unless attributes.is_a?(Hash)
58
57
 
59
58
  # convert string to symbol for hash key
60
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
61
60
 
62
61
  if attributes.has_key?(:'name')
63
62
  self.name = attributes[:'name']
@@ -80,20 +79,19 @@ module RusticiSoftwareCloudV2
80
79
  if attributes.has_key?(:'launchAuth')
81
80
  self.launch_auth = attributes[:'launchAuth']
82
81
  end
83
-
84
82
  end
85
83
 
86
84
  # Show invalid properties with the reasons. Usually used together with valid?
87
- # @return Array for valid properies with the reasons
85
+ # @return Array for valid properties with the reasons
88
86
  def list_invalid_properties
89
87
  invalid_properties = Array.new
90
- return invalid_properties
88
+ invalid_properties
91
89
  end
92
90
 
93
91
  # Check to see if the all the properties in the model are valid
94
92
  # @return true if the model is valid
95
93
  def valid?
96
- return true
94
+ true
97
95
  end
98
96
 
99
97
  # Checks equality by comparing each attribute.
@@ -130,7 +128,7 @@ module RusticiSoftwareCloudV2
130
128
  # check to ensure the input is an array given that the the attribute
131
129
  # is documented as an array but the input is not
132
130
  if attributes[self.class.attribute_map[key]].is_a?(Array)
133
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
131
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
134
132
  end
135
133
  elsif !attributes[self.class.attribute_map[key]].nil?
136
134
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -212,7 +210,7 @@ module RusticiSoftwareCloudV2
212
210
  # @return [Hash] Returns the value in the form of hash
213
211
  def _to_hash(value)
214
212
  if value.is_a?(Array)
215
- value.compact.map{ |v| _to_hash(v) }
213
+ value.compact.map { |v| _to_hash(v) }
216
214
  elsif value.is_a?(Hash)
217
215
  {}.tap do |hash|
218
216
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -223,7 +221,5 @@ module RusticiSoftwareCloudV2
223
221
  value
224
222
  end
225
223
  end
226
-
227
224
  end
228
-
229
225
  end