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,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
 
@@ -22,7 +23,6 @@ module RusticiSoftwareCloudV2
22
23
 
23
24
  attr_accessor :score
24
25
 
25
-
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
@@ -49,7 +49,7 @@ module RusticiSoftwareCloudV2
49
49
  return unless attributes.is_a?(Hash)
50
50
 
51
51
  # convert string to symbol for hash key
52
- 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 }
53
53
 
54
54
  if attributes.has_key?(:'complete')
55
55
  self.complete = attributes[:'complete']
@@ -66,20 +66,19 @@ module RusticiSoftwareCloudV2
66
66
  if attributes.has_key?(:'score')
67
67
  self.score = attributes[:'score']
68
68
  end
69
-
70
69
  end
71
70
 
72
71
  # Show invalid properties with the reasons. Usually used together with valid?
73
- # @return Array for valid properies with the reasons
72
+ # @return Array for valid properties with the reasons
74
73
  def list_invalid_properties
75
74
  invalid_properties = Array.new
76
- return invalid_properties
75
+ invalid_properties
77
76
  end
78
77
 
79
78
  # Check to see if the all the properties in the model are valid
80
79
  # @return true if the model is valid
81
80
  def valid?
82
- return true
81
+ true
83
82
  end
84
83
 
85
84
  # Checks equality by comparing each attribute.
@@ -115,7 +114,7 @@ module RusticiSoftwareCloudV2
115
114
  # check to ensure the input is an array given that the the attribute
116
115
  # is documented as an array but the input is not
117
116
  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) } )
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
118
  end
120
119
  elsif !attributes[self.class.attribute_map[key]].nil?
121
120
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -197,7 +196,7 @@ module RusticiSoftwareCloudV2
197
196
  # @return [Hash] Returns the value in the form of hash
198
197
  def _to_hash(value)
199
198
  if value.is_a?(Array)
200
- value.compact.map{ |v| _to_hash(v) }
199
+ value.compact.map { |v| _to_hash(v) }
201
200
  elsif value.is_a?(Hash)
202
201
  {}.tap do |hash|
203
202
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -208,7 +207,5 @@ module RusticiSoftwareCloudV2
208
207
  value
209
208
  end
210
209
  end
211
-
212
210
  end
213
-
214
211
  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
 
@@ -18,7 +19,6 @@ module RusticiSoftwareCloudV2
18
19
 
19
20
  attr_accessor :name
20
21
 
21
-
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
@@ -41,7 +41,7 @@ module RusticiSoftwareCloudV2
41
41
  return unless attributes.is_a?(Hash)
42
42
 
43
43
  # convert string to symbol for hash key
44
- 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 }
45
45
 
46
46
  if attributes.has_key?(:'homePage')
47
47
  self.home_page = attributes[:'homePage']
@@ -50,22 +50,21 @@ module RusticiSoftwareCloudV2
50
50
  if attributes.has_key?(:'name')
51
51
  self.name = attributes[:'name']
52
52
  end
53
-
54
53
  end
55
54
 
56
55
  # Show invalid properties with the reasons. Usually used together with valid?
57
- # @return Array for valid properies with the reasons
56
+ # @return Array for valid properties with the reasons
58
57
  def list_invalid_properties
59
58
  invalid_properties = Array.new
60
59
  if @home_page.nil?
61
- invalid_properties.push("invalid value for 'home_page', home_page cannot be nil.")
60
+ invalid_properties.push('invalid value for "home_page", home_page cannot be nil.')
62
61
  end
63
62
 
64
63
  if @name.nil?
65
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
64
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
66
65
  end
67
66
 
68
- return invalid_properties
67
+ invalid_properties
69
68
  end
70
69
 
71
70
  # Check to see if the all the properties in the model are valid
@@ -73,7 +72,7 @@ module RusticiSoftwareCloudV2
73
72
  def valid?
74
73
  return false if @home_page.nil?
75
74
  return false if @name.nil?
76
- return true
75
+ true
77
76
  end
78
77
 
79
78
  # Checks equality by comparing each attribute.
@@ -107,7 +106,7 @@ module RusticiSoftwareCloudV2
107
106
  # check to ensure the input is an array given that the the attribute
108
107
  # is documented as an array but the input is not
109
108
  if attributes[self.class.attribute_map[key]].is_a?(Array)
110
- 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) })
111
110
  end
112
111
  elsif !attributes[self.class.attribute_map[key]].nil?
113
112
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -189,7 +188,7 @@ module RusticiSoftwareCloudV2
189
188
  # @return [Hash] Returns the value in the form of hash
