|
6 | 6 |
|
7 | 7 | __version__ = "{{packageVersion}}"
|
8 | 8 |
|
| 9 | +# Define package exports |
| 10 | +__all__ = [ |
| 11 | + {{#apiInfo}}{{#apis}}"{{classname}}", |
| 12 | + {{/apis}}{{/apiInfo}}"ApiResponse", |
| 13 | + "ApiClient", |
| 14 | + "HostConfiguration", |
| 15 | + "OpenApiException", |
| 16 | + "ApiTypeError", |
| 17 | + "ApiValueError", |
| 18 | + "ApiKeyError", |
| 19 | + "ApiAttributeError", |
| 20 | + "ApiException", |
| 21 | + {{#hasHttpSignatureMethods}}"HttpSigningConfiguration", |
| 22 | + {{/hasHttpSignatureMethods}}{{#models}}{{#model}}"{{classname}}"{{^-last}}, |
| 23 | + {{/-last}}{{#-last}},{{/-last}}{{/model}}{{/models}} |
| 24 | +] |
| 25 | + |
9 | 26 | # import apis into sdk package
|
10 |
| -{{#apiInfo}}{{#apis}}from {{apiPackage}}.{{classFilename}} import {{classname}} |
| 27 | +{{#apiInfo}}{{#apis}}from {{apiPackage}}.{{classFilename}} import {{classname}} as {{classname}} |
11 | 28 | {{/apis}}{{/apiInfo}}
|
12 | 29 | # import ApiClient
|
13 |
| -from {{packageName}}.api_response import ApiResponse |
14 |
| -from {{packageName}}.api_client import ApiClient |
15 |
| -from {{packageName}}.configuration import HostConfiguration |
16 |
| -from {{packageName}}.exceptions import OpenApiException |
17 |
| -from {{packageName}}.exceptions import ApiTypeError |
18 |
| -from {{packageName}}.exceptions import ApiValueError |
19 |
| -from {{packageName}}.exceptions import ApiKeyError |
20 |
| -from {{packageName}}.exceptions import ApiAttributeError |
21 |
| -from {{packageName}}.exceptions import ApiException |
| 30 | +from {{packageName}}.api_response import ApiResponse as ApiResponse |
| 31 | +from {{packageName}}.api_client import ApiClient as ApiClient |
| 32 | +from {{packageName}}.configuration import HostConfiguration as HostConfiguration |
| 33 | +from {{packageName}}.exceptions import OpenApiException as OpenApiException |
| 34 | +from {{packageName}}.exceptions import ApiTypeError as ApiTypeError |
| 35 | +from {{packageName}}.exceptions import ApiValueError as ApiValueError |
| 36 | +from {{packageName}}.exceptions import ApiKeyError as ApiKeyError |
| 37 | +from {{packageName}}.exceptions import ApiAttributeError as ApiAttributeError |
| 38 | +from {{packageName}}.exceptions import ApiException as ApiException |
22 | 39 | {{#hasHttpSignatureMethods}}
|
23 |
| -from {{packageName}}.signing import HttpSigningConfiguration |
| 40 | +from {{packageName}}.signing import HttpSigningConfiguration as HttpSigningConfiguration |
24 | 41 | {{/hasHttpSignatureMethods}}
|
25 | 42 |
|
26 | 43 | # import models into sdk package
|
27 | 44 | {{#models}}
|
28 | 45 | {{#model}}
|
29 |
| -from {{modelPackage}}.{{classFilename}} import {{classname}} |
| 46 | +from {{modelPackage}}.{{classFilename}} import {{classname}} as {{classname}} |
30 | 47 | {{/model}}
|
31 | 48 | {{/models}}
|
32 | 49 | {{#recursionLimit}}
|
|
0 commit comments