zrok2-build-debugging 22.0.2000008__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zrok2_build_debugging-22.0.2000008/PKG-INFO +27 -0
- zrok2_build_debugging-22.0.2000008/README.md +283 -0
- zrok2_build_debugging-22.0.2000008/pyproject.toml +3 -0
- zrok2_build_debugging-22.0.2000008/setup.cfg +37 -0
- zrok2_build_debugging-22.0.2000008/setup.py +64 -0
- zrok2_build_debugging-22.0.2000008/test/__init__.py +0 -0
- zrok2_build_debugging-22.0.2000008/test/test_access201_response.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_access_request.py +54 -0
- zrok2_build_debugging-22.0.2000008/test/test_access_summary.py +60 -0
- zrok2_build_debugging-22.0.2000008/test/test_accesses_list.py +63 -0
- zrok2_build_debugging-22.0.2000008/test/test_account_api.py +79 -0
- zrok2_build_debugging-22.0.2000008/test/test_add_frontend_grant_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_add_namespace_frontend_mapping_request.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_add_namespace_grant_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_add_organization_member_request.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_admin_api.py +199 -0
- zrok2_build_debugging-22.0.2000008/test/test_agent_api.py +85 -0
- zrok2_build_debugging-22.0.2000008/test/test_auth_user.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_change_password_request.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_client_version_check_request.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_configuration.py +56 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_frontend201_response.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_frontend_request.py +55 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_identity201_response.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_identity_request.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_namespace201_response.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_namespace_request.py +54 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_organization201_response.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_organization_request.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_create_share_name_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_delete_identity_request.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_disable_request.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_enable_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_enroll200_response.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_enroll_request.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_environment.py +63 -0
- zrok2_build_debugging-22.0.2000008/test/test_environment_and_resources.py +96 -0
- zrok2_build_debugging-22.0.2000008/test/test_environment_api.py +43 -0
- zrok2_build_debugging-22.0.2000008/test/test_environment_summary.py +60 -0
- zrok2_build_debugging-22.0.2000008/test/test_environments_list.py +63 -0
- zrok2_build_debugging-22.0.2000008/test/test_frontend.py +59 -0
- zrok2_build_debugging-22.0.2000008/test/test_get_sparklines200_response.py +62 -0
- zrok2_build_debugging-22.0.2000008/test/test_get_sparklines_request.py +57 -0
- zrok2_build_debugging-22.0.2000008/test/test_invite_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_invite_token_generate_request.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_frontend_namespace_mappings200_response_inner.py +54 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_frontends200_response_inner.py +58 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_memberships200_response.py +56 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_memberships200_response_memberships_inner.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_namespaces200_response_inner.py +56 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_organization_members200_response.py +55 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_organization_members200_response_members_inner.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_organizations200_response.py +55 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_organizations200_response_organizations_inner.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_list_share_namespaces200_response_inner.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_login_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_metadata_api.py +145 -0
- zrok2_build_debugging-22.0.2000008/test/test_metrics.py +59 -0
- zrok2_build_debugging-22.0.2000008/test/test_metrics_sample.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_name.py +56 -0
- zrok2_build_debugging-22.0.2000008/test/test_name_selection.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_overview.py +110 -0
- zrok2_build_debugging-22.0.2000008/test/test_overview_names_inner.py +56 -0
- zrok2_build_debugging-22.0.2000008/test/test_ping200_response.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_principal.py +55 -0
- zrok2_build_debugging-22.0.2000008/test/test_regenerate_account_token200_response.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_regenerate_account_token_request.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_register_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_access_request.py +60 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_share200_response.py +54 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_share_request.py +74 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_status200_response.py +82 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_status200_response_accesses_inner.py +62 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_status200_response_shares_inner.py +64 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_status200_response_shares_inner_failure.py +54 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_unaccess_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_remote_unshare_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_remove_namespace_frontend_mapping_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_remove_organization_member_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_reset_password_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_share.py +67 -0
- zrok2_build_debugging-22.0.2000008/test/test_share_api.py +103 -0
- zrok2_build_debugging-22.0.2000008/test/test_share_http_healthcheck200_response.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_share_http_healthcheck_request.py +56 -0
- zrok2_build_debugging-22.0.2000008/test/test_share_request.py +75 -0
- zrok2_build_debugging-22.0.2000008/test/test_share_response.py +54 -0
- zrok2_build_debugging-22.0.2000008/test/test_share_summary.py +62 -0
- zrok2_build_debugging-22.0.2000008/test/test_shares_list.py +65 -0
- zrok2_build_debugging-22.0.2000008/test/test_spark_data_sample.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_unaccess_request.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_unshare_request.py +52 -0
- zrok2_build_debugging-22.0.2000008/test/test_update_access_request.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_update_frontend_request.py +55 -0
- zrok2_build_debugging-22.0.2000008/test/test_update_namespace_request.py +55 -0
- zrok2_build_debugging-22.0.2000008/test/test_update_share_name_request.py +53 -0
- zrok2_build_debugging-22.0.2000008/test/test_update_share_request.py +57 -0
- zrok2_build_debugging-22.0.2000008/test/test_verify200_response.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_verify_request.py +51 -0
- zrok2_build_debugging-22.0.2000008/test/test_version_inventory200_response.py +51 -0
- zrok2_build_debugging-22.0.2000008/versioneer.py +2277 -0
- zrok2_build_debugging-22.0.2000008/zrok/__init__.py +4 -0
- zrok2_build_debugging-22.0.2000008/zrok/_version.py +21 -0
- zrok2_build_debugging-22.0.2000008/zrok/access.py +58 -0
- zrok2_build_debugging-22.0.2000008/zrok/decor.py +33 -0
- zrok2_build_debugging-22.0.2000008/zrok/dialer.py +10 -0
- zrok2_build_debugging-22.0.2000008/zrok/environment/__init__.py +1 -0
- zrok2_build_debugging-22.0.2000008/zrok/environment/dirs.py +32 -0
- zrok2_build_debugging-22.0.2000008/zrok/environment/root.py +182 -0
- zrok2_build_debugging-22.0.2000008/zrok/listener.py +29 -0
- zrok2_build_debugging-22.0.2000008/zrok/model.py +75 -0
- zrok2_build_debugging-22.0.2000008/zrok/overview.py +77 -0
- zrok2_build_debugging-22.0.2000008/zrok/proxy.py +203 -0
- zrok2_build_debugging-22.0.2000008/zrok/share.py +199 -0
- zrok2_build_debugging-22.0.2000008/zrok2_build_debugging.egg-info/PKG-INFO +27 -0
- zrok2_build_debugging-22.0.2000008/zrok2_build_debugging.egg-info/SOURCES.txt +428 -0
- zrok2_build_debugging-22.0.2000008/zrok2_build_debugging.egg-info/dependency_links.txt +1 -0
- zrok2_build_debugging-22.0.2000008/zrok2_build_debugging.egg-info/requires.txt +5 -0
- zrok2_build_debugging-22.0.2000008/zrok2_build_debugging.egg-info/top_level.txt +3 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/__init__.py +231 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api/__init__.py +10 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api/account_api.py +2261 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api/admin_api.py +7673 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api/agent_api.py +2547 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api/environment_api.py +589 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api/metadata_api.py +5614 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api/share_api.py +3321 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api_client.py +801 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/api_response.py +21 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/configuration.py +602 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/exceptions.py +216 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/__init__.py +103 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/access201_response.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/access_request.py +93 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/access_summary.py +105 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/accesses_list.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/add_frontend_grant_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/add_namespace_frontend_mapping_request.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/add_namespace_grant_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/add_organization_member_request.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/auth_user.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/change_password_request.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/client_version_check_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/configuration.py +97 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_frontend201_response.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_frontend_request.py +105 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_identity201_response.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_identity_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_namespace201_response.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_namespace_request.py +93 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_organization201_response.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_organization_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/create_share_name_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/delete_identity_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/disable_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/enable_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/enroll200_response.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/enroll_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/environment.py +111 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/environment_and_resources.py +111 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/environment_summary.py +105 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/environments_list.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/frontend.py +103 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/get_sparklines200_response.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/get_sparklines_request.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/invite_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/invite_token_generate_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_frontend_namespace_mappings200_response_inner.py +93 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_frontends200_response_inner.py +101 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_memberships200_response.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_memberships200_response_memberships_inner.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_namespaces200_response_inner.py +97 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_organization_members200_response.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_organization_members200_response_members_inner.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_organizations200_response.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_organizations200_response_organizations_inner.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/list_share_namespaces200_response_inner.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/login_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/metrics.py +101 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/metrics_sample.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/name.py +97 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/name_selection.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/overview.py +117 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/overview_names_inner.py +97 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/ping200_response.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/principal.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/regenerate_account_token200_response.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/regenerate_account_token_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/register_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_access_request.py +102 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_share200_response.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_share_request.py +141 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_status200_response.py +105 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_status200_response_accesses_inner.py +101 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_status200_response_shares_inner.py +105 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_status200_response_shares_inner_failure.py +93 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_unaccess_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remote_unshare_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remove_namespace_frontend_mapping_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/remove_organization_member_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/reset_password_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/share.py +115 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/share_http_healthcheck200_response.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/share_http_healthcheck_request.py +97 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/share_request.py +157 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/share_response.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/share_summary.py +105 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/shares_list.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/spark_data_sample.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/unaccess_request.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/unshare_request.py +89 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/update_access_request.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/update_frontend_request.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/update_namespace_request.py +95 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/update_share_name_request.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/update_share_request.py +91 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/verify200_response.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/verify_request.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/models/version_inventory200_response.py +87 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/py.typed +0 -0
- zrok2_build_debugging-22.0.2000008/zrok_api/rest.py +258 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: zrok2-build-debugging
|
|
3
|
+
Version: 22.0.2000008
|
|
4
|
+
Summary: zrok2
|
|
5
|
+
Home-page: https://github.com/openziti/zrok
|
|
6
|
+
Author: NetFoundry
|
|
7
|
+
Author-email: developers@openziti.org
|
|
8
|
+
License: Apache 2.0
|
|
9
|
+
Project-URL: Source, https://github.com/openziti/zrok
|
|
10
|
+
Project-URL: Tracker, https://github.com/openziti/zrok/issues
|
|
11
|
+
Project-URL: Discussion, https://openziti.discourse.group/
|
|
12
|
+
Keywords: zrok,zrok2
|
|
13
|
+
Requires-Python: >3.10.0
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: python_dateutil>=2.8.2
|
|
16
|
+
Requires-Dist: pydantic>=2
|
|
17
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
18
|
+
Requires-Dist: openziti>=1.0.0
|
|
19
|
+
Requires-Dist: urllib3>=2.1.0
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: keywords
|
|
22
|
+
Dynamic: requires-dist
|
|
23
|
+
Dynamic: requires-python
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
Geo-scale, next-generation peer-to-peer sharing platform built on top of OpenZiti.
|
|
27
|
+
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
# zrok
|
|
2
|
+
zrok client access
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: 2.0.0
|
|
7
|
+
- Package version: 1.0.0
|
|
8
|
+
- Generator version: 7.14.0
|
|
9
|
+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
|
+
|
|
11
|
+
## Requirements.
|
|
12
|
+
|
|
13
|
+
Python 3.9+
|
|
14
|
+
|
|
15
|
+
## Installation & Usage
|
|
16
|
+
### pip install
|
|
17
|
+
|
|
18
|
+
If the python package is hosted on a repository, you can install directly using:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
|
22
|
+
```
|
|
23
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
|
24
|
+
|
|
25
|
+
Then import the package:
|
|
26
|
+
```python
|
|
27
|
+
import zrok_api
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Setuptools
|
|
31
|
+
|
|
32
|
+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
python setup.py install --user
|
|
36
|
+
```
|
|
37
|
+
(or `sudo python setup.py install` to install the package for all users)
|
|
38
|
+
|
|
39
|
+
Then import the package:
|
|
40
|
+
```python
|
|
41
|
+
import zrok_api
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Tests
|
|
45
|
+
|
|
46
|
+
Execute `pytest` to run the tests.
|
|
47
|
+
|
|
48
|
+
## Getting Started
|
|
49
|
+
|
|
50
|
+
Please follow the [installation procedure](#installation--usage) and then run the following:
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
|
|
54
|
+
import zrok_api
|
|
55
|
+
from zrok_api.rest import ApiException
|
|
56
|
+
from pprint import pprint
|
|
57
|
+
|
|
58
|
+
# Defining the host is optional and defaults to /api/v2
|
|
59
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
60
|
+
configuration = zrok_api.Configuration(
|
|
61
|
+
host = "/api/v2"
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# The client must configure the authentication and authorization parameters
|
|
65
|
+
# in accordance with the API server security policy.
|
|
66
|
+
# Examples for each auth method are provided below, use the example that
|
|
67
|
+
# satisfies your auth use case.
|
|
68
|
+
|
|
69
|
+
# Configure API key authorization: key
|
|
70
|
+
configuration.api_key['key'] = os.environ["API_KEY"]
|
|
71
|
+
|
|
72
|
+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
73
|
+
# configuration.api_key_prefix['key'] = 'Bearer'
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
# Enter a context with an instance of the API client
|
|
77
|
+
with zrok_api.ApiClient(configuration) as api_client:
|
|
78
|
+
# Create an instance of the API class
|
|
79
|
+
api_instance = zrok_api.AccountApi(api_client)
|
|
80
|
+
body = zrok_api.ChangePasswordRequest() # ChangePasswordRequest | (optional)
|
|
81
|
+
|
|
82
|
+
try:
|
|
83
|
+
api_instance.change_password(body=body)
|
|
84
|
+
except ApiException as e:
|
|
85
|
+
print("Exception when calling AccountApi->change_password: %s\n" % e)
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Documentation for API Endpoints
|
|
90
|
+
|
|
91
|
+
All URIs are relative to */api/v2*
|
|
92
|
+
|
|
93
|
+
Class | Method | HTTP request | Description
|
|
94
|
+
------------ | ------------- | ------------- | -------------
|
|
95
|
+
*AccountApi* | [**change_password**](docs/AccountApi.md#change_password) | **POST** /changePassword |
|
|
96
|
+
*AccountApi* | [**invite**](docs/AccountApi.md#invite) | **POST** /invite |
|
|
97
|
+
*AccountApi* | [**login**](docs/AccountApi.md#login) | **POST** /login |
|
|
98
|
+
*AccountApi* | [**regenerate_account_token**](docs/AccountApi.md#regenerate_account_token) | **POST** /regenerateAccountToken |
|
|
99
|
+
*AccountApi* | [**register**](docs/AccountApi.md#register) | **POST** /register |
|
|
100
|
+
*AccountApi* | [**reset_password**](docs/AccountApi.md#reset_password) | **POST** /resetPassword |
|
|
101
|
+
*AccountApi* | [**reset_password_request**](docs/AccountApi.md#reset_password_request) | **POST** /resetPasswordRequest |
|
|
102
|
+
*AccountApi* | [**verify**](docs/AccountApi.md#verify) | **POST** /verify |
|
|
103
|
+
*AdminApi* | [**add_frontend_grant**](docs/AdminApi.md#add_frontend_grant) | **POST** /frontend/grant |
|
|
104
|
+
*AdminApi* | [**add_namespace_frontend_mapping**](docs/AdminApi.md#add_namespace_frontend_mapping) | **POST** /namespace/frontend/mapping |
|
|
105
|
+
*AdminApi* | [**add_namespace_grant**](docs/AdminApi.md#add_namespace_grant) | **POST** /namespace/grant |
|
|
106
|
+
*AdminApi* | [**add_organization_member**](docs/AdminApi.md#add_organization_member) | **POST** /organization/add |
|
|
107
|
+
*AdminApi* | [**create_account**](docs/AdminApi.md#create_account) | **POST** /account |
|
|
108
|
+
*AdminApi* | [**create_frontend**](docs/AdminApi.md#create_frontend) | **POST** /frontend |
|
|
109
|
+
*AdminApi* | [**create_identity**](docs/AdminApi.md#create_identity) | **POST** /identity |
|
|
110
|
+
*AdminApi* | [**create_namespace**](docs/AdminApi.md#create_namespace) | **POST** /namespace |
|
|
111
|
+
*AdminApi* | [**create_organization**](docs/AdminApi.md#create_organization) | **POST** /organization |
|
|
112
|
+
*AdminApi* | [**delete_account**](docs/AdminApi.md#delete_account) | **DELETE** /account |
|
|
113
|
+
*AdminApi* | [**delete_frontend**](docs/AdminApi.md#delete_frontend) | **DELETE** /frontend |
|
|
114
|
+
*AdminApi* | [**delete_frontend_grant**](docs/AdminApi.md#delete_frontend_grant) | **DELETE** /frontend/grant |
|
|
115
|
+
*AdminApi* | [**delete_identity**](docs/AdminApi.md#delete_identity) | **DELETE** /identity |
|
|
116
|
+
*AdminApi* | [**delete_namespace**](docs/AdminApi.md#delete_namespace) | **DELETE** /namespace |
|
|
117
|
+
*AdminApi* | [**delete_organization**](docs/AdminApi.md#delete_organization) | **DELETE** /organization |
|
|
118
|
+
*AdminApi* | [**grants**](docs/AdminApi.md#grants) | **POST** /grants |
|
|
119
|
+
*AdminApi* | [**invite_token_generate**](docs/AdminApi.md#invite_token_generate) | **POST** /invite/token/generate |
|
|
120
|
+
*AdminApi* | [**list_frontend_namespace_mappings**](docs/AdminApi.md#list_frontend_namespace_mappings) | **GET** /frontend/namespace/mapping/{frontendToken} |
|
|
121
|
+
*AdminApi* | [**list_frontends**](docs/AdminApi.md#list_frontends) | **GET** /frontends |
|
|
122
|
+
*AdminApi* | [**list_namespace_frontend_mappings**](docs/AdminApi.md#list_namespace_frontend_mappings) | **GET** /namespace/frontend/mapping/{namespaceToken} |
|
|
123
|
+
*AdminApi* | [**list_namespaces**](docs/AdminApi.md#list_namespaces) | **GET** /namespaces |
|
|
124
|
+
*AdminApi* | [**list_organization_members**](docs/AdminApi.md#list_organization_members) | **POST** /organization/list |
|
|
125
|
+
*AdminApi* | [**list_organizations**](docs/AdminApi.md#list_organizations) | **GET** /organizations |
|
|
126
|
+
*AdminApi* | [**remove_namespace_frontend_mapping**](docs/AdminApi.md#remove_namespace_frontend_mapping) | **DELETE** /namespace/frontend/mapping |
|
|
127
|
+
*AdminApi* | [**remove_namespace_grant**](docs/AdminApi.md#remove_namespace_grant) | **DELETE** /namespace/grant |
|
|
128
|
+
*AdminApi* | [**remove_organization_member**](docs/AdminApi.md#remove_organization_member) | **POST** /organization/remove |
|
|
129
|
+
*AdminApi* | [**update_frontend**](docs/AdminApi.md#update_frontend) | **PATCH** /frontend |
|
|
130
|
+
*AdminApi* | [**update_namespace**](docs/AdminApi.md#update_namespace) | **PATCH** /namespace |
|
|
131
|
+
*AgentApi* | [**enroll**](docs/AgentApi.md#enroll) | **POST** /agent/enroll |
|
|
132
|
+
*AgentApi* | [**ping**](docs/AgentApi.md#ping) | **POST** /agent/ping |
|
|
133
|
+
*AgentApi* | [**remote_access**](docs/AgentApi.md#remote_access) | **POST** /agent/access |
|
|
134
|
+
*AgentApi* | [**remote_share**](docs/AgentApi.md#remote_share) | **POST** /agent/share |
|
|
135
|
+
*AgentApi* | [**remote_status**](docs/AgentApi.md#remote_status) | **POST** /agent/status |
|
|
136
|
+
*AgentApi* | [**remote_unaccess**](docs/AgentApi.md#remote_unaccess) | **POST** /agent/unaccess |
|
|
137
|
+
*AgentApi* | [**remote_unshare**](docs/AgentApi.md#remote_unshare) | **POST** /agent/unshare |
|
|
138
|
+
*AgentApi* | [**share_http_healthcheck**](docs/AgentApi.md#share_http_healthcheck) | **POST** /agent/share/http-healthcheck |
|
|
139
|
+
*AgentApi* | [**unenroll**](docs/AgentApi.md#unenroll) | **POST** /agent/unenroll |
|
|
140
|
+
*EnvironmentApi* | [**disable**](docs/EnvironmentApi.md#disable) | **POST** /disable |
|
|
141
|
+
*EnvironmentApi* | [**enable**](docs/EnvironmentApi.md#enable) | **POST** /enable |
|
|
142
|
+
*MetadataApi* | [**client_version_check**](docs/MetadataApi.md#client_version_check) | **POST** /clientVersionCheck |
|
|
143
|
+
*MetadataApi* | [**configuration**](docs/MetadataApi.md#configuration) | **GET** /configuration |
|
|
144
|
+
*MetadataApi* | [**get_account_detail**](docs/MetadataApi.md#get_account_detail) | **GET** /detail/account |
|
|
145
|
+
*MetadataApi* | [**get_account_metrics**](docs/MetadataApi.md#get_account_metrics) | **GET** /metrics/account |
|
|
146
|
+
*MetadataApi* | [**get_environment_detail**](docs/MetadataApi.md#get_environment_detail) | **GET** /detail/environment/{envZId} |
|
|
147
|
+
*MetadataApi* | [**get_environment_metrics**](docs/MetadataApi.md#get_environment_metrics) | **GET** /metrics/environment/{envId} |
|
|
148
|
+
*MetadataApi* | [**get_frontend_detail**](docs/MetadataApi.md#get_frontend_detail) | **GET** /detail/frontend/{frontendId} |
|
|
149
|
+
*MetadataApi* | [**get_share_detail**](docs/MetadataApi.md#get_share_detail) | **GET** /detail/share/{shareToken} |
|
|
150
|
+
*MetadataApi* | [**get_share_metrics**](docs/MetadataApi.md#get_share_metrics) | **GET** /metrics/share/{shareToken} |
|
|
151
|
+
*MetadataApi* | [**get_sparklines**](docs/MetadataApi.md#get_sparklines) | **POST** /sparklines |
|
|
152
|
+
*MetadataApi* | [**list_accesses**](docs/MetadataApi.md#list_accesses) | **GET** /accesses |
|
|
153
|
+
*MetadataApi* | [**list_environments**](docs/MetadataApi.md#list_environments) | **GET** /environments |
|
|
154
|
+
*MetadataApi* | [**list_memberships**](docs/MetadataApi.md#list_memberships) | **GET** /memberships |
|
|
155
|
+
*MetadataApi* | [**list_org_members**](docs/MetadataApi.md#list_org_members) | **GET** /members/{organizationToken} |
|
|
156
|
+
*MetadataApi* | [**list_shares**](docs/MetadataApi.md#list_shares) | **GET** /shares |
|
|
157
|
+
*MetadataApi* | [**org_account_overview**](docs/MetadataApi.md#org_account_overview) | **GET** /overview/{organizationToken}/{accountEmail} |
|
|
158
|
+
*MetadataApi* | [**overview**](docs/MetadataApi.md#overview) | **GET** /overview |
|
|
159
|
+
*MetadataApi* | [**version**](docs/MetadataApi.md#version) | **GET** /version |
|
|
160
|
+
*MetadataApi* | [**version_inventory**](docs/MetadataApi.md#version_inventory) | **GET** /versions |
|
|
161
|
+
*ShareApi* | [**access**](docs/ShareApi.md#access) | **POST** /access |
|
|
162
|
+
*ShareApi* | [**create_share_name**](docs/ShareApi.md#create_share_name) | **POST** /share/name |
|
|
163
|
+
*ShareApi* | [**delete_share_name**](docs/ShareApi.md#delete_share_name) | **DELETE** /share/name |
|
|
164
|
+
*ShareApi* | [**list_all_names**](docs/ShareApi.md#list_all_names) | **GET** /share/names |
|
|
165
|
+
*ShareApi* | [**list_names_for_namespace**](docs/ShareApi.md#list_names_for_namespace) | **GET** /share/names/{namespaceToken} |
|
|
166
|
+
*ShareApi* | [**list_share_namespaces**](docs/ShareApi.md#list_share_namespaces) | **GET** /share/namespaces |
|
|
167
|
+
*ShareApi* | [**share**](docs/ShareApi.md#share) | **POST** /share |
|
|
168
|
+
*ShareApi* | [**unaccess**](docs/ShareApi.md#unaccess) | **DELETE** /unaccess |
|
|
169
|
+
*ShareApi* | [**unshare**](docs/ShareApi.md#unshare) | **DELETE** /unshare |
|
|
170
|
+
*ShareApi* | [**update_access**](docs/ShareApi.md#update_access) | **PATCH** /access |
|
|
171
|
+
*ShareApi* | [**update_share**](docs/ShareApi.md#update_share) | **PATCH** /share |
|
|
172
|
+
*ShareApi* | [**update_share_name**](docs/ShareApi.md#update_share_name) | **PATCH** /share/name |
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
## Documentation For Models
|
|
176
|
+
|
|
177
|
+
- [Access201Response](docs/Access201Response.md)
|
|
178
|
+
- [AccessRequest](docs/AccessRequest.md)
|
|
179
|
+
- [AccessSummary](docs/AccessSummary.md)
|
|
180
|
+
- [AccessesList](docs/AccessesList.md)
|
|
181
|
+
- [AddFrontendGrantRequest](docs/AddFrontendGrantRequest.md)
|
|
182
|
+
- [AddNamespaceFrontendMappingRequest](docs/AddNamespaceFrontendMappingRequest.md)
|
|
183
|
+
- [AddNamespaceGrantRequest](docs/AddNamespaceGrantRequest.md)
|
|
184
|
+
- [AddOrganizationMemberRequest](docs/AddOrganizationMemberRequest.md)
|
|
185
|
+
- [AuthUser](docs/AuthUser.md)
|
|
186
|
+
- [ChangePasswordRequest](docs/ChangePasswordRequest.md)
|
|
187
|
+
- [ClientVersionCheckRequest](docs/ClientVersionCheckRequest.md)
|
|
188
|
+
- [Configuration](docs/Configuration.md)
|
|
189
|
+
- [CreateFrontend201Response](docs/CreateFrontend201Response.md)
|
|
190
|
+
- [CreateFrontendRequest](docs/CreateFrontendRequest.md)
|
|
191
|
+
- [CreateIdentity201Response](docs/CreateIdentity201Response.md)
|
|
192
|
+
- [CreateIdentityRequest](docs/CreateIdentityRequest.md)
|
|
193
|
+
- [CreateNamespace201Response](docs/CreateNamespace201Response.md)
|
|
194
|
+
- [CreateNamespaceRequest](docs/CreateNamespaceRequest.md)
|
|
195
|
+
- [CreateOrganization201Response](docs/CreateOrganization201Response.md)
|
|
196
|
+
- [CreateOrganizationRequest](docs/CreateOrganizationRequest.md)
|
|
197
|
+
- [CreateShareNameRequest](docs/CreateShareNameRequest.md)
|
|
198
|
+
- [DeleteIdentityRequest](docs/DeleteIdentityRequest.md)
|
|
199
|
+
- [DisableRequest](docs/DisableRequest.md)
|
|
200
|
+
- [EnableRequest](docs/EnableRequest.md)
|
|
201
|
+
- [Enroll200Response](docs/Enroll200Response.md)
|
|
202
|
+
- [EnrollRequest](docs/EnrollRequest.md)
|
|
203
|
+
- [Environment](docs/Environment.md)
|
|
204
|
+
- [EnvironmentAndResources](docs/EnvironmentAndResources.md)
|
|
205
|
+
- [EnvironmentSummary](docs/EnvironmentSummary.md)
|
|
206
|
+
- [EnvironmentsList](docs/EnvironmentsList.md)
|
|
207
|
+
- [Frontend](docs/Frontend.md)
|
|
208
|
+
- [GetSparklines200Response](docs/GetSparklines200Response.md)
|
|
209
|
+
- [GetSparklinesRequest](docs/GetSparklinesRequest.md)
|
|
210
|
+
- [InviteRequest](docs/InviteRequest.md)
|
|
211
|
+
- [InviteTokenGenerateRequest](docs/InviteTokenGenerateRequest.md)
|
|
212
|
+
- [ListFrontendNamespaceMappings200ResponseInner](docs/ListFrontendNamespaceMappings200ResponseInner.md)
|
|
213
|
+
- [ListFrontends200ResponseInner](docs/ListFrontends200ResponseInner.md)
|
|
214
|
+
- [ListMemberships200Response](docs/ListMemberships200Response.md)
|
|
215
|
+
- [ListMemberships200ResponseMembershipsInner](docs/ListMemberships200ResponseMembershipsInner.md)
|
|
216
|
+
- [ListNamespaces200ResponseInner](docs/ListNamespaces200ResponseInner.md)
|
|
217
|
+
- [ListOrganizationMembers200Response](docs/ListOrganizationMembers200Response.md)
|
|
218
|
+
- [ListOrganizationMembers200ResponseMembersInner](docs/ListOrganizationMembers200ResponseMembersInner.md)
|
|
219
|
+
- [ListOrganizations200Response](docs/ListOrganizations200Response.md)
|
|
220
|
+
- [ListOrganizations200ResponseOrganizationsInner](docs/ListOrganizations200ResponseOrganizationsInner.md)
|
|
221
|
+
- [ListShareNamespaces200ResponseInner](docs/ListShareNamespaces200ResponseInner.md)
|
|
222
|
+
- [LoginRequest](docs/LoginRequest.md)
|
|
223
|
+
- [Metrics](docs/Metrics.md)
|
|
224
|
+
- [MetricsSample](docs/MetricsSample.md)
|
|
225
|
+
- [Name](docs/Name.md)
|
|
226
|
+
- [NameSelection](docs/NameSelection.md)
|
|
227
|
+
- [Overview](docs/Overview.md)
|
|
228
|
+
- [OverviewNamesInner](docs/OverviewNamesInner.md)
|
|
229
|
+
- [Ping200Response](docs/Ping200Response.md)
|
|
230
|
+
- [Principal](docs/Principal.md)
|
|
231
|
+
- [RegenerateAccountToken200Response](docs/RegenerateAccountToken200Response.md)
|
|
232
|
+
- [RegenerateAccountTokenRequest](docs/RegenerateAccountTokenRequest.md)
|
|
233
|
+
- [RegisterRequest](docs/RegisterRequest.md)
|
|
234
|
+
- [RemoteAccessRequest](docs/RemoteAccessRequest.md)
|
|
235
|
+
- [RemoteShare200Response](docs/RemoteShare200Response.md)
|
|
236
|
+
- [RemoteShareRequest](docs/RemoteShareRequest.md)
|
|
237
|
+
- [RemoteStatus200Response](docs/RemoteStatus200Response.md)
|
|
238
|
+
- [RemoteStatus200ResponseAccessesInner](docs/RemoteStatus200ResponseAccessesInner.md)
|
|
239
|
+
- [RemoteStatus200ResponseSharesInner](docs/RemoteStatus200ResponseSharesInner.md)
|
|
240
|
+
- [RemoteStatus200ResponseSharesInnerFailure](docs/RemoteStatus200ResponseSharesInnerFailure.md)
|
|
241
|
+
- [RemoteUnaccessRequest](docs/RemoteUnaccessRequest.md)
|
|
242
|
+
- [RemoteUnshareRequest](docs/RemoteUnshareRequest.md)
|
|
243
|
+
- [RemoveNamespaceFrontendMappingRequest](docs/RemoveNamespaceFrontendMappingRequest.md)
|
|
244
|
+
- [RemoveOrganizationMemberRequest](docs/RemoveOrganizationMemberRequest.md)
|
|
245
|
+
- [ResetPasswordRequest](docs/ResetPasswordRequest.md)
|
|
246
|
+
- [Share](docs/Share.md)
|
|
247
|
+
- [ShareHttpHealthcheck200Response](docs/ShareHttpHealthcheck200Response.md)
|
|
248
|
+
- [ShareHttpHealthcheckRequest](docs/ShareHttpHealthcheckRequest.md)
|
|
249
|
+
- [ShareRequest](docs/ShareRequest.md)
|
|
250
|
+
- [ShareResponse](docs/ShareResponse.md)
|
|
251
|
+
- [ShareSummary](docs/ShareSummary.md)
|
|
252
|
+
- [SharesList](docs/SharesList.md)
|
|
253
|
+
- [SparkDataSample](docs/SparkDataSample.md)
|
|
254
|
+
- [UnaccessRequest](docs/UnaccessRequest.md)
|
|
255
|
+
- [UnshareRequest](docs/UnshareRequest.md)
|
|
256
|
+
- [UpdateAccessRequest](docs/UpdateAccessRequest.md)
|
|
257
|
+
- [UpdateFrontendRequest](docs/UpdateFrontendRequest.md)
|
|
258
|
+
- [UpdateNamespaceRequest](docs/UpdateNamespaceRequest.md)
|
|
259
|
+
- [UpdateShareNameRequest](docs/UpdateShareNameRequest.md)
|
|
260
|
+
- [UpdateShareRequest](docs/UpdateShareRequest.md)
|
|
261
|
+
- [Verify200Response](docs/Verify200Response.md)
|
|
262
|
+
- [VerifyRequest](docs/VerifyRequest.md)
|
|
263
|
+
- [VersionInventory200Response](docs/VersionInventory200Response.md)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
<a id="documentation-for-authorization"></a>
|
|
267
|
+
## Documentation For Authorization
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
Authentication schemes defined for the API:
|
|
271
|
+
<a id="key"></a>
|
|
272
|
+
### key
|
|
273
|
+
|
|
274
|
+
- **Type**: API key
|
|
275
|
+
- **API key parameter name**: x-token
|
|
276
|
+
- **Location**: HTTP header
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
## Author
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[metadata]
|
|
2
|
+
author = NetFoundry
|
|
3
|
+
author_email = developers@openziti.org
|
|
4
|
+
description = zrok Python SDK
|
|
5
|
+
long_description = file: README.md
|
|
6
|
+
long_description_content_type = text/markdown
|
|
7
|
+
url = https://github.com/openziti/zrok
|
|
8
|
+
license = Apache 2.0
|
|
9
|
+
project_urls =
|
|
10
|
+
Source = https://github.com/openziti/zrok
|
|
11
|
+
Tracker = https://github.com/openziti/zrok/issues
|
|
12
|
+
Discussion = https://openziti.discourse.group/
|
|
13
|
+
|
|
14
|
+
[options]
|
|
15
|
+
package_dir =
|
|
16
|
+
= .
|
|
17
|
+
packages = find:
|
|
18
|
+
|
|
19
|
+
[options.packages.find]
|
|
20
|
+
where = .
|
|
21
|
+
|
|
22
|
+
[flake8]
|
|
23
|
+
exclude = zrok_api, build
|
|
24
|
+
max-line-length = 120
|
|
25
|
+
|
|
26
|
+
[versioneer]
|
|
27
|
+
VCS = git
|
|
28
|
+
style = pep440-pre
|
|
29
|
+
versionfile_source = zrok/_version.py
|
|
30
|
+
versionfile_build = zrok/_version.py
|
|
31
|
+
tag_prefix = v
|
|
32
|
+
parentdir_prefix = zrok-
|
|
33
|
+
|
|
34
|
+
[egg_info]
|
|
35
|
+
tag_build =
|
|
36
|
+
tag_date = 0
|
|
37
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from setuptools import setup, find_packages # noqa: H301
|
|
2
|
+
import os
|
|
3
|
+
import versioneer
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
import re
|
|
6
|
+
|
|
7
|
+
NAME = os.getenv('ZROK_PY_NAME', "zrok2")
|
|
8
|
+
VERSION = "2.0.0"
|
|
9
|
+
|
|
10
|
+
OVERRIDES = {
|
|
11
|
+
# Override specific packages with version constraints different from the generated requirements.txt
|
|
12
|
+
"openziti": "openziti >= 1.0.0",
|
|
13
|
+
# urllib3 2.1.0 introduced breaking changes that are implemented by openapi-generator 7.12.0
|
|
14
|
+
"urllib3": "urllib3 >= 2.1.0",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# Parse the generated requirements.txt
|
|
19
|
+
def parse_requirements(filename):
|
|
20
|
+
requirements = []
|
|
21
|
+
if not Path(filename).exists():
|
|
22
|
+
return requirements
|
|
23
|
+
|
|
24
|
+
with open(filename, 'r') as f:
|
|
25
|
+
for line in f:
|
|
26
|
+
line = line.strip()
|
|
27
|
+
if not line or line.startswith('#'):
|
|
28
|
+
continue
|
|
29
|
+
|
|
30
|
+
# Extract package name (everything before any version specifier)
|
|
31
|
+
package_name = re.split(r'[<>=~]', line)[0].strip()
|
|
32
|
+
|
|
33
|
+
# If we have an override for this package, skip it
|
|
34
|
+
if package_name in OVERRIDES:
|
|
35
|
+
continue
|
|
36
|
+
|
|
37
|
+
requirements.append(line)
|
|
38
|
+
|
|
39
|
+
return requirements
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# Combine requirements from requirements.txt and overrides
|
|
43
|
+
requirements_file = Path(__file__).parent / "requirements.txt"
|
|
44
|
+
REQUIRES = parse_requirements(requirements_file) + list(OVERRIDES.values())
|
|
45
|
+
|
|
46
|
+
setup(
|
|
47
|
+
name=NAME,
|
|
48
|
+
cmdclass=versioneer.get_cmdclass(dict()),
|
|
49
|
+
version=versioneer.get_version(),
|
|
50
|
+
description="zrok2",
|
|
51
|
+
author_email="",
|
|
52
|
+
url="",
|
|
53
|
+
keywords=["zrok", "zrok2"],
|
|
54
|
+
install_requires=REQUIRES,
|
|
55
|
+
python_requires='>3.10.0',
|
|
56
|
+
packages=find_packages(),
|
|
57
|
+
include_package_data=True,
|
|
58
|
+
package_data={
|
|
59
|
+
'': ['requirements.txt'], # Include the generated requirements.txt in the package
|
|
60
|
+
},
|
|
61
|
+
long_description="""\
|
|
62
|
+
Geo-scale, next-generation peer-to-peer sharing platform built on top of OpenZiti.
|
|
63
|
+
"""
|
|
64
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.access201_response import Access201Response
|
|
18
|
+
|
|
19
|
+
class TestAccess201Response(unittest.TestCase):
|
|
20
|
+
"""Access201Response unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> Access201Response:
|
|
29
|
+
"""Test Access201Response
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `Access201Response`
|
|
34
|
+
"""
|
|
35
|
+
model = Access201Response()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return Access201Response(
|
|
38
|
+
frontend_token = '',
|
|
39
|
+
backend_mode = ''
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return Access201Response(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testAccess201Response(self):
|
|
47
|
+
"""Test Access201Response"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.access_request import AccessRequest
|
|
18
|
+
|
|
19
|
+
class TestAccessRequest(unittest.TestCase):
|
|
20
|
+
"""AccessRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> AccessRequest:
|
|
29
|
+
"""Test AccessRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `AccessRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = AccessRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return AccessRequest(
|
|
38
|
+
env_zid = '',
|
|
39
|
+
share_token = '',
|
|
40
|
+
bind_address = '',
|
|
41
|
+
description = ''
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return AccessRequest(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testAccessRequest(self):
|
|
49
|
+
"""Test AccessRequest"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.access_summary import AccessSummary
|
|
18
|
+
|
|
19
|
+
class TestAccessSummary(unittest.TestCase):
|
|
20
|
+
"""AccessSummary unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> AccessSummary:
|
|
29
|
+
"""Test AccessSummary
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `AccessSummary`
|
|
34
|
+
"""
|
|
35
|
+
model = AccessSummary()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return AccessSummary(
|
|
38
|
+
id = 56,
|
|
39
|
+
frontend_token = '',
|
|
40
|
+
env_zid = '',
|
|
41
|
+
share_token = '',
|
|
42
|
+
backend_mode = '',
|
|
43
|
+
bind_address = '',
|
|
44
|
+
description = '',
|
|
45
|
+
limited = True,
|
|
46
|
+
created_at = 56,
|
|
47
|
+
updated_at = 56
|
|
48
|
+
)
|
|
49
|
+
else:
|
|
50
|
+
return AccessSummary(
|
|
51
|
+
)
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
def testAccessSummary(self):
|
|
55
|
+
"""Test AccessSummary"""
|
|
56
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
57
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
58
|
+
|
|
59
|
+
if __name__ == '__main__':
|
|
60
|
+
unittest.main()
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.accesses_list import AccessesList
|
|
18
|
+
|
|
19
|
+
class TestAccessesList(unittest.TestCase):
|
|
20
|
+
"""AccessesList unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> AccessesList:
|
|
29
|
+
"""Test AccessesList
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `AccessesList`
|
|
34
|
+
"""
|
|
35
|
+
model = AccessesList()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return AccessesList(
|
|
38
|
+
accesses = [
|
|
39
|
+
zrok_api.models.access_summary.accessSummary(
|
|
40
|
+
id = 56,
|
|
41
|
+
frontend_token = '',
|
|
42
|
+
env_zid = '',
|
|
43
|
+
share_token = '',
|
|
44
|
+
backend_mode = '',
|
|
45
|
+
bind_address = '',
|
|
46
|
+
description = '',
|
|
47
|
+
limited = True,
|
|
48
|
+
created_at = 56,
|
|
49
|
+
updated_at = 56, )
|
|
50
|
+
]
|
|
51
|
+
)
|
|
52
|
+
else:
|
|
53
|
+
return AccessesList(
|
|
54
|
+
)
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
def testAccessesList(self):
|
|
58
|
+
"""Test AccessesList"""
|
|
59
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
60
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
61
|
+
|
|
62
|
+
if __name__ == '__main__':
|
|
63
|
+
unittest.main()
|