blueprint_ruby_client 0.5.0 → 0.5.1

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +5 -5
  4. data/config.json +1 -1
  5. data/docs/AssetsApi.md +3 -3
  6. data/docs/HierarchyApi.md +19 -19
  7. data/docs/IntegrationTransformExample.md +1 -1
  8. data/docs/IntegrationsApi.md +4 -4
  9. data/docs/LTIApi.md +4 -4
  10. data/generate.sh +1 -1
  11. data/lib/blueprint_ruby_client/api/asset_type_configs_api.rb +15 -1
  12. data/lib/blueprint_ruby_client/api/asset_type_templates_api.rb +55 -1
  13. data/lib/blueprint_ruby_client/api/assets_api.rb +175 -7
  14. data/lib/blueprint_ruby_client/api/hierarchy_api.rb +393 -33
  15. data/lib/blueprint_ruby_client/api/integrations_api.rb +203 -3
  16. data/lib/blueprint_ruby_client/api/lti_api.rb +121 -1
  17. data/lib/blueprint_ruby_client/api/security_api.rb +3 -1
  18. data/lib/blueprint_ruby_client/api_client.rb +2 -0
  19. data/lib/blueprint_ruby_client/models/asset.rb +57 -0
  20. data/lib/blueprint_ruby_client/models/asset_body.rb +40 -0
  21. data/lib/blueprint_ruby_client/models/asset_relationship.rb +55 -0
  22. data/lib/blueprint_ruby_client/models/asset_result_set.rb +55 -0
  23. data/lib/blueprint_ruby_client/models/error.rb +57 -0
  24. data/lib/blueprint_ruby_client/models/errors.rb +23 -0
  25. data/lib/blueprint_ruby_client/models/integration.rb +57 -0
  26. data/lib/blueprint_ruby_client/models/integration_body.rb +40 -0
  27. data/lib/blueprint_ruby_client/models/integration_transform.rb +73 -0
  28. data/lib/blueprint_ruby_client/models/integration_transform_example.rb +53 -13
  29. data/lib/blueprint_ruby_client/models/links.rb +55 -0
  30. data/lib/blueprint_ruby_client/models/lti1_integration_attributes.rb +74 -0
  31. data/lib/blueprint_ruby_client/models/meta.rb +55 -0
  32. data/lib/blueprint_ruby_client/models/namespace.rb +41 -0
  33. data/lib/blueprint_ruby_client/models/namespace_relationship.rb +23 -0
  34. data/lib/blueprint_ruby_client/models/node.rb +73 -0
  35. data/lib/blueprint_ruby_client/models/node_attributes.rb +135 -0
  36. data/lib/blueprint_ruby_client/models/node_body.rb +40 -0
  37. data/lib/blueprint_ruby_client/models/node_relationship.rb +55 -0
  38. data/lib/blueprint_ruby_client/models/node_relationships.rb +71 -0
  39. data/lib/blueprint_ruby_client/models/node_result_set.rb +55 -0
  40. data/lib/blueprint_ruby_client/models/resource.rb +57 -0
  41. data/lib/blueprint_ruby_client/models/template.rb +58 -0
  42. data/lib/blueprint_ruby_client/models/template_attributes.rb +40 -18
  43. data/lib/blueprint_ruby_client/models/template_body.rb +40 -0
  44. data/lib/blueprint_ruby_client/models/template_variables.rb +43 -38
  45. data/lib/blueprint_ruby_client/version.rb +1 -1
  46. data/spec/api/assets_api_spec.rb +1 -1
  47. data/spec/api/hierarchy_api_spec.rb +9 -9
  48. data/spec/models/integration_transform_example_spec.rb +2 -2
  49. metadata +4 -11
  50. data/git_push.sh +0 -67
  51. data/spec/api_client_spec.rb +0 -226
  52. data/spec/configuration_spec.rb +0 -42
  53. data/spec/spec_helper.rb +0 -111
  54. data/swagger-codegen-cli.jar +0 -0
@@ -19,14 +19,18 @@ module BlueprintClient
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
+
22
23
  :'data' => :'data'
24
+
23
25
  }
24
26
  end
25
27
 
26
28
  # Attribute type mapping.
27
29
  def self.swagger_types
28
30
  {
31
+
29
32
  :'data' => :'Namespace'
33
+
30
34
  }
31
35
  end
32
36
 
@@ -38,24 +42,43 @@ module BlueprintClient
38
42
  # convert string to symbol for hash key
39
43
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
40
44
 
45
+
41
46
  if attributes.has_key?(:'data')
47
+
48
+
42
49
  self.data = attributes[:'data']
50
+
51
+
43
52
  end
44
53
 
54
+
45
55
  end
46
56
 
47
57
  # Show invalid properties with the reasons. Usually used together with valid?
48
58
  # @return Array for valid properies with the reasons
49
59
  def list_invalid_properties
50
60
  invalid_properties = Array.new
61
+
62
+
51
63
  return invalid_properties
52
64
  end
53
65
 
54
66
  # Check to see if the all the properties in the model are valid
55
67
  # @return true if the model is valid
56
68
  def valid?