190
189
  def _to_hash(value)
191
190
  if value.is_a?(Array)
192
- value.compact.map{ |v| _to_hash(v) }
191
+ value.compact.map { |v| _to_hash(v) }
193
192
  elsif value.is_a?(Hash)
194
193
  {}.tap do |hash|
195
194
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -200,7 +199,5 @@ module RusticiSoftwareCloudV2
200
199
  value
201
200
  end
202
201
  end
203
-
204
202
  end
205
-
206
203
  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
 
@@ -20,7 +21,6 @@ module RusticiSoftwareCloudV2
20
21
 
21
22
  attr_accessor :definition
22
23
 
23
-
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
@@ -45,12 +45,12 @@ module RusticiSoftwareCloudV2
45
45
  return unless attributes.is_a?(Hash)
46
46
 
47
47
  # convert string to symbol for hash key
48
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
49
49
 
50
50
  if attributes.has_key?(:'objectType')
51
51
  self.object_type = attributes[:'objectType']
52
52
  else
53
- self.object_type = "Activity"
53
+ self.object_type = 'Activity'
54
54
  end
55
55
 
56
56
  if attributes.has_key?(:'id')
@@ -60,25 +60,24 @@ module RusticiSoftwareCloudV2
60
60
  if attributes.has_key?(:'definition')
61
61
  self.definition = attributes[:'definition']
62
62
  end
63
-
64
63
  end
65
64
 
66
65
  # Show invalid properties with the reasons. Usually used together with valid?
67
- # @return Array for valid properies with the reasons
66
+ # @return Array for valid properties with the reasons
68
67
  def list_invalid_properties
69
68
  invalid_properties = Array.new
70
69
  if @id.nil?
71
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
70
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
72
71
  end
73
72
 
74
- return invalid_properties
73
+ invalid_properties
75
74
  end
76
75
 
77
76
  # Check to see if the all the properties in the model are valid
78
77
  # @return true if the model is valid
79
78
  def valid?
80
79
  return false if @id.nil?
81
- return true
80
+ true
82
81
  end
83
82
 
84
83
  # Checks equality by comparing each attribute.
@@ -113,7 +112,7 @@ module RusticiSoftwareCloudV2
113
112
  # check to ensure the input is an array given that the the attribute
114
113
  # is documented as an array but the input is not
115
114
  if attributes[self.class.attribute_map[key]].is_a?(Array)
116
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
116
  end
118
117
  elsif !attributes[self.class.attribute_map[key]].nil?
119
118
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -195,7 +194,7 @@ module RusticiSoftwareCloudV2
195
194
  # @return [Hash] Returns the value in the form of hash
196
195
  def _to_hash(value)
197
196
  if value.is_a?(Array)
198
- value.compact.map{ |v| _to_hash(v) }
197
+ value.compact.map { |v| _to_hash(v) }
199
198
  elsif value.is_a?(Hash)
200
199
  {}.tap do |hash|
201
200
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -206,7 +205,5 @@ module RusticiSoftwareCloudV2
206
205
  value
207
206
  end
208
207
  end
209
-
210
208
  end
211
-
212
209
  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
 
@@ -38,7 +39,6 @@ module RusticiSoftwareCloudV2
38
39
 
39
40
  attr_accessor :extensions
40
41
 
41
-
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
@@ -81,16 +81,16 @@ module RusticiSoftwareCloudV2
81
81
  return unless attributes.is_a?(Hash)
82
82
 
83
83
  # convert string to symbol for hash key
84
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
84
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
85
85
 
86
86
  if attributes.has_key?(:'name')
87
- if (value = attributes[:'name']).is_a?(Array)
87
+ if (value = attributes[:'name']).is_a?(Hash)
88
88
  self.name = value
89
89
  end
90
90
  end
91
91
 
92
92
  if attributes.has_key?(:'description')
93
- if (value = attributes[:'description']).is_a?(Array)
93
+ if (value = attributes[:'description']).is_a?(Hash)
94
94
  self.description = value
95
95
  end
96
96
  end
@@ -144,24 +144,23 @@ module RusticiSoftwareCloudV2
144
144
  end
145
145
 
146
146
  if attributes.has_key?(:'extensions')
147
- if (value = attributes[:'extensions']).is_a?(Array)
147
+ if (value = attributes[:'extensions']).is_a?(Hash)
148
148
  self.extensions = value
149
149
  end
150
150
  end
151
-
152
151
  end
153
152
 
154
153
  # Show invalid properties with the reasons. Usually used together with valid?
