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,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
|
|
|
@@ -40,7 +41,6 @@ module RusticiSoftwareCloudV2
|
|
|
40
41
|
|
|
41
42
|
attr_accessor :attachments
|
|
42
43
|
|
|
43
|
-
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
@@ -85,7 +85,7 @@ module RusticiSoftwareCloudV2
|
|
|
85
85
|
return unless attributes.is_a?(Hash)
|
|
86
86
|
|
|
87
87
|
# convert string to symbol for hash key
|
|
88
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
88
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
89
89
|
|
|
90
90
|
if attributes.has_key?(:'id')
|
|
91
91
|
self.id = attributes[:'id']
|
|
@@ -140,20 +140,19 @@ module RusticiSoftwareCloudV2
|
|
|
140
140
|
self.attachments = value
|
|
141
141
|
end
|
|
142
142
|
end
|
|
143
|
-
|
|
144
143
|
end
|
|
145
144
|
|
|
146
145
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
147
|
-
# @return Array for valid
|
|
146
|
+
# @return Array for valid properties with the reasons
|
|
148
147
|
def list_invalid_properties
|
|
149
148
|
invalid_properties = Array.new
|
|
150
|
-
|
|
149
|
+
invalid_properties
|
|
151
150
|
end
|
|
152
151
|
|
|
153
152
|
# Check to see if the all the properties in the model are valid
|
|
154
153
|
# @return true if the model is valid
|
|
155
154
|
def valid?
|
|
156
|
-
|
|
155
|
+
true
|
|
157
156
|
end
|
|
158
157
|
|
|
159
158
|
# Checks equality by comparing each attribute.
|
|
@@ -198,7 +197,7 @@ module RusticiSoftwareCloudV2
|
|
|
198
197
|
# check to ensure the input is an array given that the the attribute
|
|
199
198
|
# is documented as an array but the input is not
|
|
200
199
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
201
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
200
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
202
201
|
end
|
|
203
202
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
204
203
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -280,7 +279,7 @@ module RusticiSoftwareCloudV2
|
|
|
280
279
|
# @return [Hash] Returns the value in the form of hash
|
|
281
280
|
def _to_hash(value)
|
|
282
281
|
if value.is_a?(Array)
|
|
283
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
282
|
+
value.compact.map { |v| _to_hash(v) }
|
|
284
283
|
elsif value.is_a?(Hash)
|
|
285
284
|
{}.tap do |hash|
|
|
286
285
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -291,7 +290,5 @@ module RusticiSoftwareCloudV2
|
|
|
291
290
|
value
|
|
292
291
|
end
|
|
293
292
|
end
|
|
294
|
-
|
|
295
293
|
end
|
|
296
|
-
|
|
297
294
|
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 XapiStatementPipeListSchema
|
|
17
17
|
attr_accessor :xapi_statement_pipes
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
20
|
def self.attribute_map
|
|
22
21
|
{
|
|
@@ -37,32 +36,31 @@ 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?(:'xapiStatementPipes')
|
|
43
42
|
if (value = attributes[:'xapiStatementPipes']).is_a?(Array)
|
|
44
43
|
self.xapi_statement_pipes = value
|
|
45
44
|
end
|
|
46
45
|
end
|
|
47
|
-
|
|
48
46
|
end
|
|
49
47
|
|
|
50
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
51
|
-
# @return Array for valid
|
|
49
|
+
# @return Array for valid properties with the reasons
|
|
52
50
|
def list_invalid_properties
|
|
53
51
|
invalid_properties = Array.new
|
|
54
52
|
if @xapi_statement_pipes.nil?
|
|
55
|
-
invalid_properties.push(
|
|
53
|
+
invalid_properties.push('invalid value for "xapi_statement_pipes", xapi_statement_pipes cannot be nil.')
|
|
56
54
|
end
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
invalid_properties
|
|
59
57
|
end
|
|
60
58
|
|
|
61
59
|
# Check to see if the all the properties in the model are valid
|
|
62
60
|
# @return true if the model is valid
|
|
63
61
|
def valid?
|
|
64
62
|
return false if @xapi_statement_pipes.nil?
|
|
65
|
-
|
|
63
|
+
true
|
|
66
64
|
end
|
|
67
65
|
|
|
68
66
|
# Checks equality by comparing each attribute.
|
|
@@ -95,7 +93,7 @@ module RusticiSoftwareCloudV2
|
|
|
95
93
|
# check to ensure the input is an array given that the the attribute
|
|
96
94
|
# is documented as an array but the input is not
|
|
97
95
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
98
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
96
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
99
97
|
end
|
|
100
98
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
101
99
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -177,7 +175,7 @@ module RusticiSoftwareCloudV2
|
|
|
177
175
|
# @return [Hash] Returns the value in the form of hash
|
|
178
176
|
def _to_hash(value)
|
|
179
177
|
if value.is_a?(Array)
|
|
180
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
178
|
+
value.compact.map { |v| _to_hash(v) }
|
|
181
179
|
elsif value.is_a?(Hash)
|
|
182
180
|
{}.tap do |hash|
|
|
183
181
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -188,7 +186,5 @@ module RusticiSoftwareCloudV2
|
|
|
188
186
|
value
|
|
189
187
|
end
|
|
190
188
|
end
|
|
191
|
-
|
|
192
189
|
end
|
|
193
|
-
|
|
194
190
|
end
|
|
@@ -6,19 +6,18 @@
|
|
|
6
6
|
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
|
-
|
|
16
16
|
class XapiStatementPipePostSchema
|
|
17
17
|
attr_accessor :source
|
|
18
18
|
|
|
19
19
|
attr_accessor :target
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
22
|
def self.attribute_map
|
|
24
23
|
{
|
|
@@ -41,7 +40,7 @@ module RusticiSoftwareCloudV2
|
|
|
41
40
|
return unless attributes.is_a?(Hash)
|
|
42
41
|
|
|
43
42
|
# convert string to symbol for hash key
|
|
44
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
45
44
|
|
|
46
45
|
if attributes.has_key?(:'source')
|
|
47
46
|
self.source = attributes[:'source']
|
|
@@ -50,25 +49,24 @@ module RusticiSoftwareCloudV2
|
|
|
50
49
|
if attributes.has_key?(:'target')
|
|
51
50
|
self.target = attributes[:'target']
|
|
52
51
|
end
|
|
53
|
-
|
|
54
52
|
end
|
|
55
53
|
|
|
56
54
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
57
|
-
# @return Array for valid
|
|
55
|
+
# @return Array for valid properties with the reasons
|
|
58
56
|
def list_invalid_properties
|
|
59
57
|
invalid_properties = Array.new
|
|
60
58
|
if @target.nil?
|
|
61
|
-
invalid_properties.push(
|
|
59
|
+
invalid_properties.push('invalid value for "target", target cannot be nil.')
|
|
62
60
|
end
|
|
63
61
|
|
|
64
|
-
|
|
62
|
+
invalid_properties
|
|
65
63
|
end
|
|
66
64
|
|
|
67
65
|
# Check to see if the all the properties in the model are valid
|
|
68
66
|
# @return true if the model is valid
|
|
69
67
|
def valid?
|
|
70
68
|
return false if @target.nil?
|
|
71
|
-
|
|
69
|
+
true
|
|
72
70
|
end
|
|
73
71
|
|
|
74
72
|
# Checks equality by comparing each attribute.
|
|
@@ -102,7 +100,7 @@ module RusticiSoftwareCloudV2
|
|
|
102
100
|
# check to ensure the input is an array given that the the attribute
|
|
103
101
|
# is documented as an array but the input is not
|
|
104
102
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
105
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
103
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
106
104
|
end
|
|
107
105
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
108
106
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -184,7 +182,7 @@ module RusticiSoftwareCloudV2
|
|
|
184
182
|
# @return [Hash] Returns the value in the form of hash
|
|
185
183
|
def _to_hash(value)
|
|
186
184
|
if value.is_a?(Array)
|
|
187
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
185
|
+
value.compact.map { |v| _to_hash(v) }
|
|
188
186
|
elsif value.is_a?(Hash)
|
|
189
187
|
{}.tap do |hash|
|
|
190
188
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -195,7 +193,5 @@ module RusticiSoftwareCloudV2
|
|
|
195
193
|
value
|
|
196
194
|
end
|
|
197
195
|
end
|
|
198
|
-
|
|
199
196
|
end
|
|
200
|
-
|
|
201
197
|
end
|
|
@@ -6,19 +6,18 @@
|
|
|
6
6
|
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
|
-
|
|
16
16
|
class XapiStatementPipePutSchema
|
|
17
17
|
attr_accessor :source
|
|
18
18
|
|
|
19
19
|
attr_accessor :target
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
22
|
def self.attribute_map
|
|
24
23
|
{
|
|
@@ -41,7 +40,7 @@ module RusticiSoftwareCloudV2
|
|
|
41
40
|
return unless attributes.is_a?(Hash)
|
|
42
41
|
|
|
43
42
|
# convert string to symbol for hash key
|
|
44
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
45
44
|
|
|
46
45
|
if attributes.has_key?(:'source')
|
|
47
46
|
self.source = attributes[:'source']
|
|
@@ -50,20 +49,19 @@ module RusticiSoftwareCloudV2
|
|
|
50
49
|
if attributes.has_key?(:'target')
|
|
51
50
|
self.target = attributes[:'target']
|
|
52
51
|
end
|
|
53
|
-
|
|
54
52
|
end
|
|
55
53
|
|
|
56
54
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
57
|
-
# @return Array for valid
|
|
55
|
+
# @return Array for valid properties with the reasons
|
|
58
56
|
def list_invalid_properties
|
|
59
57
|
invalid_properties = Array.new
|
|
60
|
-
|
|
58
|
+
invalid_properties
|
|
61
59
|
end
|
|
62
60
|
|
|
63
61
|
# Check to see if the all the properties in the model are valid
|
|
64
62
|
# @return true if the model is valid
|
|
65
63
|
def valid?
|
|
66
|
-
|
|
64
|
+
true
|
|
67
65
|
end
|
|
68
66
|
|
|
69
67
|
# Checks equality by comparing each attribute.
|
|
@@ -97,7 +95,7 @@ module RusticiSoftwareCloudV2
|
|
|
97
95
|
# check to ensure the input is an array given that the the attribute
|
|
98
96
|
# is documented as an array but the input is not
|
|
99
97
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
100
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
101
99
|
end
|
|
102
100
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
103
101
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -179,7 +177,7 @@ module RusticiSoftwareCloudV2
|
|
|
179
177
|
# @return [Hash] Returns the value in the form of hash
|
|
180
178
|
def _to_hash(value)
|
|
181
179
|
if value.is_a?(Array)
|
|
182
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
|
183
181
|
elsif value.is_a?(Hash)
|
|
184
182
|
{}.tap do |hash|
|
|
185
183
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -190,7 +188,5 @@ module RusticiSoftwareCloudV2
|
|
|
190
188
|
value
|
|
191
189
|
end
|
|
192
190
|
end
|
|
193
|
-
|
|
194
191
|
end
|
|
195
|
-
|
|
196
192
|
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 XapiStatementPipeSchema
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
@@ -28,7 +28,6 @@ module RusticiSoftwareCloudV2
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :target
|
|
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?(:'target')
|
|
91
90
|
self.target = attributes[:'target']
|
|
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
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
98
96
|
def list_invalid_properties
|
|
99
97
|
invalid_properties = Array.new
|
|
100
|
-
|
|
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
|
-
|
|
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
|
|
@@ -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 :id
|
|
20
21
|
|
|
21
|
-
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
23
|
def self.attribute_map
|
|
24
24
|
{
|
|
@@ -41,33 +41,32 @@ 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?(:'objectType')
|
|
47
47
|
self.object_type = attributes[:'objectType']
|
|
48
48
|
else
|
|
49
|
-
self.object_type =
|
|
49
|
+
self.object_type = 'StatementRef'
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
if attributes.has_key?(:'id')
|
|
53
53
|
self.id = attributes[:'id']
|
|
54
54
|
end
|
|
55
|
-
|
|
56
55
|
end
|
|
57
56
|
|
|
58
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
59
|
-
# @return Array for valid
|
|
58
|
+
# @return Array for valid properties with the reasons
|
|
60
59
|
def list_invalid_properties
|
|
61
60
|
invalid_properties = Array.new
|
|
62
61
|
if @object_type.nil?
|
|
63
|
-
invalid_properties.push(
|
|
62
|
+
invalid_properties.push('invalid value for "object_type", object_type cannot be nil.')
|
|
64
63
|
end
|
|
65
64
|
|
|
66
65
|
if @id.nil?
|
|
67
|
-
invalid_properties.push(
|
|
66
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
68
67
|
end
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
invalid_properties
|
|
71
70
|
end
|
|
72
71
|
|
|
73
72
|
# Check to see if the all the properties in the model are valid
|
|
@@ -75,7 +74,7 @@ module RusticiSoftwareCloudV2
|
|
|
75
74
|
def valid?
|
|
76
75
|
return false if @object_type.nil?
|
|
77
76
|
return false if @id.nil?
|
|
78
|
-
|
|
77
|
+
true
|
|
79
78
|
end
|
|
80
79
|
|
|
81
80
|
# Checks equality by comparing each attribute.
|
|
@@ -109,7 +108,7 @@ module RusticiSoftwareCloudV2
|
|
|
109
108
|
# check to ensure the input is an array given that the the attribute
|
|
110
109
|
# is documented as an array but the input is not
|
|
111
110
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
112
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
113
112
|
end
|
|
114
113
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
115
114
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -191,7 +190,7 @@ module RusticiSoftwareCloudV2
|
|
|
191
190
|
# @return [Hash] Returns the value in the form of hash
|
|
192
191
|
def _to_hash(value)
|
|
193
192
|
if value.is_a?(Array)
|
|
194
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
193
|
+
value.compact.map { |v| _to_hash(v) }
|
|
195
194
|
elsif value.is_a?(Hash)
|
|
196
195
|
{}.tap do |hash|
|
|
197
196
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -202,7 +201,5 @@ module RusticiSoftwareCloudV2
|
|
|
202
201
|
value
|
|
203
202
|
end
|
|
204
203
|
end
|
|
205
|
-
|
|
206
204
|
end
|
|
207
|
-
|
|
208
205
|
end
|