69
+
70
+
71
+
72
+
73
+
57
74
  end
58
75
 
76
+
77
+
78
+
79
+
80
+
81
+
59
82
  # Checks equality by comparing each attribute.
60
83
  # @param [Object] Object to be compared
61
84
  def ==(o)
@@ -26,20 +26,30 @@ module BlueprintClient
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
+
29
30
  :'id' => :'id',
31
+
30
32
  :'type' => :'type',
33
+
31
34
  :'attributes' => :'attributes',
35
+
32
36
  :'relationships' => :'relationships'
37
+
33
38
  }
34
39
  end
35
40
 
36
41
  # Attribute type mapping.
37
42
  def self.swagger_types
38
43
  {
44
+
39
45
  :'id' => :'String',
46
+
40
47
  :'type' => :'String',
48
+
41
49
  :'attributes' => :'NodeAttributes',
50
+
42
51
  :'relationships' => :'NodeRelationships'
52
+
43
53
  }
44
54
  end
45
55
 
@@ -51,44 +61,107 @@ module BlueprintClient
51
61
  # convert string to symbol for hash key
52
62
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
63
 
64
+
54
65
  if attributes.has_key?(:'id')
66
+
67
+
55
68
  self.id = attributes[:'id']
69
+
70
+
56
71
  end
57
72
 
73
+
58
74
  if attributes.has_key?(:'type')
75
+
76
+
59
77
  self.type = attributes[:'type']
78
+
79
+
60
80
  end
61
81
 
82
+
62
83
  if attributes.has_key?(:'attributes')
84
+
85
+
63
86
  self.attributes = attributes[:'attributes']
87
+
88
+
64
89
  end
65
90
 
91
+
66
92
  if attributes.has_key?(:'relationships')
93
+
94
+
67
95
  self.relationships = attributes[:'relationships']
96
+
97
+
68
98
  end
69
99
 
100
+
70
101
  end
71
102
 
72
103
  # Show invalid properties with the reasons. Usually used together with valid?
73
104
  # @return Array for valid properies with the reasons
74
105
  def list_invalid_properties
75
106
  invalid_properties = Array.new
107
+
108
+
76
109
  return invalid_properties
77
110
  end
78
111
 
79
112
  # Check to see if the all the properties in the model are valid
80
113
  # @return true if the model is valid
81
114
  def valid?
115
+
116
+
82
117
  if @id.nil?
83
118
  return false
84
119
  end
85
120
 
121
+
122
+
123
+
124
+
125
+
86
126
  if @type.nil?
87
127
  return false
88
128
  end
89
129
 
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
90
142
  end
91
143
 
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
92
165
  # Checks equality by comparing each attribute.
93
166
  # @param [Object] Object to be compared
94
167
  def ==(o)
@@ -39,28 +39,46 @@ module BlueprintClient
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
40
40
  def self.attribute_map
41
41
  {
42
+
42
43
  :'title' => :'title',
44
+
43
45
  :'description' => :'description',
46
+
44
47
  :'valid_from' => :'valid_from',
48
+
45
49
  :'valid_to' => :'valid_to',
50
+
46
51
  :'student_numbers' => :'studentNumbers',
52
+
47
53
  :'domain_ids' => :'domain_ids',
54
+
48
55
  :'reminder_date' => :'reminder_date',
56
+
49
57
  :'deadline' => :'deadline'
58
+
50
59
  }
51
60
  end
52
61
 
53
62
  # Attribute type mapping.
54
63
  def self.swagger_types
55
64
  {
65
+
56
66
  :'title' => :'String',
67
+
57
68
  :'description' => :'String',
69
+
58
70
  :'valid_from' => :'Date',
71
+
59
72
  :'valid_to' => :'Date',
73
+
60
74
  :'student_numbers' => :'Float',
75
+
61
76
  :'domain_ids' => :'Array<String>',
77
+
62
78
  :'reminder_date' => :'Date',
79
+
63
80
  :'deadline' => :'Date'
81
+
64
82
  }
65
83
  end
66
84
 
@@ -72,54 +90,171 @@ module BlueprintClient
72
90
  # convert string to symbol for hash key
73
91
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
74
92
 
93
+
75
94
  if attributes.has_key?(:'title')
95
+
96
+
76
97
  self.title = attributes[:'title']
98
+
99
+
77
100
  end
78
101
 
102
+
79
103
  if attributes.has_key?(:'description')
104
+
105
+
80
106
  self.description = attributes[:'description']
107
+
108
+
81
109
  end
82
110
 
111
+
83
112
  if attributes.has_key?(:'valid_from')
113
+
114
+
84
115
  self.valid_from = attributes[:'valid_from']
116
+
117
+
85
118
  end
86
119
 
120
+
87
121
  if attributes.has_key?(:'valid_to')
122
+
123
+
88
124
  self.valid_to = attributes[:'valid_to']
125
+
126
+
89
127
  end
90
128
 
129
+
91
130
  if attributes.has_key?(:'studentNumbers')
131
+
132
+
92
133
  self.student_numbers = attributes[:'studentNumbers']
134
+
135
+
93
136
  end
94
137
 
