Skip to content

Commit 1875610

Browse files
committed
feat: release 0.0.1
Signed-off-by: Zhangjian He <hezhangjian97@gmail.com>
1 parent 28f97d1 commit 1875610

File tree

309 files changed

+46847
-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.

309 files changed

+46847
-0
lines changed
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: apollo_openapi 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.9", "3.10", "3.11", "3.12", "3.13"]
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=apollo_openapi

python/.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

python/.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=apollo_openapi
16+
17+
pytest-3.9:
18+
extends: .pytest
19+
image: python:3.9-alpine
20+
pytest-3.10:
21+
extends: .pytest
22+
image: python:3.10-alpine
23+
pytest-3.11:
24+
extends: .pytest
25+
image: python:3.11-alpine
26+
pytest-3.12:
27+
extends: .pytest
28+
image: python:3.12-alpine
29+
pytest-3.13:
30+
extends: .pytest
31+
image: python:3.13-alpine

python/.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

python/.openapi-generator/FILES

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
.github/workflows/python.yml
2+
.gitignore
3+
.gitlab-ci.yml
4+
.openapi-generator-ignore
5+
.travis.yml
6+
README.md
7+
apollo_openapi/__init__.py
8+
apollo_openapi/api/__init__.py
9+
apollo_openapi/api/app_management_api.py
10+
apollo_openapi/api/cluster_management_api.py
11+
apollo_openapi/api/instance_management_api.py
12+
apollo_openapi/api/item_management_api.py
13+
apollo_openapi/api/namespace_branch_management_api.py
14+
apollo_openapi/api/namespace_management_api.py
15+
apollo_openapi/api/organization_management_api.py
16+
apollo_openapi/api/release_management_api.py
17+
apollo_openapi/api_client.py
18+
apollo_openapi/api_response.py
19+
apollo_openapi/configuration.py
20+
apollo_openapi/exceptions.py
21+
apollo_openapi/models/__init__.py
22+
apollo_openapi/models/change.py
23+
apollo_openapi/models/cluster_dto.py
24+
apollo_openapi/models/entity_pair_kv_entity.py
25+
apollo_openapi/models/env_cluster_info.py
26+
apollo_openapi/models/item_change_sets.py
27+
apollo_openapi/models/item_dto.py
28+
apollo_openapi/models/kv_entity.py
29+
apollo_openapi/models/list_item_diffs.py
30+
apollo_openapi/models/list_release_bo.py
31+
apollo_openapi/models/map_string.py
32+
apollo_openapi/models/namespace_gray_del_release_dto.py
33+
apollo_openapi/models/namespace_identifier.py
34+
apollo_openapi/models/namespace_release_dto.py
35+
apollo_openapi/models/namespace_sync_model.py
36+
apollo_openapi/models/namespace_text_model.py
37+
apollo_openapi/models/open_app_dto.py
38+
apollo_openapi/models/open_app_namespace_dto.py
39+
apollo_openapi/models/open_cluster_dto.py
40+
apollo_openapi/models/open_create_app_dto.py
41+
apollo_openapi/models/open_env_cluster_dto.py
42+
apollo_openapi/models/open_gray_release_rule_dto.py
43+
apollo_openapi/models/open_gray_release_rule_item_dto.py
44+
apollo_openapi/models/open_instance_config_dto.py
45+
apollo_openapi/models/open_instance_dto.py
46+
apollo_openapi/models/open_item_dto.py
47+
apollo_openapi/models/open_namespace_dto.py
48+
apollo_openapi/models/open_namespace_lock_dto.py
49+
apollo_openapi/models/open_organization_dto.py
50+
apollo_openapi/models/open_page_dto_open_instance_dto.py
51+
apollo_openapi/models/open_page_dto_open_item_dto.py
52+
apollo_openapi/models/open_release_dto.py
53+
apollo_openapi/models/openapi_v1_apps_get401_response.py
54+
apollo_openapi/models/openapi_v1_apps_post400_response.py
55+
apollo_openapi/models/openapi_v1_apps_post_request.py
56+
apollo_openapi/models/openapi_v1_envs_env_apps_app_id_clusters_cluster_name_namespaces_namespace_name_items_validate_post200_response.py
57+
apollo_openapi/models/openapi_v1_envs_env_apps_app_id_clusters_cluster_name_namespaces_namespace_name_items_validate_post400_response.py
58+
apollo_openapi/models/openapi_v1_envs_env_releases_compare_get200_response.py
59+
apollo_openapi/models/release_dto.py
60+
apollo_openapi/py.typed
61+
apollo_openapi/rest.py
62+
docs/AppManagementApi.md
63+
docs/Change.md
64+
docs/ClusterDTO.md
65+
docs/ClusterManagementApi.md
66+
docs/EntityPairKVEntity.md
67+
docs/EnvClusterInfo.md
68+
docs/InstanceManagementApi.md
69+
docs/ItemChangeSets.md
70+
docs/ItemDTO.md
71+
docs/ItemManagementApi.md
72+
docs/KVEntity.md
73+
docs/ListItemDiffs.md
74+
docs/ListReleaseBO.md
75+
docs/MapString.md
76+
docs/NamespaceBranchManagementApi.md
77+
docs/NamespaceGrayDelReleaseDTO.md
78+
docs/NamespaceIdentifier.md
79+
docs/NamespaceManagementApi.md
80+
docs/NamespaceReleaseDTO.md
81+
docs/NamespaceSyncModel.md
82+
docs/NamespaceTextModel.md
83+
docs/OpenAppDTO.md
84+
docs/OpenAppNamespaceDTO.md
85+
docs/OpenClusterDTO.md
86+
docs/OpenCreateAppDTO.md
87+
docs/OpenEnvClusterDTO.md
88+
docs/OpenGrayReleaseRuleDTO.md
89+
docs/OpenGrayReleaseRuleItemDTO.md
90+
docs/OpenInstanceConfigDTO.md
91+
docs/OpenInstanceDTO.md
92+
docs/OpenItemDTO.md
93+
docs/OpenNamespaceDTO.md
94+
docs/OpenNamespaceLockDTO.md
95+
docs/OpenOrganizationDto.md
96+
docs/OpenPageDTOOpenInstanceDTO.md
97+
docs/OpenPageDTOOpenItemDTO.md
98+
docs/OpenReleaseDTO.md
99+
docs/OpenapiV1AppsGet401Response.md
100+
docs/OpenapiV1AppsPost400Response.md
101+
docs/OpenapiV1AppsPostRequest.md
102+
docs/OpenapiV1EnvsEnvAppsAppIdClustersClusterNameNamespacesNamespaceNameItemsValidatePost200Response.md
103+
docs/OpenapiV1EnvsEnvAppsAppIdClustersClusterNameNamespacesNamespaceNameItemsValidatePost400Response.md
104+
docs/OpenapiV1EnvsEnvReleasesCompareGet200Response.md
105+
docs/OrganizationManagementApi.md
106+
docs/ReleaseDTO.md
107+
docs/ReleaseManagementApi.md
108+
git_push.sh
109+
pyproject.toml
110+
requirements.txt
111+
setup.cfg
112+
setup.py
113+
test-requirements.txt
114+
test/__init__.py
115+
test/test_app_management_api.py
116+
test/test_change.py
117+
test/test_cluster_dto.py
118+
test/test_cluster_management_api.py
119+
test/test_entity_pair_kv_entity.py
120+
test/test_env_cluster_info.py
121+
test/test_instance_management_api.py
122+
test/test_item_change_sets.py
123+
test/test_item_dto.py
124+
test/test_item_management_api.py
125+
test/test_kv_entity.py
126+
test/test_list_item_diffs.py
127+
test/test_list_release_bo.py
128+
test/test_map_string.py
129+
test/test_namespace_branch_management_api.py
130+
test/test_namespace_gray_del_release_dto.py
131+
test/test_namespace_identifier.py
132+
test/test_namespace_management_api.py
133+
test/test_namespace_release_dto.py
134+
test/test_namespace_sync_model.py
135+
test/test_namespace_text_model.py
136+
test/test_open_app_dto.py
137+
test/test_open_app_namespace_dto.py
138+
test/test_open_cluster_dto.py
139+
test/test_open_create_app_dto.py
140+
test/test_open_env_cluster_dto.py
141+
test/test_open_gray_release_rule_dto.py
142+
test/test_open_gray_release_rule_item_dto.py
143+
test/test_open_instance_config_dto.py
144+
test/test_open_instance_dto.py
145+
test/test_open_item_dto.py
146+
test/test_open_namespace_dto.py
147+
test/test_open_namespace_lock_dto.py
148+
test/test_open_organization_dto.py
149+
test/test_open_page_dto_open_instance_dto.py
150+
test/test_open_page_dto_open_item_dto.py
151+
test/test_open_release_dto.py
152+
test/test_openapi_v1_apps_get401_response.py
153+
test/test_openapi_v1_apps_post400_response.py
154+
test/test_openapi_v1_apps_post_request.py
155+
test/test_openapi_v1_envs_env_apps_app_id_clusters_cluster_name_namespaces_namespace_name_items_validate_post200_response.py
156+
test/test_openapi_v1_envs_env_apps_app_id_clusters_cluster_name_namespaces_namespace_name_items_validate_post400_response.py
157+
test/test_openapi_v1_envs_env_releases_compare_get200_response.py
158+
test/test_organization_management_api.py
159+
test/test_release_dto.py
160+
test/test_release_management_api.py
161+
tox.ini

python/.openapi-generator/VERSION

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

python/.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.9"
5+
- "3.10"
6+
- "3.11"
7+
- "3.12"
8+
- "3.13"
9+
# uncomment the following if needed
10+
#- "3.13-dev" # 3.13 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=apollo_openapi

0 commit comments

Comments
 (0)