blueprint_ruby_client 0.4.1 → 0.5.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.lock +65 -0
- data/LICENSE +201 -0
- data/README.md +25 -11
- data/docs/AssetTypeConfigsApi.md +63 -0
- data/docs/AssetTypeTemplatesApi.md +179 -0
- data/docs/AssetsApi.md +19 -19
- data/docs/HierarchyApi.md +35 -35
- data/docs/Integration.md +10 -0
- data/docs/IntegrationBody.md +9 -0
- data/docs/IntegrationTransform.md +11 -0
- data/docs/IntegrationTransformExample.md +9 -0
- data/docs/IntegrationsApi.md +329 -0
- data/docs/LTIApi.md +98 -0
- data/docs/Lti1IntegrationAttributes.md +11 -0
- data/docs/NodeAttributes.md +2 -0
- data/docs/SecurityApi.md +48 -0
- data/docs/Template.md +10 -0
- data/docs/TemplateAttributes.md +9 -0
- data/docs/TemplateBody.md +9 -0
- data/docs/{AssetAttributes.md → TemplateVariables.md} +3 -2
- data/generate.sh +1 -2
- data/git_push.sh +16 -1
- data/lib/blueprint_ruby_client/api/asset_type_configs_api.rb +84 -0
- data/lib/blueprint_ruby_client/api/asset_type_templates_api.rb +214 -0
- data/lib/blueprint_ruby_client/api/assets_api.rb +23 -191
- data/lib/blueprint_ruby_client/api/hierarchy_api.rb +49 -409
- data/lib/blueprint_ruby_client/api/integrations_api.rb +415 -0
- data/lib/blueprint_ruby_client/api/lti_api.rb +156 -0
- data/lib/blueprint_ruby_client/api/security_api.rb +75 -0
- data/lib/blueprint_ruby_client/api_client.rb +0 -2
- data/lib/blueprint_ruby_client/models/asset.rb +2 -59
- data/lib/blueprint_ruby_client/models/asset_body.rb +2 -42
- data/lib/blueprint_ruby_client/models/asset_relationship.rb +2 -57
- data/lib/blueprint_ruby_client/models/asset_result_set.rb +2 -57
- data/lib/blueprint_ruby_client/models/error.rb +2 -59
- data/lib/blueprint_ruby_client/models/errors.rb +2 -25
- data/lib/blueprint_ruby_client/models/integration.rb +225 -0
- data/lib/blueprint_ruby_client/models/{mixed_resource_result_set.rb → integration_body.rb} +27 -12
- data/lib/blueprint_ruby_client/models/integration_transform.rb +221 -0
- data/lib/blueprint_ruby_client/models/integration_transform_example.rb +197 -0
- data/lib/blueprint_ruby_client/models/links.rb +2 -57
- data/lib/blueprint_ruby_client/models/lti1_integration_attributes.rb +225 -0
- data/lib/blueprint_ruby_client/models/meta.rb +2 -57
- data/lib/blueprint_ruby_client/models/namespace.rb +2 -43
- data/lib/blueprint_ruby_client/models/namespace_relationship.rb +2 -25
- data/lib/blueprint_ruby_client/models/node.rb +2 -75
- data/lib/blueprint_ruby_client/models/node_attributes.rb +26 -109
- data/lib/blueprint_ruby_client/models/node_body.rb +2 -42
- data/lib/blueprint_ruby_client/models/node_relationship.rb +2 -57
- data/lib/blueprint_ruby_client/models/node_relationships.rb +2 -73
- data/lib/blueprint_ruby_client/models/node_result_set.rb +2 -57
- data/lib/blueprint_ruby_client/models/resource.rb +2 -59
- data/lib/blueprint_ruby_client/models/template.rb +215 -0
- data/lib/blueprint_ruby_client/models/template_attributes.rb +217 -0
- data/lib/blueprint_ruby_client/models/{asset_attributes.rb → template_body.rb} +23 -33
- data/lib/blueprint_ruby_client/models/template_variables.rb +237 -0
- data/lib/blueprint_ruby_client/version.rb +1 -1
- data/lib/blueprint_ruby_client.rb +14 -0
- data/spec/api/asset_type_configs_api_spec.rb +52 -0
- data/spec/api/asset_type_templates_api_spec.rb +88 -0
- data/spec/api/assets_api_spec.rb +9 -9
- data/spec/api/hierarchy_api_spec.rb +17 -17
- data/spec/api/integrations_api_spec.rb +141 -0
- data/spec/api/lti_api_spec.rb +69 -0
- data/spec/api/security_api_spec.rb +50 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/integration_body_spec.rb +56 -0
- data/spec/models/integration_spec.rb +66 -0
- data/spec/models/integration_transform_example_spec.rb +56 -0
- data/spec/models/integration_transform_spec.rb +76 -0
- data/spec/models/lti1_integration_attributes_spec.rb +76 -0
- data/spec/models/node_attributes_spec.rb +20 -0
- data/spec/models/template_attributes_spec.rb +56 -0
- data/spec/models/{asset_attributes_spec.rb → template_body_spec.rb} +17 -7
- data/spec/models/template_spec.rb +66 -0
- data/spec/models/template_variables_spec.rb +56 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger-codegen-cli.jar +0 -0
- data/templates/model.mustache +5 -5
- metadata +67 -12
- data/docs/MixedResourceResultSet.md +0 -7
- data/spec/models/mixed_resource_result_set_spec.rb +0 -36
@@ -21,22 +21,16 @@ module BlueprintClient
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
-
|
25
24
|
:'id' => :'id',
|
26
|
-
|
27
25
|
:'type' => :'type'
|
28
|
-
|
29
26
|
}
|
30
27
|
end
|
31
28
|
|
32
29
|
# Attribute type mapping.
|
33
30
|
def self.swagger_types
|
34
31
|
{
|
35
|
-
|
36
32
|
:'id' => :'String',
|
37
|
-
|
38
33
|
:'type' => :'String'
|
39
|
-
|
40
34
|
}
|
41
35
|
end
|
42
36
|
|
@@ -48,73 +42,38 @@ module BlueprintClient
|
|
48
42
|
# convert string to symbol for hash key
|
49
43
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
44
|
|
51
|
-
|
52
45
|
if attributes.has_key?(:'id')
|
53
|
-
|
54
|
-
|
55
46
|
self.id = attributes[:'id']
|
56
|
-
|
57
|
-
|
58
47
|
end
|
59
48
|
|
60
|
-
|
61
49
|
if attributes.has_key?(:'type')
|
62
|
-
|
63
|
-
|
64
50
|
self.type = attributes[:'type']
|
65
|
-
|
66
|
-
|
67
51
|
end
|
68
52
|
|
69
|
-
|
70
53
|
end
|
71
54
|
|
72
55
|
# Show invalid properties with the reasons. Usually used together with valid?
|
73
56
|
# @return Array for valid properies with the reasons
|
74
57
|
def list_invalid_properties
|
75
58
|
invalid_properties = Array.new
|
76
|
-
|
77
|
-
|
78
59
|
return invalid_properties
|
79
60
|
end
|
80
61
|
|
81
62
|
# Check to see if the all the properties in the model are valid
|
82
63
|
# @return true if the model is valid
|
83
64
|
def valid?
|
84
|
-
|
85
|
-
|
86
65
|
if @id.nil?
|
87
66
|
return false
|
88
67
|
end
|
89
68
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
69
|
if @type.nil?
|
96
70
|
return false
|
97
71
|
end
|
98
72
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
73
|
end
|
104
74
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
75
|
# Checks equality by comparing each attribute.
|
117
|
-
# @param [Object] Object to be compared
|
76
|
+
# @param [Object] Object to be compared
|
118
77
|
def ==(o)
|
119
78
|
return true if self.equal?(o)
|
120
79
|
self.class == o.class &&
|
@@ -123,7 +82,7 @@ module BlueprintClient
|
|
123
82
|
end
|
124
83
|
|
125
84
|
# @see the `==` method
|
126
|
-
# @param [Object] Object to be compared
|
85
|
+
# @param [Object] Object to be compared
|
127
86
|
def eql?(o)
|
128
87
|
self == o
|
129
88
|
end
|
@@ -19,18 +19,14 @@ module BlueprintClient
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
|
23
22
|
:'data' => :'data'
|
24
|
-
|
25
23
|
}
|
26
24
|
end
|
27
25
|
|
28
26
|
# Attribute type mapping.
|
29
27
|
def self.swagger_types
|
30
28
|
{
|
31
|
-
|
32
29
|
:'data' => :'Namespace'
|
33
|
-
|
34
30
|
}
|
35
31
|
end
|
36
32
|
|
@@ -42,45 +38,26 @@ module BlueprintClient
|
|
42
38
|
# convert string to symbol for hash key
|
43
39
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
44
40
|
|
45
|
-
|
46
41
|
if attributes.has_key?(:'data')
|
47
|
-
|
48
|
-
|
49
42
|
self.data = attributes[:'data']
|
50
|
-
|
51
|
-
|
52
43
|
end
|
53
44
|
|
54
|
-
|
55
45
|
end
|
56
46
|
|
57
47
|
# Show invalid properties with the reasons. Usually used together with valid?
|
58
48
|
# @return Array for valid properies with the reasons
|
59
49
|
def list_invalid_properties
|
60
50
|
invalid_properties = Array.new
|
61
|
-
|
62
|
-
|
63
51
|
return invalid_properties
|
64
52
|
end
|
65
53
|
|
66
54
|
# Check to see if the all the properties in the model are valid
|
67
55
|
# @return true if the model is valid
|
68
56
|
def valid?
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
57
|
end
|
75
58
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
59
|
# Checks equality by comparing each attribute.
|
83
|
-
# @param [Object] Object to be compared
|
60
|
+
# @param [Object] Object to be compared
|
84
61
|
def ==(o)
|
85
62
|
return true if self.equal?(o)
|
86
63
|
self.class == o.class &&
|
@@ -88,7 +65,7 @@ module BlueprintClient
|
|
88
65
|
end
|
89
66
|
|
90
67
|
# @see the `==` method
|
91
|
-
# @param [Object] Object to be compared
|
68
|
+
# @param [Object] Object to be compared
|
92
69
|
def eql?(o)
|
93
70
|
self == o
|
94
71
|
end
|
@@ -26,30 +26,20 @@ module BlueprintClient
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
|
30
29
|
:'id' => :'id',
|
31
|
-
|
32
30
|
:'type' => :'type',
|
33
|
-
|
34
31
|
:'attributes' => :'attributes',
|
35
|
-
|
36
32
|
:'relationships' => :'relationships'
|
37
|
-
|
38
33
|
}
|
39
34
|
end
|
40
35
|
|
41
36
|
# Attribute type mapping.
|
42
37
|
def self.swagger_types
|
43
38
|
{
|
44
|
-
|
45
39
|
:'id' => :'String',
|
46
|
-
|
47
40
|
:'type' => :'String',
|
48
|
-
|
49
41
|
:'attributes' => :'NodeAttributes',
|
50
|
-
|
51
42
|
:'relationships' => :'NodeRelationships'
|
52
|
-
|
53
43
|
}
|
54
44
|
end
|
55
45
|
|
@@ -61,109 +51,46 @@ module BlueprintClient
|
|
61
51
|
# convert string to symbol for hash key
|
62
52
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
63
53
|
|
64
|
-
|
65
54
|
if attributes.has_key?(:'id')
|
66
|
-
|
67
|
-
|
68
55
|
self.id = attributes[:'id']
|
69
|
-
|
70
|
-
|
71
56
|
end
|
72
57
|
|
73
|
-
|
74
58
|
if attributes.has_key?(:'type')
|
75
|
-
|
76
|
-
|
77
59
|
self.type = attributes[:'type']
|
78
|
-
|
79
|
-
|
80
60
|
end
|
81
61
|
|
82
|
-
|
83
62
|
if attributes.has_key?(:'attributes')
|
84
|
-
|
85
|
-
|
86
63
|
self.attributes = attributes[:'attributes']
|
87
|
-
|
88
|
-
|
89
64
|
end
|
90
65
|
|
91
|
-
|
92
66
|
if attributes.has_key?(:'relationships')
|
93
|
-
|
94
|
-
|
95
67
|
self.relationships = attributes[:'relationships']
|
96
|
-
|
97
|
-
|
98
68
|
end
|
99
69
|
|
100
|
-
|
101
70
|
end
|
102
71
|
|
103
72
|
# Show invalid properties with the reasons. Usually used together with valid?
|
104
73
|
# @return Array for valid properies with the reasons
|
105
74
|
def list_invalid_properties
|
106
75
|
invalid_properties = Array.new
|
107
|
-
|
108
|
-
|
109
76
|
return invalid_properties
|
110
77
|
end
|
111
78
|
|
112
79
|
# Check to see if the all the properties in the model are valid
|
113
80
|
# @return true if the model is valid
|
114
81
|
def valid?
|
115
|
-
|
116
|
-
|
117
82
|
if @id.nil?
|
118
83
|
return false
|
119
84
|
end
|
120
85
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
86
|
if @type.nil?
|
127
87
|
return false
|
128
88
|
end
|
129
89
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
90
|
end
|
143
91
|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
92
|
# Checks equality by comparing each attribute.
|
166
|
-
# @param [Object] Object to be compared
|
93
|
+
# @param [Object] Object to be compared
|
167
94
|
def ==(o)
|
168
95
|
return true if self.equal?(o)
|
169
96
|
self.class == o.class &&
|
@@ -174,7 +101,7 @@ module BlueprintClient
|
|
174
101
|
end
|
175
102
|
|
176
103
|
# @see the `==` method
|
177
|
-
# @param [Object] Object to be compared
|
104
|
+
# @param [Object] Object to be compared
|
178
105
|
def eql?(o)
|
179
106
|
self == o
|
180
107
|
end
|
@@ -30,41 +30,37 @@ module BlueprintClient
|
|
30
30
|
# Additional identifiers linked to the external domain of the hierarchy, for example JACS code. Allows comparisons between hierarchies.
|
31
31
|
attr_accessor :domain_ids
|
32
32
|
|
33
|
+
# Reminder date for redemption period nodes, should be an ISO8601 date. Drop if we can get additionalProperties working.
|
34
|
+
attr_accessor :reminder_date
|
35
|
+
|
36
|
+
# Deadline date for redemption period nodes, should be an ISO8601 date. Drop if we can get additionalProperties working.
|
37
|
+
attr_accessor :deadline
|
38
|
+
|
33
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
40
|
def self.attribute_map
|
35
41
|
{
|
36
|
-
|
37
42
|
:'title' => :'title',
|
38
|
-
|
39
43
|
:'description' => :'description',
|
40
|
-
|
41
44
|
:'valid_from' => :'valid_from',
|
42
|
-
|
43
45
|
:'valid_to' => :'valid_to',
|
44
|
-
|
45
46
|
:'student_numbers' => :'studentNumbers',
|
46
|
-
|
47
|
-
:'
|
48
|
-
|
47
|
+
:'domain_ids' => :'domain_ids',
|
48
|
+
:'reminder_date' => :'reminder_date',
|
49
|
+
:'deadline' => :'deadline'
|
49
50
|
}
|
50
51
|
end
|
51
52
|
|
52
53
|
# Attribute type mapping.
|
53
54
|
def self.swagger_types
|
54
55
|
{
|
55
|
-
|
56
56
|
:'title' => :'String',
|
57
|
-
|
58
57
|
:'description' => :'String',
|
59
|
-
|
60
58
|
:'valid_from' => :'Date',
|
61
|
-
|
62
59
|
:'valid_to' => :'Date',
|
63
|
-
|
64
60
|
:'student_numbers' => :'Float',
|
65
|
-
|
66
|
-
:'
|
67
|
-
|
61
|
+
:'domain_ids' => :'Array<String>',
|
62
|
+
:'reminder_date' => :'Date',
|
63
|
+
:'deadline' => :'Date'
|
68
64
|
}
|
69
65
|
end
|
70
66
|
|
@@ -76,137 +72,56 @@ module BlueprintClient
|
|
76
72
|
# convert string to symbol for hash key
|
77
73
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
78
74
|
|
79
|
-
|
80
75
|
if attributes.has_key?(:'title')
|
81
|
-
|
82
|
-
|
83
76
|
self.title = attributes[:'title']
|
84
|
-
|
85
|
-
|
86
77
|
end
|
87
78
|
|
88
|
-
|
89
79
|
if attributes.has_key?(:'description')
|
90
|
-
|
91
|
-
|
92
80
|
self.description = attributes[:'description']
|
93
|
-
|
94
|
-
|
95
81
|
end
|
96
82
|
|
97
|
-
|
98
83
|
if attributes.has_key?(:'valid_from')
|
99
|
-
|
100
|
-
|
101
84
|
self.valid_from = attributes[:'valid_from']
|
102
|
-
|
103
|
-
|
104
85
|
end
|
105
86
|
|
106
|
-
|
107
87
|
if attributes.has_key?(:'valid_to')
|
108
|
-
|
109
|
-
|
110
88
|
self.valid_to = attributes[:'valid_to']
|
111
|
-
|
112
|
-
|
113
89
|
end
|
114
90
|
|
115
|
-
|
116
91
|
if attributes.has_key?(:'studentNumbers')
|
117
|
-
|
118
|
-
|
119
92
|
self.student_numbers = attributes[:'studentNumbers']
|
120
|
-
|
121
|
-
|
122
93
|
end
|
123
94
|
|
124
|
-
|
125
95
|
if attributes.has_key?(:'domain_ids')
|
126
|
-
|
127
96
|
if (value = attributes[:'domain_ids']).is_a?(Array)
|
128
97
|
self.domain_ids = value
|
129
98
|
end
|
130
|
-
|
131
|
-
|
132
|
-
|
133
99
|
end
|
134
100
|
|
135
|
-
|
101
|
+
if attributes.has_key?(:'reminder_date')
|
102
|
+
self.reminder_date = attributes[:'reminder_date']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.has_key?(:'deadline')
|
106
|
+
self.deadline = attributes[:'deadline']
|
107
|
+
end
|
108
|
+
|
136
109
|
end
|
137
110
|
|
138
111
|
# Show invalid properties with the reasons. Usually used together with valid?
|
139
112
|
# @return Array for valid properies with the reasons
|
140
113
|
def list_invalid_properties
|
141
114
|
invalid_properties = Array.new
|
142
|
-
|
143
|
-
|
144
115
|
return invalid_properties
|
145
116
|
end
|
146
117
|
|
147
118
|
# Check to see if the all the properties in the model are valid
|
148
119
|
# @return true if the model is valid
|
149
120
|
def valid?
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
121
|
end
|
176
122
|
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
123
|
# Checks equality by comparing each attribute.
|
209
|
-
# @param [Object] Object to be compared
|
124
|
+
# @param [Object] Object to be compared
|
210
125
|
def ==(o)
|
211
126
|
return true if self.equal?(o)
|
212
127
|
self.class == o.class &&
|
@@ -215,11 +130,13 @@ module BlueprintClient
|
|
215
130
|
valid_from == o.valid_from &&
|
216
131
|
valid_to == o.valid_to &&
|
217
132
|
student_numbers == o.student_numbers &&
|
218
|
-
domain_ids == o.domain_ids
|
133
|
+
domain_ids == o.domain_ids &&
|
134
|
+
reminder_date == o.reminder_date &&
|
135
|
+
deadline == o.deadline
|
219
136
|
end
|
220
137
|
|
221
138
|
# @see the `==` method
|
222
|
-
# @param [Object] Object to be compared
|
139
|
+
# @param [Object] Object to be compared
|
223
140
|
def eql?(o)
|
224
141
|
self == o
|
225
142
|
end
|
@@ -227,7 +144,7 @@ module BlueprintClient
|
|
227
144
|
# Calculates hash code according to all attributes.
|
228
145
|
# @return [Fixnum] Hash code
|
229
146
|
def hash
|
230
|
-
[title, description, valid_from, valid_to, student_numbers, domain_ids].hash
|
147
|
+
[title, description, valid_from, valid_to, student_numbers, domain_ids, reminder_date, deadline].hash
|
231
148
|
end
|
232
149
|
|
233
150
|
# Builds the object from hash
|
@@ -21,22 +21,16 @@ module BlueprintClient
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
-
|
25
24
|
:'meta' => :'meta',
|
26
|
-
|
27
25
|
:'data' => :'data'
|
28
|
-
|
29
26
|
}
|
30
27
|
end
|
31
28
|
|
32
29
|
# Attribute type mapping.
|
33
30
|
def self.swagger_types
|
34
31
|
{
|
35
|
-
|
36
32
|
:'meta' => :'Meta',
|
37
|
-
|
38
33
|
:'data' => :'Node'
|
39
|
-
|
40
34
|
}
|
41
35
|
end
|
42
36
|
|
@@ -48,68 +42,34 @@ module BlueprintClient
|
|
48
42
|
# convert string to symbol for hash key
|
49
43
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
44
|
|
51
|
-
|
52
45
|
if attributes.has_key?(:'meta')
|
53
|
-
|
54
|
-
|
55
46
|
self.meta = attributes[:'meta']
|
56
|
-
|
57
|
-
|
58
47
|
end
|
59
48
|
|
60
|
-
|
61
49
|
if attributes.has_key?(:'data')
|
62
|
-
|
63
|
-
|
64
50
|
self.data = attributes[:'data']
|
65
|
-
|
66
|
-
|
67
51
|
end
|
68
52
|
|
69
|
-
|
70
53
|
end
|
71
54
|
|
72
55
|
# Show invalid properties with the reasons. Usually used together with valid?
|
73
56
|
# @return Array for valid properies with the reasons
|
74
57
|
def list_invalid_properties
|
75
58
|
invalid_properties = Array.new
|
76
|
-
|
77
|
-
|
78
59
|
return invalid_properties
|
79
60
|
end
|
80
61
|
|
81
62
|
# Check to see if the all the properties in the model are valid
|
82
63
|
# @return true if the model is valid
|
83
64
|
def valid?
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
65
|
if @data.nil?
|
91
66
|
return false
|
92
67
|
end
|
93
68
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
69
|
end
|
99
70
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
71
|
# Checks equality by comparing each attribute.
|
112
|
-
# @param [Object] Object to be compared
|
72
|
+
# @param [Object] Object to be compared
|
113
73
|
def ==(o)
|
114
74
|
return true if self.equal?(o)
|
115
75
|
self.class == o.class &&
|
@@ -118,7 +78,7 @@ module BlueprintClient
|
|
118
78
|
end
|
119
79
|
|
120
80
|
# @see the `==` method
|
121
|
-
# @param [Object] Object to be compared
|
81
|
+
# @param [Object] Object to be compared
|
122
82
|
def eql?(o)
|
123
83
|
self == o
|
124
84
|
end
|