155
- # @return Array for valid properies with the reasons
154
+ # @return Array for valid properties with the reasons
156
155
  def list_invalid_properties
157
156
  invalid_properties = Array.new
158
- return invalid_properties
157
+ invalid_properties
159
158
  end
160
159
 
161
160
  # Check to see if the all the properties in the model are valid
162
161
  # @return true if the model is valid
163
162
  def valid?
164
- return true
163
+ true
165
164
  end
166
165
 
167
166
  # Checks equality by comparing each attribute.
@@ -205,7 +204,7 @@ module RusticiSoftwareCloudV2
205
204
  # check to ensure the input is an array given that the the attribute
206
205
  # is documented as an array but the input is not
207
206
  if attributes[self.class.attribute_map[key]].is_a?(Array)
208
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
207
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
209
208
  end
210
209
  elsif !attributes[self.class.attribute_map[key]].nil?
211
210
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -287,7 +286,7 @@ module RusticiSoftwareCloudV2
287
286
  # @return [Hash] Returns the value in the form of hash
288
287
  def _to_hash(value)
289
288
  if value.is_a?(Array)
290
- value.compact.map{ |v| _to_hash(v) }
289
+ value.compact.map { |v| _to_hash(v) }
291
290
  elsif value.is_a?(Hash)
292
291
  {}.tap do |hash|
293
292
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -298,7 +297,5 @@ module RusticiSoftwareCloudV2
298
297
  value
299
298
  end
300
299
  end
301
-
302
300
  end
303
-
304
301
  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
 
@@ -82,7 +83,7 @@ module RusticiSoftwareCloudV2
82
83
  return unless attributes.is_a?(Hash)
83
84
 
84
85
  # convert string to symbol for hash key
85
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
86
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
86
87
 
87
88
  if attributes.has_key?(:'objectType')
88
89
  self.object_type = attributes[:'objectType']
@@ -113,35 +114,34 @@ module RusticiSoftwareCloudV2
113
114
  self.member = value
114
115
  end
115
116
  end
116
-
117
117
  end
118
118
 
119
119
  # Show invalid properties with the reasons. Usually used together with valid?
120
- # @return Array for valid properies with the reasons
120
+ # @return Array for valid properties with the reasons
121
121
  def list_invalid_properties
122
122
  invalid_properties = Array.new
123
123
  if @object_type.nil?
124
- invalid_properties.push("invalid value for 'object_type', object_type cannot be nil.")
124
+ invalid_properties.push('invalid value for "object_type", object_type cannot be nil.')
125
125
  end
126
126
 
127
- return invalid_properties
127
+ invalid_properties
128
128
  end
129
129
 
130
130
  # Check to see if the all the properties in the model are valid
131
131
  # @return true if the model is valid
132
132
  def valid?
133
133
  return false if @object_type.nil?
134
- object_type_validator = EnumAttributeValidator.new('String', ["Agent", "Group"])
134
+ object_type_validator = EnumAttributeValidator.new('String', ['Agent', 'Group'])
135
135
  return false unless object_type_validator.valid?(@object_type)
136
- return true
136
+ true
137
137
  end
138
138
 
139
139
  # Custom attribute writer method checking allowed values (enum).
140
140
  # @param [Object] object_type Object to be assigned
141
141
  def object_type=(object_type)
142
- validator = EnumAttributeValidator.new('String', ["Agent", "Group"])
142
+ validator = EnumAttributeValidator.new('String', ['Agent', 'Group'])
143
143
  unless validator.valid?(object_type)
144
- fail ArgumentError, "invalid value for 'object_type', must be one of #{validator.allowable_values}."
144
+ fail ArgumentError, 'invalid value for "object_type", must be one of #{validator.allowable_values}.'
145
145
  end
146
146
  @object_type = object_type
147
147
  end
@@ -182,7 +182,7 @@ module RusticiSoftwareCloudV2
182
182
  # check to ensure the input is an array given that the the attribute
183
183
  # is documented as an array but the input is not
184
184
  if attributes[self.class.attribute_map[key]].is_a?(Array)
185
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
185
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
186
186
  end
187
187
  elsif !attributes[self.class.attribute_map[key]].nil?
188
188
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -264,7 +264,7 @@ module RusticiSoftwareCloudV2
264
264
  # @return [Hash] Returns the value in the form of hash
265
265
  def _to_hash(value)
266
266
  if value.is_a?(Array)
267
- value.compact.map{ |v| _to_hash(v) }
267
+ value.compact.map { |v| _to_hash(v) }
268
268
  elsif value.is_a?(Hash)
