|
2 | 2 | {{=< >=}}(function(root, factory) {
|
3 | 3 | if (typeof define === 'function' && define.amd) {
|
4 | 4 | // AMD. Register as an anonymous module.
|
5 |
| - define(['<#invokerPackage><invokerPackage>/</invokerPackage>ApiClient'<#imports>, '<#invokerPackage><invokerPackage>/</invokerPackage><#modelPackage><modelPackage>/</modelPackage><import>'</imports>], factory); |
| 5 | + define(['<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient'<#imports>, '<#invokerPackage><&invokerPackage>/</invokerPackage><#modelPackage><&modelPackage>/</modelPackage><import>'</imports>], factory); |
6 | 6 | } else if (typeof module === 'object' && module.exports) {
|
7 | 7 | // CommonJS-like environments that support module.exports, like Node.
|
8 |
| - module.exports = factory(require('../ApiClient')<#imports>, require('../<#modelPackage><modelPackage>/</modelPackage><import>')</imports>); |
| 8 | + module.exports = factory(require('../ApiClient')<#imports>, require('../<#modelPackage><&modelPackage>/</modelPackage><import>')</imports>); |
9 | 9 | } else {
|
10 | 10 | // Browser globals (root is window)
|
11 |
| - if (!root.<moduleName>) { |
12 |
| - root.<moduleName> = {}; |
| 11 | + if (!root.<&moduleName>) { |
| 12 | + root.<&moduleName> = {}; |
13 | 13 | }
|
14 |
| - root.<moduleName>.<classname> = factory(root.<moduleName>.ApiClient<#imports>, root.<moduleName>.<import></imports>); |
| 14 | + root.<&moduleName>.<&classname> = factory(root.<&moduleName>.ApiClient<#imports>, root.<&moduleName>.<import></imports>); |
15 | 15 | }
|
16 | 16 | }(this, function(ApiClient<#imports>, <import></imports>) {
|
17 | 17 | 'use strict';
|
18 | 18 |
|
19 | 19 | <#emitJSDoc> /**
|
20 | 20 | * <baseName> service.
|
21 |
| - * @module <#invokerPackage><invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname> |
| 21 | + * @module <#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><classname> |
22 | 22 | * @version <projectVersion>
|
23 | 23 | */
|
24 | 24 |
|
25 | 25 | /**
|
26 |
| - * Constructs a new <classname>. <#description> |
| 26 | + * Constructs a new <&classname>. <#description> |
27 | 27 | * <description></description>
|
28 |
| - * @alias module:<#invokerPackage><invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname> |
| 28 | + * @alias module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname> |
29 | 29 | * @class
|
30 |
| - * @param {module:<#invokerPackage><invokerPackage>/</invokerPackage>ApiClient} apiClient Optional API client implementation to use, |
31 |
| - * default to {@link module:<#invokerPackage><invokerPackage>/</invokerPackage>ApiClient#instance} if unspecified. |
| 30 | + * @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient} apiClient Optional API client implementation to use, |
| 31 | + * default to {@link module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient#instance} if unspecified. |
32 | 32 | */
|
33 | 33 | </emitJSDoc> var exports = function(apiClient) {
|
34 | 34 | this.apiClient = apiClient || ApiClient.instance;
|
35 | 35 |
|
36 | 36 | <#operations><#operation><#emitJSDoc><^usePromises>
|
37 | 37 | /**
|
38 |
| - * Callback function to receive the result of the <nickname> operation. |
39 |
| - * @callback module:<#invokerPackage><invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname>~<nickname>Callback |
| 38 | + * Callback function to receive the result of the <operationId> operation. |
| 39 | + * @callback module:<#invokerPackage><invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname>~<operationId>Callback |
40 | 40 | * @param {String} error Error message, if any.
|
41 | 41 | * @param <#vendorExtensions.x-jsdoc-type><&vendorExtensions.x-jsdoc-type> data The data returned by the service call.</vendorExtensions.x-jsdoc-type><^vendorExtensions.x-jsdoc-type>data This operation does not return a value.</vendorExtensions.x-jsdoc-type>
|
42 | 42 | * @param {String} response The complete HTTP response.
|
|
48 | 48 | * @param <&vendorExtensions.x-jsdoc-type> <paramName> <description></required></allParams><#hasOptionalParams>
|
49 | 49 | * @param {Object} opts Optional parameters<#allParams><^required>
|
50 | 50 | * @param <&vendorExtensions.x-jsdoc-type> opts.<paramName> <description><#defaultValue> (default to <.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises>
|
51 |
| - * @param {module:<#invokerPackage><invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname>~<nickname>Callback} callback The callback function, accepting three arguments: error, data, response</usePromises><#returnType> |
| 51 | + * @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<operationId>Callback} callback The callback function, accepting three arguments: error, data, response</usePromises><#returnType> |
52 | 52 | * data is of type: <&vendorExtensions.x-jsdoc-type></returnType>
|
53 | 53 | */
|
54 |
| -</emitJSDoc> this.<nickname> = function(<vendorExtensions.x-codegen-argList>) {<#hasOptionalParams> |
| 54 | +</emitJSDoc> this.<operationId> = function(<vendorExtensions.x-codegen-argList>) {<#hasOptionalParams> |
55 | 55 | opts = opts || {};</hasOptionalParams>
|
56 | 56 | var postBody = <#bodyParam><#required><paramName></required><^required>opts['<paramName>']</required></bodyParam><^bodyParam>null</bodyParam>;
|
57 | 57 | <#allParams><#required>
|
58 | 58 | // verify the required parameter '<paramName>' is set
|
59 | 59 | if (<paramName> == undefined || <paramName> == null) {
|
60 |
| - throw "Missing the required parameter '<paramName>' when calling <nickname>"; |
| 60 | + throw "Missing the required parameter '<paramName>' when calling <operationId>"; |
61 | 61 | }
|
62 | 62 | </required></allParams>
|
63 | 63 |
|
|
0 commit comments