Skip to content

Commit

Permalink
[python] update samples
Browse files Browse the repository at this point in the history
Signed-off-by: ふぁ <[email protected]>
  • Loading branch information
fa0311 committed Oct 16, 2023
1 parent 274b787 commit 8a0f1e5
Show file tree
Hide file tree
Showing 39 changed files with 2,801 additions and 1,420 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,26 @@ def test_auth_http_basic_with_http_info(
'200': "str",
}

return self.api_client.call_api(
'/auth/http/basic', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/auth/http/basic',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)


Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,29 @@ def test_binary_gif_with_http_info(
'200': "bytearray",
}

return self.api_client.call_api(
'/binary/gif', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/binary/gif',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)



@validate_call
def test_body_application_octetstream_binary(
Expand Down Expand Up @@ -282,19 +292,29 @@ def test_body_application_octetstream_binary_with_http_info(
'200': "str",
}

return self.api_client.call_api(
'/body/application/octetstream/binary', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/body/application/octetstream/binary',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)



@validate_call
def test_body_multipart_formdata_array_of_binary(
Expand Down Expand Up @@ -413,19 +433,29 @@ def test_body_multipart_formdata_array_of_binary_with_http_info(
'200': "str",
}

return self.api_client.call_api(
'/body/application/octetstream/array_of_binary', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/body/application/octetstream/array_of_binary',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)



@validate_call
def test_echo_body_free_form_object_response_string(
Expand Down Expand Up @@ -543,19 +573,29 @@ def test_echo_body_free_form_object_response_string_with_http_info(
'200': "str",
}

return self.api_client.call_api(
'/echo/body/FreeFormObject/response_string', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/echo/body/FreeFormObject/response_string',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)



@validate_call
def test_echo_body_pet(
Expand Down Expand Up @@ -673,19 +713,29 @@ def test_echo_body_pet_with_http_info(
'200': "Pet",
}

return self.api_client.call_api(
'/echo/body/Pet', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/echo/body/Pet',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)



@validate_call
def test_echo_body_pet_response_string(
Expand Down Expand Up @@ -803,19 +853,29 @@ def test_echo_body_pet_response_string_with_http_info(
'200': "str",
}

return self.api_client.call_api(
'/echo/body/Pet/response_string', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/echo/body/Pet/response_string',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)



@validate_call
def test_echo_body_tag_response_string(
Expand Down Expand Up @@ -933,16 +993,26 @@ def test_echo_body_tag_response_string_with_http_info(
'200': "str",
}

return self.api_client.call_api(
'/echo/body/Tag/response_string', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/echo/body/Tag/response_string',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)


Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,29 @@ def test_form_integer_boolean_string_with_http_info(
'200': "str",
}

return self.api_client.call_api(
'/form/integer/boolean/string', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/form/integer/boolean/string',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)



@validate_call
def test_form_oneof(
Expand Down Expand Up @@ -368,16 +378,26 @@ def test_form_oneof_with_http_info(
'200': "str",
}

return self.api_client.call_api(
'/form/oneof', 'POST',
_path_params,
_query_params,
_header_params,
param = self.api_client.param_serialize(
method='POST',
resource_path='/form/oneof',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
response_types_map=_response_types_map,
auth_settings=_auth_settings,
_request_timeout=_params.get('_request_timeout'),
collection_formats=_collection_formats,
_request_auth=_params.get('_request_auth'))

_request_auth=_params.get('_request_auth')
)

response_data = self.api_client.call_api(*param, _request_timeout=_params.get('_request_timeout'))
self.api_client.read(response_data)
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)


Loading

0 comments on commit 8a0f1e5

Please sign in to comment.