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
 
@@ -32,7 +33,6 @@ module RusticiSoftwareCloudV2
32
33
 
33
34
  attr_accessor :extensions
34
35
 
35
-
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
@@ -69,7 +69,7 @@ module RusticiSoftwareCloudV2
69
69
  return unless attributes.is_a?(Hash)
70
70
 
71
71
  # convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
72
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
73
 
74
74
  if attributes.has_key?(:'registration')
75
75
  self.registration = attributes[:'registration']
@@ -104,24 +104,23 @@ module RusticiSoftwareCloudV2
104
104
  end
105
105
 
106
106
  if attributes.has_key?(:'extensions')
107
- if (value = attributes[:'extensions']).is_a?(Array)
107
+ if (value = attributes[:'extensions']).is_a?(Hash)
108
108
  self.extensions = value
109
109
  end
110
110
  end
111
-
112
111
  end
113
112
 
114
113
  # Show invalid properties with the reasons. Usually used together with valid?
115
- # @return Array for valid properies with the reasons
114
+ # @return Array for valid properties with the reasons
116
115
  def list_invalid_properties
117
116
  invalid_properties = Array.new
118
- return invalid_properties
117
+ invalid_properties
119
118
  end
120
119
 
121
120
  # Check to see if the all the properties in the model are valid
122
121
  # @return true if the model is valid
123
122
  def valid?
124
- return true
123
+ true
125
124
  end
126
125
 
127
126
  # Checks equality by comparing each attribute.
@@ -162,7 +161,7 @@ module RusticiSoftwareCloudV2
162
161
  # check to ensure the input is an array given that the the attribute
163
162
  # is documented as an array but the input is not
164
163
  if attributes[self.class.attribute_map[key]].is_a?(Array)
165
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
164
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
166
165
  end
167
166
  elsif !attributes[self.class.attribute_map[key]].nil?
168
167
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -244,7 +243,7 @@ module RusticiSoftwareCloudV2
244
243
  # @return [Hash] Returns the value in the form of hash
245
244
  def _to_hash(value)
246
245
  if value.is_a?(Array)
247
- value.compact.map{ |v| _to_hash(v) }
246
+ value.compact.map { |v| _to_hash(v) }
248
247
  elsif value.is_a?(Hash)
249
248
  {}.tap do |hash|
250
249
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -255,7 +254,5 @@ module RusticiSoftwareCloudV2
255
254
  value
256
255
  end
257
256
  end
258
-
259
257
  end
260
-
261
258
  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
 
@@ -22,7 +23,6 @@ module RusticiSoftwareCloudV2
22
23
 
23
24
  attr_accessor :other
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?(:'parent')
55
55
  if (value = attributes[:'parent']).is_a?(Array)
@@ -74,20 +74,19 @@ module RusticiSoftwareCloudV2
74
74
  self.other = value
75
75
  end
76
76
  end
77
-
78
77
  end
79
78
 
80
79
  # Show invalid properties with the reasons. Usually used together with valid?
81
- # @return Array for valid properies with the reasons
80
+ # @return Array for valid properties with the reasons
82
81
  def list_invalid_properties
83
82
  invalid_properties = Array.new
84
- return invalid_properties
83
+ invalid_properties
85
84
  end
86
85
 
87
86
  # Check to see if the all the properties in the model are valid
88
87
  # @return true if the model is valid
89
88
  def valid?
90
- return true
89
+ true
91
90
  end
92
91
 
93
92
  # Checks equality by comparing each attribute.
@@ -123,7 +122,7 @@ module RusticiSoftwareCloudV2
123
122
  # check to ensure the input is an array given that the the attribute
124
123
  # is documented as an array but the input is not
125
124
  if attributes[self.class.attribute_map[key]].is_a?(Array)
126
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
126
  end
128
127
  elsif !attributes[self.class.attribute_map[key]].nil?
129
128
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -205,7 +204,7 @@ module RusticiSoftwareCloudV2
205
204
  # @return [Hash] Returns the value in the form of hash
206
205
  def _to_hash(value)
207
206
  if value.is_a?(Array)
208
- value.compact.map{ |v| _to_hash(v) }
207
+ value.compact.map { |v| _to_hash(v) }
209
208
  elsif value.is_a?(Hash)
210
209
  {}.tap do |hash|
211
210
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -216,7 +215,5 @@ module RusticiSoftwareCloudV2
216
215
  value
