Skip to content

Commit 9f27cab

Browse files
committed
Build from OpenAPI spec 2.10.4
1 parent b8e946c commit 9f27cab

File tree

19 files changed

+438
-234
lines changed

19 files changed

+438
-234
lines changed

docs/v1/accounting/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5792,7 +5792,7 @@
57925792
<li class="nav-fixed nav-header active" data-group="_"><a href="#api-_">API Summary</a></li>
57935793

57945794
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong>xero-python</li>
5795-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.5.1</li>
5795+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.5.2</li>
57965796
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
57975797
<li data-group="Accounting" data-name="createAccount" class="">
57985798
<a href="#api-Accounting-createAccount">createAccount</a>
@@ -6479,7 +6479,7 @@ <h1>Xero Accounting API</h1>
64796479
<div id="header">
64806480
<div id="api-_">
64816481
<h2 id="welcome-to-apidoc">API and SDK Documentation</h2>
6482-
<div class="app-desc">Version: 1.5.1</div>
6482+
<div class="app-desc">Version: 1.5.2</div>
64836483
<!--
64846484
<div class="app-desc">Version: 2.10.4</div>
64856485
<hr>

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ def read_file(filename):
4848
keywords="xero python sdk API oAuth",
4949
name="xero_python",
5050
packages=find_packages(include=["xero_python", "xero_python.*"]),
51-
version="1.5.1",
51+
version="1.5.2",
5252
)

xero_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Xero Developer API"""
44
__email__ = "[email protected]"
5-
__version__ = "1.5.1"
5+
__version__ = "1.5.2"

xero_python/accounting/api/accounting_api.py

Lines changed: 62 additions & 62 deletions
Large diffs are not rendered by default.

xero_python/accounting/docs/AccountingApi.md

Lines changed: 124 additions & 124 deletions
Large diffs are not rendered by default.

xero_python/assets/api/asset_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.10.2
13+
OpenAPI spec version: 2.10.4
1414
"""
1515

1616
import importlib

xero_python/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ These endpoints are related to managing authentication tokens and identity for X
33

