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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/config.json +1 -1
- data/docs/AssetsApi.md +3 -3
- data/docs/HierarchyApi.md +19 -19
- data/docs/IntegrationTransformExample.md +1 -1
- data/docs/IntegrationsApi.md +4 -4
- data/docs/LTIApi.md +4 -4
- data/generate.sh +1 -1
- data/lib/blueprint_ruby_client/api/asset_type_configs_api.rb +15 -1
- data/lib/blueprint_ruby_client/api/asset_type_templates_api.rb +55 -1
- data/lib/blueprint_ruby_client/api/assets_api.rb +175 -7
- data/lib/blueprint_ruby_client/api/hierarchy_api.rb +393 -33
- data/lib/blueprint_ruby_client/api/integrations_api.rb +203 -3
- data/lib/blueprint_ruby_client/api/lti_api.rb +121 -1
- data/lib/blueprint_ruby_client/api/security_api.rb +3 -1
- data/lib/blueprint_ruby_client/api_client.rb +2 -0
- data/lib/blueprint_ruby_client/models/asset.rb +57 -0
- data/lib/blueprint_ruby_client/models/asset_body.rb +40 -0
- data/lib/blueprint_ruby_client/models/asset_relationship.rb +55 -0
- data/lib/blueprint_ruby_client/models/asset_result_set.rb +55 -0
- data/lib/blueprint_ruby_client/models/error.rb +57 -0
- data/lib/blueprint_ruby_client/models/errors.rb +23 -0
- data/lib/blueprint_ruby_client/models/integration.rb +57 -0
- data/lib/blueprint_ruby_client/models/integration_body.rb +40 -0
- data/lib/blueprint_ruby_client/models/integration_transform.rb +73 -0
- data/lib/blueprint_ruby_client/models/integration_transform_example.rb +53 -13
- data/lib/blueprint_ruby_client/models/links.rb +55 -0
- data/lib/blueprint_ruby_client/models/lti1_integration_attributes.rb +74 -0
- data/lib/blueprint_ruby_client/models/meta.rb +55 -0
- data/lib/blueprint_ruby_client/models/namespace.rb +41 -0
- data/lib/blueprint_ruby_client/models/namespace_relationship.rb +23 -0
- data/lib/blueprint_ruby_client/models/node.rb +73 -0
- data/lib/blueprint_ruby_client/models/node_attributes.rb +135 -0
- data/lib/blueprint_ruby_client/models/node_body.rb +40 -0
- data/lib/blueprint_ruby_client/models/node_relationship.rb +55 -0
- data/lib/blueprint_ruby_client/models/node_relationships.rb +71 -0
- data/lib/blueprint_ruby_client/models/node_result_set.rb +55 -0
- data/lib/blueprint_ruby_client/models/resource.rb +57 -0
- data/lib/blueprint_ruby_client/models/template.rb +58 -0
- data/lib/blueprint_ruby_client/models/template_attributes.rb +40 -18
- data/lib/blueprint_ruby_client/models/template_body.rb +40 -0
- data/lib/blueprint_ruby_client/models/template_variables.rb +43 -38
- data/lib/blueprint_ruby_client/version.rb +1 -1
- data/spec/api/assets_api_spec.rb +1 -1
- data/spec/api/hierarchy_api_spec.rb +9 -9
- data/spec/models/integration_transform_example_spec.rb +2 -2
- metadata +4 -11
- data/git_push.sh +0 -67
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/spec_helper.rb +0 -111
- data/swagger-codegen-cli.jar +0 -0
@@ -47,16 +47,47 @@ module BlueprintClient
|
|
47
47
|
if @api_client.config.debugging
|
48
48
|
@api_client.config.logger.debug "Calling API: AssetsApi.add_asset_to_node ..."
|
49
49
|
end
|
50
|
+
|
51
|
+
|
50
52
|
# verify the required parameter 'namespace' is set
|
51
53
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetsApi.add_asset_to_node" if namespace.nil?
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
52
60
|
# verify the required parameter 'type' is set
|
53
61
|
fail ArgumentError, "Missing the required parameter 'type' when calling AssetsApi.add_asset_to_node" if type.nil?
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
54
68
|
# verify the required parameter 'id' is set
|
55
69
|
fail ArgumentError, "Missing the required parameter 'id' when calling AssetsApi.add_asset_to_node" if id.nil?
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
56
76
|
# verify the required parameter 'asset_type' is set
|
57
77
|
fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetsApi.add_asset_to_node" if asset_type.nil?
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
58
84
|
# verify the required parameter 'asset_id' is set
|
59
85
|
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.add_asset_to_node" if asset_id.nil?
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
60
91
|
# resource path
|
61
92
|
local_var_path = "/{namespace}/nodes/{type}/{id}/assets/{assetType}/{assetId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'type' + '}', type.to_s).sub('{' + 'id' + '}', id.to_s).sub('{' + 'assetType' + '}', asset_type.to_s).sub('{' + 'assetId' + '}', asset_id.to_s)
|
62
93
|
|
@@ -79,7 +110,8 @@ module BlueprintClient
|
|
79
110
|
|
80
111
|
# http body (model)
|
81
112
|
post_body = nil
|
82
|
-
|
113
|
+
|
114
|
+
auth_names = ['oauth2']
|
83
115
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
84
116
|
:header_params => header_params,
|
85
117
|
:query_params => query_params,
|
@@ -116,12 +148,31 @@ module BlueprintClient
|
|
116
148
|
if @api_client.config.debugging
|
117
149
|
@api_client.config.logger.debug "Calling API: AssetsApi.delete_asset ..."
|
118
150
|
end
|
151
|
+
|
152
|
+
|
119
153
|
# verify the required parameter 'namespace' is set
|
120
154
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetsApi.delete_asset" if namespace.nil?
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
121
161
|
# verify the required parameter 'asset_id' is set
|
122
162
|
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.delete_asset" if asset_id.nil?
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
123
169
|
# verify the required parameter 'asset_type' is set
|
124
170
|
fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetsApi.delete_asset" if asset_type.nil?
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
125
176
|
# resource path
|
126
177
|
local_var_path = "/{namespace}/assets/{assetType}/{assetId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'assetId' + '}', asset_id.to_s).sub('{' + 'assetType' + '}', asset_type.to_s)
|
127
178
|
|
@@ -144,7 +195,8 @@ module BlueprintClient
|
|
144
195
|
|
145
196
|
# http body (model)
|
146
197
|
post_body = nil
|
147
|
-
|
198
|
+
|
199
|
+
auth_names = ['oauth2']
|
148
200
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
149
201
|
:header_params => header_params,
|
150
202
|
:query_params => query_params,
|
@@ -180,12 +232,31 @@ module BlueprintClient
|
|
180
232
|
if @api_client.config.debugging
|
181
233
|
@api_client.config.logger.debug "Calling API: AssetsApi.get_asset ..."
|
182
234
|
end
|
235
|
+
|
236
|
+
|
183
237
|
# verify the required parameter 'namespace' is set
|
184
238
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetsApi.get_asset" if namespace.nil?
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
185
245
|
# verify the required parameter 'asset_type' is set
|
186
246
|
fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetsApi.get_asset" if asset_type.nil?
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
187
253
|
# verify the required parameter 'asset_id' is set
|
188
254
|
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.get_asset" if asset_id.nil?
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
189
260
|
# resource path
|
190
261
|
local_var_path = "/{namespace}/assets/{assetType}/{assetId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'assetType' + '}', asset_type.to_s).sub('{' + 'assetId' + '}', asset_id.to_s)
|
191
262
|
|
@@ -208,7 +279,8 @@ module BlueprintClient
|
|
208
279
|
|
209
280
|
# http body (model)
|
210
281
|
post_body = nil
|
211
|
-
|
282
|
+
|
283
|
+
auth_names = ['oauth2']
|
212
284
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
213
285
|
:header_params => header_params,
|
214
286
|
:query_params => query_params,
|
@@ -251,12 +323,49 @@ module BlueprintClient
|
|
251
323
|
if @api_client.config.debugging
|
252
324
|
@api_client.config.logger.debug "Calling API: AssetsApi.get_assets_in_node ..."
|
253
325
|
end
|
326
|
+
|
327
|
+
|
254
328
|
# verify the required parameter 'namespace' is set
|
255
329
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetsApi.get_assets_in_node" if namespace.nil?
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
256
336
|
# verify the required parameter 'type' is set
|
257
337
|
fail ArgumentError, "Missing the required parameter 'type' when calling AssetsApi.get_assets_in_node" if type.nil?
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
258
344
|
# verify the required parameter 'id' is set
|
259
345
|
fail ArgumentError, "Missing the required parameter 'id' when calling AssetsApi.get_assets_in_node" if id.nil?
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
260
369
|
# resource path
|
261
370
|
local_var_path = "/{namespace}/nodes/{type}/{id}/assets".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'type' + '}', type.to_s).sub('{' + 'id' + '}', id.to_s)
|
262
371
|
|
@@ -282,7 +391,8 @@ module BlueprintClient
|
|
282
391
|
|
283
392
|
# http body (model)
|
284
393
|
post_body = nil
|
285
|
-
|
394
|
+
|
395
|
+
auth_names = ['oauth2']
|
286
396
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
287
397
|
:header_params => header_params,
|
288
398
|
:query_params => query_params,
|
@@ -323,16 +433,47 @@ module BlueprintClient
|
|
323
433
|
if @api_client.config.debugging
|
324
434
|
@api_client.config.logger.debug "Calling API: AssetsApi.remove_asset_from_node ..."
|
325
435
|
end
|
436
|
+
|
437
|
+
|
326
438
|
# verify the required parameter 'namespace' is set
|
327
439
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetsApi.remove_asset_from_node" if namespace.nil?
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
328
446
|
# verify the required parameter 'type' is set
|
329
447
|
fail ArgumentError, "Missing the required parameter 'type' when calling AssetsApi.remove_asset_from_node" if type.nil?
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
330
454
|
# verify the required parameter 'id' is set
|
331
455
|
fail ArgumentError, "Missing the required parameter 'id' when calling AssetsApi.remove_asset_from_node" if id.nil?
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
|
332
462
|
# verify the required parameter 'asset_type' is set
|
333
463
|
fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetsApi.remove_asset_from_node" if asset_type.nil?
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
334
470
|
# verify the required parameter 'asset_id' is set
|
335
471
|
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.remove_asset_from_node" if asset_id.nil?
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
336
477
|
# resource path
|
337
478
|
local_var_path = "/{namespace}/nodes/{type}/{id}/assets/{assetType}/{assetId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'type' + '}', type.to_s).sub('{' + 'id' + '}', id.to_s).sub('{' + 'assetType' + '}', asset_type.to_s).sub('{' + 'assetId' + '}', asset_id.to_s)
|
338
479
|
|
@@ -355,7 +496,8 @@ module BlueprintClient
|
|
355
496
|
|
356
497
|
# http body (model)
|
357
498
|
post_body = nil
|
358
|
-
|
499
|
+
|
500
|
+
auth_names = ['oauth2']
|
359
501
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
360
502
|
:header_params => header_params,
|
361
503
|
:query_params => query_params,
|
@@ -369,7 +511,7 @@ module BlueprintClient
|
|
369
511
|
end
|
370
512
|
|
371
513
|
# Replaces the Asset with the data sent in the body
|
372
|
-
# Wholesale replacement of Asset data: if you were to PUT to
|
514
|
+
# Wholesale replacement of Asset data: if you were to PUT to:\n /1/{namespace}/assets/sometype/someid\n\nwith a body of:\n { type: \"someothertype\", id: \"someotherid\" }\n\nIt would change the Asset's path to:\n /1/{namespace}/assets/someothertype/someotherid\n\nand\n /1/{namespace}/assets/sometype/someid\nwould return a 404.\nIt would also update the assets associated with any node.\n
|
373
515
|
# @param namespace identifier namespacing the blueprint.
|
374
516
|
# @param asset_id id of an asset
|
375
517
|
# @param asset_type subtype of Asset, e.g. 'textbooks', 'digitisations', etc.
|
@@ -382,7 +524,7 @@ module BlueprintClient
|
|
382
524
|
end
|
383
525
|
|
384
526
|
# Replaces the Asset with the data sent in the body
|
385
|
-
# Wholesale replacement of Asset data: if you were to PUT to
|
527
|
+
# Wholesale replacement of Asset data: if you were to PUT to:\n /1/{namespace}/assets/sometype/someid\n\nwith a body of:\n { type: \"someothertype\", id: \"someotherid\" }\n\nIt would change the Asset's path to:\n /1/{namespace}/assets/someothertype/someotherid\n\nand\n /1/{namespace}/assets/sometype/someid\nwould return a 404.\nIt would also update the assets associated with any node.\n
|
386
528
|
# @param namespace identifier namespacing the blueprint.
|
387
529
|
# @param asset_id id of an asset
|
388
530
|
# @param asset_type subtype of Asset, e.g. 'textbooks', 'digitisations', etc.
|
@@ -393,12 +535,37 @@ module BlueprintClient
|
|
393
535
|
if @api_client.config.debugging
|
394
536
|
@api_client.config.logger.debug "Calling API: AssetsApi.replace_asset ..."
|
395
537
|
end
|
538
|
+
|
539
|
+
|
396
540
|
# verify the required parameter 'namespace' is set
|
397
541
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetsApi.replace_asset" if namespace.nil?
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
398
548
|
# verify the required parameter 'asset_id' is set
|
399
549
|
fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.replace_asset" if asset_id.nil?
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
400
556
|
# verify the required parameter 'asset_type' is set
|
401
557
|
fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetsApi.replace_asset" if asset_type.nil?
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
|
402
569
|
# resource path
|
403
570
|
local_var_path = "/{namespace}/assets/{assetType}/{assetId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'assetId' + '}', asset_id.to_s).sub('{' + 'assetType' + '}', asset_type.to_s)
|
404
571
|
|
@@ -421,6 +588,7 @@ module BlueprintClient
|
|
421
588
|
|
422
589
|
# http body (model)
|
423
590
|
post_body = @api_client.object_to_http_body(opts[:'body'])
|
591
|
+
|
424
592
|
auth_names = ['oauth2']
|
425
593
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
426
594
|
:header_params => header_params,
|