mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-29 12:10:54 +00:00
[Python] add hasConsumes/hasProduces to Python API template (#4419)
* add hasConsumes/hasProduces to python api template * remove unused code in python * fix isFile in the api doc (python)
This commit is contained in:
parent
7e67307bb4
commit
8ccf9828e4
@ -196,17 +196,18 @@ class {{classname}}(object):
|
|||||||
if '{{paramName}}' in params:
|
if '{{paramName}}' in params:
|
||||||
body_params = params['{{paramName}}']
|
body_params = params['{{paramName}}']
|
||||||
{{/bodyParam}}
|
{{/bodyParam}}
|
||||||
|
{{#hasProduces}}
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept([{{#produces}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/produces}}])
|
select_header_accept([{{#produces}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/produces}}])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
|
{{/hasProduces}}
|
||||||
|
{{#hasConsumes}}
|
||||||
# HTTP header `Content-Type`
|
# HTTP header `Content-Type`
|
||||||
header_params['Content-Type'] = self.api_client.\
|
header_params['Content-Type'] = self.api_client.\
|
||||||
select_header_content_type([{{#consumes}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/consumes}}])
|
select_header_content_type([{{#consumes}}'{{{mediaType}}}'{{#hasMore}}, {{/hasMore}}{{/consumes}}])
|
||||||
|
|
||||||
|
{{/hasConsumes}}
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = [{{#authMethods}}'{{name}}'{{#hasMore}}, {{/hasMore}}{{/authMethods}}]
|
auth_settings = [{{#authMethods}}'{{name}}'{{#hasMore}}, {{/hasMore}}{{/authMethods}}]
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ except ApiException as e:
|
|||||||
{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}}
|
{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}}
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}
|
------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}
|
||||||
{{#allParams}} **{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{^required}}[optional] {{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
|
{{#allParams}} **{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{^isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{baseType}}.md){{/isPrimitiveType}}{{/isFile}}| {{description}} | {{^required}}[optional] {{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -5,7 +5,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package version: 1.0.0
|
- Package version: 1.0.0
|
||||||
- Build package: class io.swagger.codegen.languages.PythonClientCodegen
|
- Build package: io.swagger.codegen.languages.PythonClientCodegen
|
||||||
|
|
||||||
## Requirements.
|
## Requirements.
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_statement
|
||||||
@ -137,6 +139,8 @@ void (empty response body)
|
|||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_statement
|
||||||
|
@ -43,6 +43,7 @@ class FakeApi(object):
|
|||||||
def test_client_model(self, body, **kwargs):
|
def test_client_model(self, body, **kwargs):
|
||||||
"""
|
"""
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
To test \"client\" model
|
||||||
This method makes a synchronous HTTP request by default. To make an
|
This method makes a synchronous HTTP request by default. To make an
|
||||||
asynchronous HTTP request, please define a `callback` function
|
asynchronous HTTP request, please define a `callback` function
|
||||||
to be invoked when receiving the response.
|
to be invoked when receiving the response.
|
||||||
@ -68,6 +69,7 @@ class FakeApi(object):
|
|||||||
def test_client_model_with_http_info(self, body, **kwargs):
|
def test_client_model_with_http_info(self, body, **kwargs):
|
||||||
"""
|
"""
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
To test \"client\" model
|
||||||
This method makes a synchronous HTTP request by default. To make an
|
This method makes a synchronous HTTP request by default. To make an
|
||||||
asynchronous HTTP request, please define a `callback` function
|
asynchronous HTTP request, please define a `callback` function
|
||||||
to be invoked when receiving the response.
|
to be invoked when receiving the response.
|
||||||
@ -119,12 +121,9 @@ class FakeApi(object):
|
|||||||
body_params = None
|
body_params = None
|
||||||
if 'body' in params:
|
if 'body' in params:
|
||||||
body_params = params['body']
|
body_params = params['body']
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/json'])
|
select_header_accept(['application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
# HTTP header `Content-Type`
|
||||||
header_params['Content-Type'] = self.api_client.\
|
header_params['Content-Type'] = self.api_client.\
|
||||||
@ -316,12 +315,9 @@ class FakeApi(object):
|
|||||||
form_params.append(('callback', params['param_callback']))
|
form_params.append(('callback', params['param_callback']))
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml; charset=utf-8', 'application/json; charset=utf-8'])
|
select_header_accept(['application/xml; charset=utf-8', 'application/json; charset=utf-8'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
# HTTP header `Content-Type`
|
||||||
header_params['Content-Type'] = self.api_client.\
|
header_params['Content-Type'] = self.api_client.\
|
||||||
@ -348,6 +344,7 @@ class FakeApi(object):
|
|||||||
def test_enum_parameters(self, **kwargs):
|
def test_enum_parameters(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
To test enum parameters
|
||||||
This method makes a synchronous HTTP request by default. To make an
|
This method makes a synchronous HTTP request by default. To make an
|
||||||
asynchronous HTTP request, please define a `callback` function
|
asynchronous HTTP request, please define a `callback` function
|
||||||
to be invoked when receiving the response.
|
to be invoked when receiving the response.
|
||||||
@ -380,6 +377,7 @@ class FakeApi(object):
|
|||||||
def test_enum_parameters_with_http_info(self, **kwargs):
|
def test_enum_parameters_with_http_info(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
To test enum parameters
|
||||||
This method makes a synchronous HTTP request by default. To make an
|
This method makes a synchronous HTTP request by default. To make an
|
||||||
asynchronous HTTP request, please define a `callback` function
|
asynchronous HTTP request, please define a `callback` function
|
||||||
to be invoked when receiving the response.
|
to be invoked when receiving the response.
|
||||||
@ -452,12 +450,9 @@ class FakeApi(object):
|
|||||||
form_params.append(('enum_query_double', params['enum_query_double']))
|
form_params.append(('enum_query_double', params['enum_query_double']))
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['*/*'])
|
select_header_accept(['*/*'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
# HTTP header `Content-Type`
|
||||||
header_params['Content-Type'] = self.api_client.\
|
header_params['Content-Type'] = self.api_client.\
|
||||||
|
@ -121,12 +121,9 @@ class PetApi(object):
|
|||||||
body_params = None
|
body_params = None
|
||||||
if 'body' in params:
|
if 'body' in params:
|
||||||
body_params = params['body']
|
body_params = params['body']
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
# HTTP header `Content-Type`
|
||||||
header_params['Content-Type'] = self.api_client.\
|
header_params['Content-Type'] = self.api_client.\
|
||||||
@ -235,16 +232,9 @@ class PetApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = ['petstore_auth']
|
auth_settings = ['petstore_auth']
|
||||||
@ -346,16 +336,9 @@ class PetApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = ['petstore_auth']
|
auth_settings = ['petstore_auth']
|
||||||
@ -457,16 +440,9 @@ class PetApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = ['petstore_auth']
|
auth_settings = ['petstore_auth']
|
||||||
@ -567,16 +543,9 @@ class PetApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = ['api_key']
|
auth_settings = ['api_key']
|
||||||
@ -677,12 +646,9 @@ class PetApi(object):
|
|||||||
body_params = None
|
body_params = None
|
||||||
if 'body' in params:
|
if 'body' in params:
|
||||||
body_params = params['body']
|
body_params = params['body']
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
# HTTP header `Content-Type`
|
||||||
header_params['Content-Type'] = self.api_client.\
|
header_params['Content-Type'] = self.api_client.\
|
||||||
@ -795,12 +761,9 @@ class PetApi(object):
|
|||||||
form_params.append(('status', params['status']))
|
form_params.append(('status', params['status']))
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
# HTTP header `Content-Type`
|
||||||
header_params['Content-Type'] = self.api_client.\
|
header_params['Content-Type'] = self.api_client.\
|
||||||
@ -913,12 +876,9 @@ class PetApi(object):
|
|||||||
local_var_files['file'] = params['file']
|
local_var_files['file'] = params['file']
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/json'])
|
select_header_accept(['application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
# HTTP header `Content-Type`
|
||||||
header_params['Content-Type'] = self.api_client.\
|
header_params['Content-Type'] = self.api_client.\
|
||||||
|
@ -123,16 +123,9 @@ class StoreApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -225,16 +218,9 @@ class StoreApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/json'])
|
select_header_accept(['application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = ['api_key']
|
auth_settings = ['api_key']
|
||||||
@ -339,16 +325,9 @@ class StoreApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -449,16 +428,9 @@ class StoreApi(object):
|
|||||||
body_params = None
|
body_params = None
|
||||||
if 'body' in params:
|
if 'body' in params:
|
||||||
body_params = params['body']
|
body_params = params['body']
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
|
@ -121,16 +121,9 @@ class UserApi(object):
|
|||||||
body_params = None
|
body_params = None
|
||||||
if 'body' in params:
|
if 'body' in params:
|
||||||
body_params = params['body']
|
body_params = params['body']
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -231,16 +224,9 @@ class UserApi(object):
|
|||||||
body_params = None
|
body_params = None
|
||||||
if 'body' in params:
|
if 'body' in params:
|
||||||
body_params = params['body']
|
body_params = params['body']
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -341,16 +327,9 @@ class UserApi(object):
|
|||||||
body_params = None
|
body_params = None
|
||||||
if 'body' in params:
|
if 'body' in params:
|
||||||
body_params = params['body']
|
body_params = params['body']
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -451,16 +430,9 @@ class UserApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -561,16 +533,9 @@ class UserApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -678,16 +643,9 @@ class UserApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -780,16 +738,9 @@ class UserApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
@ -897,16 +848,9 @@ class UserApi(object):
|
|||||||
body_params = None
|
body_params = None
|
||||||
if 'body' in params:
|
if 'body' in params:
|
||||||
body_params = params['body']
|
body_params = params['body']
|
||||||
|
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.\
|
header_params['Accept'] = self.api_client.\
|
||||||
select_header_accept(['application/xml', 'application/json'])
|
select_header_accept(['application/xml', 'application/json'])
|
||||||
if not header_params['Accept']:
|
|
||||||
del header_params['Accept']
|
|
||||||
|
|
||||||
# HTTP header `Content-Type`
|
|
||||||
header_params['Content-Type'] = self.api_client.\
|
|
||||||
select_header_content_type([])
|
|
||||||
|
|
||||||
# Authentication setting
|
# Authentication setting
|
||||||
auth_settings = []
|
auth_settings = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user