44
The `xero_python` package is automatically generated by the [XeroAPI SDK 2.0 Codegen](https://github.com/xero-github/xeroapi-sdk-codegen) project:
55

6-
- API version: 2.10.2
7-
- Package version: 1.5.1
6+
- API version: 2.10.4
7+
- Package version: 1.5.2
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://developer.xero.com](https://developer.xero.com)
1010

xero_python/file/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
from xero_python.file.models.files import Files
2323
from xero_python.file.models.folder import Folder
2424
from xero_python.file.models.folders import Folders
25-
from xero_python.file.models.inline_object import InlineObject
26-
from xero_python.file.models.inline_object1 import InlineObject1
2725
from xero_python.file.models.object_group import ObjectGroup
2826
from xero_python.file.models.object_type import ObjectType
27+
from xero_python.file.models.upload_object import UploadObject
2928
from xero_python.file.models.user import User

xero_python/file/api/files_api.py

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.10.2
13+
OpenAPI spec version: 2.10.4
1414
"""
1515

1616
import importlib
@@ -1231,9 +1231,9 @@ def update_folder(
12311231
def upload_file(
12321232
self,
12331233
xero_tenant_id,
1234-
body=empty,
1235-
name=empty,
1236-
filename=empty,
1234+
body,
1235+
name,
1236+
filename,
12371237
mime_type=empty,
12381238
_return_http_data_only=True,
12391239
_preload_content=True,
@@ -1242,9 +1242,9 @@ def upload_file(
12421242
"""Uploads a File to the inbox # noqa: E501
12431243
OAuth2 scope: files
12441244
:param str xero_tenant_id: Xero identifier for Tenant (required)
1245-
:param str body:
1246-
:param str name: exact name of the file you are uploading
1247-
:param str filename:
1245+
:param str body: (required)
1246+
:param str name: exact name of the file you are uploading (required)
1247+
:param str filename: (required)
12481248
:param str mime_type:
12491249
:param bool _return_http_data_only: return received data only
12501250
:param bool _preload_content: load received data in models
@@ -1258,6 +1258,22 @@ def upload_file(
12581258
"Missing the required parameter `xero_tenant_id` "
12591259
"when calling `upload_file`"
12601260
)
1261+
# verify the required parameter 'body' is set
1262+
if body is None:
1263+
raise ValueError(
1264+
"Missing the required parameter `body` " "when calling `upload_file`"
1265+
)
1266+
# verify the required parameter 'name' is set
1267+
if name is None:
1268+
raise ValueError(
1269+
"Missing the required parameter `name` " "when calling `upload_file`"
1270+
)
1271+
# verify the required parameter 'filename' is set
1272+
if filename is None:
1273+
raise ValueError(
1274+
"Missing the required parameter `filename` "
1275+
"when calling `upload_file`"
1276+
)
12611277

12621278
collection_formats = {}
12631279
path_params = {}
@@ -1317,9 +1333,9 @@ def upload_file_to_folder(
13171333
self,
13181334
xero_tenant_id,
13191335
folder_id,
1320-
body=empty,
1321-
name=empty,
1322-
filename=empty,
1336+
body,
1337+
name,
1338+
filename,
13231339
mime_type=empty,
13241340
_return_http_data_only=True,
13251341
_preload_content=True,
@@ -1329,9 +1345,9 @@ def upload_file_to_folder(
13291345
OAuth2 scope: files
13301346
:param str xero_tenant_id: Xero identifier for Tenant (required)
13311347
:param str folder_id: pass required folder id to save file to specific folder (required)
1332-
:param str body:
1333-
:param str name: exact name of the file you are uploading
1334-
:param str filename:
1348+
:param str body: (required)
1349+
:param str name: exact name of the file you are uploading (required)
1350+
:param str filename: (required)
13351351
:param str mime_type:
13361352
:param bool _return_http_data_only: return received data only
13371353
:param bool _preload_content: load received data in models
@@ -1351,6 +1367,24 @@ def upload_file_to_folder(
13511367
"Missing the required parameter `folder_id` "
13521368
"when calling `upload_file_to_folder`"
13531369
)
1370+
# verify the required parameter 'body' is set
1371+
if body is None:
1372+
raise ValueError(
1373+
"Missing the required parameter `body` "
1374+
"when calling `upload_file_to_folder`"
1375+
)
1376+
# verify the required parameter 'name' is set
1377+
if name is None:
1378+
raise ValueError(
1379+
"Missing the required parameter `name` "
1380+
"when calling `upload_file_to_folder`"
1381+
)
1382+
# verify the required parameter 'filename' is set
1383+
if filename is None:
1384+
raise ValueError(
1385+
"Missing the required parameter `filename` "
1386+
"when calling `upload_file_to_folder`"
1387+
)
13541388

13551389
collection_formats = {}
13561390
path_params = {
@@ -1385,7 +1419,7 @@ def upload_file_to_folder(
13851419

13861420
# Authentication setting
13871421
auth_settings = ["OAuth2"]
1388-
url = self.get_resource_url("/Folders/{FolderId}")
1422+
url = self.get_resource_url("/Files/{FolderId}")
13891423

13901424
try:
13911425
return self.api_client.call_api(

xero_python/file/docs/FilesApi.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Method | HTTP request | Description
2020
[**update_file**](FilesApi.md#update_file) | **PUT** /Files/{FileId} | Update a file
2121
[**update_folder**](FilesApi.md#update_folder) | **PUT** /Folders/{FolderId} | Updates an existing folder
2222
[**upload_file**](FilesApi.md#upload_file) | **POST** /Files | Uploads a File to the inbox
23-
[**upload_file_to_folder**](FilesApi.md#upload_file_to_folder) | **POST** /Folders/{FolderId} | Uploads a File to a specific folder
23+
[**upload_file_to_folder**](FilesApi.md#upload_file_to_folder) | **POST** /Files/{FolderId} | Uploads a File to a specific folder
2424

2525

2626
# **create_file_association**
@@ -1002,7 +1002,7 @@ Name | Type | Description | Notes
10021002
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
10031003

10041004
# **upload_file**
1005-
> FileObject upload_file(xero_tenant_id, body=body, name=name, filename=filename, mime_type=mime_type)
1005+
> FileObject upload_file(xero_tenant_id, body, name, filename, mime_type=mime_type)
10061006
10071007
Uploads a File to the inbox
10081008

@@ -1033,13 +1033,13 @@ api_client = ApiClient(
10331033
api_instance = FilesApi(api_client)
10341034

10351035
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
1036-
body = 'body_example' # str | (optional)
1037-
name = 'name_example' # str | exact name of the file you are uploading (optional)
1038-
filename = 'filename_example' # str | (optional)
1036+
body = 'body_example' # str |
1037+
name = 'name_example' # str | exact name of the file you are uploading
1038+
filename = 'filename_example' # str |
10391039
mime_type = 'mime_type_example' # str | (optional)
10401040
try:
10411041
# Uploads a File to the inbox
1042-
api_response = api_instance.upload_file(xero_tenant_id, body=body, name=name, filename=filename, mime_type=mime_type)
1042+
api_response = api_instance.upload_file(xero_tenant_id, body, name, filename, mime_type=mime_type)
10431043
pprint(api_response)
10441044
except ApiException as e:
10451045
print("Exception when calling FilesApi->upload_file: %s\n" % e)
@@ -1050,9 +1050,9 @@ except ApiException as e:
10501050
Name | Type | Description | Notes
10511051
------------- | ------------- | ------------- | -------------
10521052
**xero_tenant_id** | **str**| Xero identifier for Tenant |
1053-
**body** | **str**| | [optional]
1054-
**name** | **str**| exact name of the file you are uploading | [optional]
1055-
**filename** | **str**| | [optional]
1053+
**body** | **str**| |
1054+
**name** | **str**| exact name of the file you are uploading |
1055+
**filename** | **str**| |
10561056
**mime_type** | **str**| | [optional]
10571057

10581058
### Return type
@@ -1071,7 +1071,7 @@ Name | Type | Description | Notes
10711071
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
10721072

10731073
# **upload_file_to_folder**
1074-
> FileObject upload_file_to_folder(xero_tenant_id, folder_id, body=body, name=name, filename=filename, mime_type=mime_type)
1074+
> FileObject upload_file_to_folder(xero_tenant_id, folder_id, body, name, filename, mime_type=mime_type)
10751075
10761076
Uploads a File to a specific folder
10771077

@@ -1103,13 +1103,13 @@ api_instance = FilesApi(api_client)
11031103

11041104
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
11051105
folder_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # str | pass required folder id to save file to specific folder
1106-
body = 'body_example' # str | (optional)
1107-
name = 'name_example' # str | exact name of the file you are uploading (optional)
1108-
filename = 'filename_example' # str | (optional)
1106+
body = 'body_example' # str |
1107+
name = 'name_example' # str | exact name of the file you are uploading
1108+
filename = 'filename_example' # str |
11091109
mime_type = 'mime_type_example' # str | (optional)
11101110
try:
11111111
# Uploads a File to a specific folder
1112-
api_response = api_instance.upload_file_to_folder(xero_tenant_id, folder_id, body=body, name=name, filename=filename, mime_type=mime_type)
1112+
api_response = api_instance.upload_file_to_folder(xero_tenant_id, folder_id, body, name, filename, mime_type=mime_type)
11131113
pprint(api_response)
11141114
except ApiException as e:
11151115
print("Exception when calling FilesApi->upload_file_to_folder: %s\n" % e)
@@ -1121,9 +1121,9 @@ Name | Type | Description | Notes
11211121
------------- | ------------- | ------------- | -------------
11221122
**xero_tenant_id** | **str**| Xero identifier for Tenant |
11231123
**folder_id** | [**str**](.md)| pass required folder id to save file to specific folder |
1124-
**body** | **str**| | [optional]
1125-
**name** | **str**| exact name of the file you are uploading | [optional]
1126-
**filename** | **str**| | [optional]
1124+
**body** | **str**| |
1125+
**name** | **str**| exact name of the file you are uploading |
1126+
**filename** | **str**| |
11271127
**mime_type** | **str**| | [optional]
11281128

11291129
### Return type

0 commit comments

Comments
 (0)