blueprint_ruby_client 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ae5f091fb9a5ecdf9025c1b761a123e91fef1c6
4
- data.tar.gz: 5c8b669e3f6dc2c4feec20fd9aea773ca26ea285
3
+ metadata.gz: 77195edee8095b723cccbcd84f23c1e998a87798
4
+ data.tar.gz: becb7ea53667a13465de1ac12b3a6002cfd6dfd7
5
5
  SHA512:
6
- metadata.gz: 27b49ca3eee85cb6d58c67d1224689be0de592e491f09c051935f6317d86ec3b3aab36661bf9840d0909fbb99278985582c6d932dbe785e5984f4d51b6227049
7
- data.tar.gz: 050d6686492b18c46ce5ec77d9c8032f07af09850b547893561c58641724e363f57703b7da20324550d54e7b1e5f4cb4a2bda71240da3a32087abf22a3fbba14
6
+ metadata.gz: ee3a8690154c20302e1fd01bfb62a8a18d9b1029e4ecdde7bc0bead3c9ed946cc0a95db45c31839116d56dde38cecc41be8468b569ed5cc60d1a218155ba60d5
7
+ data.tar.gz: 8deb82e0d8043bb6ea9049dba30c692c4ea61ff9273392bdfa049b58a5123d44c63faf9bf528e0ff16d19ca0937d96191b1c66d3b036957ebcddd3c882e1964b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blueprint_ruby_client (0.4.1)
4
+ blueprint_ruby_client (0.5.1)
5
5
  json (~> 1.8, >= 1.8.3)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
