├── test ├── __init__.py ├── test_body.py ├── test_team.py ├── test_user.py ├── test_body1.py ├── test_body2.py ├── test_body3.py ├── test_body4.py ├── test_team2.py ├── test_team3.py ├── test_team4.py ├── test_team5.py ├── test_user2.py ├── test_project.py ├── test_version.py ├── test_activity.py ├── test_customer.py ├── test_project2.py ├── test_customer2.py ├── test_timesheet.py ├── test_tag_entity.py ├── test_i18n_config.py ├── test_team_entity.py ├── test_user_entity.py ├── test_project_meta.py ├── test_project_rate.py ├── test_tag_edit_form.py ├── test_activity_meta.py ├── test_activity_rate.py ├── test_customer_meta.py ├── test_customer_rate.py ├── test_team_edit_form.py ├── test_user_edit_form.py ├── test_project_entity.py ├── test_timesheet_meta.py ├── test_activity_entity.py ├── test_customer_entity.py ├── test_team_collection.py ├── test_timesheet_meta2.py ├── test_user_collection.py ├── test_user_create_form.py ├── test_timesheet_config.py ├── test_timesheet_entity.py ├── test_project_edit_form.py ├── test_project_rate_form.py ├── test_activity_edit_form.py ├── test_activity_rate_form.py ├── test_customer_edit_form.py ├── test_customer_rate_form.py ├── test_project_meta_field.py ├── test_project_collection.py ├── test_activity_meta_field.py ├── test_customer_meta_field.py ├── test_timesheet_edit_form.py ├── test_activity_collection.py ├── test_customer_collection.py ├── test_timesheet_collection.py ├── test_timesheet_sub_collection.py ├── test_project_expanded.py ├── test_activity_expanded.py ├── test_timesheet_collection_expanded.py ├── test_tag_api.py ├── test_default_api.py ├── test_user_api.py ├── test_project_api.py ├── test_customer_api.py ├── test_activity_api.py ├── test_team_api.py └── test_timesheet_api.py ├── .swagger-codegen └── VERSION ├── .gitignore ├── test-requirements.txt ├── requirements.txt ├── tox.ini ├── docs ├── Team.md ├── Team2.md ├── Team3.md ├── Team4.md ├── Team5.md ├── ActivityMeta.md ├── CustomerMeta.md ├── ProjectMeta.md ├── TeamCollection.md ├── TimesheetMeta.md ├── TimesheetMeta2.md ├── ActivityMetaField.md ├── CustomerMetaField.md ├── ProjectMetaField.md ├── Body.md ├── Body1.md ├── Body2.md ├── Body4.md ├── TagEntity.md ├── Customer.md ├── Project.md ├── TagEditForm.md ├── Body3.md ├── User.md ├── User2.md ├── TeamEditForm.md ├── UserCollection.md ├── Activity.md ├── ActivityExpanded.md ├── ProjectExpanded.md ├── Version.md ├── ActivityRate.md ├── Customer2.md ├── CustomerRate.md ├── ProjectRate.md ├── ActivityEditForm.md ├── Project2.md ├── I18nConfig.md ├── ProjectRateForm.md ├── UserEditForm.md ├── ActivityRateForm.md ├── CustomerRateForm.md ├── TimesheetConfig.md ├── ActivityCollection.md ├── UserCreateForm.md ├── TeamEntity.md ├── ProjectEditForm.md ├── CustomerCollection.md ├── UserEntity.md ├── ActivityEntity.md ├── TimesheetEditForm.md ├── TimesheetSubCollection.md ├── ProjectCollection.md ├── TimesheetCollection.md ├── Timesheet.md ├── TimesheetCollectionExpanded.md ├── CustomerEditForm.md ├── TimesheetEntity.md ├── ProjectEntity.md └── CustomerEntity.md ├── .travis.yml ├── kimai_python ├── api │ └── __init__.py ├── models │ ├── __init__.py │ ├── body3.py │ ├── team2.py │ ├── team3.py │ ├── team4.py │ ├── team5.py │ ├── body.py │ ├── team.py │ ├── body1.py │ ├── body2.py │ ├── body4.py │ ├── timesheet_meta2.py │ ├── project_meta_field.py │ └── team_collection.py └── __init__.py ├── .swagger-codegen-ignore ├── LICENSE └── setup.py /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.4.13-SNAPSHOT -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | .idea 3 | build* 4 | dist* 5 | *.egg-info 6 | -------------------------------------------------------------------------------- /test-requirements.txt: -------------------------------------------------------------------------------- 1 | coverage>=4.0.3 2 | nose>=1.3.7 3 | pluggy>=0.3.1 4 | py>=1.4.31 5 | randomize>=0.13 6 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | certifi >= 14.05.14 2 | six >= 1.10 3 | python_dateutil >= 2.5.3 4 | setuptools >= 21.0.0 5 | urllib3 >= 1.15.1 6 | -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py27, py3 3 | 4 | [testenv] 5 | deps=-r{toxinidir}/requirements.txt 6 | -r{toxinidir}/test-requirements.txt 7 | 8 | commands= 9 | nosetests \ 10 | [] 11 | -------------------------------------------------------------------------------- /docs/Team.md: -------------------------------------------------------------------------------- 1 | # Team 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Team2.md: -------------------------------------------------------------------------------- 1 | # Team2 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Team3.md: -------------------------------------------------------------------------------- 1 | # Team3 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Team4.md: -------------------------------------------------------------------------------- 1 | # Team4 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Team5.md: -------------------------------------------------------------------------------- 1 | # Team5 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ActivityMeta.md: -------------------------------------------------------------------------------- 1 | # ActivityMeta 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **value** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CustomerMeta.md: -------------------------------------------------------------------------------- 1 | # CustomerMeta 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **value** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ProjectMeta.md: -------------------------------------------------------------------------------- 1 | # ProjectMeta 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **value** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TeamCollection.md: -------------------------------------------------------------------------------- 1 | # TeamCollection 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TimesheetMeta.md: -------------------------------------------------------------------------------- 1 | # TimesheetMeta 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **value** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TimesheetMeta2.md: -------------------------------------------------------------------------------- 1 | # TimesheetMeta2 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **value** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ActivityMetaField.md: -------------------------------------------------------------------------------- 1 | # ActivityMetaField 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **value** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/CustomerMetaField.md: -------------------------------------------------------------------------------- 1 | # CustomerMetaField 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **value** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/ProjectMetaField.md: -------------------------------------------------------------------------------- 1 | # ProjectMetaField 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **value** | **str** | | [optional] 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.travis-ci.com/user/languages/python 2 | language: python 3 | python: 4 | - "2.7" 5 | - "3.2" 6 | - "3.3" 7 | - "3.4" 8 | - "3.5" 9 | #- "3.5-dev" # 3.5 development branch 10 | #- "nightly" # points to the latest development branch e.g. 3.6-dev 11 | # command to install dependencies 12 | install: "pip install -r requirements.txt" 13 | # command to run tests 14 | script: nosetests 15 | -------------------------------------------------------------------------------- /docs/Body.md: -------------------------------------------------------------------------------- 1 | # Body 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The meta-field name | 7 | **value** | **str** | The meta-field value | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Body1.md: -------------------------------------------------------------------------------- 1 | # Body1 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The meta-field name | 7 | **value** | **str** | The meta-field value | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Body2.md: -------------------------------------------------------------------------------- 1 | # Body2 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The meta-field name | 7 | **value** | **str** | The meta-field value | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Body4.md: -------------------------------------------------------------------------------- 1 | # Body4 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The meta-field name | 7 | **value** | **str** | The meta-field value | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/TagEntity.md: -------------------------------------------------------------------------------- 1 | # TagEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | **color** | **str** | | [optional] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/Customer.md: -------------------------------------------------------------------------------- 1 | # Customer 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | **visible** | **bool** | | 9 | **color** | **str** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Project.md: -------------------------------------------------------------------------------- 1 | # Project 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | **visible** | **bool** | | 9 | **color** | **str** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/TagEditForm.md: -------------------------------------------------------------------------------- 1 | # TagEditForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | The tag name (forbidden character: comma) | 7 | **color** | **str** | The color code as hex (default: #d2d6de) | 8 | 9 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/Body3.md: -------------------------------------------------------------------------------- 1 | # Body3 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **copy** | **str** | Whether data should be copied to the new entry. Allowed values: all, tags, rates, description, meta (default: nothing is copied) | [optional] 7 | 8 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 9 | 10 | 11 | -------------------------------------------------------------------------------- /docs/User.md: -------------------------------------------------------------------------------- 1 | # User 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **username** | **str** | | [optional] 7 | **enabled** | **bool** | | [optional] 8 | **id** | **int** | | [optional] 9 | **alias** | **str** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/User2.md: -------------------------------------------------------------------------------- 1 | # User2 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **alias** | **str** | | [optional] 8 | **username** | **str** | | [optional] 9 | **enabled** | **bool** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/TeamEditForm.md: -------------------------------------------------------------------------------- 1 | # TeamEditForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | Name of the team | 7 | **teamlead** | **int** | User ID for the teamlead | 8 | **users** | **list[int]** | Array of team member IDs | 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /docs/UserCollection.md: -------------------------------------------------------------------------------- 1 | # UserCollection 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **username** | **str** | | [optional] 7 | **enabled** | **bool** | | [optional] 8 | **id** | **int** | | [optional] 9 | **alias** | **str** | | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/Activity.md: -------------------------------------------------------------------------------- 1 | # Activity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **project** | **int** | | [optional] 7 | **id** | **int** | | [optional] 8 | **name** | **str** | | 9 | **visible** | **bool** | | 10 | **color** | **str** | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ActivityExpanded.md: -------------------------------------------------------------------------------- 1 | # ActivityExpanded 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **project** | **int** | | [optional] 7 | **id** | **int** | | [optional] 8 | **name** | **str** | | 9 | **visible** | **bool** | | 10 | **color** | **str** | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ProjectExpanded.md: -------------------------------------------------------------------------------- 1 | # ProjectExpanded 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **customer** | [**list[Customer]**](Customer.md) | | 8 | **name** | **str** | | 9 | **visible** | **bool** | | 10 | **color** | **str** | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Version.md: -------------------------------------------------------------------------------- 1 | # Version 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **version** | **str** | | [optional] 7 | **candidate** | **str** | | [optional] 8 | **semver** | **str** | | [optional] 9 | **name** | **str** | | [optional] 10 | **copyright** | **str** | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ActivityRate.md: -------------------------------------------------------------------------------- 1 | # ActivityRate 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **user** | [**User**](User.md) | | [optional] 8 | **rate** | **float** | | [optional] 9 | **internal_rate** | **float** | | [optional] 10 | **is_fixed** | **bool** | | 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Customer2.md: -------------------------------------------------------------------------------- 1 | # Customer2 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | **visible** | **bool** | | 9 | **color** | **str** | | [optional] 10 | **meta_fields** | [**list[CustomerMeta]**](CustomerMeta.md) | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/CustomerRate.md: -------------------------------------------------------------------------------- 1 | # CustomerRate 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **user** | [**User**](User.md) | | [optional] 8 | **rate** | **float** | | [optional] 9 | **internal_rate** | **float** | | [optional] 10 | **is_fixed** | **bool** | | 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/ProjectRate.md: -------------------------------------------------------------------------------- 1 | # ProjectRate 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **user** | [**User**](User.md) | | [optional] 8 | **rate** | **float** | | [optional] 9 | **internal_rate** | **float** | | [optional] 10 | **is_fixed** | **bool** | | 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /kimai_python/api/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | # flake8: noqa 4 | 5 | # import apis into api package 6 | from kimai_python.api.activity_api import ActivityApi 7 | from kimai_python.api.customer_api import CustomerApi 8 | from kimai_python.api.default_api import DefaultApi 9 | from kimai_python.api.project_api import ProjectApi 10 | from kimai_python.api.tag_api import TagApi 11 | from kimai_python.api.team_api import TeamApi 12 | from kimai_python.api.timesheet_api import TimesheetApi 13 | from kimai_python.api.user_api import UserApi 14 | -------------------------------------------------------------------------------- /docs/ActivityEditForm.md: -------------------------------------------------------------------------------- 1 | # ActivityEditForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **comment** | **str** | | [optional] 8 | **project** | **int** | Project ID | [optional] 9 | **color** | **str** | The color code as hex (default: #d2d6de) | 10 | **visible** | **bool** | | [optional] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/Project2.md: -------------------------------------------------------------------------------- 1 | # Project2 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | **visible** | **bool** | | 9 | **customer** | [**Customer2**](Customer2.md) | | 10 | **color** | **str** | | [optional] 11 | **meta_fields** | [**list[ProjectMeta]**](ProjectMeta.md) | | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/I18nConfig.md: -------------------------------------------------------------------------------- 1 | # I18nConfig 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **form_date_time** | **str** | | [optional] 7 | **form_date** | **str** | | [optional] 8 | **date_time** | **str** | | [optional] 9 | **_date** | **str** | | [optional] 10 | **time** | **str** | | [optional] 11 | **duration** | **str** | | [optional] 12 | **is24hours** | **bool** | | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/ProjectRateForm.md: -------------------------------------------------------------------------------- 1 | # ProjectRateForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **user** | **int** | User ID | [optional] 7 | **rate** | **float** | The rate (eg. 10.5) | 8 | **internal_rate** | **float** | The internal rate (eg. 10.0 or 10) | [optional] 9 | **is_fixed** | **bool** | If \"true\" each time record gets the same rate, regardless of its duration | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/UserEditForm.md: -------------------------------------------------------------------------------- 1 | # UserEditForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **alias** | **str** | | [optional] 7 | **title** | **str** | | [optional] 8 | **avatar** | **str** | | [optional] 9 | **email** | **str** | | 10 | **language** | **str** | | 11 | **timezone** | **str** | | 12 | **enabled** | **bool** | | [optional] 13 | **roles** | **list[str]** | | [optional] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/ActivityRateForm.md: -------------------------------------------------------------------------------- 1 | # ActivityRateForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **user** | **int** | User ID | [optional] 7 | **rate** | **float** | The rate (eg. 10.5) | 8 | **internal_rate** | **float** | The internal rate (eg. 10.0 or 10) | [optional] 9 | **is_fixed** | **bool** | If \"true\" each time record gets the same rate, regardless of its duration | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/CustomerRateForm.md: -------------------------------------------------------------------------------- 1 | # CustomerRateForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **user** | **int** | User ID | [optional] 7 | **rate** | **float** | The rate (eg. 10.5) | 8 | **internal_rate** | **float** | The internal rate (eg. 10.0 or 10) | [optional] 9 | **is_fixed** | **bool** | If \"true\" each time record gets the same rate, regardless of its duration | [optional] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /docs/TimesheetConfig.md: -------------------------------------------------------------------------------- 1 | # TimesheetConfig 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **tracking_mode** | **str** | | [optional] 7 | **default_begin_time** | **str** | | [optional] 8 | **active_entries_hard_limit** | **int** | | [optional] 9 | **active_entries_soft_limit** | **int** | | [optional] 10 | **is_allow_future_times** | **bool** | | [optional] 11 | **is_allow_overlapping** | **bool** | | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/ActivityCollection.md: -------------------------------------------------------------------------------- 1 | # ActivityCollection 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **parent_title** | **str** | | [optional] 7 | **project** | **int** | | [optional] 8 | **id** | **int** | | [optional] 9 | **name** | **str** | | 10 | **visible** | **bool** | | 11 | **meta_fields** | [**list[ActivityMeta]**](ActivityMeta.md) | All visible meta (custom) fields registered with this activity | [optional] 12 | **color** | **str** | | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/UserCreateForm.md: -------------------------------------------------------------------------------- 1 | # UserCreateForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **username** | **str** | | 7 | **alias** | **str** | | [optional] 8 | **title** | **str** | | [optional] 9 | **avatar** | **str** | | [optional] 10 | **email** | **str** | | 11 | **language** | **str** | | 12 | **timezone** | **str** | | 13 | **enabled** | **bool** | | [optional] 14 | **plain_password** | **str** | Plain text password | 15 | **roles** | **list[str]** | | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/TeamEntity.md: -------------------------------------------------------------------------------- 1 | # TeamEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | **teamlead** | [**User**](User.md) | | 9 | **users** | [**list[User]**](User.md) | All team member, including the teamlead | [optional] 10 | **customers** | [**list[Customer]**](Customer.md) | All customers assigned to the team | [optional] 11 | **projects** | [**list[Project]**](Project.md) | All projects assigned to the team | [optional] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /docs/ProjectEditForm.md: -------------------------------------------------------------------------------- 1 | # ProjectEditForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **comment** | **str** | | [optional] 8 | **order_number** | **str** | | [optional] 9 | **order_date** | **datetime** | | [optional] 10 | **start** | **datetime** | | [optional] 11 | **end** | **datetime** | | [optional] 12 | **customer** | **int** | Customer ID | 13 | **color** | **str** | The color code as hex (default: #d2d6de) | 14 | **visible** | **bool** | | [optional] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /docs/CustomerCollection.md: -------------------------------------------------------------------------------- 1 | # CustomerCollection 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | **visible** | **bool** | | 9 | **currency** | **str** | | 10 | **meta_fields** | [**list[CustomerMeta]**](CustomerMeta.md) | All visible meta (custom) fields registered with this customer | [optional] 11 | **teams** | [**list[Team]**](Team.md) | If no team is assigned, everyone can access the customer | [optional] 12 | **color** | **str** | | [optional] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /docs/UserEntity.md: -------------------------------------------------------------------------------- 1 | # UserEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **username** | **str** | | [optional] 7 | **enabled** | **bool** | | [optional] 8 | **roles** | **list[str]** | | [optional] 9 | **language** | **str** | | [optional] 10 | **timezone** | **str** | | [optional] 11 | **id** | **int** | | [optional] 12 | **alias** | **str** | | [optional] 13 | **title** | **str** | | [optional] 14 | **avatar** | **str** | | [optional] 15 | **teams** | [**list[Team]**](Team.md) | | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/ActivityEntity.md: -------------------------------------------------------------------------------- 1 | # ActivityEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **parent_title** | **str** | | [optional] 7 | **project** | **int** | | [optional] 8 | **id** | **int** | | [optional] 9 | **name** | **str** | | 10 | **comment** | **str** | | [optional] 11 | **visible** | **bool** | | 12 | **budget** | **float** | | 13 | **time_budget** | **int** | | 14 | **meta_fields** | [**list[ActivityMeta]**](ActivityMeta.md) | All visible meta (custom) fields registered with this activity | [optional] 15 | **color** | **str** | | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/TimesheetEditForm.md: -------------------------------------------------------------------------------- 1 | # TimesheetEditForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **begin** | **datetime** | | 7 | **end** | **datetime** | | [optional] 8 | **duration** | **str** | | [optional] 9 | **project** | **int** | Project ID | 10 | **activity** | **int** | Activity ID | 11 | **description** | **str** | | [optional] 12 | **tags** | **str** | Comma separated list of tags | [optional] 13 | **fixed_rate** | **float** | Fixed rate | [optional] 14 | **hourly_rate** | **float** | Hourly rate | [optional] 15 | **user** | **int** | User ID | [optional] 16 | **exported** | **bool** | | [optional] 17 | 18 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/TimesheetSubCollection.md: -------------------------------------------------------------------------------- 1 | # TimesheetSubCollection 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **duration** | **int** | | [optional] 8 | **rate** | **float** | | [optional] 9 | **activity** | [**Activity**](Activity.md) | | 10 | **project** | [**Project2**](Project2.md) | | 11 | **description** | **str** | | [optional] 12 | **begin** | **datetime** | | [optional] 13 | **end** | **datetime** | | [optional] 14 | **user** | **int** | | [optional] 15 | **tags** | **list[str]** | | [optional] 16 | **meta_fields** | [**list[TimesheetMeta2]**](TimesheetMeta2.md) | | [optional] 17 | **internal_rate** | **float** | | [optional] 18 | 19 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/ProjectCollection.md: -------------------------------------------------------------------------------- 1 | # ProjectCollection 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **parent_title** | **str** | | [optional] 7 | **customer** | **int** | | [optional] 8 | **id** | **int** | | [optional] 9 | **name** | **str** | | 10 | **start** | **datetime** | | [optional] 11 | **end** | **datetime** | | [optional] 12 | **visible** | **bool** | | 13 | **meta_fields** | [**list[ProjectMeta]**](ProjectMeta.md) | All visible meta (custom) fields registered with this project | [optional] 14 | **teams** | [**list[Team]**](Team.md) | If no team is assigned, everyone can access the project (also depends on the teams of the customer) | [optional] 15 | **color** | **str** | | [optional] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /docs/TimesheetCollection.md: -------------------------------------------------------------------------------- 1 | # TimesheetCollection 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **activity** | **int** | | [optional] 7 | **project** | **int** | | [optional] 8 | **user** | **int** | | [optional] 9 | **tags** | **list[str]** | | [optional] 10 | **id** | **int** | | [optional] 11 | **begin** | **datetime** | | 12 | **end** | **datetime** | | [optional] 13 | **duration** | **int** | | [optional] 14 | **description** | **str** | | [optional] 15 | **rate** | **float** | | [optional] 16 | **internal_rate** | **float** | | [optional] 17 | **meta_fields** | [**list[TimesheetMeta]**](TimesheetMeta.md) | All visible meta (custom) fields registered with this timesheet | [optional] 18 | 19 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/Timesheet.md: -------------------------------------------------------------------------------- 1 | # Timesheet 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **duration** | **int** | | [optional] 8 | **rate** | **float** | | [optional] 9 | **description** | **str** | | [optional] 10 | **fixed_rate** | **float** | | [optional] 11 | **hourly_rate** | **float** | | [optional] 12 | **exported** | **bool** | | 13 | **begin** | **datetime** | | [optional] 14 | **end** | **datetime** | | [optional] 15 | **activity** | **int** | | [optional] 16 | **project** | **int** | | [optional] 17 | **user** | **int** | | [optional] 18 | **tags** | **list[str]** | | [optional] 19 | **meta_fields** | [**list[TimesheetMeta2]**](TimesheetMeta2.md) | | [optional] 20 | **internal_rate** | **float** | | [optional] 21 | 22 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/TimesheetCollectionExpanded.md: -------------------------------------------------------------------------------- 1 | # TimesheetCollectionExpanded 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **user** | **int** | | [optional] 7 | **tags** | **list[str]** | | [optional] 8 | **id** | **int** | | [optional] 9 | **begin** | **datetime** | | 10 | **end** | **datetime** | | [optional] 11 | **duration** | **int** | | [optional] 12 | **activity** | [**list[ActivityExpanded]**](ActivityExpanded.md) | | 13 | **project** | [**list[ProjectExpanded]**](ProjectExpanded.md) | | 14 | **description** | **str** | | [optional] 15 | **rate** | **float** | | [optional] 16 | **internal_rate** | **float** | | [optional] 17 | **meta_fields** | [**list[TimesheetMeta]**](TimesheetMeta.md) | All visible meta (custom) fields registered with this timesheet | [optional] 18 | 19 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 20 | 21 | 22 | -------------------------------------------------------------------------------- /docs/CustomerEditForm.md: -------------------------------------------------------------------------------- 1 | # CustomerEditForm 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **name** | **str** | | 7 | **number** | **str** | | [optional] 8 | **comment** | **str** | | [optional] 9 | **company** | **str** | | [optional] 10 | **vat_id** | **str** | | [optional] 11 | **contact** | **str** | | [optional] 12 | **address** | **str** | | [optional] 13 | **country** | **str** | | 14 | **currency** | **str** | | 15 | **phone** | **str** | | [optional] 16 | **fax** | **str** | | [optional] 17 | **mobile** | **str** | | [optional] 18 | **email** | **str** | | [optional] 19 | **homepage** | **str** | | [optional] 20 | **timezone** | **str** | | 21 | **color** | **str** | The color code as hex (default: #d2d6de) | 22 | **visible** | **bool** | | [optional] 23 | 24 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/TimesheetEntity.md: -------------------------------------------------------------------------------- 1 | # TimesheetEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **activity** | **int** | | [optional] 7 | **project** | **int** | | [optional] 8 | **user** | **int** | | [optional] 9 | **tags** | **list[str]** | | [optional] 10 | **id** | **int** | | [optional] 11 | **begin** | **datetime** | | 12 | **end** | **datetime** | | [optional] 13 | **duration** | **int** | | [optional] 14 | **description** | **str** | | [optional] 15 | **rate** | **float** | | [optional] 16 | **internal_rate** | **float** | | [optional] 17 | **fixed_rate** | **float** | | [optional] 18 | **hourly_rate** | **float** | | [optional] 19 | **exported** | **bool** | | 20 | **meta_fields** | [**list[TimesheetMeta]**](TimesheetMeta.md) | All visible meta (custom) fields registered with this timesheet | [optional] 21 | 22 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 23 | 24 | 25 | -------------------------------------------------------------------------------- /.swagger-codegen-ignore: -------------------------------------------------------------------------------- 1 | # Swagger Codegen Ignore 2 | # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 kbancerz 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /docs/ProjectEntity.md: -------------------------------------------------------------------------------- 1 | # ProjectEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **parent_title** | **str** | | [optional] 7 | **customer** | **int** | | [optional] 8 | **id** | **int** | | [optional] 9 | **name** | **str** | | 10 | **order_number** | **str** | | [optional] 11 | **order_date** | **datetime** | | [optional] 12 | **start** | **datetime** | | [optional] 13 | **end** | **datetime** | | [optional] 14 | **comment** | **str** | | [optional] 15 | **visible** | **bool** | | 16 | **budget** | **float** | | 17 | **time_budget** | **int** | | 18 | **meta_fields** | [**list[ProjectMeta]**](ProjectMeta.md) | All visible meta (custom) fields registered with this project | [optional] 19 | **teams** | [**list[Team]**](Team.md) | If no team is assigned, everyone can access the project (also depends on the teams of the customer) | [optional] 20 | **color** | **str** | | [optional] 21 | 22 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 23 | 24 | 25 | -------------------------------------------------------------------------------- /test/test_body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.body import Body # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestBody(unittest.TestCase): 24 | """Body unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBody(self): 33 | """Test Body""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.body.Body() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_team.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.team import Team # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeam(unittest.TestCase): 24 | """Team unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTeam(self): 33 | """Test Team""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.team.Team() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.user import User # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestUser(unittest.TestCase): 24 | """User unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUser(self): 33 | """Test User""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.user.User() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_body1.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.body1 import Body1 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestBody1(unittest.TestCase): 24 | """Body1 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBody1(self): 33 | """Test Body1""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.body1.Body1() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_body2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.body2 import Body2 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestBody2(unittest.TestCase): 24 | """Body2 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBody2(self): 33 | """Test Body2""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.body2.Body2() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_body3.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.body3 import Body3 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestBody3(unittest.TestCase): 24 | """Body3 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBody3(self): 33 | """Test Body3""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.body3.Body3() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_body4.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.body4 import Body4 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestBody4(unittest.TestCase): 24 | """Body4 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testBody4(self): 33 | """Test Body4""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.body4.Body4() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_team2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.team2 import Team2 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeam2(unittest.TestCase): 24 | """Team2 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTeam2(self): 33 | """Test Team2""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.team2.Team2() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_team3.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.team3 import Team3 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeam3(unittest.TestCase): 24 | """Team3 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTeam3(self): 33 | """Test Team3""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.team3.Team3() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_team4.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.team4 import Team4 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeam4(unittest.TestCase): 24 | """Team4 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTeam4(self): 33 | """Test Team4""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.team4.Team4() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_team5.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.team5 import Team5 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeam5(unittest.TestCase): 24 | """Team5 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTeam5(self): 33 | """Test Team5""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.team5.Team5() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.user2 import User2 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestUser2(unittest.TestCase): 24 | """User2 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUser2(self): 33 | """Test User2""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.user2.User2() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project import Project # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProject(unittest.TestCase): 24 | """Project unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProject(self): 33 | """Test Project""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project.Project() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_version.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.version import Version # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestVersion(unittest.TestCase): 24 | """Version unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testVersion(self): 33 | """Test Version""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.version.Version() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity import Activity # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivity(unittest.TestCase): 24 | """Activity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivity(self): 33 | """Test Activity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity.Activity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer import Customer # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomer(unittest.TestCase): 24 | """Customer unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomer(self): 33 | """Test Customer""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer.Customer() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project2 import Project2 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProject2(unittest.TestCase): 24 | """Project2 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProject2(self): 33 | """Test Project2""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project2.Project2() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer2 import Customer2 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomer2(unittest.TestCase): 24 | """Customer2 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomer2(self): 33 | """Test Customer2""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer2.Customer2() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_timesheet.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet import Timesheet # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheet(unittest.TestCase): 24 | """Timesheet unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheet(self): 33 | """Test Timesheet""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet.Timesheet() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_tag_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.tag_entity import TagEntity # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTagEntity(unittest.TestCase): 24 | """TagEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTagEntity(self): 33 | """Test TagEntity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.tag_entity.TagEntity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_i18n_config.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.i18n_config import I18nConfig # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestI18nConfig(unittest.TestCase): 24 | """I18nConfig unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testI18nConfig(self): 33 | """Test I18nConfig""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.i18n_config.I18nConfig() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_team_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.team_entity import TeamEntity # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeamEntity(unittest.TestCase): 24 | """TeamEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTeamEntity(self): 33 | """Test TeamEntity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.team_entity.TeamEntity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.user_entity import UserEntity # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestUserEntity(unittest.TestCase): 24 | """UserEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserEntity(self): 33 | """Test UserEntity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.user_entity.UserEntity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_meta.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project_meta import ProjectMeta # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectMeta(unittest.TestCase): 24 | """ProjectMeta unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectMeta(self): 33 | """Test ProjectMeta""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project_meta.ProjectMeta() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_rate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project_rate import ProjectRate # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectRate(unittest.TestCase): 24 | """ProjectRate unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectRate(self): 33 | """Test ProjectRate""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project_rate.ProjectRate() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_tag_edit_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.tag_edit_form import TagEditForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTagEditForm(unittest.TestCase): 24 | """TagEditForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTagEditForm(self): 33 | """Test TagEditForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.tag_edit_form.TagEditForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity_meta.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity_meta import ActivityMeta # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityMeta(unittest.TestCase): 24 | """ActivityMeta unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivityMeta(self): 33 | """Test ActivityMeta""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity_meta.ActivityMeta() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity_rate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity_rate import ActivityRate # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityRate(unittest.TestCase): 24 | """ActivityRate unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivityRate(self): 33 | """Test ActivityRate""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity_rate.ActivityRate() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer_meta.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer_meta import CustomerMeta # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomerMeta(unittest.TestCase): 24 | """CustomerMeta unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomerMeta(self): 33 | """Test CustomerMeta""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer_meta.CustomerMeta() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer_rate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer_rate import CustomerRate # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomerRate(unittest.TestCase): 24 | """CustomerRate unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomerRate(self): 33 | """Test CustomerRate""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer_rate.CustomerRate() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_team_edit_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.team_edit_form import TeamEditForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeamEditForm(unittest.TestCase): 24 | """TeamEditForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTeamEditForm(self): 33 | """Test TeamEditForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.team_edit_form.TeamEditForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_edit_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.user_edit_form import UserEditForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestUserEditForm(unittest.TestCase): 24 | """UserEditForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserEditForm(self): 33 | """Test UserEditForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.user_edit_form.UserEditForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project_entity import ProjectEntity # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectEntity(unittest.TestCase): 24 | """ProjectEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectEntity(self): 33 | """Test ProjectEntity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project_entity.ProjectEntity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_timesheet_meta.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet_meta import TimesheetMeta # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetMeta(unittest.TestCase): 24 | """TimesheetMeta unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheetMeta(self): 33 | """Test TimesheetMeta""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet_meta.TimesheetMeta() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity_entity import ActivityEntity # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityEntity(unittest.TestCase): 24 | """ActivityEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivityEntity(self): 33 | """Test ActivityEntity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity_entity.ActivityEntity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer_entity import CustomerEntity # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomerEntity(unittest.TestCase): 24 | """CustomerEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomerEntity(self): 33 | """Test CustomerEntity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer_entity.CustomerEntity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_team_collection.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.team_collection import TeamCollection # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeamCollection(unittest.TestCase): 24 | """TeamCollection unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTeamCollection(self): 33 | """Test TeamCollection""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.team_collection.TeamCollection() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_timesheet_meta2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet_meta2 import TimesheetMeta2 # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetMeta2(unittest.TestCase): 24 | """TimesheetMeta2 unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheetMeta2(self): 33 | """Test TimesheetMeta2""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet_meta2.TimesheetMeta2() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_collection.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.user_collection import UserCollection # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestUserCollection(unittest.TestCase): 24 | """UserCollection unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserCollection(self): 33 | """Test UserCollection""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.user_collection.UserCollection() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_user_create_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.user_create_form import UserCreateForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestUserCreateForm(unittest.TestCase): 24 | """UserCreateForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testUserCreateForm(self): 33 | """Test UserCreateForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.user_create_form.UserCreateForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_timesheet_config.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet_config import TimesheetConfig # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetConfig(unittest.TestCase): 24 | """TimesheetConfig unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheetConfig(self): 33 | """Test TimesheetConfig""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet_config.TimesheetConfig() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_timesheet_entity.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet_entity import TimesheetEntity # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetEntity(unittest.TestCase): 24 | """TimesheetEntity unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheetEntity(self): 33 | """Test TimesheetEntity""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet_entity.TimesheetEntity() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_edit_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project_edit_form import ProjectEditForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectEditForm(unittest.TestCase): 24 | """ProjectEditForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectEditForm(self): 33 | """Test ProjectEditForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project_edit_form.ProjectEditForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_rate_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project_rate_form import ProjectRateForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectRateForm(unittest.TestCase): 24 | """ProjectRateForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectRateForm(self): 33 | """Test ProjectRateForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project_rate_form.ProjectRateForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity_edit_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity_edit_form import ActivityEditForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityEditForm(unittest.TestCase): 24 | """ActivityEditForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivityEditForm(self): 33 | """Test ActivityEditForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity_edit_form.ActivityEditForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity_rate_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity_rate_form import ActivityRateForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityRateForm(unittest.TestCase): 24 | """ActivityRateForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivityRateForm(self): 33 | """Test ActivityRateForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity_rate_form.ActivityRateForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer_edit_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer_edit_form import CustomerEditForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomerEditForm(unittest.TestCase): 24 | """CustomerEditForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomerEditForm(self): 33 | """Test CustomerEditForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer_edit_form.CustomerEditForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer_rate_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer_rate_form import CustomerRateForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomerRateForm(unittest.TestCase): 24 | """CustomerRateForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomerRateForm(self): 33 | """Test CustomerRateForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer_rate_form.CustomerRateForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_meta_field.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project_meta_field import ProjectMetaField # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectMetaField(unittest.TestCase): 24 | """ProjectMetaField unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectMetaField(self): 33 | """Test ProjectMetaField""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project_meta_field.ProjectMetaField() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_collection.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project_collection import ProjectCollection # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectCollection(unittest.TestCase): 24 | """ProjectCollection unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectCollection(self): 33 | """Test ProjectCollection""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project_collection.ProjectCollection() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity_meta_field.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity_meta_field import ActivityMetaField # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityMetaField(unittest.TestCase): 24 | """ActivityMetaField unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivityMetaField(self): 33 | """Test ActivityMetaField""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity_meta_field.ActivityMetaField() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer_meta_field.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer_meta_field import CustomerMetaField # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomerMetaField(unittest.TestCase): 24 | """CustomerMetaField unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomerMetaField(self): 33 | """Test CustomerMetaField""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer_meta_field.CustomerMetaField() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_timesheet_edit_form.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet_edit_form import TimesheetEditForm # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetEditForm(unittest.TestCase): 24 | """TimesheetEditForm unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheetEditForm(self): 33 | """Test TimesheetEditForm""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet_edit_form.TimesheetEditForm() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity_collection.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity_collection import ActivityCollection # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityCollection(unittest.TestCase): 24 | """ActivityCollection unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivityCollection(self): 33 | """Test ActivityCollection""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity_collection.ActivityCollection() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_customer_collection.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.customer_collection import CustomerCollection # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomerCollection(unittest.TestCase): 24 | """CustomerCollection unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testCustomerCollection(self): 33 | """Test CustomerCollection""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.customer_collection.CustomerCollection() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_timesheet_collection.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet_collection import TimesheetCollection # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetCollection(unittest.TestCase): 24 | """TimesheetCollection unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheetCollection(self): 33 | """Test TimesheetCollection""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet_collection.TimesheetCollection() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_timesheet_sub_collection.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet_sub_collection import TimesheetSubCollection # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetSubCollection(unittest.TestCase): 24 | """TimesheetSubCollection unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheetSubCollection(self): 33 | """Test TimesheetSubCollection""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet_sub_collection.TimesheetSubCollection() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_project_expanded.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.project_expanded import ProjectExpanded # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectExpanded(unittest.TestCase): 24 | """ProjectExpanded unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testProjectExpanded(self): 33 | """Test ProjectExpanded""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.project_expanded.ProjectExpanded() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_activity_expanded.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.activity_expanded import ActivityExpanded # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityExpanded(unittest.TestCase): 24 | """ActivityExpanded unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testActivityExpanded(self): 33 | """Test ActivityExpanded""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.activity_expanded.ActivityExpanded() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /docs/CustomerEntity.md: -------------------------------------------------------------------------------- 1 | # CustomerEntity 2 | 3 | ## Properties 4 | Name | Type | Description | Notes 5 | ------------ | ------------- | ------------- | ------------- 6 | **id** | **int** | | [optional] 7 | **name** | **str** | | 8 | **number** | **str** | | [optional] 9 | **comment** | **str** | | [optional] 10 | **visible** | **bool** | | 11 | **company** | **str** | | [optional] 12 | **vat_id** | **str** | | [optional] 13 | **contact** | **str** | | [optional] 14 | **address** | **str** | | [optional] 15 | **country** | **str** | | 16 | **currency** | **str** | | 17 | **phone** | **str** | | [optional] 18 | **fax** | **str** | | [optional] 19 | **mobile** | **str** | | [optional] 20 | **email** | **str** | Limited via RFC to 254 chars | [optional] 21 | **homepage** | **str** | | [optional] 22 | **timezone** | **str** | Length was determined by a MySQL column via \"use mysql;describe time_zone_name;\" | 23 | **budget** | **float** | | 24 | **time_budget** | **int** | | 25 | **meta_fields** | [**list[CustomerMeta]**](CustomerMeta.md) | All visible meta (custom) fields registered with this customer | [optional] 26 | **teams** | [**list[Team]**](Team.md) | If no team is assigned, everyone can access the customer | [optional] 27 | **color** | **str** | | [optional] 28 | 29 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 30 | 31 | 32 | -------------------------------------------------------------------------------- /test/test_timesheet_collection_expanded.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.models.timesheet_collection_expanded import TimesheetCollectionExpanded # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetCollectionExpanded(unittest.TestCase): 24 | """TimesheetCollectionExpanded unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testTimesheetCollectionExpanded(self): 33 | """Test TimesheetCollectionExpanded""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = kimai_python.models.timesheet_collection_expanded.TimesheetCollectionExpanded() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == '__main__': 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /test/test_tag_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.api.tag_api import TagApi # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTagApi(unittest.TestCase): 24 | """TagApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = kimai_python.api.tag_api.TagApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_api_tags_get(self): 33 | """Test case for api_tags_get 34 | 35 | Fetch all existing tags # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_api_tags_id_delete(self): 40 | """Test case for api_tags_id_delete 41 | 42 | Delete a tag # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_api_tags_post(self): 47 | """Test case for api_tags_post 48 | 49 | Creates a new tag # noqa: E501 50 | """ 51 | pass 52 | 53 | 54 | if __name__ == '__main__': 55 | unittest.main() 56 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, but we try to avoid them. # noqa: E501 6 | OpenAPI spec version: 0.4 7 | 8 | Generated by: https://github.com/swagger-api/swagger-codegen.git 9 | """ 10 | 11 | 12 | from setuptools import setup, find_packages # noqa: H301 13 | 14 | NAME = "kimai-python" 15 | VERSION = "0.2.9" 16 | # To install the library, run the following 17 | # 18 | # python setup.py install 19 | # 20 | # prerequisite: setuptools 21 | # http://pypi.python.org/pypi/setuptools 22 | 23 | REQUIRES = [ 24 | "certifi>=2017.4.17", 25 | "python-dateutil>=2.1", 26 | "six>=1.10", 27 | "urllib3>=1.23" 28 | ] 29 | 30 | 31 | setup( 32 | name=NAME, 33 | version=VERSION, 34 | description="Kimai 2 - API Docs", 35 | author_email="", 36 | url="", 37 | keywords=["Swagger", "Kimai 2 - API Docs"], 38 | install_requires=REQUIRES, 39 | packages=find_packages(), 40 | include_package_data=True, 41 | long_description="""\ 42 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, but we try to avoid them. # noqa: E501 43 | """ 44 | ) 45 | -------------------------------------------------------------------------------- /test/test_default_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.api.default_api import DefaultApi # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestDefaultApi(unittest.TestCase): 24 | """DefaultApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = kimai_python.api.default_api.DefaultApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_api_config_i18n_get(self): 33 | """Test case for api_config_i18n_get 34 | 35 | Returns the user specific locale configuration # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_api_config_timesheet_get(self): 40 | """Test case for api_config_timesheet_get 41 | 42 | Returns the instance specific timesheet configuration # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_api_ping_get(self): 47 | """Test case for api_ping_get 48 | 49 | A testing route for the API # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_api_version_get(self): 54 | """Test case for api_version_get 55 | 56 | Returns information about the Kimai release # noqa: E501 57 | """ 58 | pass 59 | 60 | 61 | if __name__ == '__main__': 62 | unittest.main() 63 | -------------------------------------------------------------------------------- /test/test_user_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.api.user_api import UserApi # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestUserApi(unittest.TestCase): 24 | """UserApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = kimai_python.api.user_api.UserApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_api_users_get(self): 33 | """Test case for api_users_get 34 | 35 | Returns the collection of all registered users # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_api_users_id_get(self): 40 | """Test case for api_users_id_get 41 | 42 | Return one user entity # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_api_users_id_patch(self): 47 | """Test case for api_users_id_patch 48 | 49 | Update an existing user # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_api_users_me_get(self): 54 | """Test case for api_users_me_get 55 | 56 | Return the current user entity # noqa: E501 57 | """ 58 | pass 59 | 60 | def test_api_users_post(self): 61 | """Test case for api_users_post 62 | 63 | Creates a new user # noqa: E501 64 | """ 65 | pass 66 | 67 | 68 | if __name__ == '__main__': 69 | unittest.main() 70 | -------------------------------------------------------------------------------- /test/test_project_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.api.project_api import ProjectApi # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestProjectApi(unittest.TestCase): 24 | """ProjectApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = kimai_python.api.project_api.ProjectApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_api_projects_get(self): 33 | """Test case for api_projects_get 34 | 35 | Returns a collection of projects. # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_api_projects_id_get(self): 40 | """Test case for api_projects_id_get 41 | 42 | Returns one project # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_api_projects_id_meta_patch(self): 47 | """Test case for api_projects_id_meta_patch 48 | 49 | Sets the value of a meta-field for an existing project # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_api_projects_id_patch(self): 54 | """Test case for api_projects_id_patch 55 | 56 | Update an existing project # noqa: E501 57 | """ 58 | pass 59 | 60 | def test_api_projects_id_rates_get(self): 61 | """Test case for api_projects_id_rates_get 62 | 63 | Returns a collection of all rates for one project # noqa: E501 64 | """ 65 | pass 66 | 67 | def test_api_projects_id_rates_post(self): 68 | """Test case for api_projects_id_rates_post 69 | 70 | Adds a new rate to an project # noqa: E501 71 | """ 72 | pass 73 | 74 | def test_api_projects_id_rates_rate_id_delete(self): 75 | """Test case for api_projects_id_rates_rate_id_delete 76 | 77 | Deletes one rate for an project # noqa: E501 78 | """ 79 | pass 80 | 81 | def test_api_projects_post(self): 82 | """Test case for api_projects_post 83 | 84 | Creates a new project # noqa: E501 85 | """ 86 | pass 87 | 88 | 89 | if __name__ == '__main__': 90 | unittest.main() 91 | -------------------------------------------------------------------------------- /test/test_customer_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.api.customer_api import CustomerApi # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestCustomerApi(unittest.TestCase): 24 | """CustomerApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = kimai_python.api.customer_api.CustomerApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_api_customers_get(self): 33 | """Test case for api_customers_get 34 | 35 | Returns a collection of customers # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_api_customers_id_get(self): 40 | """Test case for api_customers_id_get 41 | 42 | Returns one customer # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_api_customers_id_meta_patch(self): 47 | """Test case for api_customers_id_meta_patch 48 | 49 | Sets the value of a meta-field for an existing customer # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_api_customers_id_patch(self): 54 | """Test case for api_customers_id_patch 55 | 56 | Update an existing customer # noqa: E501 57 | """ 58 | pass 59 | 60 | def test_api_customers_id_rates_get(self): 61 | """Test case for api_customers_id_rates_get 62 | 63 | Returns a collection of all rates for one customer # noqa: E501 64 | """ 65 | pass 66 | 67 | def test_api_customers_id_rates_post(self): 68 | """Test case for api_customers_id_rates_post 69 | 70 | Adds a new rate to a customer # noqa: E501 71 | """ 72 | pass 73 | 74 | def test_api_customers_id_rates_rate_id_delete(self): 75 | """Test case for api_customers_id_rates_rate_id_delete 76 | 77 | Deletes one rate for an customer # noqa: E501 78 | """ 79 | pass 80 | 81 | def test_api_customers_post(self): 82 | """Test case for api_customers_post 83 | 84 | Creates a new customer # noqa: E501 85 | """ 86 | pass 87 | 88 | 89 | if __name__ == '__main__': 90 | unittest.main() 91 | -------------------------------------------------------------------------------- /test/test_activity_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.api.activity_api import ActivityApi # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestActivityApi(unittest.TestCase): 24 | """ActivityApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = kimai_python.api.activity_api.ActivityApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_api_activities_get(self): 33 | """Test case for api_activities_get 34 | 35 | Returns a collection of activities # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_api_activities_id_get(self): 40 | """Test case for api_activities_id_get 41 | 42 | Returns one activity # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_api_activities_id_meta_patch(self): 47 | """Test case for api_activities_id_meta_patch 48 | 49 | Sets the value of a meta-field for an existing activity # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_api_activities_id_patch(self): 54 | """Test case for api_activities_id_patch 55 | 56 | Update an existing activity # noqa: E501 57 | """ 58 | pass 59 | 60 | def test_api_activities_id_rates_get(self): 61 | """Test case for api_activities_id_rates_get 62 | 63 | Returns a collection of all rates for one activity # noqa: E501 64 | """ 65 | pass 66 | 67 | def test_api_activities_id_rates_post(self): 68 | """Test case for api_activities_id_rates_post 69 | 70 | Adds a new rate to an activity # noqa: E501 71 | """ 72 | pass 73 | 74 | def test_api_activities_id_rates_rate_id_delete(self): 75 | """Test case for api_activities_id_rates_rate_id_delete 76 | 77 | Deletes one rate for an activity # noqa: E501 78 | """ 79 | pass 80 | 81 | def test_api_activities_post(self): 82 | """Test case for api_activities_post 83 | 84 | Creates a new activity # noqa: E501 85 | """ 86 | pass 87 | 88 | 89 | if __name__ == '__main__': 90 | unittest.main() 91 | -------------------------------------------------------------------------------- /test/test_team_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.api.team_api import TeamApi # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTeamApi(unittest.TestCase): 24 | """TeamApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = kimai_python.api.team_api.TeamApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_api_teams_get(self): 33 | """Test case for api_teams_get 34 | 35 | Fetch all existing teams # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_api_teams_id_customers_customer_id_delete(self): 40 | """Test case for api_teams_id_customers_customer_id_delete 41 | 42 | Revokes access for a customer from a team # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_api_teams_id_customers_customer_id_post(self): 47 | """Test case for api_teams_id_customers_customer_id_post 48 | 49 | Grant the team access to a customer # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_api_teams_id_delete(self): 54 | """Test case for api_teams_id_delete 55 | 56 | Delete a team # noqa: E501 57 | """ 58 | pass 59 | 60 | def test_api_teams_id_get(self): 61 | """Test case for api_teams_id_get 62 | 63 | Returns one team # noqa: E501 64 | """ 65 | pass 66 | 67 | def test_api_teams_id_members_user_id_delete(self): 68 | """Test case for api_teams_id_members_user_id_delete 69 | 70 | Removes a member from the team # noqa: E501 71 | """ 72 | pass 73 | 74 | def test_api_teams_id_members_user_id_post(self): 75 | """Test case for api_teams_id_members_user_id_post 76 | 77 | Add a new member to a team # noqa: E501 78 | """ 79 | pass 80 | 81 | def test_api_teams_id_patch(self): 82 | """Test case for api_teams_id_patch 83 | 84 | Update an existing team # noqa: E501 85 | """ 86 | pass 87 | 88 | def test_api_teams_id_projects_project_id_delete(self): 89 | """Test case for api_teams_id_projects_project_id_delete 90 | 91 | Revokes access for a project from a team # noqa: E501 92 | """ 93 | pass 94 | 95 | def test_api_teams_id_projects_project_id_post(self): 96 | """Test case for api_teams_id_projects_project_id_post 97 | 98 | Grant the team access to a project # noqa: E501 99 | """ 100 | pass 101 | 102 | def test_api_teams_post(self): 103 | """Test case for api_teams_post 104 | 105 | Creates a new team # noqa: E501 106 | """ 107 | pass 108 | 109 | 110 | if __name__ == '__main__': 111 | unittest.main() 112 | -------------------------------------------------------------------------------- /kimai_python/models/__init__.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | # flake8: noqa 4 | """ 5 | Kimai 2 - API Docs 6 | 7 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 8 | 9 | OpenAPI spec version: 0.6 10 | 11 | Generated by: https://github.com/swagger-api/swagger-codegen.git 12 | """ 13 | 14 | 15 | from __future__ import absolute_import 16 | 17 | # import models into model package 18 | from kimai_python.models.activity import Activity 19 | from kimai_python.models.activity_collection import ActivityCollection 20 | from kimai_python.models.activity_edit_form import ActivityEditForm 21 | from kimai_python.models.activity_entity import ActivityEntity 22 | from kimai_python.models.activity_expanded import ActivityExpanded 23 | from kimai_python.models.activity_meta import ActivityMeta 24 | from kimai_python.models.activity_rate import ActivityRate 25 | from kimai_python.models.activity_rate_form import ActivityRateForm 26 | from kimai_python.models.body import Body 27 | from kimai_python.models.body1 import Body1 28 | from kimai_python.models.body2 import Body2 29 | from kimai_python.models.body3 import Body3 30 | from kimai_python.models.body4 import Body4 31 | from kimai_python.models.customer import Customer 32 | from kimai_python.models.customer_collection import CustomerCollection 33 | from kimai_python.models.customer_edit_form import CustomerEditForm 34 | from kimai_python.models.customer_entity import CustomerEntity 35 | from kimai_python.models.customer_meta import CustomerMeta 36 | from kimai_python.models.customer_rate import CustomerRate 37 | from kimai_python.models.customer_rate_form import CustomerRateForm 38 | from kimai_python.models.i18n_config import I18nConfig 39 | from kimai_python.models.project import Project 40 | from kimai_python.models.project_collection import ProjectCollection 41 | from kimai_python.models.project_edit_form import ProjectEditForm 42 | from kimai_python.models.project_entity import ProjectEntity 43 | from kimai_python.models.project_expanded import ProjectExpanded 44 | from kimai_python.models.project_meta import ProjectMeta 45 | from kimai_python.models.project_rate import ProjectRate 46 | from kimai_python.models.project_rate_form import ProjectRateForm 47 | from kimai_python.models.tag_edit_form import TagEditForm 48 | from kimai_python.models.tag_entity import TagEntity 49 | from kimai_python.models.team import Team 50 | from kimai_python.models.team_collection import TeamCollection 51 | from kimai_python.models.team_edit_form import TeamEditForm 52 | from kimai_python.models.team_entity import TeamEntity 53 | from kimai_python.models.timesheet_collection import TimesheetCollection 54 | from kimai_python.models.timesheet_collection_expanded import TimesheetCollectionExpanded 55 | from kimai_python.models.timesheet_config import TimesheetConfig 56 | from kimai_python.models.timesheet_edit_form import TimesheetEditForm 57 | from kimai_python.models.timesheet_entity import TimesheetEntity 58 | from kimai_python.models.timesheet_meta import TimesheetMeta 59 | from kimai_python.models.user import User 60 | from kimai_python.models.user_collection import UserCollection 61 | from kimai_python.models.user_create_form import UserCreateForm 62 | from kimai_python.models.user_edit_form import UserEditForm 63 | from kimai_python.models.user_entity import UserEntity 64 | from kimai_python.models.version import Version 65 | -------------------------------------------------------------------------------- /test/test_timesheet_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | import unittest 17 | 18 | import kimai_python 19 | from kimai_python.api.timesheet_api import TimesheetApi # noqa: E501 20 | from kimai_python.rest import ApiException 21 | 22 | 23 | class TestTimesheetApi(unittest.TestCase): 24 | """TimesheetApi unit test stubs""" 25 | 26 | def setUp(self): 27 | self.api = kimai_python.api.timesheet_api.TimesheetApi() # noqa: E501 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def test_api_timesheets_active_get(self): 33 | """Test case for api_timesheets_active_get 34 | 35 | Returns the collection of active timesheet records # noqa: E501 36 | """ 37 | pass 38 | 39 | def test_api_timesheets_get(self): 40 | """Test case for api_timesheets_get 41 | 42 | Returns a collection of timesheet records # noqa: E501 43 | """ 44 | pass 45 | 46 | def test_api_timesheets_id_delete(self): 47 | """Test case for api_timesheets_id_delete 48 | 49 | Delete an existing timesheet record # noqa: E501 50 | """ 51 | pass 52 | 53 | def test_api_timesheets_id_duplicate_patch(self): 54 | """Test case for api_timesheets_id_duplicate_patch 55 | 56 | Duplicates an existing timesheet record # noqa: E501 57 | """ 58 | pass 59 | 60 | def test_api_timesheets_id_export_patch(self): 61 | """Test case for api_timesheets_id_export_patch 62 | 63 | Switch the export state of a timesheet record to (un-)lock it # noqa: E501 64 | """ 65 | pass 66 | 67 | def test_api_timesheets_id_get(self): 68 | """Test case for api_timesheets_id_get 69 | 70 | Returns one timesheet record # noqa: E501 71 | """ 72 | pass 73 | 74 | def test_api_timesheets_id_meta_patch(self): 75 | """Test case for api_timesheets_id_meta_patch 76 | 77 | Sets the value of a meta-field for an existing timesheet. # noqa: E501 78 | """ 79 | pass 80 | 81 | def test_api_timesheets_id_patch(self): 82 | """Test case for api_timesheets_id_patch 83 | 84 | Update an existing timesheet record # noqa: E501 85 | """ 86 | pass 87 | 88 | def test_api_timesheets_id_restart_patch(self): 89 | """Test case for api_timesheets_id_restart_patch 90 | 91 | Restarts a previously stopped timesheet record for the current user # noqa: E501 92 | """ 93 | pass 94 | 95 | def test_api_timesheets_id_stop_patch(self): 96 | """Test case for api_timesheets_id_stop_patch 97 | 98 | Stops an active timesheet record # noqa: E501 99 | """ 100 | pass 101 | 102 | def test_api_timesheets_post(self): 103 | """Test case for api_timesheets_post 104 | 105 | Creates a new timesheet record # noqa: E501 106 | """ 107 | pass 108 | 109 | def test_api_timesheets_recent_get(self): 110 | """Test case for api_timesheets_recent_get 111 | 112 | Returns the collection of recent user activities # noqa: E501 113 | """ 114 | pass 115 | 116 | 117 | if __name__ == '__main__': 118 | unittest.main() 119 | -------------------------------------------------------------------------------- /kimai_python/__init__.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | # flake8: noqa 4 | 5 | """ 6 | Kimai 2 - API Docs 7 | 8 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 9 | 10 | OpenAPI spec version: 0.6 11 | 12 | Generated by: https://github.com/swagger-api/swagger-codegen.git 13 | """ 14 | 15 | 16 | from __future__ import absolute_import 17 | 18 | # import apis into sdk package 19 | from kimai_python.api.activity_api import ActivityApi 20 | from kimai_python.api.customer_api import CustomerApi 21 | from kimai_python.api.default_api import DefaultApi 22 | from kimai_python.api.project_api import ProjectApi 23 | from kimai_python.api.tag_api import TagApi 24 | from kimai_python.api.team_api import TeamApi 25 | from kimai_python.api.timesheet_api import TimesheetApi 26 | from kimai_python.api.user_api import UserApi 27 | 28 | # import ApiClient 29 | from kimai_python.api_client import ApiClient 30 | from kimai_python.configuration import Configuration 31 | # import models into sdk package 32 | from kimai_python.models.activity import Activity 33 | from kimai_python.models.activity_collection import ActivityCollection 34 | from kimai_python.models.activity_edit_form import ActivityEditForm 35 | from kimai_python.models.activity_entity import ActivityEntity 36 | from kimai_python.models.activity_expanded import ActivityExpanded 37 | from kimai_python.models.activity_meta import ActivityMeta 38 | from kimai_python.models.activity_rate import ActivityRate 39 | from kimai_python.models.activity_rate_form import ActivityRateForm 40 | from kimai_python.models.body import Body 41 | from kimai_python.models.body1 import Body1 42 | from kimai_python.models.body2 import Body2 43 | from kimai_python.models.body3 import Body3 44 | from kimai_python.models.body4 import Body4 45 | from kimai_python.models.customer import Customer 46 | from kimai_python.models.customer_collection import CustomerCollection 47 | from kimai_python.models.customer_edit_form import CustomerEditForm 48 | from kimai_python.models.customer_entity import CustomerEntity 49 | from kimai_python.models.customer_meta import CustomerMeta 50 | from kimai_python.models.customer_rate import CustomerRate 51 | from kimai_python.models.customer_rate_form import CustomerRateForm 52 | from kimai_python.models.i18n_config import I18nConfig 53 | from kimai_python.models.project import Project 54 | from kimai_python.models.project_collection import ProjectCollection 55 | from kimai_python.models.project_edit_form import ProjectEditForm 56 | from kimai_python.models.project_entity import ProjectEntity 57 | from kimai_python.models.project_expanded import ProjectExpanded 58 | from kimai_python.models.project_meta import ProjectMeta 59 | from kimai_python.models.project_rate import ProjectRate 60 | from kimai_python.models.project_rate_form import ProjectRateForm 61 | from kimai_python.models.tag_edit_form import TagEditForm 62 | from kimai_python.models.tag_entity import TagEntity 63 | from kimai_python.models.team import Team 64 | from kimai_python.models.team_collection import TeamCollection 65 | from kimai_python.models.team_edit_form import TeamEditForm 66 | from kimai_python.models.team_entity import TeamEntity 67 | from kimai_python.models.timesheet_collection import TimesheetCollection 68 | from kimai_python.models.timesheet_collection_expanded import TimesheetCollectionExpanded 69 | from kimai_python.models.timesheet_config import TimesheetConfig 70 | from kimai_python.models.timesheet_edit_form import TimesheetEditForm 71 | from kimai_python.models.timesheet_entity import TimesheetEntity 72 | from kimai_python.models.timesheet_meta import TimesheetMeta 73 | from kimai_python.models.user import User 74 | from kimai_python.models.user_collection import UserCollection 75 | from kimai_python.models.user_create_form import UserCreateForm 76 | from kimai_python.models.user_edit_form import UserEditForm 77 | from kimai_python.models.user_entity import UserEntity 78 | from kimai_python.models.version import Version 79 | -------------------------------------------------------------------------------- /kimai_python/models/body3.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Body3(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'copy': 'str' 35 | } 36 | 37 | attribute_map = { 38 | 'copy': 'copy' 39 | } 40 | 41 | def __init__(self, copy=None): # noqa: E501 42 | """Body3 - a model defined in Swagger""" # noqa: E501 43 | 44 | self._copy = None 45 | self.discriminator = None 46 | 47 | if copy is not None: 48 | self.copy = copy 49 | 50 | @property 51 | def copy(self): 52 | """Gets the copy of this Body3. # noqa: E501 53 | 54 | Whether data should be copied to the new entry. Allowed values: all, tags, rates, description, meta (default: nothing is copied) # noqa: E501 55 | 56 | :return: The copy of this Body3. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._copy 60 | 61 | @copy.setter 62 | def copy(self, copy): 63 | """Sets the copy of this Body3. 64 | 65 | Whether data should be copied to the new entry. Allowed values: all, tags, rates, description, meta (default: nothing is copied) # noqa: E501 66 | 67 | :param copy: The copy of this Body3. # noqa: E501 68 | :type: str 69 | """ 70 | if copy is not None and not re.search(r'all|tags|rates|meta|description', copy): # noqa: E501 71 | raise ValueError(r"Invalid value for `copy`, must be a follow pattern or equal to `/all|tags|rates|meta|description/`") # noqa: E501 72 | 73 | self._copy = copy 74 | 75 | def to_dict(self): 76 | """Returns the model properties as a dict""" 77 | result = {} 78 | 79 | for attr, _ in six.iteritems(self.swagger_types): 80 | value = getattr(self, attr) 81 | if isinstance(value, list): 82 | result[attr] = list(map( 83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 84 | value 85 | )) 86 | elif hasattr(value, "to_dict"): 87 | result[attr] = value.to_dict() 88 | elif isinstance(value, dict): 89 | result[attr] = dict(map( 90 | lambda item: (item[0], item[1].to_dict()) 91 | if hasattr(item[1], "to_dict") else item, 92 | value.items() 93 | )) 94 | else: 95 | result[attr] = value 96 | if issubclass(Body3, dict): 97 | for key, value in self.items(): 98 | result[key] = value 99 | 100 | return result 101 | 102 | def to_str(self): 103 | """Returns the string representation of the model""" 104 | return pprint.pformat(self.to_dict()) 105 | 106 | def __repr__(self): 107 | """For `print` and `pprint`""" 108 | return self.to_str() 109 | 110 | def __eq__(self, other): 111 | """Returns true if both objects are equal""" 112 | if not isinstance(other, Body3): 113 | return False 114 | 115 | return self.__dict__ == other.__dict__ 116 | 117 | def __ne__(self, other): 118 | """Returns true if both objects are not equal""" 119 | return not self == other 120 | -------------------------------------------------------------------------------- /kimai_python/models/team2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Team2(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'id': 'int', 35 | 'name': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'id': 'id', 40 | 'name': 'name' 41 | } 42 | 43 | def __init__(self, id=None, name=None): # noqa: E501 44 | """Team2 - a model defined in Swagger""" # noqa: E501 45 | 46 | self._id = None 47 | self._name = None 48 | self.discriminator = None 49 | 50 | if id is not None: 51 | self.id = id 52 | self.name = name 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this Team2. # noqa: E501 57 | 58 | 59 | :return: The id of this Team2. # noqa: E501 60 | :rtype: int 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this Team2. 67 | 68 | 69 | :param id: The id of this Team2. # noqa: E501 70 | :type: int 71 | """ 72 | 73 | self._id = id 74 | 75 | @property 76 | def name(self): 77 | """Gets the name of this Team2. # noqa: E501 78 | 79 | 80 | :return: The name of this Team2. # noqa: E501 81 | :rtype: str 82 | """ 83 | return self._name 84 | 85 | @name.setter 86 | def name(self, name): 87 | """Sets the name of this Team2. 88 | 89 | 90 | :param name: The name of this Team2. # noqa: E501 91 | :type: str 92 | """ 93 | if name is None: 94 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 95 | if name is not None and len(name) > 100: 96 | raise ValueError("Invalid value for `name`, length must be less than or equal to `100`") # noqa: E501 97 | if name is not None and len(name) < 2: 98 | raise ValueError("Invalid value for `name`, length must be greater than or equal to `2`") # noqa: E501 99 | 100 | self._name = name 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(Team2, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, Team2): 140 | return False 141 | 142 | return self.__dict__ == other.__dict__ 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | return not self == other 147 | -------------------------------------------------------------------------------- /kimai_python/models/team3.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Team3(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'id': 'int', 35 | 'name': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'id': 'id', 40 | 'name': 'name' 41 | } 42 | 43 | def __init__(self, id=None, name=None): # noqa: E501 44 | """Team3 - a model defined in Swagger""" # noqa: E501 45 | 46 | self._id = None 47 | self._name = None 48 | self.discriminator = None 49 | 50 | if id is not None: 51 | self.id = id 52 | self.name = name 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this Team3. # noqa: E501 57 | 58 | 59 | :return: The id of this Team3. # noqa: E501 60 | :rtype: int 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this Team3. 67 | 68 | 69 | :param id: The id of this Team3. # noqa: E501 70 | :type: int 71 | """ 72 | 73 | self._id = id 74 | 75 | @property 76 | def name(self): 77 | """Gets the name of this Team3. # noqa: E501 78 | 79 | 80 | :return: The name of this Team3. # noqa: E501 81 | :rtype: str 82 | """ 83 | return self._name 84 | 85 | @name.setter 86 | def name(self, name): 87 | """Sets the name of this Team3. 88 | 89 | 90 | :param name: The name of this Team3. # noqa: E501 91 | :type: str 92 | """ 93 | if name is None: 94 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 95 | if name is not None and len(name) > 100: 96 | raise ValueError("Invalid value for `name`, length must be less than or equal to `100`") # noqa: E501 97 | if name is not None and len(name) < 2: 98 | raise ValueError("Invalid value for `name`, length must be greater than or equal to `2`") # noqa: E501 99 | 100 | self._name = name 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(Team3, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, Team3): 140 | return False 141 | 142 | return self.__dict__ == other.__dict__ 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | return not self == other 147 | -------------------------------------------------------------------------------- /kimai_python/models/team4.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Team4(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'id': 'int', 35 | 'name': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'id': 'id', 40 | 'name': 'name' 41 | } 42 | 43 | def __init__(self, id=None, name=None): # noqa: E501 44 | """Team4 - a model defined in Swagger""" # noqa: E501 45 | 46 | self._id = None 47 | self._name = None 48 | self.discriminator = None 49 | 50 | if id is not None: 51 | self.id = id 52 | self.name = name 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this Team4. # noqa: E501 57 | 58 | 59 | :return: The id of this Team4. # noqa: E501 60 | :rtype: int 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this Team4. 67 | 68 | 69 | :param id: The id of this Team4. # noqa: E501 70 | :type: int 71 | """ 72 | 73 | self._id = id 74 | 75 | @property 76 | def name(self): 77 | """Gets the name of this Team4. # noqa: E501 78 | 79 | 80 | :return: The name of this Team4. # noqa: E501 81 | :rtype: str 82 | """ 83 | return self._name 84 | 85 | @name.setter 86 | def name(self, name): 87 | """Sets the name of this Team4. 88 | 89 | 90 | :param name: The name of this Team4. # noqa: E501 91 | :type: str 92 | """ 93 | if name is None: 94 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 95 | if name is not None and len(name) > 100: 96 | raise ValueError("Invalid value for `name`, length must be less than or equal to `100`") # noqa: E501 97 | if name is not None and len(name) < 2: 98 | raise ValueError("Invalid value for `name`, length must be greater than or equal to `2`") # noqa: E501 99 | 100 | self._name = name 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(Team4, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, Team4): 140 | return False 141 | 142 | return self.__dict__ == other.__dict__ 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | return not self == other 147 | -------------------------------------------------------------------------------- /kimai_python/models/team5.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Team5(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'id': 'int', 35 | 'name': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'id': 'id', 40 | 'name': 'name' 41 | } 42 | 43 | def __init__(self, id=None, name=None): # noqa: E501 44 | """Team5 - a model defined in Swagger""" # noqa: E501 45 | 46 | self._id = None 47 | self._name = None 48 | self.discriminator = None 49 | 50 | if id is not None: 51 | self.id = id 52 | self.name = name 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this Team5. # noqa: E501 57 | 58 | 59 | :return: The id of this Team5. # noqa: E501 60 | :rtype: int 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this Team5. 67 | 68 | 69 | :param id: The id of this Team5. # noqa: E501 70 | :type: int 71 | """ 72 | 73 | self._id = id 74 | 75 | @property 76 | def name(self): 77 | """Gets the name of this Team5. # noqa: E501 78 | 79 | 80 | :return: The name of this Team5. # noqa: E501 81 | :rtype: str 82 | """ 83 | return self._name 84 | 85 | @name.setter 86 | def name(self, name): 87 | """Sets the name of this Team5. 88 | 89 | 90 | :param name: The name of this Team5. # noqa: E501 91 | :type: str 92 | """ 93 | if name is None: 94 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 95 | if name is not None and len(name) > 100: 96 | raise ValueError("Invalid value for `name`, length must be less than or equal to `100`") # noqa: E501 97 | if name is not None and len(name) < 2: 98 | raise ValueError("Invalid value for `name`, length must be greater than or equal to `2`") # noqa: E501 99 | 100 | self._name = name 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(Team5, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, Team5): 140 | return False 141 | 142 | return self.__dict__ == other.__dict__ 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | return not self == other 147 | -------------------------------------------------------------------------------- /kimai_python/models/body.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Body(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'name': 'str', 35 | 'value': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'name': 'name', 40 | 'value': 'value' 41 | } 42 | 43 | def __init__(self, name=None, value=None): # noqa: E501 44 | """Body - a model defined in Swagger""" # noqa: E501 45 | 46 | self._name = None 47 | self._value = None 48 | self.discriminator = None 49 | 50 | self.name = name 51 | self.value = value 52 | 53 | @property 54 | def name(self): 55 | """Gets the name of this Body. # noqa: E501 56 | 57 | The meta-field name # noqa: E501 58 | 59 | :return: The name of this Body. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._name 63 | 64 | @name.setter 65 | def name(self, name): 66 | """Sets the name of this Body. 67 | 68 | The meta-field name # noqa: E501 69 | 70 | :param name: The name of this Body. # noqa: E501 71 | :type: str 72 | """ 73 | if name is None: 74 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 75 | 76 | self._name = name 77 | 78 | @property 79 | def value(self): 80 | """Gets the value of this Body. # noqa: E501 81 | 82 | The meta-field value # noqa: E501 83 | 84 | :return: The value of this Body. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._value 88 | 89 | @value.setter 90 | def value(self, value): 91 | """Sets the value of this Body. 92 | 93 | The meta-field value # noqa: E501 94 | 95 | :param value: The value of this Body. # noqa: E501 96 | :type: str 97 | """ 98 | if value is None: 99 | raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 100 | 101 | self._value = value 102 | 103 | def to_dict(self): 104 | """Returns the model properties as a dict""" 105 | result = {} 106 | 107 | for attr, _ in six.iteritems(self.swagger_types): 108 | value = getattr(self, attr) 109 | if isinstance(value, list): 110 | result[attr] = list(map( 111 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 112 | value 113 | )) 114 | elif hasattr(value, "to_dict"): 115 | result[attr] = value.to_dict() 116 | elif isinstance(value, dict): 117 | result[attr] = dict(map( 118 | lambda item: (item[0], item[1].to_dict()) 119 | if hasattr(item[1], "to_dict") else item, 120 | value.items() 121 | )) 122 | else: 123 | result[attr] = value 124 | if issubclass(Body, dict): 125 | for key, value in self.items(): 126 | result[key] = value 127 | 128 | return result 129 | 130 | def to_str(self): 131 | """Returns the string representation of the model""" 132 | return pprint.pformat(self.to_dict()) 133 | 134 | def __repr__(self): 135 | """For `print` and `pprint`""" 136 | return self.to_str() 137 | 138 | def __eq__(self, other): 139 | """Returns true if both objects are equal""" 140 | if not isinstance(other, Body): 141 | return False 142 | 143 | return self.__dict__ == other.__dict__ 144 | 145 | def __ne__(self, other): 146 | """Returns true if both objects are not equal""" 147 | return not self == other 148 | -------------------------------------------------------------------------------- /kimai_python/models/team.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Team(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'id': 'int', 35 | 'name': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'id': 'id', 40 | 'name': 'name' 41 | } 42 | 43 | def __init__(self, id=None, name=None): # noqa: E501 44 | """Team - a model defined in Swagger""" # noqa: E501 45 | 46 | self._id = None 47 | self._name = None 48 | self.discriminator = None 49 | 50 | if id is not None: 51 | self.id = id 52 | self.name = name 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this Team. # noqa: E501 57 | 58 | 59 | :return: The id of this Team. # noqa: E501 60 | :rtype: int 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this Team. 67 | 68 | 69 | :param id: The id of this Team. # noqa: E501 70 | :type: int 71 | """ 72 | 73 | self._id = id 74 | 75 | @property 76 | def name(self): 77 | """Gets the name of this Team. # noqa: E501 78 | 79 | 80 | :return: The name of this Team. # noqa: E501 81 | :rtype: str 82 | """ 83 | return self._name 84 | 85 | @name.setter 86 | def name(self, name): 87 | """Sets the name of this Team. 88 | 89 | 90 | :param name: The name of this Team. # noqa: E501 91 | :type: str 92 | """ 93 | if name is None: 94 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 95 | if name is not None and len(name) > 100: 96 | raise ValueError("Invalid value for `name`, length must be less than or equal to `100`") # noqa: E501 97 | if name is not None and len(name) < 2: 98 | raise ValueError("Invalid value for `name`, length must be greater than or equal to `2`") # noqa: E501 99 | 100 | self._name = name 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(Team, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, Team): 140 | return False 141 | 142 | return self.__dict__ == other.__dict__ 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | return not self == other 147 | -------------------------------------------------------------------------------- /kimai_python/models/body1.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Body1(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'name': 'str', 35 | 'value': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'name': 'name', 40 | 'value': 'value' 41 | } 42 | 43 | def __init__(self, name=None, value=None): # noqa: E501 44 | """Body1 - a model defined in Swagger""" # noqa: E501 45 | 46 | self._name = None 47 | self._value = None 48 | self.discriminator = None 49 | 50 | self.name = name 51 | self.value = value 52 | 53 | @property 54 | def name(self): 55 | """Gets the name of this Body1. # noqa: E501 56 | 57 | The meta-field name # noqa: E501 58 | 59 | :return: The name of this Body1. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._name 63 | 64 | @name.setter 65 | def name(self, name): 66 | """Sets the name of this Body1. 67 | 68 | The meta-field name # noqa: E501 69 | 70 | :param name: The name of this Body1. # noqa: E501 71 | :type: str 72 | """ 73 | if name is None: 74 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 75 | 76 | self._name = name 77 | 78 | @property 79 | def value(self): 80 | """Gets the value of this Body1. # noqa: E501 81 | 82 | The meta-field value # noqa: E501 83 | 84 | :return: The value of this Body1. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._value 88 | 89 | @value.setter 90 | def value(self, value): 91 | """Sets the value of this Body1. 92 | 93 | The meta-field value # noqa: E501 94 | 95 | :param value: The value of this Body1. # noqa: E501 96 | :type: str 97 | """ 98 | if value is None: 99 | raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 100 | 101 | self._value = value 102 | 103 | def to_dict(self): 104 | """Returns the model properties as a dict""" 105 | result = {} 106 | 107 | for attr, _ in six.iteritems(self.swagger_types): 108 | value = getattr(self, attr) 109 | if isinstance(value, list): 110 | result[attr] = list(map( 111 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 112 | value 113 | )) 114 | elif hasattr(value, "to_dict"): 115 | result[attr] = value.to_dict() 116 | elif isinstance(value, dict): 117 | result[attr] = dict(map( 118 | lambda item: (item[0], item[1].to_dict()) 119 | if hasattr(item[1], "to_dict") else item, 120 | value.items() 121 | )) 122 | else: 123 | result[attr] = value 124 | if issubclass(Body1, dict): 125 | for key, value in self.items(): 126 | result[key] = value 127 | 128 | return result 129 | 130 | def to_str(self): 131 | """Returns the string representation of the model""" 132 | return pprint.pformat(self.to_dict()) 133 | 134 | def __repr__(self): 135 | """For `print` and `pprint`""" 136 | return self.to_str() 137 | 138 | def __eq__(self, other): 139 | """Returns true if both objects are equal""" 140 | if not isinstance(other, Body1): 141 | return False 142 | 143 | return self.__dict__ == other.__dict__ 144 | 145 | def __ne__(self, other): 146 | """Returns true if both objects are not equal""" 147 | return not self == other 148 | -------------------------------------------------------------------------------- /kimai_python/models/body2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Body2(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'name': 'str', 35 | 'value': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'name': 'name', 40 | 'value': 'value' 41 | } 42 | 43 | def __init__(self, name=None, value=None): # noqa: E501 44 | """Body2 - a model defined in Swagger""" # noqa: E501 45 | 46 | self._name = None 47 | self._value = None 48 | self.discriminator = None 49 | 50 | self.name = name 51 | self.value = value 52 | 53 | @property 54 | def name(self): 55 | """Gets the name of this Body2. # noqa: E501 56 | 57 | The meta-field name # noqa: E501 58 | 59 | :return: The name of this Body2. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._name 63 | 64 | @name.setter 65 | def name(self, name): 66 | """Sets the name of this Body2. 67 | 68 | The meta-field name # noqa: E501 69 | 70 | :param name: The name of this Body2. # noqa: E501 71 | :type: str 72 | """ 73 | if name is None: 74 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 75 | 76 | self._name = name 77 | 78 | @property 79 | def value(self): 80 | """Gets the value of this Body2. # noqa: E501 81 | 82 | The meta-field value # noqa: E501 83 | 84 | :return: The value of this Body2. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._value 88 | 89 | @value.setter 90 | def value(self, value): 91 | """Sets the value of this Body2. 92 | 93 | The meta-field value # noqa: E501 94 | 95 | :param value: The value of this Body2. # noqa: E501 96 | :type: str 97 | """ 98 | if value is None: 99 | raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 100 | 101 | self._value = value 102 | 103 | def to_dict(self): 104 | """Returns the model properties as a dict""" 105 | result = {} 106 | 107 | for attr, _ in six.iteritems(self.swagger_types): 108 | value = getattr(self, attr) 109 | if isinstance(value, list): 110 | result[attr] = list(map( 111 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 112 | value 113 | )) 114 | elif hasattr(value, "to_dict"): 115 | result[attr] = value.to_dict() 116 | elif isinstance(value, dict): 117 | result[attr] = dict(map( 118 | lambda item: (item[0], item[1].to_dict()) 119 | if hasattr(item[1], "to_dict") else item, 120 | value.items() 121 | )) 122 | else: 123 | result[attr] = value 124 | if issubclass(Body2, dict): 125 | for key, value in self.items(): 126 | result[key] = value 127 | 128 | return result 129 | 130 | def to_str(self): 131 | """Returns the string representation of the model""" 132 | return pprint.pformat(self.to_dict()) 133 | 134 | def __repr__(self): 135 | """For `print` and `pprint`""" 136 | return self.to_str() 137 | 138 | def __eq__(self, other): 139 | """Returns true if both objects are equal""" 140 | if not isinstance(other, Body2): 141 | return False 142 | 143 | return self.__dict__ == other.__dict__ 144 | 145 | def __ne__(self, other): 146 | """Returns true if both objects are not equal""" 147 | return not self == other 148 | -------------------------------------------------------------------------------- /kimai_python/models/body4.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class Body4(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'name': 'str', 35 | 'value': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'name': 'name', 40 | 'value': 'value' 41 | } 42 | 43 | def __init__(self, name=None, value=None): # noqa: E501 44 | """Body4 - a model defined in Swagger""" # noqa: E501 45 | 46 | self._name = None 47 | self._value = None 48 | self.discriminator = None 49 | 50 | self.name = name 51 | self.value = value 52 | 53 | @property 54 | def name(self): 55 | """Gets the name of this Body4. # noqa: E501 56 | 57 | The meta-field name # noqa: E501 58 | 59 | :return: The name of this Body4. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._name 63 | 64 | @name.setter 65 | def name(self, name): 66 | """Sets the name of this Body4. 67 | 68 | The meta-field name # noqa: E501 69 | 70 | :param name: The name of this Body4. # noqa: E501 71 | :type: str 72 | """ 73 | if name is None: 74 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 75 | 76 | self._name = name 77 | 78 | @property 79 | def value(self): 80 | """Gets the value of this Body4. # noqa: E501 81 | 82 | The meta-field value # noqa: E501 83 | 84 | :return: The value of this Body4. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._value 88 | 89 | @value.setter 90 | def value(self, value): 91 | """Sets the value of this Body4. 92 | 93 | The meta-field value # noqa: E501 94 | 95 | :param value: The value of this Body4. # noqa: E501 96 | :type: str 97 | """ 98 | if value is None: 99 | raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 100 | 101 | self._value = value 102 | 103 | def to_dict(self): 104 | """Returns the model properties as a dict""" 105 | result = {} 106 | 107 | for attr, _ in six.iteritems(self.swagger_types): 108 | value = getattr(self, attr) 109 | if isinstance(value, list): 110 | result[attr] = list(map( 111 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 112 | value 113 | )) 114 | elif hasattr(value, "to_dict"): 115 | result[attr] = value.to_dict() 116 | elif isinstance(value, dict): 117 | result[attr] = dict(map( 118 | lambda item: (item[0], item[1].to_dict()) 119 | if hasattr(item[1], "to_dict") else item, 120 | value.items() 121 | )) 122 | else: 123 | result[attr] = value 124 | if issubclass(Body4, dict): 125 | for key, value in self.items(): 126 | result[key] = value 127 | 128 | return result 129 | 130 | def to_str(self): 131 | """Returns the string representation of the model""" 132 | return pprint.pformat(self.to_dict()) 133 | 134 | def __repr__(self): 135 | """For `print` and `pprint`""" 136 | return self.to_str() 137 | 138 | def __eq__(self, other): 139 | """Returns true if both objects are equal""" 140 | if not isinstance(other, Body4): 141 | return False 142 | 143 | return self.__dict__ == other.__dict__ 144 | 145 | def __ne__(self, other): 146 | """Returns true if both objects are not equal""" 147 | return not self == other 148 | -------------------------------------------------------------------------------- /kimai_python/models/timesheet_meta2.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class TimesheetMeta2(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'name': 'str', 35 | 'value': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'name': 'name', 40 | 'value': 'value' 41 | } 42 | 43 | def __init__(self, name=None, value=None): # noqa: E501 44 | """TimesheetMeta2 - a model defined in Swagger""" # noqa: E501 45 | 46 | self._name = None 47 | self._value = None 48 | self.discriminator = None 49 | 50 | self.name = name 51 | if value is not None: 52 | self.value = value 53 | 54 | @property 55 | def name(self): 56 | """Gets the name of this TimesheetMeta2. # noqa: E501 57 | 58 | 59 | :return: The name of this TimesheetMeta2. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._name 63 | 64 | @name.setter 65 | def name(self, name): 66 | """Sets the name of this TimesheetMeta2. 67 | 68 | 69 | :param name: The name of this TimesheetMeta2. # noqa: E501 70 | :type: str 71 | """ 72 | if name is None: 73 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 74 | if name is not None and len(name) > 50: 75 | raise ValueError("Invalid value for `name`, length must be less than or equal to `50`") # noqa: E501 76 | if name is not None and len(name) < 2: 77 | raise ValueError("Invalid value for `name`, length must be greater than or equal to `2`") # noqa: E501 78 | 79 | self._name = name 80 | 81 | @property 82 | def value(self): 83 | """Gets the value of this TimesheetMeta2. # noqa: E501 84 | 85 | 86 | :return: The value of this TimesheetMeta2. # noqa: E501 87 | :rtype: str 88 | """ 89 | return self._value 90 | 91 | @value.setter 92 | def value(self, value): 93 | """Sets the value of this TimesheetMeta2. 94 | 95 | 96 | :param value: The value of this TimesheetMeta2. # noqa: E501 97 | :type: str 98 | """ 99 | 100 | self._value = value 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(TimesheetMeta2, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, TimesheetMeta2): 140 | return False 141 | 142 | return self.__dict__ == other.__dict__ 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | return not self == other 147 | -------------------------------------------------------------------------------- /kimai_python/models/project_meta_field.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen. # noqa: E501 7 | 8 | OpenAPI spec version: 0.5 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class ProjectMetaField(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'name': 'str', 35 | 'value': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'name': 'name', 40 | 'value': 'value' 41 | } 42 | 43 | def __init__(self, name=None, value=None): # noqa: E501 44 | """ProjectMetaField - a model defined in Swagger""" # noqa: E501 45 | 46 | self._name = None 47 | self._value = None 48 | self.discriminator = None 49 | 50 | self.name = name 51 | if value is not None: 52 | self.value = value 53 | 54 | @property 55 | def name(self): 56 | """Gets the name of this ProjectMetaField. # noqa: E501 57 | 58 | 59 | :return: The name of this ProjectMetaField. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._name 63 | 64 | @name.setter 65 | def name(self, name): 66 | """Sets the name of this ProjectMetaField. 67 | 68 | 69 | :param name: The name of this ProjectMetaField. # noqa: E501 70 | :type: str 71 | """ 72 | if name is None: 73 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 74 | if name is not None and len(name) > 50: 75 | raise ValueError("Invalid value for `name`, length must be less than or equal to `50`") # noqa: E501 76 | if name is not None and len(name) < 2: 77 | raise ValueError("Invalid value for `name`, length must be greater than or equal to `2`") # noqa: E501 78 | 79 | self._name = name 80 | 81 | @property 82 | def value(self): 83 | """Gets the value of this ProjectMetaField. # noqa: E501 84 | 85 | 86 | :return: The value of this ProjectMetaField. # noqa: E501 87 | :rtype: str 88 | """ 89 | return self._value 90 | 91 | @value.setter 92 | def value(self, value): 93 | """Sets the value of this ProjectMetaField. 94 | 95 | 96 | :param value: The value of this ProjectMetaField. # noqa: E501 97 | :type: str 98 | """ 99 | 100 | self._value = value 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(ProjectMetaField, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, ProjectMetaField): 140 | return False 141 | 142 | return self.__dict__ == other.__dict__ 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | return not self == other 147 | -------------------------------------------------------------------------------- /kimai_python/models/team_collection.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Kimai 2 - API Docs 5 | 6 | JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and BC breaks might happen, especially when using code generation. The order of JSON attributes is not guaranteed. # noqa: E501 7 | 8 | OpenAPI spec version: 0.6 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | import pprint 15 | import re # noqa: F401 16 | 17 | import six 18 | 19 | 20 | class TeamCollection(object): 21 | """NOTE: This class is auto generated by the swagger code generator program. 22 | 23 | Do not edit the class manually. 24 | """ 25 | 26 | """ 27 | Attributes: 28 | swagger_types (dict): The key is attribute name 29 | and the value is attribute type. 30 | attribute_map (dict): The key is attribute name 31 | and the value is json key in definition. 32 | """ 33 | swagger_types = { 34 | 'id': 'int', 35 | 'name': 'str' 36 | } 37 | 38 | attribute_map = { 39 | 'id': 'id', 40 | 'name': 'name' 41 | } 42 | 43 | def __init__(self, id=None, name=None): # noqa: E501 44 | """TeamCollection - a model defined in Swagger""" # noqa: E501 45 | 46 | self._id = None 47 | self._name = None 48 | self.discriminator = None 49 | 50 | if id is not None: 51 | self.id = id 52 | self.name = name 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this TeamCollection. # noqa: E501 57 | 58 | 59 | :return: The id of this TeamCollection. # noqa: E501 60 | :rtype: int 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this TeamCollection. 67 | 68 | 69 | :param id: The id of this TeamCollection. # noqa: E501 70 | :type: int 71 | """ 72 | 73 | self._id = id 74 | 75 | @property 76 | def name(self): 77 | """Gets the name of this TeamCollection. # noqa: E501 78 | 79 | 80 | :return: The name of this TeamCollection. # noqa: E501 81 | :rtype: str 82 | """ 83 | return self._name 84 | 85 | @name.setter 86 | def name(self, name): 87 | """Sets the name of this TeamCollection. 88 | 89 | 90 | :param name: The name of this TeamCollection. # noqa: E501 91 | :type: str 92 | """ 93 | if name is None: 94 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 95 | if name is not None and len(name) > 100: 96 | raise ValueError("Invalid value for `name`, length must be less than or equal to `100`") # noqa: E501 97 | if name is not None and len(name) < 2: 98 | raise ValueError("Invalid value for `name`, length must be greater than or equal to `2`") # noqa: E501 99 | 100 | self._name = name 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(TeamCollection, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, TeamCollection): 140 | return False 141 | 142 | return self.__dict__ == other.__dict__ 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | return not self == other 147 | --------------------------------------------------------------------------------