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 PrivateInvitationSchema
17
17
  # The invitationId for this invitation.
18
18
  attr_accessor :id
@@ -39,7 +39,6 @@ module RusticiSoftwareCloudV2
39
39
  # The count of registrations for this invitation
40
40
  attr_accessor :registration_count
41
41
 
42
-
43
42
  # Attribute mapping from ruby-style variable name to JSON key.
44
43
  def self.attribute_map
45
44
  {
@@ -76,7 +75,7 @@ module RusticiSoftwareCloudV2
76
75
  return unless attributes.is_a?(Hash)
77
76
 
78
77
  # convert string to symbol for hash key
79
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
78
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
80
79
 
81
80
  if attributes.has_key?(:'id')
82
81
  self.id = attributes[:'id']
@@ -113,20 +112,19 @@ module RusticiSoftwareCloudV2
113
112
  if attributes.has_key?(:'registrationCount')
114
113
  self.registration_count = attributes[:'registrationCount']
115
114
  end
116
-
117
115
  end
118
116
 
119
117
  # Show invalid properties with the reasons. Usually used together with valid?
120
- # @return Array for valid properies with the reasons
118
+ # @return Array for valid properties with the reasons
121
119
  def list_invalid_properties
122
120
  invalid_properties = Array.new
123
- return invalid_properties
121
+ invalid_properties
124
122
  end
125
123
 
126
124
  # Check to see if the all the properties in the model are valid
127
125
  # @return true if the model is valid
128
126
  def valid?
129
- return true
127
+ true
130
128
  end
131
129
 
132
130
  # Checks equality by comparing each attribute.
@@ -167,7 +165,7 @@ module RusticiSoftwareCloudV2
167
165
  # check to ensure the input is an array given that the the attribute
168
166
  # is documented as an array but the input is not
169
167
  if attributes[self.class.attribute_map[key]].is_a?(Array)
170
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
168
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
171
169
  end
172
170
  elsif !attributes[self.class.attribute_map[key]].nil?
173
171
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -249,7 +247,7 @@ module RusticiSoftwareCloudV2
249
247
  # @return [Hash] Returns the value in the form of hash
250
248
  def _to_hash(value)
251
249
  if value.is_a?(Array)
252
- value.compact.map{ |v| _to_hash(v) }
250
+ value.compact.map { |v| _to_hash(v) }
253
251
  elsif value.is_a?(Hash)
254
252
  {}.tap do |hash|
255
253
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -260,7 +258,5 @@ module RusticiSoftwareCloudV2
260
258
  value
261
259
  end
262
260
  end
263
-
264
261
  end
265
-
266
262
  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 PublicInvitationList
17
17
  # A list of public invitation objects.
18
18
  attr_accessor :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?(:'invitations')
48
47
  if (value = attributes[:'invitations']).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 PublicInvitationSchema
17
17
  # The invitationId for this invitation.
18
18
  attr_accessor :id
@@ -46,7 +46,6 @@ module RusticiSoftwareCloudV2
46
46
  # The count of registrations for this invitation
47
47
  attr_accessor :registration_count
48
48
 
49
-
50
49
  # Attribute mapping from ruby-style variable name to JSON key.
51
50
  def self.attribute_map
52
51
  {
@@ -87,7 +86,7 @@ module RusticiSoftwareCloudV2
87
86
  return unless attributes.is_a?(Hash)
88
87
 
89
88
  # convert string to symbol for hash key
90
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
89
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
91
90
 
92
91
  if attributes.has_key?(:'id')
93
92
  self.id = attributes[:'id']
@@ -134,20 +133,19 @@ module RusticiSoftwareCloudV2
134
133
  if attributes.has_key?(:'registrationCount')
135
134
  self.registration_count = attributes[:'registrationCount']
136
135
  end
137
-
138
136
  end
139
137
 
140
138
  # Show invalid properties with the reasons. Usually used together with valid?
141
- # @return Array for valid properies with the reasons
139
+ # @return Array for valid properties with the reasons
142
140
  def list_invalid_properties
143
141
  invalid_properties = Array.new
144
- return invalid_properties
142
+ invalid_properties
145
143
  end
146
144
 
147
145
  # Check to see if the all the properties in the model are valid
148
146
  # @return true if the model is valid
149
147
  def valid?
150
- return true
148
+ true
151
149
  end
152
150
 
153
151
  # Checks equality by comparing each attribute.
@@ -190,7 +188,7 @@ module RusticiSoftwareCloudV2
190
188
  # check to ensure the input is an array given that the the attribute
191
189
  # is documented as an array but the input is not
192
190
  if attributes[self.class.attribute_map[key]].is_a?(Array)
193
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
191
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
194
192
  end
195
193
  elsif !attributes[self.class.attribute_map[key]].nil?
196
194
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -272,7 +270,7 @@ module RusticiSoftwareCloudV2
272
270
  # @return [Hash] Returns the value in the form of hash
273
271
  def _to_hash(value)
274
272
  if value.is_a?(Array)
275
- value.compact.map{ |v| _to_hash(v) }
273
+ value.compact.map { |v| _to_hash(v) }
276
274
  elsif value.is_a?(Hash)
277
275
  {}.tap do |hash|
278
276
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -283,7 +281,5 @@ module RusticiSoftwareCloudV2
283
281
  value
284
282
  end
285
283
  end
286
-
287
284
  end
288
-
289
285
  end
@@ -6,6 +6,7 @@
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
 
@@ -14,9 +15,17 @@ require 'date'
14
15
  module RusticiSoftwareCloudV2
15
16
  class RegistrationCompletion
16
17
 
17
- UNKNOWN = "UNKNOWN".freeze
18
- COMPLETED = "COMPLETED".freeze
19
- INCOMPLETE = "INCOMPLETE".freeze
20
- end
18
+ UNKNOWN = 'UNKNOWN'.freeze
19
+ COMPLETED = 'COMPLETED'.freeze
20
+ INCOMPLETE = 'INCOMPLETE'.freeze
21
21
 
22
+ # Builds the enum from string
23
+ # @param [String] The enum value in the form of the string
24
+ # @return [String] The enum value
25
+ def build_from_hash(value)
26
+ constantValues = RegistrationCompletion.constants.select { |c| RegistrationCompletion::const_get(c) == value }
27
+ raise "Invalid ENUM value #{value} for class #RegistrationCompletion" if constantValues.empty?
28
+ value
29
+ end
30
+ end
22
31
  end
@@ -6,19 +6,18 @@
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 RegistrationListSchema
17
17
  attr_accessor :registrations
18
18
 
19
19
  attr_accessor :more
20
20
 
21
-
22
21
  # Attribute mapping from ruby-style variable name to JSON key.
23
22
  def self.attribute_map
24
23
  {
@@ -41,7 +40,7 @@ module RusticiSoftwareCloudV2
41
40
  return unless attributes.is_a?(Hash)
42
41
 
43
42
  # convert string to symbol for hash key
44
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
45
44
 
46
45
  if attributes.has_key?(:'registrations')
47
46
  if (value = attributes[:'registrations']).is_a?(Array)
@@ -52,25 +51,24 @@ module RusticiSoftwareCloudV2
52
51
  if attributes.has_key?(:'more')
53
52
  self.more = attributes[:'more']
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
60
  if @registrations.nil?
63
- invalid_properties.push("invalid value for 'registrations', registrations cannot be nil.")
61
+ invalid_properties.push('invalid value for "registrations", registrations cannot be nil.')
64
62
  end
65
63
 
66
- return invalid_properties
64
+ invalid_properties
67
65
  end
68
66
 
69
67
  # Check to see if the all the properties in the model are valid
70
68
  # @return true if the model is valid
71
69
  def valid?
72
70
  return false if @registrations.nil?
73
- return true
71
+ true
74
72
  end
75
73
 
76
74
  # Checks equality by comparing each attribute.
@@ -104,7 +102,7 @@ module RusticiSoftwareCloudV2
104
102
  # check to ensure the input is an array given that the the attribute
105
103
  # is documented as an array but the input is not
106
104
  if attributes[self.class.attribute_map[key]].is_a?(Array)
107
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
105
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
108
106
  end
109
107
  elsif !attributes[self.class.attribute_map[key]].nil?
110
108
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -186,7 +184,7 @@ module RusticiSoftwareCloudV2
186
184
  # @return [Hash] Returns the value in the form of hash
187
185
  def _to_hash(value)
188
186
  if value.is_a?(Array)
189
- value.compact.map{ |v| _to_hash(v) }
187
+ value.compact.map { |v| _to_hash(v) }
190
188
  elsif value.is_a?(Hash)
191
189
  {}.tap do |hash|
192
190
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -197,7 +195,5 @@ module RusticiSoftwareCloudV2
197
195
  value
198
196
  end
199
197
  end
200
-
201
198
  end
202
-
203
199
  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 RegistrationSchema
17
17
  attr_accessor :id
18
18
 
@@ -58,7 +58,6 @@ module RusticiSoftwareCloudV2
58
58
 
59
59
  attr_accessor :activity_details
60
60
 
61
-
62
61
  # Attribute mapping from ruby-style variable name to JSON key.
63
62
  def self.attribute_map
64
63
  {
@@ -119,7 +118,7 @@ module RusticiSoftwareCloudV2
119
118
  return unless attributes.is_a?(Hash)
120
119
 
121
120
  # convert string to symbol for hash key
122
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
121
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
123
122
 
124
123
  if attributes.has_key?(:'id')
125
124
  self.id = attributes[:'id']
@@ -210,20 +209,19 @@ module RusticiSoftwareCloudV2
210
209
  if attributes.has_key?(:'activityDetails')
211
210
  self.activity_details = attributes[:'activityDetails']
212
211
  end
213
-
214
212
  end
215
213
 
216
214
  # Show invalid properties with the reasons. Usually used together with valid?
217
- # @return Array for valid properies with the reasons
215
+ # @return Array for valid properties with the reasons
218
216
  def list_invalid_properties
219
217
  invalid_properties = Array.new
220
- return invalid_properties
218
+ invalid_properties
221
219
  end
222
220
 
223
221
  # Check to see if the all the properties in the model are valid
224
222
  # @return true if the model is valid
225
223
  def valid?
226
- return true
224
+ true
227
225
  end
228
226
 
229
227
  # Checks equality by comparing each attribute.
@@ -276,7 +274,7 @@ module RusticiSoftwareCloudV2
276
274
  # check to ensure the input is an array given that the the attribute
277
275
  # is documented as an array but the input is not
278
276
  if attributes[self.class.attribute_map[key]].is_a?(Array)
279
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
277
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
280
278
  end
281
279
  elsif !attributes[self.class.attribute_map[key]].nil?
282
280
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -358,7 +356,7 @@ module RusticiSoftwareCloudV2
358
356
  # @return [Hash] Returns the value in the form of hash
359
357
  def _to_hash(value)
360
358
  if value.is_a?(Array)
361
- value.compact.map{ |v| _to_hash(v) }
359
+ value.compact.map { |v| _to_hash(v) }
362
360
  elsif value.is_a?(Hash)
363
361
  {}.tap do |hash|
364
362
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -369,7 +367,5 @@ module RusticiSoftwareCloudV2
369
367
  value
370
368
  end
371
369
  end
372
-
373
370
  end
374
-
375
371
  end
@@ -6,6 +6,7 @@
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
 
@@ -14,9 +15,17 @@ require 'date'
14
15
  module RusticiSoftwareCloudV2
15
16
  class RegistrationSuccess
16
17
 
17
- UNKNOWN = "UNKNOWN".freeze
18
- PASSED = "PASSED".freeze
19
- FAILED = "FAILED".freeze
20
- end
18
+ UNKNOWN = 'UNKNOWN'.freeze
19
+ PASSED = 'PASSED'.freeze
20
+ FAILED = 'FAILED'.freeze
21
21
 
22
+ # Builds the enum from string
23
+ # @param [String] The enum value in the form of the string
24
+ # @return [String] The enum value
25
+ def build_from_hash(value)
26
+ constantValues = RegistrationSuccess.constants.select { |c| RegistrationSuccess::const_get(c) == value }
27
+ raise "Invalid ENUM value #{value} for class #RegistrationSuccess" if constantValues.empty?
28
+ value
29
+ end
30
+ end
22
31
  end