data/README.md CHANGED
@@ -7,8 +7,8 @@ This is the API documentation for [Blueprint](https://github.com/talis/blueprint
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 1.0.0
10
- - Package version: 0.4.1
11
- - Build date: 2016-10-27T15:57:57.768-04:00
10
+ - Package version: 0.5.1
11
+ - Build date: 2016-11-02T13:51:34.555-04:00
12
12
  - Build package: class io.swagger.codegen.languages.RubyClientCodegen
13
13
 
14
14
  ## Installation
@@ -34,15 +34,15 @@ gem build blueprint_ruby_client.gemspec
34
34
  Then either install the gem locally:
35
35
 
36
36
  ```shell
37
- gem install ./blueprint_ruby_client-0.4.1.gem
37
+ gem install ./blueprint_ruby_client-0.5.1.gem
38
38
  ```
39
- (for development, run `gem install --dev ./blueprint_ruby_client-0.4.1.gem` to install the development dependencies)
39
+ (for development, run `gem install --dev ./blueprint_ruby_client-0.5.1.gem` to install the development dependencies)
40
40
 
41
41
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
42
42
 
43
43
  Finally add this to the Gemfile:
44
44
 
45
- gem 'blueprint_ruby_client', '~> 0.4.1'
45
+ gem 'blueprint_ruby_client', '~> 0.5.1'
46
46
 
47
47
  ### Install from Git
48
48
 
data/config.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "gemName": "blueprint_ruby_client",
3
3
  "moduleName": "BlueprintClient",
4
- "gemVersion": "0.4.1",
4
+ "gemVersion": "0.5.1",
5
5
  "gemLicense": "Copyright Talis Education Ltd",
6
6
  "gemHomepage": "https://github.com/talis/blueprint_rb",
7
7
  "gemSummary": "A ruby API wrapper for Blueprint",
data/docs/AssetsApi.md CHANGED
@@ -236,8 +236,8 @@ Name | Type | Description | Notes
236
236
  **type** | **String**| subtype of Node, e.g. 'modules', 'departments', etc. |
237
237
  **id** | **String**| id identifying a domain model |
238
238
  **filter_asset_type** | [**Array<String>**](String.md)| type of asset to return | [optional]
239
- **offset** | **Float**| index to start result set from | [optional]
240
- **limit** | **Float**| number of records to return | [optional]
239
+ **offset** | [**Float**](.md)| index to start result set from | [optional]
240
+ **limit** | [**Float**](.md)| number of records to return | [optional]
241
241
 
242
242
  ### Return type
243
243
 
@@ -321,7 +321,7 @@ nil (empty response body)
321
321
 
322
322
  Replaces the Asset with the data sent in the body
323
323
 
324
- Wholesale replacement of Asset data: if you were to PUT to: /1/{namespace}/assets/sometype/someid with a body of: { type: \"someothertype\", id: \"someotherid\" } It would change the Asset's path to: /1/{namespace}/assets/someothertype/someotherid and /1/{namespace}/assets/sometype/someid would return a 404. It would also update the assets associated with any node.
324
+ 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
325
325
 
326
326
  ### Example
327
327
  ```ruby
data/docs/HierarchyApi.md CHANGED
@@ -54,7 +54,7 @@ end
54
54
 
55
55
  Name | Type | Description | Notes
56
56
  ------------- | ------------- | ------------- | -------------
57
- **namespace_inc_global** | **String**| identifier namespacing the blueprint. `global` is a special namespace which references data from all blueprints in the call. |
57
+ **namespace_inc_global** | **String**| identifier namespacing the blueprint. `global` is a special namespace which references data from all blueprints in the call. |
58
58
  **body** | [**NodeBody**](NodeBody.md)| node |
59
59
 
60
60
  ### Return type
@@ -77,7 +77,7 @@ Name | Type | Description | Notes
77
77
 
78
78
 
79
79
 
80
- Send operations to modify nodes in bulk, to be applied/rejected as a single transaction. Format will be: OLD NODE TYPE, OLD NODE ID, NEW NODE TYPE, NEW NODE ID, PARENTS, TITLE, DESCRIPTION, DOMAIN IDS, STUDENT NUMBERS
80
+ Send operations to modify nodes in bulk, to be applied/rejected as a single transaction.\nFormat will be:\n\n OLD NODE TYPE, OLD NODE ID, NEW NODE TYPE, NEW NODE ID, PARENTS, TITLE, DESCRIPTION, DOMAIN IDS, STUDENT NUMBERS\n
81
81
 
82
82
  ### Example
83
83
  ```ruby
@@ -183,7 +183,7 @@ nil (empty response body)
183
183
 
184
184
 
185
185
 
186
- Download the blueprint's nodes in CSV format Format will be: OLD NODE TYPE, OLD NODE ID, NEW NODE TYPE, NEW NODE ID, PARENTS, TITLE, DESCRIPTION, DOMAIN IDS, STUDENT NUMBERS OLD NODE TYPE and OLD NODE ID are left intentionally blank to allow direct upload of the output back into the bulk importer
186
+ Download the blueprint's nodes in CSV format\nFormat will be:\n\n OLD NODE TYPE, OLD NODE ID, NEW NODE TYPE, NEW NODE ID, PARENTS, TITLE, DESCRIPTION, DOMAIN IDS, STUDENT NUMBERS\n\nOLD NODE TYPE and OLD NODE ID are left intentionally blank to allow direct upload of the output back into the bulk importer\n
187
187
 
188
188
  ### Example
189
189
  ```ruby
@@ -233,7 +233,7 @@ nil (empty response body)
233
233
 
234
234
  Get ancestor nodes
235
235
 
236
- A proxy for finding ancestors of a given node, equivalent to `/1/abc/nodes?filter[descendant]=department%2Fdep101`
236
+ A proxy for finding ancestors of a given node, equivalent to\n`/1/abc/nodes?filter[descendant]=department%2Fdep101`\n
237
237
 
238
238
  ### Example
239
239
  ```ruby
@@ -274,8 +274,8 @@ Name | Type | Description | Notes
274
274
  **id** | **String**| id identifying a domain model |
275
275
  **namespace** | **String**| identifier namespacing the blueprint. |
276
276
  **type** | **String**| subtype of Node, e.g. 'modules', 'departments', etc. |
277
- **offset** | **Float**| index to start result set from | [optional]
278
- **limit** | **Float**| number of records to return | [optional]
277
+ **offset** | [**Float**](.md)| index to start result set from | [optional]
278
+ **limit** | [**Float**](.md)| number of records to return | [optional]
279
279
 
280
280
  ### Return type
281
281
 
@@ -297,7 +297,7 @@ Name | Type | Description | Notes
297
297
 
298
298
  Get child nodes
299
299
 
300
- A proxy for finding children of a given node, equivalent to `/1/abc/nodes?filter[parent]=department%2Fdep101`
300
+ A proxy for finding children of a given node, equivalent to\n`/1/abc/nodes?filter[parent]=department%2Fdep101`\n
301
301
 
302
302
  ### Example
303
303
  ```ruby
@@ -338,8 +338,8 @@ Name | Type | Description | Notes
338
338
  **id** | **String**| id identifying a domain model |
339
339
  **namespace** | **String**| identifier namespacing the blueprint. |
340
340
  **type** | **String**| subtype of Node, e.g. 'modules', 'departments', etc. |
341
- **offset** | **Float**| index to start result set from | [optional]
342
- **limit** | **Float**| number of records to return | [optional]
341
+ **offset** | [**Float**](.md)| index to start result set from | [optional]
342
+ **limit** | [**Float**](.md)| number of records to return | [optional]
343
343
 
344
344
  ### Return type
345
345
 
@@ -361,7 +361,7 @@ Name | Type | Description | Notes
361
361
 
362
362
  Get descendant nodes
363
363
 
364
- A proxy for finding descendants of a given node, equivalent to `/1/abc/nodes?filter[ancestor]=department%2Fdep101`
364
+ A proxy for finding descendants of a given node, equivalent to\n`/1/abc/nodes?filter[ancestor]=department%2Fdep101`\n
365
365
 
366
366
  ### Example
367
367
  ```ruby
@@ -402,8 +402,8 @@ Name | Type | Description | Notes
402
402
  **id** | **String**| id identifying a domain model |
403
403
  **namespace** | **String**| identifier namespacing the blueprint. |
404
404
  **type** | **String**| subtype of Node, e.g. 'modules', 'departments', etc. |
405
- **offset** | **Float**| index to start result set from | [optional]
406
- **limit** | **Float**| number of records to return | [optional]
405
+ **offset** | [**Float**](.md)| index to start result set from | [optional]
406
+ **limit** | [**Float**](.md)| number of records to return | [optional]
407
407
 
408
408
  ### Return type
409
409
 
@@ -487,7 +487,7 @@ Name | Type | Description | Notes
487
487
 
488
488
  Get parent nodes
489
489
 
490
- A proxy for finding parents of a given node, equivalent to `/1/abc/nodes?filter[child]=department%2Fdep101`
490
+ A proxy for finding parents of a given node, equivalent to\n`/1/abc/nodes?filter[child]=department%2Fdep101`\n
491
491
 
492
492
  ### Example
493
493
  ```ruby
@@ -528,8 +528,8 @@ Name | Type | Description | Notes
528
528
  **id** | **String**| id identifying a domain model |
529
529
  **namespace** | **String**| identifier namespacing the blueprint. |
530
530
  **type** | **String**| subtype of Node, e.g. 'modules', 'departments', etc. |
531
- **offset** | **Float**| index to start result set from | [optional]
532
- **limit** | **Float**| number of records to return | [optional]
531
+ **offset** | [**Float**](.md)| index to start result set from | [optional]
532
+ **limit** | [**Float**](.md)| number of records to return | [optional]
533
533
 
534
534
  ### Return type
535
535
 
@@ -612,7 +612,7 @@ Name | Type | Description | Notes
612
612
 
613
613
  Search nodes
614
614
 
615
- This endpoint is a really flexible way to ask questions about the hierarchy. for example: ###### Find all nodes for abc: `/1/abc/nodes` ###### Find all modules for abc: `/1/abc/nodes?filter[nodeType]=Modules` ###### Find all nodes that are descendants of DEP101: `/1/abc/nodes?filter[descendant]=departments%2Fdep101` ###### Find all Departments that are ancestors of ABF203: `/1/abc/nodes?filter[descendant]=modules%2Fabf203&filter[nodeType]=Departments` # <= case insensitive ###### Find all nodes with list assets that are descendants of DEP101 for abc: `/1/abc/nodes?filter[nodeType]=Modules&filter[ancestor]=departments%2FDEP101&filter[hasAssets]=true&filter[assetType]=Lists` ###### Globally, find all modules that have no list assets `/1/global/nodes?filter[nodeType]=Modules&filter[hasAssets]=false&filter[assetType]=Lists` ###### Find all nodes of type modules during 2015 that have no assets. Note a node's valid_from/valid_to just need to overlap from/to to qualify `/1/global/nodes?filter[nodeType]=Modules&filter[hasAssets]=false&filter[from]=20150101&filter[to]=20151231`
615
+ This endpoint is a really flexible way to ask questions about the hierarchy. for example:\n\n###### Find all nodes for abc:\n`/1/abc/nodes`\n\n###### Find all modules for abc:\n`/1/abc/nodes?filter[nodeType]=Modules`\n\n###### Find all nodes that are descendants of DEP101:\n`/1/abc/nodes?filter[descendant]=departments%2Fdep101`\n\n###### Find all Departments that are ancestors of ABF203:\n`/1/abc/nodes?filter[descendant]=modules%2Fabf203&filter[nodeType]=Departments` # <= case insensitive\n\n###### Find all nodes with list assets that are descendants of DEP101 for abc:\n`/1/abc/nodes?filter[nodeType]=Modules&filter[ancestor]=departments%2FDEP101&filter[hasAssets]=true&filter[assetType]=Lists`\n\n###### Globally, find all modules that have no list assets\n`/1/global/nodes?filter[nodeType]=Modules&filter[hasAssets]=false&filter[assetType]=Lists`\n\n###### Find all nodes of type modules during 2015 that have no assets. Note a node's valid_from/valid_to just need to overlap from/to to qualify\n`/1/global/nodes?filter[nodeType]=Modules&filter[hasAssets]=false&filter[from]=20150101&filter[to]=20151231`\n
616
616
 
617
617
  ### Example
618
618
  ```ruby
@@ -661,9 +661,9 @@ end
661
661
 
662
662
  Name | Type | Description | Notes
663
663
  ------------- | ------------- | ------------- | -------------
664
- **namespace_inc_global** | **String**| identifier namespacing the blueprint. &#x60;global&#x60; is a special namespace which references data from all blueprints in the call. |
665
- **offset** | **Float**| index to start result set from | [optional]
666
- **limit** | **Float**| number of records to return | [optional]
664
+ **namespace_inc_global** | **String**| identifier namespacing the blueprint. `global` is a special namespace which references data from all blueprints in the call. |
665
+ **offset** | [**Float**](.md)| index to start result set from | [optional]
666
+ **limit** | [**Float**](.md)| number of records to return | [optional]
667
667
  **include** | [**Array&lt;String&gt;**](String.md)| comma separated list of elements to hydrate. Can include children, parents, and/or assets | [optional]
668
668
  **filter_node_type** | [**Array&lt;String&gt;**](String.md)| type of nodes to return | [optional]
669
669
  **filter_child** | [**Array&lt;String&gt;**](String.md)| limit to nodes with children matching type/code | [optional]
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **input** | **Object** | |
7
6
  **output** | **Object** | | [optional]
7
+ **input** | **Object** | |
8
8
 
9
9
 
@@ -243,10 +243,10 @@ Name | Type | Description | Notes
243
243
  **oauth_consumer_key2** | **String**| OAuth 1.0 consumer_key parameters | [optional]
244
244
  **oauth_signature_method** | **String**| OAuth 1.0 signature method, must be &#39;HMAC-SHA1&#39; | [optional]
245
245
  **oauth_signature_method2** | **String**| OAuth 1.0 signature method, must be &#39;HMAC-SHA1&#39; | [optional]
246
- **oauth_timestamp** | **Integer**| OAuth 1.0 timestamp of request | [optional]
247
- **oauth_timestamp2** | **Integer**| OAuth 1.0 timestamp of request | [optional]
248
- **oauth_version** | **Float**| OAuth 1.0 version, must be &#39;1.0&#39; | [optional]
249
- **oauth_version2** | **Float**| OAuth 1.0 version, must be &#39;1.0&#39; | [optional]
246
+ **oauth_timestamp** | [**Integer**](.md)| OAuth 1.0 timestamp of request | [optional]
247
+ **oauth_timestamp2** | [**Integer**](.md)| OAuth 1.0 timestamp of request | [optional]
248
+ **oauth_version** | [**Float**](.md)| OAuth 1.0 version, must be &#39;1.0&#39; | [optional]
249
+ **oauth_version2** | [**Float**](.md)| OAuth 1.0 version, must be &#39;1.0&#39; | [optional]
250
250
  **oauth_nonce** | **String**| OAuth 1.0 Nonce | [optional]
251
251
  **oauth_nonce2** | **String**| OAuth 1.0 Nonce | [optional]
252
252
  **oauth_signature** | **String**| OAuth 1.0 request signature | [optional]
data/docs/LTIApi.md CHANGED
@@ -72,10 +72,10 @@ Name | Type | Description | Notes
72
72
  **oauth_consumer_key2** | **String**| OAuth 1.0 consumer_key parameters | [optional]
73
73
  **oauth_signature_method** | **String**| OAuth 1.0 signature method, must be &#39;HMAC-SHA1&#39; | [optional]
74
74
  **oauth_signature_method2** | **String**| OAuth 1.0 signature method, must be &#39;HMAC-SHA1&#39; | [optional]
75
- **oauth_timestamp** | **Integer**| OAuth 1.0 timestamp of request | [optional]
76
- **oauth_timestamp2** | **Integer**| OAuth 1.0 timestamp of request | [optional]
77
- **oauth_version** | **Float**| OAuth 1.0 version, must be &#39;1.0&#39; | [optional]
78
- **oauth_version2** | **Float**| OAuth 1.0 version, must be &#39;1.0&#39; | [optional]
75
+ **oauth_timestamp** | [**Integer**](.md)| OAuth 1.0 timestamp of request | [optional]
76
+ **oauth_timestamp2** | [**Integer**](.md)| OAuth 1.0 timestamp of request | [optional]
77
+ **oauth_version** | [**Float**](.md)| OAuth 1.0 version, must be &#39;1.0&#39; | [optional]
78
+ **oauth_version2** | [**Float**](.md)| OAuth 1.0 version, must be &#39;1.0&#39; | [optional]
79
79
  **oauth_nonce** | **String**| OAuth 1.0 Nonce | [optional]
80
80
  **oauth_nonce2** | **String**| OAuth 1.0 Nonce | [optional]
81
81
  **oauth_signature** | **String**| OAuth 1.0 request signature | [optional]
data/generate.sh CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
3
  if [ ! -f swagger-codegen-cli.jar ]; then
4
- wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.2.1/swagger-codegen-cli-2.2.1.jar -O swagger-codegen-cli.jar
4
+ wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.1.6/swagger-codegen-cli-2.1.6.jar -O swagger-codegen-cli.jar
5
5
  fi
6
6
  java -jar swagger-codegen-cli.jar generate -l ruby -o . -i https://staging-hierarchy.talis.com/api-docs -c config.json -t templates
@@ -41,10 +41,23 @@ module BlueprintClient
41
41
  if @api_client.config.debugging
42
42
  @api_client.config.logger.debug "Calling API: AssetTypeConfigsApi.get ..."
43
43
  end
44
+
45
+
44
46
  # verify the required parameter 'namespace' is set
45
47
  fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetTypeConfigsApi.get" if namespace.nil?
48
+
49
+
50
+
51
+
52
+
53
+
46
54
  # verify the required parameter 'asset_type' is set
47
55
  fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetTypeConfigsApi.get" if asset_type.nil?
56
+
57
+
58
+
59
+
60
+
48
61
  # resource path
49
62
  local_var_path = "/{namespace}/assets/{assetType}/templates".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'assetType' + '}', asset_type.to_s)
50
63
 
@@ -67,7 +80,8 @@ module BlueprintClient
67
80
 
68
81
  # http body (model)
69
82
  post_body = nil
70
- auth_names = ['oauth2']
83
+
84
+ auth_names = ['oauth2']
71
85
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
86
  :header_params => header_params,
73
87
  :query_params => query_params,
@@ -43,12 +43,31 @@ module BlueprintClient
43
43
  if @api_client.config.debugging
44
44
  @api_client.config.logger.debug "Calling API: AssetTypeTemplatesApi.add ..."
45
45
  end
46
+
47
+
46
48
  # verify the required parameter 'namespace' is set
47
49
  fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetTypeTemplatesApi.add" if namespace.nil?
50
+
51
+
52
+
53
+
54
+
55
+
48
56
  # verify the required parameter 'asset_type' is set
49
57
  fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetTypeTemplatesApi.add" if asset_type.nil?
58
+
59
+
60
+
61
+
62
+
63
+
50
64
  # verify the required parameter 'template_body' is set
51
65
  fail ArgumentError, "Missing the required parameter 'template_body' when calling AssetTypeTemplatesApi.add" if template_body.nil?
66
+
67
+
68
+
69
+
70
+
52
71
  # resource path
53
72
  local_var_path = "/{namespace}/assets/{assetType}/templates".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'assetType' + '}', asset_type.to_s)