269
269
  {}.tap do |hash|
270
270
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -275,7 +275,5 @@ module RusticiSoftwareCloudV2
275
275
  value
276
276
  end
277
277
  end
278
-
279
278
  end
280
-
281
279
  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
 
@@ -28,7 +29,6 @@ module RusticiSoftwareCloudV2
28
29
 
29
30
  attr_accessor :file_url
30
31
 
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
@@ -61,20 +61,20 @@ module RusticiSoftwareCloudV2
61
61
  return unless attributes.is_a?(Hash)
62
62
 
63
63
  # convert string to symbol for hash key
64
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
64
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
65
 
66
66
  if attributes.has_key?(:'usageType')
67
67
  self.usage_type = attributes[:'usageType']
68
68
  end
69
69
 
70
70
  if attributes.has_key?(:'display')
71
- if (value = attributes[:'display']).is_a?(Array)
71
+ if (value = attributes[:'display']).is_a?(Hash)
72
72
  self.display = value
73
73
  end
74
74
  end
75
75
 
76
76
  if attributes.has_key?(:'description')
77
- if (value = attributes[:'description']).is_a?(Array)
77
+ if (value = attributes[:'description']).is_a?(Hash)
78
78
  self.description = value
79
79
  end
80
80
  end
@@ -94,34 +94,33 @@ module RusticiSoftwareCloudV2
94
94
  if attributes.has_key?(:'fileUrl')
95
95
  self.file_url = attributes[:'fileUrl']
96
96
  end
97
-
98
97
  end
99
98
 
100
99
  # Show invalid properties with the reasons. Usually used together with valid?
101
- # @return Array for valid properies with the reasons
100
+ # @return Array for valid properties with the reasons
102
101
  def list_invalid_properties
103
102
  invalid_properties = Array.new
104
103
  if @usage_type.nil?
105
- invalid_properties.push("invalid value for 'usage_type', usage_type cannot be nil.")
104
+ invalid_properties.push('invalid value for "usage_type", usage_type cannot be nil.')
106
105
  end
107
106
 
108
107
  if @display.nil?
109
- invalid_properties.push("invalid value for 'display', display cannot be nil.")
108
+ invalid_properties.push('invalid value for "display", display cannot be nil.')
110
109
  end
111
110
 
112
111
  if @content_type.nil?
113
- invalid_properties.push("invalid value for 'content_type', content_type cannot be nil.")
112
+ invalid_properties.push('invalid value for "content_type", content_type cannot be nil.')
114
113
  end
115
114
 
116
115
  if @length.nil?
117
- invalid_properties.push("invalid value for 'length', length cannot be nil.")
116
+ invalid_properties.push('invalid value for "length", length cannot be nil.')
118
117
  end
119
118
 
120
119
  if @sha2.nil?
121
- invalid_properties.push("invalid value for 'sha2', sha2 cannot be nil.")
120
+ invalid_properties.push('invalid value for "sha2", sha2 cannot be nil.')
122
121
  end
123
122
 
124
- return invalid_properties
123
+ invalid_properties
125
124
  end
126
125
 
127
126
  # Check to see if the all the properties in the model are valid
@@ -132,7 +131,7 @@ module RusticiSoftwareCloudV2
132
131
  return false if @content_type.nil?
133
132
  return false if @length.nil?
134
133
  return false if @sha2.nil?
135
- return true
134
+ true
136
135
  end
137
136
 
138
137
  # Checks equality by comparing each attribute.
@@ -171,7 +170,7 @@ module RusticiSoftwareCloudV2
171
170
  # check to ensure the input is an array given that the the attribute
172
171
  # is documented as an array but the input is not
173
172
  if attributes[self.class.attribute_map[key]].is_a?(Array)
174
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
173
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
175
174
  end
176
175
  elsif !attributes[self.class.attribute_map[key]].nil?
177
176
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -253,7 +252,7 @@ module RusticiSoftwareCloudV2
253
252
  # @return [Hash] Returns the value in the form of hash
254
253
  def _to_hash(value)
255
254
  if value.is_a?(Array)
256
- value.compact.map{ |v| _to_hash(v) }
255
+ value.compact.map { |v| _to_hash(v) }
257
256
  elsif value.is_a?(Hash)
258
257
  {}.tap do |hash|
259
258
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -264,7 +263,5 @@ module RusticiSoftwareCloudV2
264
263
  value
265
264
  end
266
265
  end
267
-
268
266
  end
269
-
270
267
  end