217
216
  end
218
217
  end
219
-
220
218
  end
221
-
222
219
  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 XapiCredentialAuthTypeSchema
17
17
  attr_accessor :xapi_credential_auth_type
18
18
 
@@ -58,35 +58,34 @@ module RusticiSoftwareCloudV2
58
58
  return unless attributes.is_a?(Hash)
59
59
 
60
60
  # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
61
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
62
 
63
63
  if attributes.has_key?(:'xapiCredentialAuthType')
64
64
  self.xapi_credential_auth_type = attributes[:'xapiCredentialAuthType']
65
65
  end
66
-
67
66
  end
68
67
 
69
68
  # Show invalid properties with the reasons. Usually used together with valid?
70
- # @return Array for valid properies with the reasons
69
+ # @return Array for valid properties with the reasons
71
70
  def list_invalid_properties
72
71
  invalid_properties = Array.new
73
- return invalid_properties
72
+ invalid_properties
74
73
  end
75
74
 
76
75
  # Check to see if the all the properties in the model are valid
77
76
  # @return true if the model is valid
78
77
  def valid?
79
- xapi_credential_auth_type_validator = EnumAttributeValidator.new('String', ["BASICAUTH", "OAUTH"])
78
+ xapi_credential_auth_type_validator = EnumAttributeValidator.new('String', ['BASICAUTH', 'OAUTH'])
80
79
  return false unless xapi_credential_auth_type_validator.valid?(@xapi_credential_auth_type)
81
- return true
80
+ true
82
81
  end
83
82
 
84
83
  # Custom attribute writer method checking allowed values (enum).
85
84
  # @param [Object] xapi_credential_auth_type Object to be assigned
86
85
  def xapi_credential_auth_type=(xapi_credential_auth_type)
87
- validator = EnumAttributeValidator.new('String', ["BASICAUTH", "OAUTH"])
86
+ validator = EnumAttributeValidator.new('String', ['BASICAUTH', 'OAUTH'])
88
87
  unless validator.valid?(xapi_credential_auth_type)
89
- fail ArgumentError, "invalid value for 'xapi_credential_auth_type', must be one of #{validator.allowable_values}."
88
+ fail ArgumentError, 'invalid value for "xapi_credential_auth_type", must be one of #{validator.allowable_values}.'
90
89
  end
91
90
  @xapi_credential_auth_type = xapi_credential_auth_type
92
91
  end
@@ -121,7 +120,7 @@ module RusticiSoftwareCloudV2
121
120
  # check to ensure the input is an array given that the the attribute
122
121
  # is documented as an array but the input is not
123
122
  if attributes[self.class.attribute_map[key]].is_a?(Array)
124
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
123
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
124
  end
126
125
  elsif !attributes[self.class.attribute_map[key]].nil?
127
126
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -203,7 +202,7 @@ module RusticiSoftwareCloudV2
203
202
  # @return [Hash] Returns the value in the form of hash
204
203
  def _to_hash(value)
205
204
  if value.is_a?(Array)
206
- value.compact.map{ |v| _to_hash(v) }
205
+ value.compact.map { |v| _to_hash(v) }
207
206
  elsif value.is_a?(Hash)
208
207
  {}.tap do |hash|
209
208
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -214,7 +213,5 @@ module RusticiSoftwareCloudV2
214
213
  value
215
214
  end
216
215
  end
217
-
218
216
  end
219
-
220
217
  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 XapiCredentialPermissionsLevelSchema
17
17
  attr_accessor :xapi_credential_permissions_level
18
18
 
@@ -58,35 +58,34 @@ module RusticiSoftwareCloudV2
58
58
  return unless attributes.is_a?(Hash)
59
59
 
60
60
  # convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
61
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
62
 
63
63
  if attributes.has_key?(:'xapiCredentialPermissionsLevel')
64
64
  self.xapi_credential_permissions_level = attributes[:'xapiCredentialPermissionsLevel']
65
65
  end
66
-
67
66
  end
68
67
 
69
68
  # Show invalid properties with the reasons. Usually used together with valid?
70
- # @return Array for valid properies with the reasons
69
+ # @return Array for valid properties with the reasons
71
70
  def list_invalid_properties
72
71
  invalid_properties = Array.new
73
- return invalid_properties
72
+ invalid_properties
74
73
  end
75
74
 
