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,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 TagListSchema
17
17
  attr_accessor :tags
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?(:'tags')
43
42
  if (value = attributes[:'tags']).is_a?(Array)
44
43
  self.tags = 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,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 TitleSchema
17
17
  attr_accessor :title
18
18
 
19
-
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
@@ -37,25 +36,24 @@ 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?(:'title')
43
42
  self.title = attributes[:'title']
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
- return invalid_properties
50
+ invalid_properties
53
51
  end
54
52
 
55
53
  # Check to see if the all the properties in the model are valid
56
54
  # @return true if the model is valid
57
55
  def valid?
58
- return true
56
+ true
59
57
  end
60
58
 
61
59
  # Checks equality by comparing each attribute.
@@ -88,7 +86,7 @@ module RusticiSoftwareCloudV2
88
86
  # check to ensure the input is an array given that the the attribute
89
87
  # is documented as an array but the input is not
90
88
  if attributes[self.class.attribute_map[key]].is_a?(Array)
91
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
89
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
92
90
  end
93
91
  elsif !attributes[self.class.attribute_map[key]].nil?
94
92
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -170,7 +168,7 @@ module RusticiSoftwareCloudV2
170
168
  # @return [Hash] Returns the value in the form of hash
171
169
  def _to_hash(value)
172
170
  if value.is_a?(Array)
173
- value.compact.map{ |v| _to_hash(v) }
171
+ value.compact.map { |v| _to_hash(v) }
174
172
  elsif value.is_a?(Hash)
175
173
  {}.tap do |hash|
176
174
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -181,7 +179,5 @@ module RusticiSoftwareCloudV2
181
179
  value
182
180
  end
183
181
  end
184
-
185
182
  end
186
-
187
183
  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 TokenRequestSchema
17
17
  attr_accessor :permissions
18
18
 
19
19
  # Expiration of the token. This should not be set far in the future, as there is no way to invalidate an individual token.
20
20
  attr_accessor :expiry
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?(:'permissions')
48
47
  self.permissions = attributes[:'permissions']
@@ -51,22 +50,21 @@ module RusticiSoftwareCloudV2
51
50
  if attributes.has_key?(:'expiry')
52
51
  self.expiry = attributes[:'expiry']
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
59
  if @permissions.nil?
62
- invalid_properties.push("invalid value for 'permissions', permissions cannot be nil.")
60
+ invalid_properties.push('invalid value for "permissions", permissions cannot be nil.')
63
61
  end
64
62
 
65
63
  if @expiry.nil?
66
- invalid_properties.push("invalid value for 'expiry', expiry cannot be nil.")
64
+ invalid_properties.push('invalid value for "expiry", expiry cannot be nil.')
67
65
  end
68
66
 
69
- return invalid_properties
67
+ invalid_properties
70
68
  end
71
69
 
72
70
  # Check to see if the all the properties in the model are valid
@@ -74,7 +72,7 @@ module RusticiSoftwareCloudV2
74
72
  def valid?
75
73
  return false if @permissions.nil?
76
74
  return false if @expiry.nil?
77
- return true
75
+ true
78
76
  end
79
77
 
80
78
  # Checks equality by comparing each attribute.
@@ -108,7 +106,7 @@ module RusticiSoftwareCloudV2
108
106
  # check to ensure the input is an array given that the the attribute
109
107
  # is documented as an array but the input is not
110
108
  if attributes[self.class.attribute_map[key]].is_a?(Array)
111
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
109
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
110
  end
113
111
  elsif !attributes[self.class.attribute_map[key]].nil?
114
112
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -190,7 +188,7 @@ module RusticiSoftwareCloudV2
190
188
  # @return [Hash] Returns the value in the form of hash
191
189
  def _to_hash(value)
192
190
  if value.is_a?(Array)
193
- value.compact.map{ |v| _to_hash(v) }
191
+ value.compact.map { |v| _to_hash(v) }
194
192
  elsif value.is_a?(Hash)
195
193
  {}.tap do |hash|
196
194
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -201,7 +199,5 @@ module RusticiSoftwareCloudV2
201
199
  value
202
200
  end
203
201
  end
204
-
205
202
  end
206
-
207
203
  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 UpdateDispatchSchema
17
17
  # If true, then new registrations can be created for this dispatch.
18
18
  attr_accessor :allow_new_registrations
@@ -38,7 +38,6 @@ module RusticiSoftwareCloudV2
38
38
  # The postback information for this Dispatch.
39
39
  attr_accessor :post_back
40
40
 
41
-
42
41
  # Attribute mapping from ruby-style variable name to JSON key.
43
42
  def self.attribute_map
