rustici_software_cloud_v2 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/rustici_software_cloud_v2.rb +1 -0
- data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
- data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
- data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
- data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/version.rb +2 -1
- data/rustici_software_cloud_v2.gemspec +8 -7
- data/spec/api_client_spec.rb +35 -34
- data/spec/configuration_spec.rb +9 -8
- data/spec/spec_helper.rb +1 -0
- 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 ImportJobResultSchema
|
|
17
17
|
attr_accessor :job_id
|
|
18
18
|
|
|
@@ -70,7 +70,7 @@ module RusticiSoftwareCloudV2
|
|
|
70
70
|
return unless attributes.is_a?(Hash)
|
|
71
71
|
|
|
72
72
|
# convert string to symbol for hash key
|
|
73
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
74
74
|
|
|
75
75
|
if attributes.has_key?(:'jobId')
|
|
76
76
|
self.job_id = attributes[:'jobId']
|
|
@@ -87,30 +87,29 @@ module RusticiSoftwareCloudV2
|
|
|
87
87
|
if attributes.has_key?(:'importResult')
|
|
88
88
|
self.import_result = attributes[:'importResult']
|
|
89
89
|
end
|
|
90
|
-
|
|
91
90
|
end
|
|
92
91
|
|
|
93
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
-
# @return Array for valid
|
|
93
|
+
# @return Array for valid properties with the reasons
|
|
95
94
|
def list_invalid_properties
|
|
96
95
|
invalid_properties = Array.new
|
|
97
|
-
|
|
96
|
+
invalid_properties
|
|
98
97
|
end
|
|
99
98
|
|
|
100
99
|
# Check to see if the all the properties in the model are valid
|
|
101
100
|
# @return true if the model is valid
|
|
102
101
|
def valid?
|
|
103
|
-
status_validator = EnumAttributeValidator.new('String', [
|
|
102
|
+
status_validator = EnumAttributeValidator.new('String', ['RUNNING', 'COMPLETE', 'ERROR'])
|
|
104
103
|
return false unless status_validator.valid?(@status)
|
|
105
|
-
|
|
104
|
+
true
|
|
106
105
|
end
|
|
107
106
|
|
|
108
107
|
# Custom attribute writer method checking allowed values (enum).
|
|
109
108
|
# @param [Object] status Object to be assigned
|
|
110
109
|
def status=(status)
|
|
111
|
-
validator = EnumAttributeValidator.new('String', [
|
|
110
|
+
validator = EnumAttributeValidator.new('String', ['RUNNING', 'COMPLETE', 'ERROR'])
|
|
112
111
|
unless validator.valid?(status)
|
|
113
|
-
fail ArgumentError,
|
|
112
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
|
114
113
|
end
|
|
115
114
|
@status = status
|
|
116
115
|
end
|
|
@@ -148,7 +147,7 @@ module RusticiSoftwareCloudV2
|
|
|
148
147
|
# check to ensure the input is an array given that the the attribute
|
|
149
148
|
# is documented as an array but the input is not
|
|
150
149
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
151
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
152
151
|
end
|
|
153
152
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
154
153
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -230,7 +229,7 @@ module RusticiSoftwareCloudV2
|
|
|
230
229
|
# @return [Hash] Returns the value in the form of hash
|
|
231
230
|
def _to_hash(value)
|
|
232
231
|
if value.is_a?(Array)
|
|
233
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
|
234
233
|
elsif value.is_a?(Hash)
|
|
235
234
|
{}.tap do |hash|
|
|
236
235
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -241,7 +240,5 @@ module RusticiSoftwareCloudV2
|
|
|
241
240
|
value
|
|
242
241
|
end
|
|
243
242
|
end
|
|
244
|
-
|
|
245
243
|
end
|
|
246
|
-
|
|
247
244
|
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 ImportResultSchema
|
|
17
17
|
# web path to this course
|
|
18
18
|
attr_accessor :web_path_to_course
|
|
@@ -23,7 +23,6 @@ module RusticiSoftwareCloudV2
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :course
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
27
|
def self.attribute_map
|
|
29
28
|
{
|
|
@@ -50,7 +49,7 @@ module RusticiSoftwareCloudV2
|
|
|
50
49
|
return unless attributes.is_a?(Hash)
|
|
51
50
|
|
|
52
51
|
# convert string to symbol for hash key
|
|
53
|
-
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 }
|
|
54
53
|
|
|
55
54
|
if attributes.has_key?(:'webPathToCourse')
|
|
56
55
|
self.web_path_to_course = attributes[:'webPathToCourse']
|
|
@@ -71,20 +70,19 @@ module RusticiSoftwareCloudV2
|
|
|
71
70
|
if attributes.has_key?(:'course')
|
|
72
71
|
self.course = attributes[:'course']
|
|
73
72
|
end
|
|
74
|
-
|
|
75
73
|
end
|
|
76
74
|
|
|
77
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
78
|
-
# @return Array for valid
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
79
77
|
def list_invalid_properties
|
|
80
78
|
invalid_properties = Array.new
|
|
81
|
-
|
|
79
|
+
invalid_properties
|
|
82
80
|
end
|
|
83
81
|
|
|
84
82
|
# Check to see if the all the properties in the model are valid
|
|
85
83
|
# @return true if the model is valid
|
|
86
84
|
def valid?
|
|
87
|
-
|
|
85
|
+
true
|
|
88
86
|
end
|
|
89
87
|
|
|
90
88
|
# Checks equality by comparing each attribute.
|
|
@@ -120,7 +118,7 @@ module RusticiSoftwareCloudV2
|
|
|
120
118
|
# check to ensure the input is an array given that the the attribute
|
|
121
119
|
# is documented as an array but the input is not
|
|
122
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
123
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
121
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
124
122
|
end
|
|
125
123
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
126
124
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -202,7 +200,7 @@ module RusticiSoftwareCloudV2
|
|
|
202
200
|
# @return [Hash] Returns the value in the form of hash
|
|
203
201
|
def _to_hash(value)
|
|
204
202
|
if value.is_a?(Array)
|
|
205
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
|
206
204
|
elsif value.is_a?(Hash)
|
|
207
205
|
{}.tap do |hash|
|
|
208
206
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -213,7 +211,5 @@ module RusticiSoftwareCloudV2
|
|
|
213
211
|
value
|
|
214
212
|
end
|
|
215
213
|
end
|
|
216
|
-
|
|
217
214
|
end
|
|
218
|
-
|
|
219
215
|
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 IntegerResultSchema
|
|
17
17
|
attr_accessor :result
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
20
|
def self.attribute_map
|
|
22
21
|
{
|
|
@@ -37,30 +36,29 @@ 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?(:'result')
|
|
43
42
|
self.result = attributes[:'result']
|
|
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
|
|
47
|
+
# @return Array for valid properties with the reasons
|
|
50
48
|
def list_invalid_properties
|
|
51
49
|
invalid_properties = Array.new
|
|
52
50
|
if @result.nil?
|
|
53
|
-
invalid_properties.push(
|
|
51
|
+
invalid_properties.push('invalid value for "result", result cannot be nil.')
|
|
54
52
|
end
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
invalid_properties
|
|
57
55
|
end
|
|
58
56
|
|
|
59
57
|
# Check to see if the all the properties in the model are valid
|
|
60
58
|
# @return true if the model is valid
|
|
61
59
|
def valid?
|
|
62
60
|
return false if @result.nil?
|
|
63
|
-
|
|
61
|
+
true
|
|
64
62
|
end
|
|
65
63
|
|
|
66
64
|
# Checks equality by comparing each attribute.
|
|
@@ -93,7 +91,7 @@ module RusticiSoftwareCloudV2
|
|
|
93
91
|
# check to ensure the input is an array given that the the attribute
|
|
94
92
|
# is documented as an array but the input is not
|
|
95
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
96
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
94
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
97
95
|
end
|
|
98
96
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
99
97
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -175,7 +173,7 @@ module RusticiSoftwareCloudV2
|
|
|
175
173
|
# @return [Hash] Returns the value in the form of hash
|
|
176
174
|
def _to_hash(value)
|
|
177
175
|
if value.is_a?(Array)
|
|
178
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
176
|
+
value.compact.map { |v| _to_hash(v) }
|
|
179
177
|
elsif value.is_a?(Hash)
|
|
180
178
|
{}.tap do |hash|
|
|
181
179
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -186,7 +184,5 @@ module RusticiSoftwareCloudV2
|
|
|
186
184
|
value
|
|
187
185
|
end
|
|
188
186
|
end
|
|
189
|
-
|
|
190
187
|
end
|
|
191
|
-
|
|
192
188
|
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
|
|
|
@@ -23,7 +24,6 @@ module RusticiSoftwareCloudV2
|
|
|
23
24
|
# A comma separated list of email addresses to which this invitation will be sent. NOTE: registrations with automatically be create for each of these e-mail addresses.
|
|
24
25
|
attr_accessor :addresses
|
|
25
26
|
|
|
26
|
-
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
@@ -48,7 +48,7 @@ module RusticiSoftwareCloudV2
|
|
|
48
48
|
return unless attributes.is_a?(Hash)
|
|
49
49
|
|
|
50
50
|
# convert string to symbol for hash key
|
|
51
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
52
52
|
|
|
53
53
|
if attributes.has_key?(:'subject')
|
|
54
54
|
self.subject = attributes[:'subject']
|
|
@@ -63,25 +63,24 @@ module RusticiSoftwareCloudV2
|
|
|
63
63
|
self.addresses = value
|
|
64
64
|
end
|
|
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
|
|
69
|
+
# @return Array for valid properties with the reasons
|
|
71
70
|
def list_invalid_properties
|
|
72
71
|
invalid_properties = Array.new
|
|
73
72
|
if @addresses.nil?
|
|
74
|
-
invalid_properties.push(
|
|
73
|
+
invalid_properties.push('invalid value for "addresses", addresses cannot be nil.')
|
|
75
74
|
end
|
|
76
75
|
|
|
77
|
-
|
|
76
|
+
invalid_properties
|
|
78
77
|
end
|
|
79
78
|
|
|
80
79
|
# Check to see if the all the properties in the model are valid
|
|
81
80
|
# @return true if the model is valid
|
|
82
81
|
def valid?
|
|
83
82
|
return false if @addresses.nil?
|
|
84
|
-
|
|
83
|
+
true
|
|
85
84
|
end
|
|
86
85
|
|
|
87
86
|
# Checks equality by comparing each attribute.
|
|
@@ -116,7 +115,7 @@ module RusticiSoftwareCloudV2
|
|
|
116
115
|
# check to ensure the input is an array given that the the attribute
|
|
117
116
|
# is documented as an array but the input is not
|
|
118
117
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
119
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
120
119
|
end
|
|
121
120
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
122
121
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -198,7 +197,7 @@ module RusticiSoftwareCloudV2
|
|
|
198
197
|
# @return [Hash] Returns the value in the form of hash
|
|
199
198
|
def _to_hash(value)
|
|
200
199
|
if value.is_a?(Array)
|
|
201
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
|
202
201
|
elsif value.is_a?(Hash)
|
|
203
202
|
{}.tap do |hash|
|
|
204
203
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -209,7 +208,5 @@ module RusticiSoftwareCloudV2
|
|
|
209
208
|
value
|
|
210
209
|
end
|
|
211
210
|
end
|
|
212
|
-
|
|
213
211
|
end
|
|
214
|
-
|
|
215
212
|
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 InvitationJobStatusSchema
|
|
17
17
|
# The status of the job.
|
|
18
18
|
attr_accessor :status
|
|
@@ -74,7 +74,7 @@ module RusticiSoftwareCloudV2
|
|
|
74
74
|
return unless attributes.is_a?(Hash)
|
|
75
75
|
|
|
76
76
|
# convert string to symbol for hash key
|
|
77
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
78
78
|
|
|
79
79
|
if attributes.has_key?(:'status')
|
|
80
80
|
self.status = attributes[:'status']
|
|
@@ -93,30 +93,29 @@ module RusticiSoftwareCloudV2
|
|
|
93
93
|
if attributes.has_key?(:'processed')
|
|
94
94
|
self.processed = attributes[:'processed']
|
|
95
95
|
end
|
|
96
|
-
|
|
97
96
|
end
|
|
98
97
|
|
|
99
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
100
|
-
# @return Array for valid
|
|
99
|
+
# @return Array for valid properties with the reasons
|
|
101
100
|
def list_invalid_properties
|
|
102
101
|
invalid_properties = Array.new
|
|
103
|
-
|
|
102
|
+
invalid_properties
|
|
104
103
|
end
|
|
105
104
|
|
|
106
105
|
# Check to see if the all the properties in the model are valid
|
|
107
106
|
# @return true if the model is valid
|
|
108
107
|
def valid?
|
|
109
|
-
status_validator = EnumAttributeValidator.new('String', [
|
|
108
|
+
status_validator = EnumAttributeValidator.new('String', ['STARTED', 'CANCELLED', 'COMPLETE', 'ERROR'])
|
|
110
109
|
return false unless status_validator.valid?(@status)
|
|
111
|
-
|
|
110
|
+
true
|
|
112
111
|
end
|
|
113
112
|
|
|
114
113
|
# Custom attribute writer method checking allowed values (enum).
|
|
115
114
|
# @param [Object] status Object to be assigned
|
|
116
115
|
def status=(status)
|
|
117
|
-
validator = EnumAttributeValidator.new('String', [
|
|
116
|
+
validator = EnumAttributeValidator.new('String', ['STARTED', 'CANCELLED', 'COMPLETE', 'ERROR'])
|
|
118
117
|
unless validator.valid?(status)
|
|
119
|
-
fail ArgumentError,
|
|
118
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
|
120
119
|
end
|
|
121
120
|
@status = status
|
|
122
121
|
end
|
|
@@ -154,7 +153,7 @@ module RusticiSoftwareCloudV2
|
|
|
154
153
|
# check to ensure the input is an array given that the the attribute
|
|
155
154
|
# is documented as an array but the input is not
|
|
156
155
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
157
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
156
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
158
157
|
end
|
|
159
158
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
160
159
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -236,7 +235,7 @@ module RusticiSoftwareCloudV2
|
|
|
236
235
|
# @return [Hash] Returns the value in the form of hash
|
|
237
236
|
def _to_hash(value)
|
|
238
237
|
if value.is_a?(Array)
|
|
239
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
238
|
+
value.compact.map { |v| _to_hash(v) }
|
|
240
239
|
elsif value.is_a?(Hash)
|
|
241
240
|
{}.tap do |hash|
|
|
242
241
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -247,7 +246,5 @@ module RusticiSoftwareCloudV2
|
|
|
247
246
|
value
|
|
248
247
|
end
|
|
249
248
|
end
|
|
250
|
-
|
|
251
249
|
end
|
|
252
|
-
|
|
253
250
|
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 InvitationSummaryList
|
|
17
17
|
# A list of invitation overview 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
|
|
58
|
+
# @return Array for valid properties with the reasons
|
|
61
59
|
def list_invalid_properties
|
|
62
60
|
invalid_properties = Array.new
|
|
63
|
-
|
|
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
|
-
|
|
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
|