76
75
  # Check to see if the all the properties in the model are valid
77
76
  # @return true if the model is valid
78
77
  def valid?
79
- xapi_credential_permissions_level_validator = EnumAttributeValidator.new('String', ["DEFAULT", "USER", "ROOT", "READONLY", "WRITEONLY"])
78
+ xapi_credential_permissions_level_validator = EnumAttributeValidator.new('String', ['DEFAULT', 'USER', 'ROOT', 'READONLY', 'WRITEONLY'])
80
79
  return false unless xapi_credential_permissions_level_validator.valid?(@xapi_credential_permissions_level)
81
- return true
80
+ true
82
81
  end
83
82
 
84
83
  # Custom attribute writer method checking allowed values (enum).
85
84
  # @param [Object] xapi_credential_permissions_level Object to be assigned
86
85
  def xapi_credential_permissions_level=(xapi_credential_permissions_level)
87
- validator = EnumAttributeValidator.new('String', ["DEFAULT", "USER", "ROOT", "READONLY", "WRITEONLY"])
86
+ validator = EnumAttributeValidator.new('String', ['DEFAULT', 'USER', 'ROOT', 'READONLY', 'WRITEONLY'])
88
87
  unless validator.valid?(xapi_credential_permissions_level)
89
- fail ArgumentError, "invalid value for 'xapi_credential_permissions_level', must be one of #{validator.allowable_values}."
88
+ fail ArgumentError, 'invalid value for "xapi_credential_permissions_level", must be one of #{validator.allowable_values}.'
90
89
  end
91
90
  @xapi_credential_permissions_level = xapi_credential_permissions_level
92
91
  end
@@ -121,7 +120,7 @@ module RusticiSoftwareCloudV2
121
120
  # check to ensure the input is an array given that the the attribute
122
121
  # is documented as an array but the input is not
123
122
  if attributes[self.class.attribute_map[key]].is_a?(Array)
124
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
123
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
124
  end
126
125
  elsif !attributes[self.class.attribute_map[key]].nil?
127
126
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -203,7 +202,7 @@ module RusticiSoftwareCloudV2
203
202
  # @return [Hash] Returns the value in the form of hash
204
203
  def _to_hash(value)
205
204
  if value.is_a?(Array)
206
- value.compact.map{ |v| _to_hash(v) }
205
+ value.compact.map { |v| _to_hash(v) }
207
206
  elsif value.is_a?(Hash)
208
207
  {}.tap do |hash|
209
208
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -214,7 +213,5 @@ module RusticiSoftwareCloudV2
214
213
  value
215
214
  end
216
215
  end
217
-
218
216
  end
219
-
220
217
  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 XapiCredentialPostSchema
17
17
  attr_accessor :name
18
18
 
@@ -26,7 +26,6 @@ module RusticiSoftwareCloudV2
26
26
 
27
27
  attr_accessor :permissions_level
28
28
 
29
-
30
29
  # Attribute mapping from ruby-style variable name to JSON key.
31
30
  def self.attribute_map
