rustici_software_cloud_v2 1.1.0 → 2.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/Gemfile +1 -1
- data/README.md +355 -356
- data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +191 -63
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +10 -18
- data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +236 -0
- data/lib/rustici_software_cloud_v2/api/course_api.rb +1046 -225
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +634 -269
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +213 -171
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +49 -49
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +3 -1
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +256 -270
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +20 -24
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +82 -67
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +125 -56
- data/lib/rustici_software_cloud_v2/api_client.rb +3 -3
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -1
- data/lib/rustici_software_cloud_v2/configuration.rb +11 -4
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/application_token.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +188 -0
- data/lib/rustici_software_cloud_v2/models/connector_schema.rb +226 -0
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +218 -0
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +3 -20
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +35 -6
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +44 -4
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +30 -7
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +204 -0
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +6 -4
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +261 -0
- data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +236 -0
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +11 -9
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +12 -44
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +6 -4
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +17 -6
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/response_error.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +16 -4
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +14 -2
- data/lib/rustici_software_cloud_v2/version.rb +2 -2
- data/lib/rustici_software_cloud_v2.rb +23 -1
- data/rustici_software_cloud_v2.gemspec +3 -2
- data/spec/api_client_spec.rb +18 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +45 -3
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SCORM Cloud Rest API
|
|
3
|
+
|
|
4
|
+
#REST API used for SCORM Cloud integrations.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.27
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module RusticiSoftwareCloudV2
|
|
16
|
+
class Lti13ToolConfigurationSchema
|
|
17
|
+
# Public key for LTI 1.3 tool
|
|
18
|
+
attr_accessor :public_key
|
|
19
|
+
|
|
20
|
+
# Endpoint where the OIDC Authorization flow will be initiated
|
|
21
|
+
attr_accessor :oidc_login_initiations_url
|
|
22
|
+
|
|
23
|
+
# Endpoint where the OIDC Authorization Response should be sent
|
|
24
|
+
attr_accessor :redirect_uri
|
|
25
|
+
|
|
26
|
+
# Path to the tool's JSON Web Key Set
|
|
27
|
+
attr_accessor :json_web_key_set_url
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
def self.attribute_map
|
|
31
|
+
{
|
|
32
|
+
:'public_key' => :'publicKey',
|
|
33
|
+
:'oidc_login_initiations_url' => :'oidcLoginInitiationsUrl',
|
|
34
|
+
:'redirect_uri' => :'redirectUri',
|
|
35
|
+
:'json_web_key_set_url' => :'jsonWebKeySetUrl'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.swagger_types
|
|
41
|
+
{
|
|
42
|
+
:'public_key' => :'String',
|
|
43
|
+
:'oidc_login_initiations_url' => :'String',
|
|
44
|
+
:'redirect_uri' => :'String',
|
|
45
|
+
:'json_web_key_set_url' => :'String'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
return unless attributes.is_a?(Hash)
|
|
53
|
+
|
|
54
|
+
# convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
56
|
+
|
|
57
|
+
if attributes.has_key?(:'publicKey')
|
|
58
|
+
self.public_key = attributes[:'publicKey']
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
if attributes.has_key?(:'oidcLoginInitiationsUrl')
|
|
62
|
+
self.oidc_login_initiations_url = attributes[:'oidcLoginInitiationsUrl']
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
if attributes.has_key?(:'redirectUri')
|
|
66
|
+
self.redirect_uri = attributes[:'redirectUri']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if attributes.has_key?(:'jsonWebKeySetUrl')
|
|
70
|
+
self.json_web_key_set_url = attributes[:'jsonWebKeySetUrl']
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
|
+
# @return Array for valid properties with the reasons
|
|
76
|
+
def list_invalid_properties
|
|
77
|
+
invalid_properties = Array.new
|
|
78
|
+
if @public_key.nil?
|
|
79
|
+
invalid_properties.push('invalid value for "public_key", public_key cannot be nil.')
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if @oidc_login_initiations_url.nil?
|
|
83
|
+
invalid_properties.push('invalid value for "oidc_login_initiations_url", oidc_login_initiations_url cannot be nil.')
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if @redirect_uri.nil?
|
|
87
|
+
invalid_properties.push('invalid value for "redirect_uri", redirect_uri cannot be nil.')
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if @json_web_key_set_url.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "json_web_key_set_url", json_web_key_set_url cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
invalid_properties
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Check to see if the all the properties in the model are valid
|
|
98
|
+
# @return true if the model is valid
|
|
99
|
+
def valid?
|
|
100
|
+
return false if @public_key.nil?
|
|
101
|
+
return false if @oidc_login_initiations_url.nil?
|
|
102
|
+
return false if @redirect_uri.nil?
|
|
103
|
+
return false if @json_web_key_set_url.nil?
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# Checks equality by comparing each attribute.
|
|
109
|
+
# @param [Object] Object to be compared
|
|
110
|
+
def ==(o)
|
|
111
|
+
return true if self.equal?(o)
|
|
112
|
+
self.class == o.class &&
|
|
113
|
+
public_key == o.public_key &&
|
|
114
|
+
oidc_login_initiations_url == o.oidc_login_initiations_url &&
|
|
115
|
+
redirect_uri == o.redirect_uri &&
|
|
116
|
+
json_web_key_set_url == o.json_web_key_set_url
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# @see the `==` method
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def eql?(o)
|
|
122
|
+
self == o
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Calculates hash code according to all attributes.
|
|
126
|
+
# @return [Fixnum] Hash code
|
|
127
|
+
def hash
|
|
128
|
+
[public_key, oidc_login_initiations_url, redirect_uri, json_web_key_set_url].hash
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Builds the object from hash
|
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
133
|
+
# @return [Object] Returns the model itself
|
|
134
|
+
def build_from_hash(attributes)
|
|
135
|
+
return nil unless attributes.is_a?(Hash)
|
|
136
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
137
|
+
if type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
141
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
144
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
145
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
self
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Deserializes the data based on type
|
|
152
|
+
# @param string type Data type
|
|
153
|
+
# @param string value Value to be deserialized
|
|
154
|
+
# @return [Object] Deserialized data
|
|
155
|
+
def _deserialize(type, value)
|
|
156
|
+
case type.to_sym
|
|
157
|
+
when :DateTime
|
|
158
|
+
DateTime.parse(value)
|
|
159
|
+
when :Date
|
|
160
|
+
Date.parse(value)
|
|
161
|
+
when :String
|
|
162
|
+
value.to_s
|
|
163
|
+
when :Integer
|
|
164
|
+
value.to_i
|
|
165
|
+
when :Float
|
|
166
|
+
value.to_f
|
|
167
|
+
when :BOOLEAN
|
|
168
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
169
|
+
true
|
|
170
|
+
else
|
|
171
|
+
false
|
|
172
|
+
end
|
|
173
|
+
when :Object
|
|
174
|
+
# generic object (usually a Hash), return directly
|
|
175
|
+
value
|
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
179
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
|
182
|
+
{}.tap do |hash|
|
|
183
|
+
value.each do |k, v|
|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
else # model
|
|
188
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
|
189
|
+
temp_model.build_from_hash(value)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Returns the string representation of the object
|
|
194
|
+
# @return [String] String presentation of the object
|
|
195
|
+
def to_s
|
|
196
|
+
to_hash.to_s
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
|
201
|
+
def to_body
|
|
202
|
+
to_hash
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Returns the object in the form of hash
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_hash
|
|
208
|
+
hash = {}
|
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
210
|
+
value = self.send(attr)
|
|
211
|
+
next if value.nil?
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Outputs non-array value in the form of hash
|
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
219
|
+
# @param [Object] value Any valid value
|
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
|
221
|
+
def _to_hash(value)
|
|
222
|
+
if value.is_a?(Array)
|
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
|
224
|
+
elsif value.is_a?(Hash)
|
|
225
|
+
{}.tap do |hash|
|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
227
|
+
end
|
|
228
|
+
elsif value.respond_to? :to_hash
|
|
229
|
+
value.to_hash
|
|
230
|
+
else
|
|
231
|
+
value
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
end
|
|
236
|
+
end
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SCORM Cloud Rest API
|
|
3
|
+
|
|
4
|
+
#REST API used for SCORM Cloud integrations.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.27
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module RusticiSoftwareCloudV2
|
|
16
|
+
# Metadata used to set various properties of a media file course
|
|
17
|
+
class MediaFileMetadataSchema
|
|
18
|
+
attr_accessor :title
|
|
19
|
+
|
|
20
|
+
attr_accessor :description
|
|
21
|
+
|
|
22
|
+
attr_accessor :content_language
|
|
23
|
+
|
|
24
|
+
attr_accessor :estimated_duration
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'title' => :'title',
|
|
30
|
+
:'description' => :'description',
|
|
31
|
+
:'content_language' => :'contentLanguage',
|
|
32
|
+
:'estimated_duration' => :'estimatedDuration'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Attribute type mapping.
|
|
37
|
+
def self.swagger_types
|
|
38
|
+
{
|
|
39
|
+
:'title' => :'String',
|
|
40
|
+
:'description' => :'String',
|
|
41
|
+
:'content_language' => :'String',
|
|
42
|
+
:'estimated_duration' => :'Integer'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Initializes the object
|
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
return unless attributes.is_a?(Hash)
|
|
50
|
+
|
|
51
|
+
# convert string to symbol for hash key
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
53
|
+
|
|
54
|
+
if attributes.has_key?(:'title')
|
|
55
|
+
self.title = attributes[:'title']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'description')
|
|
59
|
+
self.description = attributes[:'description']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'contentLanguage')
|
|
63
|
+
self.content_language = attributes[:'contentLanguage']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'estimatedDuration')
|
|
67
|
+
self.estimated_duration = attributes[:'estimatedDuration']
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
72
|
+
# @return Array for valid properties with the reasons
|
|
73
|
+
def list_invalid_properties
|
|
74
|
+
invalid_properties = Array.new
|
|
75
|
+
invalid_properties
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Check to see if the all the properties in the model are valid
|
|
79
|
+
# @return true if the model is valid
|
|
80
|
+
def valid?
|
|
81
|
+
true
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
# Checks equality by comparing each attribute.
|
|
86
|
+
# @param [Object] Object to be compared
|
|
87
|
+
def ==(o)
|
|
88
|
+
return true if self.equal?(o)
|
|
89
|
+
self.class == o.class &&
|
|
90
|
+
title == o.title &&
|
|
91
|
+
description == o.description &&
|
|
92
|
+
content_language == o.content_language &&
|
|
93
|
+
estimated_duration == o.estimated_duration
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# @see the `==` method
|
|
97
|
+
# @param [Object] Object to be compared
|
|
98
|
+
def eql?(o)
|
|
99
|
+
self == o
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Calculates hash code according to all attributes.
|
|
103
|
+
# @return [Fixnum] Hash code
|
|
104
|
+
def hash
|
|
105
|
+
[title, description, content_language, estimated_duration].hash
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Builds the object from hash
|
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
110
|
+
# @return [Object] Returns the model itself
|
|
111
|
+
def build_from_hash(attributes)
|
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
|
113
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
114
|
+
if type =~ /\AArray<(.*)>/i
|
|
115
|
+
# check to ensure the input is an array given that the attribute
|
|
116
|
+
# is documented as an array but the input is not
|
|
117
|
+
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) })
|
|
119
|
+
end
|
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
122
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
self
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Deserializes the data based on type
|
|
129
|
+
# @param string type Data type
|
|
130
|
+
# @param string value Value to be deserialized
|
|
131
|
+
# @return [Object] Deserialized data
|
|
132
|
+
def _deserialize(type, value)
|
|
133
|
+
case type.to_sym
|
|
134
|
+
when :DateTime
|
|
135
|
+
DateTime.parse(value)
|
|
136
|
+
when :Date
|
|
137
|
+
Date.parse(value)
|
|
138
|
+
when :String
|
|
139
|
+
value.to_s
|
|
140
|
+
when :Integer
|
|
141
|
+
value.to_i
|
|
142
|
+
when :Float
|
|
143
|
+
value.to_f
|
|
144
|
+
when :BOOLEAN
|
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
146
|
+
true
|
|
147
|
+
else
|
|
148
|
+
false
|
|
149
|
+
end
|
|
150
|
+
when :Object
|
|
151
|
+
# generic object (usually a Hash), return directly
|
|
152
|
+
value
|
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
|
159
|
+
{}.tap do |hash|
|
|
160
|
+
value.each do |k, v|
|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
else # model
|
|
165
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
|
166
|
+
temp_model.build_from_hash(value)
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Returns the string representation of the object
|
|
171
|
+
# @return [String] String presentation of the object
|
|
172
|
+
def to_s
|
|
173
|
+
to_hash.to_s
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
|
178
|
+
def to_body
|
|
179
|
+
to_hash
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Returns the object in the form of hash
|
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
|
184
|
+
def to_hash
|
|
185
|
+
hash = {}
|
|
186
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
187
|
+
value = self.send(attr)
|
|
188
|
+
next if value.nil?
|
|
189
|
+
hash[param] = _to_hash(value)
|
|
190
|
+
end
|
|
191
|
+
hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Outputs non-array value in the form of hash
|
|
195
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
196
|
+
# @param [Object] value Any valid value
|
|
197
|
+
# @return [Hash] Returns the value in the form of hash
|
|
198
|
+
def _to_hash(value)
|
|
199
|
+
if value.is_a?(Array)
|
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
|
201
|
+
elsif value.is_a?(Hash)
|
|
202
|
+
{}.tap do |hash|
|
|
203
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
204
|
+
end
|
|
205
|
+
elsif value.respond_to? :to_hash
|
|
206
|
+
value.to_hash
|
|
207
|
+
else
|
|
208
|
+
value
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
end
|
|
213
|
+
end
|
|
@@ -6,7 +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.
|
|
9
|
+
Swagger Codegen version: 2.4.27
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -61,6 +61,7 @@ module RusticiSoftwareCloudV2
|
|
|
61
61
|
true
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
|
|
64
65
|
# Checks equality by comparing each attribute.
|
|
65
66
|
# @param [Object] Object to be compared
|
|
66
67
|
def ==(o)
|
|
@@ -88,7 +89,7 @@ module RusticiSoftwareCloudV2
|
|
|
88
89
|
return nil unless attributes.is_a?(Hash)
|
|
89
90
|
self.class.swagger_types.each_pair do |key, type|
|
|
90
91
|
if type =~ /\AArray<(.*)>/i
|
|
91
|
-
# check to ensure the input is an array given that the
|
|
92
|
+
# check to ensure the input is an array given that the attribute
|
|
92
93
|
# is documented as an array but the input is not
|
|
93
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
94
95
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -184,5 +185,6 @@ module RusticiSoftwareCloudV2
|
|
|
184
185
|
value
|
|
185
186
|
end
|
|
186
187
|
end
|
|
188
|
+
|
|
187
189
|
end
|
|
188
190
|
end
|
|
@@ -6,7 +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.
|
|
9
|
+
Swagger Codegen version: 2.4.27
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -24,7 +24,7 @@ module RusticiSoftwareCloudV2
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :duration
|
|
26
26
|
|
|
27
|
-
attr_accessor :
|
|
27
|
+
attr_accessor :typical_time
|
|
28
28
|
|
|
29
29
|
attr_accessor :keywords
|
|
30
30
|
|
|
@@ -36,7 +36,7 @@ module RusticiSoftwareCloudV2
|
|
|
36
36
|
:'description' => :'description',
|
|
37
37
|
:'description_language' => :'descriptionLanguage',
|
|
38
38
|
:'duration' => :'duration',
|
|
39
|
-
:'
|
|
39
|
+
:'typical_time' => :'typicalTime',
|
|
40
40
|
:'keywords' => :'keywords'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
@@ -49,7 +49,7 @@ module RusticiSoftwareCloudV2
|
|
|
49
49
|
:'description' => :'String',
|
|
50
50
|
:'description_language' => :'String',
|
|
51
51
|
:'duration' => :'String',
|
|
52
|
-
:'
|
|
52
|
+
:'typical_time' => :'String',
|
|
53
53
|
:'keywords' => :'Array<String>'
|
|
54
54
|
}
|
|
55
55
|
end
|
|
@@ -82,8 +82,8 @@ module RusticiSoftwareCloudV2
|
|
|
82
82
|
self.duration = attributes[:'duration']
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
if attributes.has_key?(:'
|
|
86
|
-
self.
|
|
85
|
+
if attributes.has_key?(:'typicalTime')
|
|
86
|
+
self.typical_time = attributes[:'typicalTime']
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
if attributes.has_key?(:'keywords')
|
|
@@ -106,6 +106,7 @@ module RusticiSoftwareCloudV2
|
|
|
106
106
|
true
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
+
|
|
109
110
|
# Checks equality by comparing each attribute.
|
|
110
111
|
# @param [Object] Object to be compared
|
|
111
112
|
def ==(o)
|
|
@@ -116,7 +117,7 @@ module RusticiSoftwareCloudV2
|
|
|
116
117
|
description == o.description &&
|
|
117
118
|
description_language == o.description_language &&
|
|
118
119
|
duration == o.duration &&
|
|
119
|
-
|
|
120
|
+
typical_time == o.typical_time &&
|
|
120
121
|
keywords == o.keywords
|
|
121
122
|
end
|
|
122
123
|
|
|
@@ -129,7 +130,7 @@ module RusticiSoftwareCloudV2
|
|
|
129
130
|
# Calculates hash code according to all attributes.
|
|
130
131
|
# @return [Fixnum] Hash code
|
|
131
132
|
def hash
|
|
132
|
-
[title, title_language, description, description_language, duration,
|
|
133
|
+
[title, title_language, description, description_language, duration, typical_time, keywords].hash
|
|
133
134
|
end
|
|
134
135
|
|
|
135
136
|
# Builds the object from hash
|
|
@@ -139,7 +140,7 @@ module RusticiSoftwareCloudV2
|
|
|
139
140
|
return nil unless attributes.is_a?(Hash)
|
|
140
141
|
self.class.swagger_types.each_pair do |key, type|
|
|
141
142
|
if type =~ /\AArray<(.*)>/i
|
|
142
|
-
# check to ensure the input is an array given that the
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
143
144
|
# is documented as an array but the input is not
|
|
144
145
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
145
146
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -235,5 +236,6 @@ module RusticiSoftwareCloudV2
|
|
|
235
236
|
value
|
|
236
237
|
end
|
|
237
238
|
end
|
|
239
|
+
|
|
238
240
|
end
|
|
239
241
|
end
|
|
@@ -6,7 +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.
|
|
9
|
+
Swagger Codegen version: 2.4.27
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -40,28 +40,6 @@ module RusticiSoftwareCloudV2
|
|
|
40
40
|
|
|
41
41
|
attr_accessor :previous_objective_success
|
|
42
42
|
|
|
43
|
-
class EnumAttributeValidator
|
|
44
|
-
attr_reader :datatype
|
|
45
|
-
attr_reader :allowable_values
|
|
46
|
-
|
|
47
|
-
def initialize(datatype, allowable_values)
|
|
48
|
-
@allowable_values = allowable_values.map do |value|
|
|
49
|
-
case datatype.to_s
|
|
50
|
-
when /Integer/i
|
|
51
|
-
value.to_i
|
|
52
|
-
when /Float/i
|
|
53
|
-
value.to_f
|
|
54
|
-
else
|
|
55
|
-
value
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
def valid?(value)
|
|
61
|
-
!value || allowable_values.include?(value)
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
66
44
|
def self.attribute_map
|
|
67
45
|
{
|
|
@@ -177,42 +155,31 @@ module RusticiSoftwareCloudV2
|
|
|
177
155
|
# Check to see if the all the properties in the model are valid
|
|
178
156
|
# @return true if the model is valid
|
|
179
157
|
def valid?
|
|
180
|
-
objective_completion_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
|
181
|
-
return false unless objective_completion_validator.valid?(@objective_completion)
|
|
182
|
-
objective_success_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
183
|
-
return false unless objective_success_validator.valid?(@objective_success)
|
|
184
|
-
previous_objective_success_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
185
|
-
return false unless previous_objective_success_validator.valid?(@previous_objective_success)
|
|
186
158
|
true
|
|
187
159
|
end
|
|
188
160
|
|
|
189
161
|
# Custom attribute writer method checking allowed values (enum).
|
|
162
|
+
#
|
|
163
|
+
# allowable_values = ['UNKNOWN', 'COMPLETED', 'INCOMPLETE']
|
|
164
|
+
#
|
|
190
165
|
# @param [Object] objective_completion Object to be assigned
|
|
191
166
|
def objective_completion=(objective_completion)
|
|
192
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
|
193
|
-
unless validator.valid?(objective_completion)
|
|
194
|
-
fail ArgumentError, 'invalid value for "objective_completion", must be one of #{validator.allowable_values}.'
|
|
195
|
-
end
|
|
196
167
|
@objective_completion = objective_completion
|
|
197
168
|
end
|
|
198
|
-
|
|
199
169
|
# Custom attribute writer method checking allowed values (enum).
|
|
170
|
+
#
|
|
171
|
+
# allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
|
|
172
|
+
#
|
|
200
173
|
# @param [Object] objective_success Object to be assigned
|
|
201
174
|
def objective_success=(objective_success)
|
|
202
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
203
|
-
unless validator.valid?(objective_success)
|
|
204
|
-
fail ArgumentError, 'invalid value for "objective_success", must be one of #{validator.allowable_values}.'
|
|
205
|
-
end
|
|
206
175
|
@objective_success = objective_success
|
|
207
176
|
end
|
|
208
|
-
|
|
209
177
|
# Custom attribute writer method checking allowed values (enum).
|
|
178
|
+
#
|
|
179
|
+
# allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
|
|
180
|
+
#
|
|
210
181
|
# @param [Object] previous_objective_success Object to be assigned
|
|
211
182
|
def previous_objective_success=(previous_objective_success)
|
|
212
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
213
|
-
unless validator.valid?(previous_objective_success)
|
|
214
|
-
fail ArgumentError, 'invalid value for "previous_objective_success", must be one of #{validator.allowable_values}.'
|
|
215
|
-
end
|
|
216
183
|
@previous_objective_success = previous_objective_success
|
|
217
184
|
end
|
|
218
185
|
|
|
@@ -255,7 +222,7 @@ module RusticiSoftwareCloudV2
|
|
|
255
222
|
return nil unless attributes.is_a?(Hash)
|
|
256
223
|
self.class.swagger_types.each_pair do |key, type|
|
|
257
224
|
if type =~ /\AArray<(.*)>/i
|
|
258
|
-
# check to ensure the input is an array given that the
|
|
225
|
+
# check to ensure the input is an array given that the attribute
|
|
259
226
|
# is documented as an array but the input is not
|
|
260
227
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
261
228
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -351,5 +318,6 @@ module RusticiSoftwareCloudV2
|
|
|
351
318
|
value
|
|
352
319
|
end
|
|
353
320
|
end
|
|
321
|
+
|
|
354
322
|
end
|
|
355
323
|
end
|
|
@@ -6,7 +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.
|
|
9
|
+
Swagger Codegen version: 2.4.27
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -67,6 +67,7 @@ module RusticiSoftwareCloudV2
|
|
|
67
67
|
true
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
+
|
|
70
71
|
# Checks equality by comparing each attribute.
|
|
71
72
|
# @param [Object] Object to be compared
|
|
72
73
|
def ==(o)
|
|
@@ -95,7 +96,7 @@ module RusticiSoftwareCloudV2
|
|
|
95
96
|
return nil unless attributes.is_a?(Hash)
|
|
96
97
|
self.class.swagger_types.each_pair do |key, type|
|
|
97
98
|
if type =~ /\AArray<(.*)>/i
|
|
98
|
-
# check to ensure the input is an array given that the
|
|
99
|
+
# check to ensure the input is an array given that the attribute
|
|
99
100
|
# is documented as an array but the input is not
|
|
100
101
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
101
102
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -191,5 +192,6 @@ module RusticiSoftwareCloudV2
|
|
|
191
192
|
value
|
|
192
193
|
end
|
|
193
194
|
end
|
|
195
|
+
|
|
194
196
|
end
|
|
195
197
|
end
|