54
73
 
@@ -71,6 +90,7 @@ module BlueprintClient
71
90
 
72
91
  # http body (model)
73
92
  post_body = @api_client.object_to_http_body(template_body)
93
+
74
94
  auth_names = ['oauth2']
75
95
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
76
96
  :header_params => header_params,
@@ -106,10 +126,23 @@ module BlueprintClient
106
126
  if @api_client.config.debugging
107
127
  @api_client.config.logger.debug "Calling API: AssetTypeTemplatesApi.delete ..."
108
128
  end
129
+
130
+
109
131
  # verify the required parameter 'namespace' is set
110
132
  fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetTypeTemplatesApi.delete" if namespace.nil?
133
+
134
+
135
+
136
+
137
+
138
+
111
139
  # verify the required parameter 'asset_type' is set
112
140
  fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetTypeTemplatesApi.delete" if asset_type.nil?
141
+
142
+
143
+
144
+
145
+
113
146
  # resource path
114
147
  local_var_path = "/{namespace}/assets/{assetType}/templates".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'assetType' + '}', asset_type.to_s)
115
148
 
@@ -132,7 +165,8 @@ module BlueprintClient
132
165
 
133
166
  # http body (model)
134
167
  post_body = nil
135
- auth_names = ['oauth2']
168
+
169
+ auth_names = ['oauth2']
136
170
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
137
171
  :header_params => header_params,