32
31
  {
@@ -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']
@@ -82,34 +81,33 @@ module RusticiSoftwareCloudV2
82
81
  if attributes.has_key?(:'permissionsLevel')
83
82
  self.permissions_level = attributes[:'permissionsLevel']
84
83
  end
85
-
86
84
  end
87
85
 
88
86
  # Show invalid properties with the reasons. Usually used together with valid?
89
- # @return Array for valid properies with the reasons
87
+ # @return Array for valid properties with the reasons
90
88
  def list_invalid_properties
91
89
  invalid_properties = Array.new
92
90
  if @name.nil?
93
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
91
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
94
92
  end
95
93
 
96
94
  if @secret.nil?
97
- invalid_properties.push("invalid value for 'secret', secret cannot be nil.")
95
+ invalid_properties.push('invalid value for "secret", secret cannot be nil.')
98
96
  end
99
97
 
100
98
  if @is_enabled.nil?
101
- invalid_properties.push("invalid value for 'is_enabled', is_enabled cannot be nil.")
99
+ invalid_properties.push('invalid value for "is_enabled", is_enabled cannot be nil.')
102
100
  end
103
101
 
104
102
  if @auth.nil?
105
- invalid_properties.push("invalid value for 'auth', auth cannot be nil.")
103
+ invalid_properties.push('invalid value for "auth", auth cannot be nil.')
106
104
  end
107
105
 
108
106
  if @permissions_level.nil?
109
- invalid_properties.push("invalid value for 'permissions_level', permissions_level cannot be nil.")
107
+ invalid_properties.push('invalid value for "permissions_level", permissions_level cannot be nil.')
110
108
  end
111
109
 
112
- return invalid_properties
110
+ invalid_properties
113
111
  end
114
112
 
115
113
  # Check to see if the all the properties in the model are valid
@@ -120,7 +118,7 @@ module RusticiSoftwareCloudV2
120
118
  return false if @is_enabled.nil?
121
119
  return false if @auth.nil?
122
120
  return false if @permissions_level.nil?
123
- return true
121
+ true
124
122
  end
125
123
 
126
124
  # Checks equality by comparing each attribute.
@@ -158,7 +156,7 @@ module RusticiSoftwareCloudV2
158
156
  # check to ensure the input is an array given that the the attribute
159
157
  # is documented as an array but the input is not
160
158
  if attributes[self.class.attribute_map[key]].is_a?(Array)
161
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
159
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
162
160
  end
163
161
  elsif !attributes[self.class.attribute_map[key]].nil?
164
162
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -240,7 +238,7 @@ module RusticiSoftwareCloudV2
240
238
  # @return [Hash] Returns the value in the form of hash
241
239
  def _to_hash(value)
242
240
  if value.is_a?(Array)
243
- value.compact.map{ |v| _to_hash(v) }
241
+ value.compact.map { |v| _to_hash(v) }
244
242
  elsif value.is_a?(Hash)
245
243
  {}.tap do |hash|
246
244
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -251,7 +249,5 @@ module RusticiSoftwareCloudV2
251
249
  value
252
250
  end
253
251
  end
254
-
255
252
  end
256
-
257
253
  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 XapiCredentialPutSchema
17
17
  attr_accessor :id
18
18
 
@@ -28,7 +28,6 @@ module RusticiSoftwareCloudV2
28
28
 
29
29
  attr_accessor :permissions_level
30
30
 
31
-
32
31
  # Attribute mapping from ruby-style variable name to JSON key.
33
32
  def self.attribute_map
34
33
  {
@@ -61,7 +60,7 @@ module RusticiSoftwareCloudV2
61
60
  return unless attributes.is_a?(Hash)
62
61
 
63
62
  # convert string to symbol for hash key
64
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
63
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
64
 
66
65
  if attributes.has_key?(:'id')
67
66
  self.id = attributes[:'id']
@@ -90,20 +89,19 @@ module RusticiSoftwareCloudV2
90
89
  if attributes.has_key?(:'permissionsLevel')
91
90
  self.permissions_level = attributes[:'permissionsLevel']
92
91
  end
93
-
94
92
  end
95
93
 
96
94
  # Show invalid properties with the reasons. Usually used together with valid?
97
- # @return Array for valid properies with the reasons
95
+ # @return Array for valid properties with the reasons
98
96
  def list_invalid_properties
99
97
  invalid_properties = Array.new
100
- return invalid_properties
98
+ invalid_properties
101
99
  end
102
100
 
103
101
  # Check to see if the all the properties in the model are valid
104
102
  # @return true if the model is valid
105
103
  def valid?
106
- return true
104
+ true
107
105
  end
108
106
 
109
107
  # Checks equality by comparing each attribute.
@@ -142,7 +140,7 @@ module RusticiSoftwareCloudV2
142
140
  # check to ensure the input is an array given that the the attribute
143
141
  # is documented as an array but the input is not
144
142
  if attributes[self.class.attribute_map[key]].is_a?(Array)
145
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
143
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
144
  end
147
145
  elsif !attributes[self.class.attribute_map[key]].nil?
148
146
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -224,7 +222,7 @@ module RusticiSoftwareCloudV2
224
222
  # @return [Hash] Returns the value in the form of hash
225
223
  def _to_hash(value)
226
224
  if value.is_a?(Array)
227
- value.compact.map{ |v| _to_hash(v) }
225
+ value.compact.map { |v| _to_hash(v) }
228
226
  elsif value.is_a?(Hash)
229
227
  {}.tap do |hash|
230
228
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -235,7 +233,5 @@ module RusticiSoftwareCloudV2
235
233
  value
236
234
  end
237
235
  end
238
-
239
236
  end
240
-
241
237
  end