44
43
  {
@@ -73,7 +72,7 @@ module RusticiSoftwareCloudV2
73
72
  return unless attributes.is_a?(Hash)
74
73
 
75
74
  # convert string to symbol for hash key
76
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
75
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
77
76
 
78
77
  if attributes.has_key?(:'allowNewRegistrations')
79
78
  self.allow_new_registrations = attributes[:'allowNewRegistrations']
@@ -106,20 +105,19 @@ module RusticiSoftwareCloudV2
106
105
  if attributes.has_key?(:'postBack')
107
106
  self.post_back = attributes[:'postBack']
108
107
  end
109
-
110
108
  end
111
109
 
112
110
  # Show invalid properties with the reasons. Usually used together with valid?
113
- # @return Array for valid properies with the reasons
111
+ # @return Array for valid properties with the reasons
114
112
  def list_invalid_properties
115
113
  invalid_properties = Array.new
116
- return invalid_properties
114
+ invalid_properties
117
115
  end
118
116
 
119
117
  # Check to see if the all the properties in the model are valid
120
118
  # @return true if the model is valid
121
119
  def valid?
122
- return true
120
+ true
123
121
  end
124
122
 
125
123
  # Checks equality by comparing each attribute.
@@ -159,7 +157,7 @@ module RusticiSoftwareCloudV2
159
157
  # check to ensure the input is an array given that the the attribute
160
158
  # is documented as an array but the input is not
161
159
  if attributes[self.class.attribute_map[key]].is_a?(Array)
162
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
160
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
163
161
  end
164
162
  elsif !attributes[self.class.attribute_map[key]].nil?
165
163
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -241,7 +239,7 @@ module RusticiSoftwareCloudV2
241
239
  # @return [Hash] Returns the value in the form of hash
242
240
  def _to_hash(value)
243
241
  if value.is_a?(Array)
244
- value.compact.map{ |v| _to_hash(v) }
242
+ value.compact.map { |v| _to_hash(v) }
245
243
  elsif value.is_a?(Hash)
246
244
  {}.tap do |hash|
247
245
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -252,7 +250,5 @@ module RusticiSoftwareCloudV2
252
250
  value
253
251
  end
254
252
  end
255
-
256
253
  end
257
-
258
254
  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 UserInvitationList
17
17
  # A list of user invitation objects.
18
18
  attr_accessor :user_invitations
19
19
 
20
20
  attr_accessor :more
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?(:'userInvitations')
48
47
  if (value = attributes[:'userInvitations']).is_a?(Array)
@@ -53,20 +52,19 @@ module RusticiSoftwareCloudV2
53
52
  if attributes.has_key?(:'more')
54
53
  self.more = attributes[:'more']
55
54
  end
56
-
57
55
  end
58
56
 
59
57
  # Show invalid properties with the reasons. Usually used together with valid?
60
- # @return Array for valid properies with the reasons
58
+ # @return Array for valid properties with the reasons
61
59
  def list_invalid_properties
62
60
  invalid_properties = Array.new
63
- return invalid_properties
61
+ invalid_properties
64
62
  end
65
63
 
66
64
  # Check to see if the all the properties in the model are valid
67
65
  # @return true if the model is valid
68
66
  def valid?
69
- return true
67
+ true
70
68
  end
71
69
 
72
70
  # Checks equality by comparing each attribute.
@@ -100,7 +98,7 @@ module RusticiSoftwareCloudV2
100
98
  # check to ensure the input is an array given that the the attribute
101
99
  # is documented as an array but the input is not
102
100
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
104
102
  end
105
103
  elsif !attributes[self.class.attribute_map[key]].nil?
106
104
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -182,7 +180,7 @@ module RusticiSoftwareCloudV2
182
180
  # @return [Hash] Returns the value in the form of hash
183
181
  def _to_hash(value)
184
182
  if value.is_a?(Array)
185
- value.compact.map{ |v| _to_hash(v) }
183
+ value.compact.map { |v| _to_hash(v) }
186
184
  elsif value.is_a?(Hash)
187
185
  {}.tap do |hash|
188
186
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -193,7 +191,5 @@ module RusticiSoftwareCloudV2
193
191
  value
194
192
  end
195
193
  end
196
-
197
194
  end
198
-
199
195
  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 UserInvitationSchema
17
17
  # The email of the user who took an invitation.
18
18
  attr_accessor :email
@@ -30,7 +30,6 @@ module RusticiSoftwareCloudV2
30
30
 
31
31
  attr_accessor :registration_report
32
32
 
33
-
34
33
  # Attribute mapping from ruby-style variable name to JSON key.
35
34
  def self.attribute_map
36
35
  {
@@ -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?(:'email')
67
66
  self.email = attributes[:'email']
@@ -86,20 +85,19 @@ module RusticiSoftwareCloudV2
86
85
  if attributes.has_key?(:'registrationReport')
87
86
  self.registration_report = attributes[:'registrationReport']
88
87
  end
89
-
90
88
  end
91
89
 
92
90
  # Show invalid properties with the reasons. Usually used together with valid?
93
- # @return Array for valid properies with the reasons
91
+ # @return Array for valid properties with the reasons
94
92
  def list_invalid_properties
95
93
  invalid_properties = Array.new
96
- return invalid_properties
94
+ invalid_properties
97
95
  end
98
96
 
99
97
  # Check to see if the all the properties in the model are valid
100
98
  # @return true if the model is valid
101
99
  def valid?
102
- return true
100
+ true
103
101
  end
104
102
 
105
103
  # Checks equality by comparing each attribute.
@@ -137,7 +135,7 @@ module RusticiSoftwareCloudV2
137
135
  # check to ensure the input is an array given that the the attribute
138
136
  # is documented as an array but the input is not
139
137
  if attributes[self.class.attribute_map[key]].is_a?(Array)
140
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
139
  end
142
140
  elsif !attributes[self.class.attribute_map[key]].nil?
143
141
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -219,7 +217,7 @@ module RusticiSoftwareCloudV2
219
217
  # @return [Hash] Returns the value in the form of hash
220
218
  def _to_hash(value)
221
219
  if value.is_a?(Array)
222
- value.compact.map{ |v| _to_hash(v) }
220
+ value.compact.map { |v| _to_hash(v) }
223
221
  elsif value.is_a?(Hash)
224
222
  {}.tap do |hash|
225
223
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -230,7 +228,5 @@ module RusticiSoftwareCloudV2
230
228
  value
231
229
  end
232
230
  end
233
-
234
231
  end
235
-
236
232
  end