138
+
95
139
  if attributes.has_key?(:'domain_ids')
140
+
96
141
  if (value = attributes[:'domain_ids']).is_a?(Array)
97
142
  self.domain_ids = value
98
143
  end
144
+
145
+
146
+
99
147
  end
100
148
 
149
+
101
150
  if attributes.has_key?(:'reminder_date')
151
+
152
+
102
153
  self.reminder_date = attributes[:'reminder_date']
154
+
155
+
103
156
  end
104
157
 
158
+
105
159
  if attributes.has_key?(:'deadline')
160
+
161
+
106
162
  self.deadline = attributes[:'deadline']
163
+
164
+
107
165
  end
108
166
 
167
+
109
168
  end
110
169
 
111
170
  # Show invalid properties with the reasons. Usually used together with valid?
112
171
  # @return Array for valid properies with the reasons
113
172
  def list_invalid_properties
114
173
  invalid_properties = Array.new
174
+
175
+
115
176
  return invalid_properties
116
177
  end
117
178
 
118
179
  # Check to see if the all the properties in the model are valid
119
180
  # @return true if the model is valid
120
181
  def valid?
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
+
209
+
210
+
211
+
212
+
213
+
214
+
121
215
  end
122
216
 
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
123
258
  # Checks equality by comparing each attribute.
124
259
  # @param [Object] Object to be compared
125
260
  def ==(o)
@@ -21,16 +21,22 @@ module BlueprintClient
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
+
24
25
  :'meta' => :'meta',
26
+
25
27
  :'data' => :'data'
28
+
26
29
  }
27
30
  end
28
31
 
29
32
  # Attribute type mapping.
30
33
  def self.swagger_types
31
34
  {
35
+
32
36
  :'meta' => :'Meta',
37
+
33
38
  :'data' => :'Node'
39
+
34
40
  }
35
41
  end
36
42
 
@@ -42,32 +48,66 @@ module BlueprintClient
42
48
  # convert string to symbol for hash key
43
49
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
44
50
 
51
+
45
52
  if attributes.has_key?(:'meta')
53
+
54
+
46
55
  self.meta = attributes[:'meta']
56
+
57
+
47
58
  end
48
59
 
60
+
49
61
  if attributes.has_key?(:'data')
62
+
63
+
50
64
  self.data = attributes[:'data']
65
+
66
+
51
67
  end
52
68
 
69
+
53
70
  end
54
71
 
55
72
  # Show invalid properties with the reasons. Usually used together with valid?
56
73
  # @return Array for valid properies with the reasons
57
74
  def list_invalid_properties
58
75
  invalid_properties = Array.new
76
+
77
+
59
78
  return invalid_properties
60
79
  end
61
80
 
62
81
  # Check to see if the all the properties in the model are valid
63
82
  # @return true if the model is valid
64
83
  def valid?
84
+
85
+
86
+
87
+
88
+
89
+
65
90
  if @data.nil?
66
91
  return false
67
92
  end
68
93
 
94
+
95
+
96
+
97
+
69
98
  end
70
99
 
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
71
111
  # Checks equality by comparing each attribute.
72
112
  # @param [Object] Object to be compared
73
113
  def ==(o)
@@ -23,18 +23,26 @@ module BlueprintClient
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
+
26
27
  :'meta' => :'meta',
28
+
27
29
  :'links' => :'links',
30
+
28
31
  :'data' => :'data'
32
+
29
33
  }
30
34
  end
31
35
 
32
36
  # Attribute type mapping.
33
37
  def self.swagger_types
34
38
  {
39
+
35
40
  :'meta' => :'Meta',
41
+
36
42
  :'links' => :'Links',
43
+
37
44
  :'data' => :'Array<Node>'
45
+
38
46
  }
39
47
  end
40
48
 
@@ -46,34 +54,81 @@ module BlueprintClient
46
54
  # convert string to symbol for hash key
47
55
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
56
 
57
+
49
58
  if attributes.has_key?(:'meta')
59
+
60
+
50
61
  self.meta = attributes[:'meta']
62
+
63
+
51
64
  end
52
65
 
66
+
53
67
  if attributes.has_key?(:'links')
68
+
69
+
54
70
  self.links = attributes[:'links']
71
+
72
+
55
73
  end
56
74
 
75
+
57
76
  if attributes.has_key?(:'data')
77
+
58
78
  if (value = attributes[:'data']).is_a?(Array)
59
79
  self.data = value
60
80
  end
81
+
82
+
83
+
61
84
  end
62
85
 
86
+
63
87
  end
64
88
 
65
89
  # Show invalid properties with the reasons. Usually used together with valid?
66
90
  # @return Array for valid properies with the reasons
67
91
  def list_invalid_properties
68
92
  invalid_properties = Array.new
93
+
94
+
69
95
  return invalid_properties
70
96
  end
71
97
 
72
98
  # Check to see if the all the properties in the model are valid
73
99
  # @return true if the model is valid
74
100
  def valid?
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
75
114
  end
76
115
 
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
77
132
  # Checks equality by comparing each attribute.
78
133
  # @param [Object] Object to be compared
79
134
  def ==(o)