Skip to content

Commit 7961ce4

Browse files
committed
Add client files
0 parents  commit 7961ce4

File tree

169 files changed

+28808
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+28808
-0
lines changed

.github/workflows/python.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: plesk_client Python package
7+
8+
on: [push, pull_request]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -r test-requirements.txt
29+
- name: Test with pytest
30+
run: |
31+
pytest --cov={{packageName}}

.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/
64+
65+
#Ipython Notebook
66+
.ipynb_checkpoints

.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=plesk_client
16+
17+
pytest-3.8:
18+
extends: .pytest
19+
image: python:3.8-alpine
20+
pytest-3.9:
21+
extends: .pytest
22+
image: python:3.9-alpine
23+
pytest-3.10:
24+
extends: .pytest
25+
image: python:3.10-alpine
26+
pytest-3.11:
27+
extends: .pytest
28+
image: python:3.11-alpine
29+
pytest-3.12:
30+
extends: .pytest
31+
image: python:3.12-alpine

.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
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 OpenAPI Generator 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

.openapi-generator/FILES

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
.github/workflows/python.yml
2+
.gitignore
3+
.gitlab-ci.yml
4+
.openapi-generator-ignore
5+
.travis.yml
6+
README.md
7+
docs/Admin.md
8+
docs/AuthenticationApi.md
9+
docs/CliApi.md
10+
docs/CliCallRequest.md
11+
docs/CliCallResponse.md
12+
docs/CliIdRefGet200Response.md
13+
docs/Client.md
14+
docs/ClientRequest.md
15+
docs/ClientStatistics.md
16+
docs/ClientUpdateRequest.md
17+
docs/ClientsApi.md
18+
docs/CreatedResponse.md
19+
docs/DNSApi.md
20+
docs/Database.md
21+
docs/DatabaseRequest.md
22+
docs/DatabaseServer.md
23+
docs/DatabaseUser.md
24+
docs/DatabaseUserRequest.md
25+
docs/DatabaseUserUpdateRequest.md
26+
docs/DatabasesApi.md
27+
docs/DnsRecord.md
28+
docs/DnsRecordRequest.md
29+
docs/DomainAlias.md
30+
docs/DomainReference.md
31+
docs/DomainRequest.md
32+
docs/DomainResponse.md
33+
docs/DomainStatus.md
34+
docs/DomainsApi.md
35+
docs/ErrorResponse.md
36+
docs/Extension.md
37+
docs/ExtensionInstallRequest.md
38+
docs/ExtensionsApi.md
39+
docs/FtpUser.md
40+
docs/FtpUserPermissions.md
41+
docs/FtpUserRequest.md
42+
docs/FtpUserRequestPermissions.md
43+
docs/FtpUserUpdateRequest.md
44+
docs/FtpUsersApi.md
45+
docs/OwnerClientReference.md
46+
docs/PlanReference.md
47+
docs/SecretKeyRequest.md
48+
docs/SecretKeyResponse.md
49+
docs/ServerApi.md
50+
docs/ServerInit.md
51+
docs/ServerIp.md
52+
docs/ServerLicense.md
53+
docs/ServerMeta.md
54+
docs/StatusResponse.md
55+
git_push.sh
56+
plesk_client/__init__.py
57+
plesk_client/api/__init__.py
58+
plesk_client/api/authentication_api.py
59+
plesk_client/api/cli_api.py
60+
plesk_client/api/clients_api.py
61+
plesk_client/api/databases_api.py
62+
plesk_client/api/dns_api.py
63+
plesk_client/api/domains_api.py
64+
plesk_client/api/extensions_api.py
65+
plesk_client/api/ftp_users_api.py
66+
plesk_client/api/server_api.py
67+
plesk_client/api_client.py
68+
plesk_client/api_response.py
69+
plesk_client/configuration.py
70+
plesk_client/exceptions.py
71+
plesk_client/models/__init__.py
72+
plesk_client/models/admin.py
73+
plesk_client/models/cli_call_request.py
74+
plesk_client/models/cli_call_response.py
75+
plesk_client/models/cli_id_ref_get200_response.py
76+
plesk_client/models/client.py
77+
plesk_client/models/client_request.py
78+
plesk_client/models/client_statistics.py
79+
plesk_client/models/client_update_request.py
80+
plesk_client/models/created_response.py
81+
plesk_client/models/database.py
82+
plesk_client/models/database_request.py
83+
plesk_client/models/database_server.py
84+
plesk_client/models/database_user.py
85+
plesk_client/models/database_user_request.py
86+
plesk_client/models/database_user_update_request.py
87+
plesk_client/models/dns_record.py
88+
plesk_client/models/dns_record_request.py
89+
plesk_client/models/domain_alias.py
90+
plesk_client/models/domain_reference.py
91+
plesk_client/models/domain_request.py
92+
plesk_client/models/domain_response.py
93+
plesk_client/models/domain_status.py
94+
plesk_client/models/error_response.py
95+
plesk_client/models/extension.py
96+
plesk_client/models/extension_install_request.py
97+
plesk_client/models/ftp_user.py
98+
plesk_client/models/ftp_user_permissions.py
99+
plesk_client/models/ftp_user_request.py
100+
plesk_client/models/ftp_user_request_permissions.py
101+
plesk_client/models/ftp_user_update_request.py
102+
plesk_client/models/owner_client_reference.py
103+
plesk_client/models/plan_reference.py
104+
plesk_client/models/secret_key_request.py
105+
plesk_client/models/secret_key_response.py
106+
plesk_client/models/server_init.py
107+
plesk_client/models/server_ip.py
108+
plesk_client/models/server_license.py
109+
plesk_client/models/server_meta.py
110+
plesk_client/models/status_response.py
111+
plesk_client/py.typed
112+
plesk_client/rest.py
113+
pyproject.toml
114+
requirements.txt
115+
setup.cfg
116+
setup.py
117+
test-requirements.txt
118+
test/__init__.py
119+
test/test_admin.py
120+
test/test_authentication_api.py
121+
test/test_cli_api.py
122+
test/test_cli_call_request.py
123+
test/test_cli_call_response.py
124+
test/test_cli_id_ref_get200_response.py
125+
test/test_client.py
126+
test/test_client_request.py
127+
test/test_client_statistics.py
128+
test/test_client_update_request.py
129+
test/test_clients_api.py
130+
test/test_created_response.py
131+
test/test_database.py
132+
test/test_database_request.py
133+
test/test_database_server.py
134+
test/test_database_user.py
135+
test/test_database_user_request.py
136+
test/test_database_user_update_request.py
137+
test/test_databases_api.py
138+
test/test_dns_api.py
139+
test/test_dns_record.py
140+
test/test_dns_record_request.py
141+
test/test_domain_alias.py
142+
test/test_domain_reference.py
143+
test/test_domain_request.py
144+
test/test_domain_response.py
145+
test/test_domain_status.py
146+
test/test_domains_api.py
147+
test/test_error_response.py
148+
test/test_extension.py
149+
test/test_extension_install_request.py
150+
test/test_extensions_api.py
151+
test/test_ftp_user.py
152+
test/test_ftp_user_permissions.py
153+
test/test_ftp_user_request.py
154+
test/test_ftp_user_request_permissions.py
155+
test/test_ftp_user_update_request.py
156+
test/test_ftp_users_api.py
157+
test/test_owner_client_reference.py
158+
test/test_plan_reference.py
159+
test/test_secret_key_request.py
160+
test/test_secret_key_response.py
161+
test/test_server_api.py
162+
test/test_server_init.py
163+
test/test_server_ip.py
164+
test/test_server_license.py
165+
test/test_server_meta.py
166+
test/test_status_response.py
167+
tox.ini

.openapi-generator/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.11.0

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
python:
4+
- "3.8"
5+
- "3.9"
6+
- "3.10"
7+
- "3.11"
8+
- "3.12"
9+
# uncomment the following if needed
10+
#- "3.12-dev" # 3.12 development branch
11+
#- "nightly" # nightly build
12+
# command to install dependencies
13+
install:
14+
- "pip install -r requirements.txt"
15+
- "pip install -r test-requirements.txt"
16+
# command to run tests
17+
script: pytest --cov=plesk_client

0 commit comments

Comments
 (0)