138
172
  :query_params => query_params,
@@ -169,12 +203,31 @@ module BlueprintClient
169
203
  if @api_client.config.debugging
170
204
  @api_client.config.logger.debug "Calling API: AssetTypeTemplatesApi.put ..."
171
205
  end
206
+
207
+
172
208
  # verify the required parameter 'namespace' is set
173
209
  fail ArgumentError, "Missing the required parameter 'namespace' when calling AssetTypeTemplatesApi.put" if namespace.nil?
210
+
211
+
212
+
213
+
214
+
215
+
174
216
  # verify the required parameter 'asset_type' is set
175
217
  fail ArgumentError, "Missing the required parameter 'asset_type' when calling AssetTypeTemplatesApi.put" if asset_type.nil?
218
+
219
+
220
+
221
+
222
+
223
+
176
224
  # verify the required parameter 'template_body' is set
177
225
  fail ArgumentError, "Missing the required parameter 'template_body' when calling AssetTypeTemplatesApi.put" if template_body.nil?
226
+
227
+
228
+
229
+
230
+
178
231
  # resource path
179
232
  local_var_path = "/{namespace}/assets/{assetType}/templates".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'assetType' + '}', asset_type.to_s)
180
233
 
@@ -197,6 +250,7 @@ module BlueprintClient
197
250
 
198
251
  # http body (model)
199
252
  post_body = @api_client.object_to_http_body(template_body)
253
+
200
254
  auth_names = ['oauth2']
201
255
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
202
256
  :header_params => header_params,