From f48a49436e0fdd9c9350e9b794931e048ad3b047 Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Thu, 27 Feb 2025 13:54:03 -0500 Subject: [PATCH] regenerate Python api client --- sdk/python/examples/pastebin/README.md | 2 +- sdk/python/sdk/zrok/.gitattributes | 1 + sdk/python/sdk/zrok/.swagger-codegen-ignore | 9 + sdk/python/sdk/zrok/.swagger-codegen/VERSION | 2 +- sdk/python/sdk/zrok/.travis.yml | 13 - sdk/python/sdk/zrok/README.md | 274 -- sdk/python/sdk/zrok/__init__.py | 1 + sdk/python/sdk/zrok/docs/AccessBody.md | 12 - sdk/python/sdk/zrok/docs/AccessBody1.md | 11 - sdk/python/sdk/zrok/docs/AccountApi.md | 383 --- sdk/python/sdk/zrok/docs/AccountBody.md | 10 - sdk/python/sdk/zrok/docs/AdminApi.md | 720 ------ sdk/python/sdk/zrok/docs/AuthUser.md | 10 - .../sdk/zrok/docs/ChangePasswordBody.md | 11 - .../sdk/zrok/docs/ClientVersionCheckBody.md | 9 - sdk/python/sdk/zrok/docs/Configuration.md | 13 - sdk/python/sdk/zrok/docs/DisableBody.md | 9 - sdk/python/sdk/zrok/docs/EnableBody.md | 10 - sdk/python/sdk/zrok/docs/Environment.md | 16 - .../sdk/zrok/docs/EnvironmentAndResources.md | 11 - sdk/python/sdk/zrok/docs/EnvironmentApi.md | 110 - sdk/python/sdk/zrok/docs/Environments.md | 8 - sdk/python/sdk/zrok/docs/ErrorMessage.md | 8 - sdk/python/sdk/zrok/docs/Frontend.md | 17 - sdk/python/sdk/zrok/docs/FrontendBody.md | 12 - sdk/python/sdk/zrok/docs/FrontendBody1.md | 9 - sdk/python/sdk/zrok/docs/FrontendBody2.md | 11 - sdk/python/sdk/zrok/docs/Frontends.md | 8 - sdk/python/sdk/zrok/docs/GrantsBody.md | 9 - sdk/python/sdk/zrok/docs/IdentityBody.md | 9 - sdk/python/sdk/zrok/docs/InlineResponse200.md | 9 - .../sdk/zrok/docs/InlineResponse2001.md | 9 - .../sdk/zrok/docs/InlineResponse2002.md | 14 - .../sdk/zrok/docs/InlineResponse2003.md | 9 - .../zrok/docs/InlineResponse2003Members.md | 10 - .../sdk/zrok/docs/InlineResponse2004.md | 9 - .../zrok/docs/InlineResponse2004Members.md | 10 - .../docs/InlineResponse2004Organizations.md | 10 - .../sdk/zrok/docs/InlineResponse2005.md | 9 - .../docs/InlineResponse2005Memberships.md | 11 - .../docs/InlineResponse2005Organizations.md | 10 - .../sdk/zrok/docs/InlineResponse2006.md | 9 - .../docs/InlineResponse2006Memberships.md | 11 - .../sdk/zrok/docs/InlineResponse2007.md | 9 - sdk/python/sdk/zrok/docs/InlineResponse201.md | 9 - .../sdk/zrok/docs/InlineResponse2011.md | 10 - .../sdk/zrok/docs/InlineResponse2012.md | 9 - .../sdk/zrok/docs/InlineResponse2013.md | 10 - sdk/python/sdk/zrok/docs/InlineResponse400.md | 9 - sdk/python/sdk/zrok/docs/InviteBody.md | 10 - sdk/python/sdk/zrok/docs/LoginBody.md | 10 - sdk/python/sdk/zrok/docs/MetadataApi.md | 796 ------ sdk/python/sdk/zrok/docs/Metrics.md | 12 - sdk/python/sdk/zrok/docs/MetricsSample.md | 11 - .../sdk/zrok/docs/OrganizationAddBody.md | 11 - sdk/python/sdk/zrok/docs/OrganizationBody.md | 9 - sdk/python/sdk/zrok/docs/OrganizationBody1.md | 9 - .../sdk/zrok/docs/OrganizationListBody.md | 9 - .../sdk/zrok/docs/OrganizationRemoveBody.md | 10 - sdk/python/sdk/zrok/docs/Overview.md | 10 - sdk/python/sdk/zrok/docs/Principal.md | 13 - .../zrok/docs/RegenerateAccountTokenBody.md | 9 - .../sdk/zrok/docs/RegenerateTokenBody.md | 9 - sdk/python/sdk/zrok/docs/RegisterBody.md | 10 - sdk/python/sdk/zrok/docs/ResetPasswordBody.md | 10 - .../sdk/zrok/docs/ResetPasswordRequestBody.md | 9 - sdk/python/sdk/zrok/docs/Share.md | 20 - sdk/python/sdk/zrok/docs/ShareApi.md | 315 --- sdk/python/sdk/zrok/docs/ShareBody.md | 12 - sdk/python/sdk/zrok/docs/ShareRequest.md | 22 - sdk/python/sdk/zrok/docs/ShareResponse.md | 10 - sdk/python/sdk/zrok/docs/Shares.md | 8 - sdk/python/sdk/zrok/docs/SparkData.md | 8 - sdk/python/sdk/zrok/docs/SparkDataSample.md | 10 - sdk/python/sdk/zrok/docs/SparklinesBody.md | 11 - sdk/python/sdk/zrok/docs/TokenGenerateBody.md | 9 - sdk/python/sdk/zrok/docs/UnaccessBody.md | 11 - sdk/python/sdk/zrok/docs/UnshareBody.md | 11 - sdk/python/sdk/zrok/docs/VerifyBody.md | 9 - sdk/python/sdk/zrok/docs/Version.md | 8 - sdk/python/sdk/zrok/docs/VersionBody.md | 9 - sdk/python/sdk/zrok/docs/VersionCheckBody.md | 9 - sdk/python/sdk/zrok/setup.cfg | 33 + sdk/python/sdk/zrok/setup.py | 25 +- sdk/python/sdk/zrok/test-requirements.txt | 5 - sdk/python/sdk/zrok/test/__init__.py | 1 - sdk/python/sdk/zrok/test/test_access_body.py | 39 - sdk/python/sdk/zrok/test/test_access_body1.py | 39 - sdk/python/sdk/zrok/test/test_account_api.py | 81 - sdk/python/sdk/zrok/test/test_account_body.py | 39 - sdk/python/sdk/zrok/test/test_admin_api.py | 117 - sdk/python/sdk/zrok/test/test_auth_user.py | 39 - .../zrok/test/test_change_password_body.py | 39 - .../test/test_client_version_check_body.py | 39 - .../sdk/zrok/test/test_configuration.py | 39 - sdk/python/sdk/zrok/test/test_disable_body.py | 39 - sdk/python/sdk/zrok/test/test_enable_body.py | 39 - sdk/python/sdk/zrok/test/test_environment.py | 39 - .../test/test_environment_and_resources.py | 39 - .../sdk/zrok/test/test_environment_api.py | 45 - sdk/python/sdk/zrok/test/test_environments.py | 39 - .../sdk/zrok/test/test_error_message.py | 39 - sdk/python/sdk/zrok/test/test_frontend.py | 39 - .../sdk/zrok/test/test_frontend_body.py | 39 - .../sdk/zrok/test/test_frontend_body1.py | 39 - .../sdk/zrok/test/test_frontend_body2.py | 39 - sdk/python/sdk/zrok/test/test_frontends.py | 39 - sdk/python/sdk/zrok/test/test_grants_body.py | 39 - .../sdk/zrok/test/test_identity_body.py | 39 - .../sdk/zrok/test/test_inline_response200.py | 39 - .../sdk/zrok/test/test_inline_response2001.py | 39 - .../sdk/zrok/test/test_inline_response2002.py | 39 - .../sdk/zrok/test/test_inline_response2003.py | 39 - .../test/test_inline_response2003_members.py | 39 - .../sdk/zrok/test/test_inline_response2004.py | 39 - .../test/test_inline_response2004_members.py | 39 - .../test_inline_response2004_organizations.py | 39 - .../sdk/zrok/test/test_inline_response2005.py | 39 - .../test_inline_response2005_memberships.py | 39 - .../test_inline_response2005_organizations.py | 39 - .../sdk/zrok/test/test_inline_response2006.py | 39 - .../test_inline_response2006_memberships.py | 39 - .../sdk/zrok/test/test_inline_response2007.py | 39 - .../sdk/zrok/test/test_inline_response201.py | 39 - .../sdk/zrok/test/test_inline_response2011.py | 39 - .../sdk/zrok/test/test_inline_response2012.py | 39 - .../sdk/zrok/test/test_inline_response2013.py | 39 - .../sdk/zrok/test/test_inline_response400.py | 39 - sdk/python/sdk/zrok/test/test_invite_body.py | 39 - sdk/python/sdk/zrok/test/test_login_body.py | 39 - sdk/python/sdk/zrok/test/test_metadata_api.py | 117 - sdk/python/sdk/zrok/test/test_metrics.py | 39 - .../sdk/zrok/test/test_metrics_sample.py | 39 - .../zrok/test/test_organization_add_body.py | 39 - .../sdk/zrok/test/test_organization_body.py | 39 - .../sdk/zrok/test/test_organization_body1.py | 39 - .../zrok/test/test_organization_list_body.py | 39 - .../test/test_organization_remove_body.py | 39 - sdk/python/sdk/zrok/test/test_overview.py | 39 - sdk/python/sdk/zrok/test/test_principal.py | 39 - .../test_regenerate_account_token_body.py | 39 - .../zrok/test/test_regenerate_token_body.py | 39 - .../sdk/zrok/test/test_register_body.py | 39 - .../sdk/zrok/test/test_reset_password_body.py | 39 - .../test/test_reset_password_request_body.py | 39 - sdk/python/sdk/zrok/test/test_share.py | 39 - sdk/python/sdk/zrok/test/test_share_api.py | 63 - sdk/python/sdk/zrok/test/test_share_body.py | 39 - .../sdk/zrok/test/test_share_request.py | 39 - .../sdk/zrok/test/test_share_response.py | 39 - sdk/python/sdk/zrok/test/test_shares.py | 39 - sdk/python/sdk/zrok/test/test_spark_data.py | 39 - .../sdk/zrok/test/test_spark_data_sample.py | 39 - .../sdk/zrok/test/test_sparklines_body.py | 39 - .../sdk/zrok/test/test_token_generate_body.py | 39 - .../sdk/zrok/test/test_unaccess_body.py | 39 - sdk/python/sdk/zrok/test/test_unshare_body.py | 39 - sdk/python/sdk/zrok/test/test_verify_body.py | 39 - sdk/python/sdk/zrok/test/test_version.py | 39 - sdk/python/sdk/zrok/test/test_version_body.py | 39 - .../sdk/zrok/test/test_version_check_body.py | 39 - sdk/python/sdk/zrok/tox.ini | 10 - sdk/python/sdk/zrok/versioneer.py | 2277 +++++++++++++++++ sdk/python/sdk/zrok/zrok/__init__.py | 4 + sdk/python/sdk/zrok/zrok/_version.py | 683 +++++ sdk/python/sdk/zrok/zrok/access.py | 57 + sdk/python/sdk/zrok/zrok/decor.py | 33 + sdk/python/sdk/zrok/zrok/dialer.py | 10 + .../sdk/zrok/zrok/environment/__init__.py | 1 + sdk/python/sdk/zrok/zrok/environment/dirs.py | 32 + sdk/python/sdk/zrok/zrok/environment/root.py | 2 +- sdk/python/sdk/zrok/zrok/listener.py | 29 + sdk/python/sdk/zrok/zrok/model.py | 76 + sdk/python/sdk/zrok/zrok/overview.py | 78 + sdk/python/sdk/zrok/zrok/proxy.py | 203 ++ sdk/python/sdk/zrok/zrok/share.py | 122 + sdk/python/sdk/zrok/zrok_api/__init__.py | 73 +- .../sdk/zrok/zrok_api/api/account_api.py | 55 +- sdk/python/sdk/zrok/zrok_api/api/admin_api.py | 121 +- .../sdk/zrok/zrok_api/api/environment_api.py | 19 +- .../sdk/zrok/zrok_api/api/metadata_api.py | 121 +- sdk/python/sdk/zrok/zrok_api/api/share_api.py | 39 +- sdk/python/sdk/zrok/zrok_api/api_client.py | 33 +- sdk/python/sdk/zrok/zrok_api/configuration.py | 45 +- .../sdk/zrok/zrok_api/models/__init__.py | 72 +- .../zrok/zrok_api/models/access_request.py | 136 + ...ine_response2013.py => access_response.py} | 26 +- .../sdk/zrok/zrok_api/models/account_body.py | 2 +- .../sdk/zrok/zrok_api/models/auth_user.py | 19 +- sdk/python/sdk/zrok/zrok_api/models/body.py | 175 ++ .../models/{invite_body.py => body1.py} | 43 +- .../{inline_response2007.py => body10.py} | 55 +- sdk/python/sdk/zrok/zrok_api/models/body11.py | 175 ++ sdk/python/sdk/zrok/zrok_api/models/body12.py | 123 + sdk/python/sdk/zrok/zrok_api/models/body13.py | 123 + .../{token_generate_body.py => body14.py} | 35 +- sdk/python/sdk/zrok/zrok_api/models/body15.py | 123 + .../{inline_response2012.py => body16.py} | 35 +- sdk/python/sdk/zrok/zrok_api/models/body17.py | 175 ++ sdk/python/sdk/zrok/zrok_api/models/body18.py | 123 + sdk/python/sdk/zrok/zrok_api/models/body19.py | 149 ++ sdk/python/sdk/zrok/zrok_api/models/body2.py | 149 ++ sdk/python/sdk/zrok/zrok_api/models/body20.py | 149 ++ sdk/python/sdk/zrok/zrok_api/models/body21.py | 123 + ...client_version_check_body.py => body22.py} | 35 +- .../models/{sparklines_body.py => body23.py} | 51 +- .../models/{access_body.py => body24.py} | 59 +- .../models/{access_body1.py => body25.py} | 51 +- .../models/{share_body.py => body26.py} | 59 +- .../models/{unaccess_body.py => body27.py} | 51 +- .../models/{unshare_body.py => body28.py} | 51 +- sdk/python/sdk/zrok/zrok_api/models/body3.py | 123 + .../models/{register_body.py => body4.py} | 43 +- .../{reset_password_body.py => body5.py} | 43 +- sdk/python/sdk/zrok/zrok_api/models/body6.py | 123 + .../models/{verify_body.py => body7.py} | 35 +- sdk/python/sdk/zrok/zrok_api/models/body8.py | 149 ++ sdk/python/sdk/zrok/zrok_api/models/body9.py | 208 ++ ...ord_body.py => change_password_request.py} | 34 +- .../sdk/zrok/zrok_api/models/configuration.py | 19 +- ...end_body.py => create_frontend_request.py} | 42 +- .../models/create_frontend_response.py | 110 + ...nd_body1.py => delete_frontend_request.py} | 18 +- .../{disable_body.py => disable_request.py} | 18 +- .../{enable_body.py => enable_request.py} | 26 +- ...ine_response2011.py => enable_response.py} | 26 +- .../sdk/zrok/zrok_api/models/environment.py | 19 +- .../models/environment_and_resources.py | 19 +- .../sdk/zrok/zrok_api/models/environments.py | 17 +- .../sdk/zrok/zrok_api/models/error_message.py | 17 +- .../sdk/zrok/zrok_api/models/frontend.py | 19 +- .../sdk/zrok/zrok_api/models/frontends.py | 17 +- .../sdk/zrok/zrok_api/models/grants_body.py | 2 +- .../sdk/zrok/zrok_api/models/identity_body.py | 2 +- .../zrok_api/models/inline_response200.py | 177 +- .../zrok_api/models/inline_response2001.py | 36 +- ...bers.py => inline_response2001_members.py} | 26 +- .../zrok_api/models/inline_response2002.py | 166 +- ...y => inline_response2002_organizations.py} | 48 +- .../zrok_api/models/inline_response2003.py | 36 +- ....py => inline_response2003_memberships.py} | 56 +- .../zrok_api/models/inline_response2004.py | 110 - .../zrok_api/models/inline_response2005.py | 110 - .../zrok_api/models/inline_response201.py | 19 +- .../zrok/zrok_api/models/invite_request.py | 136 + .../models/invite_token_generate_request.py | 110 + .../{login_body.py => login_request.py} | 26 +- .../zrok/zrok_api/models/login_response.py | 84 + .../sdk/zrok/zrok_api/models/metrics.py | 19 +- .../zrok/zrok_api/models/metrics_sample.py | 19 +- .../zrok_api/models/organization_add_body.py | 32 +- .../zrok/zrok_api/models/organization_body.py | 2 +- .../zrok_api/models/organization_body1.py | 32 +- .../zrok_api/models/organization_list_body.py | 32 +- ...se2006.py => organization_members_body.py} | 44 +- .../models/organization_remove_body.py | 32 +- .../organizationremove_organizations.py | 136 + .../sdk/zrok/zrok_api/models/overview.py | 19 +- .../zrok_api/models/password_requirements.py | 214 ++ .../sdk/zrok/zrok_api/models/principal.py | 19 +- .../zrok/zrok_api/models/public_frontend.py | 240 ++ .../zrok_api/models/public_frontend_list.py | 84 + ...token_body.py => regenerate_token_body.py} | 18 +- .../zrok/zrok_api/models/register_request.py | 136 + .../zrok/zrok_api/models/register_response.py | 110 + .../zrok_api/models/reset_password_request.py | 136 + .../models/reset_password_request_body.py | 2 +- sdk/python/sdk/zrok/zrok_api/models/share.py | 19 +- .../sdk/zrok/zrok_api/models/share_request.py | 31 +- .../zrok/zrok_api/models/share_response.py | 19 +- sdk/python/sdk/zrok/zrok_api/models/shares.py | 17 +- .../sdk/zrok/zrok_api/models/spark_data.py | 17 +- .../zrok/zrok_api/models/spark_data_sample.py | 19 +- .../zrok/zrok_api/models/unaccess_request.py | 162 ++ .../zrok/zrok_api/models/unshare_request.py | 162 ++ ...nd_body2.py => update_frontend_request.py} | 34 +- .../zrok_api/models/update_share_request.py | 188 ++ .../zrok/zrok_api/models/verify_request.py | 110 + .../zrok/zrok_api/models/verify_response.py | 110 + .../sdk/zrok/zrok_api/models/version.py | 17 +- sdk/python/sdk/zrok/zrok_api/rest.py | 10 +- 281 files changed, 9800 insertions(+), 7770 deletions(-) create mode 100644 sdk/python/sdk/zrok/.gitattributes delete mode 100644 sdk/python/sdk/zrok/.travis.yml delete mode 100644 sdk/python/sdk/zrok/README.md create mode 100644 sdk/python/sdk/zrok/__init__.py delete mode 100644 sdk/python/sdk/zrok/docs/AccessBody.md delete mode 100644 sdk/python/sdk/zrok/docs/AccessBody1.md delete mode 100644 sdk/python/sdk/zrok/docs/AccountApi.md delete mode 100644 sdk/python/sdk/zrok/docs/AccountBody.md delete mode 100644 sdk/python/sdk/zrok/docs/AdminApi.md delete mode 100644 sdk/python/sdk/zrok/docs/AuthUser.md delete mode 100644 sdk/python/sdk/zrok/docs/ChangePasswordBody.md delete mode 100644 sdk/python/sdk/zrok/docs/ClientVersionCheckBody.md delete mode 100644 sdk/python/sdk/zrok/docs/Configuration.md delete mode 100644 sdk/python/sdk/zrok/docs/DisableBody.md delete mode 100644 sdk/python/sdk/zrok/docs/EnableBody.md delete mode 100644 sdk/python/sdk/zrok/docs/Environment.md delete mode 100644 sdk/python/sdk/zrok/docs/EnvironmentAndResources.md delete mode 100644 sdk/python/sdk/zrok/docs/EnvironmentApi.md delete mode 100644 sdk/python/sdk/zrok/docs/Environments.md delete mode 100644 sdk/python/sdk/zrok/docs/ErrorMessage.md delete mode 100644 sdk/python/sdk/zrok/docs/Frontend.md delete mode 100644 sdk/python/sdk/zrok/docs/FrontendBody.md delete mode 100644 sdk/python/sdk/zrok/docs/FrontendBody1.md delete mode 100644 sdk/python/sdk/zrok/docs/FrontendBody2.md delete mode 100644 sdk/python/sdk/zrok/docs/Frontends.md delete mode 100644 sdk/python/sdk/zrok/docs/GrantsBody.md delete mode 100644 sdk/python/sdk/zrok/docs/IdentityBody.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse200.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2001.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2002.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2003.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2003Members.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2004.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2004Members.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2004Organizations.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2005.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2005Memberships.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2005Organizations.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2006.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2006Memberships.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2007.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse201.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2011.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2012.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse2013.md delete mode 100644 sdk/python/sdk/zrok/docs/InlineResponse400.md delete mode 100644 sdk/python/sdk/zrok/docs/InviteBody.md delete mode 100644 sdk/python/sdk/zrok/docs/LoginBody.md delete mode 100644 sdk/python/sdk/zrok/docs/MetadataApi.md delete mode 100644 sdk/python/sdk/zrok/docs/Metrics.md delete mode 100644 sdk/python/sdk/zrok/docs/MetricsSample.md delete mode 100644 sdk/python/sdk/zrok/docs/OrganizationAddBody.md delete mode 100644 sdk/python/sdk/zrok/docs/OrganizationBody.md delete mode 100644 sdk/python/sdk/zrok/docs/OrganizationBody1.md delete mode 100644 sdk/python/sdk/zrok/docs/OrganizationListBody.md delete mode 100644 sdk/python/sdk/zrok/docs/OrganizationRemoveBody.md delete mode 100644 sdk/python/sdk/zrok/docs/Overview.md delete mode 100644 sdk/python/sdk/zrok/docs/Principal.md delete mode 100644 sdk/python/sdk/zrok/docs/RegenerateAccountTokenBody.md delete mode 100644 sdk/python/sdk/zrok/docs/RegenerateTokenBody.md delete mode 100644 sdk/python/sdk/zrok/docs/RegisterBody.md delete mode 100644 sdk/python/sdk/zrok/docs/ResetPasswordBody.md delete mode 100644 sdk/python/sdk/zrok/docs/ResetPasswordRequestBody.md delete mode 100644 sdk/python/sdk/zrok/docs/Share.md delete mode 100644 sdk/python/sdk/zrok/docs/ShareApi.md delete mode 100644 sdk/python/sdk/zrok/docs/ShareBody.md delete mode 100644 sdk/python/sdk/zrok/docs/ShareRequest.md delete mode 100644 sdk/python/sdk/zrok/docs/ShareResponse.md delete mode 100644 sdk/python/sdk/zrok/docs/Shares.md delete mode 100644 sdk/python/sdk/zrok/docs/SparkData.md delete mode 100644 sdk/python/sdk/zrok/docs/SparkDataSample.md delete mode 100644 sdk/python/sdk/zrok/docs/SparklinesBody.md delete mode 100644 sdk/python/sdk/zrok/docs/TokenGenerateBody.md delete mode 100644 sdk/python/sdk/zrok/docs/UnaccessBody.md delete mode 100644 sdk/python/sdk/zrok/docs/UnshareBody.md delete mode 100644 sdk/python/sdk/zrok/docs/VerifyBody.md delete mode 100644 sdk/python/sdk/zrok/docs/Version.md delete mode 100644 sdk/python/sdk/zrok/docs/VersionBody.md delete mode 100644 sdk/python/sdk/zrok/docs/VersionCheckBody.md create mode 100644 sdk/python/sdk/zrok/setup.cfg delete mode 100644 sdk/python/sdk/zrok/test-requirements.txt delete mode 100644 sdk/python/sdk/zrok/test/__init__.py delete mode 100644 sdk/python/sdk/zrok/test/test_access_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_access_body1.py delete mode 100644 sdk/python/sdk/zrok/test/test_account_api.py delete mode 100644 sdk/python/sdk/zrok/test/test_account_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_admin_api.py delete mode 100644 sdk/python/sdk/zrok/test/test_auth_user.py delete mode 100644 sdk/python/sdk/zrok/test/test_change_password_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_client_version_check_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_configuration.py delete mode 100644 sdk/python/sdk/zrok/test/test_disable_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_enable_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_environment.py delete mode 100644 sdk/python/sdk/zrok/test/test_environment_and_resources.py delete mode 100644 sdk/python/sdk/zrok/test/test_environment_api.py delete mode 100644 sdk/python/sdk/zrok/test/test_environments.py delete mode 100644 sdk/python/sdk/zrok/test/test_error_message.py delete mode 100644 sdk/python/sdk/zrok/test/test_frontend.py delete mode 100644 sdk/python/sdk/zrok/test/test_frontend_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_frontend_body1.py delete mode 100644 sdk/python/sdk/zrok/test/test_frontend_body2.py delete mode 100644 sdk/python/sdk/zrok/test/test_frontends.py delete mode 100644 sdk/python/sdk/zrok/test/test_grants_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_identity_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response200.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2001.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2002.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2003.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2003_members.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2004.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2004_members.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2004_organizations.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2005.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2005_memberships.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2005_organizations.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2006.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2006_memberships.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2007.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response201.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2011.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2012.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response2013.py delete mode 100644 sdk/python/sdk/zrok/test/test_inline_response400.py delete mode 100644 sdk/python/sdk/zrok/test/test_invite_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_login_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_metadata_api.py delete mode 100644 sdk/python/sdk/zrok/test/test_metrics.py delete mode 100644 sdk/python/sdk/zrok/test/test_metrics_sample.py delete mode 100644 sdk/python/sdk/zrok/test/test_organization_add_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_organization_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_organization_body1.py delete mode 100644 sdk/python/sdk/zrok/test/test_organization_list_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_organization_remove_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_overview.py delete mode 100644 sdk/python/sdk/zrok/test/test_principal.py delete mode 100644 sdk/python/sdk/zrok/test/test_regenerate_account_token_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_regenerate_token_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_register_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_reset_password_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_reset_password_request_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_share.py delete mode 100644 sdk/python/sdk/zrok/test/test_share_api.py delete mode 100644 sdk/python/sdk/zrok/test/test_share_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_share_request.py delete mode 100644 sdk/python/sdk/zrok/test/test_share_response.py delete mode 100644 sdk/python/sdk/zrok/test/test_shares.py delete mode 100644 sdk/python/sdk/zrok/test/test_spark_data.py delete mode 100644 sdk/python/sdk/zrok/test/test_spark_data_sample.py delete mode 100644 sdk/python/sdk/zrok/test/test_sparklines_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_token_generate_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_unaccess_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_unshare_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_verify_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_version.py delete mode 100644 sdk/python/sdk/zrok/test/test_version_body.py delete mode 100644 sdk/python/sdk/zrok/test/test_version_check_body.py delete mode 100644 sdk/python/sdk/zrok/tox.ini create mode 100644 sdk/python/sdk/zrok/versioneer.py create mode 100644 sdk/python/sdk/zrok/zrok/__init__.py create mode 100644 sdk/python/sdk/zrok/zrok/_version.py create mode 100644 sdk/python/sdk/zrok/zrok/access.py create mode 100644 sdk/python/sdk/zrok/zrok/decor.py create mode 100644 sdk/python/sdk/zrok/zrok/dialer.py create mode 100644 sdk/python/sdk/zrok/zrok/environment/__init__.py create mode 100644 sdk/python/sdk/zrok/zrok/environment/dirs.py create mode 100644 sdk/python/sdk/zrok/zrok/listener.py create mode 100644 sdk/python/sdk/zrok/zrok/model.py create mode 100644 sdk/python/sdk/zrok/zrok/overview.py create mode 100644 sdk/python/sdk/zrok/zrok/proxy.py create mode 100644 sdk/python/sdk/zrok/zrok/share.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/access_request.py rename sdk/python/sdk/zrok/zrok_api/models/{inline_response2013.py => access_response.py} (78%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body.py rename sdk/python/sdk/zrok/zrok_api/models/{invite_body.py => body1.py} (72%) rename sdk/python/sdk/zrok/zrok_api/models/{inline_response2007.py => body10.py} (63%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body11.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body12.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body13.py rename sdk/python/sdk/zrok/zrok_api/models/{token_generate_body.py => body14.py} (74%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body15.py rename sdk/python/sdk/zrok/zrok_api/models/{inline_response2012.py => body16.py} (76%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body17.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body18.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body19.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body2.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body20.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body21.py rename sdk/python/sdk/zrok/zrok_api/models/{client_version_check_body.py => body22.py} (74%) rename sdk/python/sdk/zrok/zrok_api/models/{sparklines_body.py => body23.py} (72%) rename sdk/python/sdk/zrok/zrok_api/models/{access_body.py => body24.py} (70%) rename sdk/python/sdk/zrok/zrok_api/models/{access_body1.py => body25.py} (72%) rename sdk/python/sdk/zrok/zrok_api/models/{share_body.py => body26.py} (74%) rename sdk/python/sdk/zrok/zrok_api/models/{unaccess_body.py => body27.py} (72%) rename sdk/python/sdk/zrok/zrok_api/models/{unshare_body.py => body28.py} (72%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body3.py rename sdk/python/sdk/zrok/zrok_api/models/{register_body.py => body4.py} (72%) rename sdk/python/sdk/zrok/zrok_api/models/{reset_password_body.py => body5.py} (73%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body6.py rename sdk/python/sdk/zrok/zrok_api/models/{verify_body.py => body7.py} (74%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body8.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/body9.py rename sdk/python/sdk/zrok/zrok_api/models/{change_password_body.py => change_password_request.py} (77%) rename sdk/python/sdk/zrok/zrok_api/models/{frontend_body.py => create_frontend_request.py} (74%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/create_frontend_response.py rename sdk/python/sdk/zrok/zrok_api/models/{frontend_body1.py => delete_frontend_request.py} (81%) rename sdk/python/sdk/zrok/zrok_api/models/{disable_body.py => disable_request.py} (83%) rename sdk/python/sdk/zrok/zrok_api/models/{enable_body.py => enable_request.py} (79%) rename sdk/python/sdk/zrok/zrok_api/models/{inline_response2011.py => enable_response.py} (79%) rename sdk/python/sdk/zrok/zrok_api/models/{inline_response2003_members.py => inline_response2001_members.py} (79%) rename sdk/python/sdk/zrok/zrok_api/models/{inline_response2004_organizations.py => inline_response2002_organizations.py} (66%) rename sdk/python/sdk/zrok/zrok_api/models/{inline_response2005_memberships.py => inline_response2003_memberships.py} (65%) delete mode 100644 sdk/python/sdk/zrok/zrok_api/models/inline_response2004.py delete mode 100644 sdk/python/sdk/zrok/zrok_api/models/inline_response2005.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/invite_request.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/invite_token_generate_request.py rename sdk/python/sdk/zrok/zrok_api/models/{login_body.py => login_request.py} (80%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/login_response.py rename sdk/python/sdk/zrok/zrok_api/models/{inline_response2006.py => organization_members_body.py} (69%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/organizationremove_organizations.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/password_requirements.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/public_frontend.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/public_frontend_list.py rename sdk/python/sdk/zrok/zrok_api/models/{regenerate_account_token_body.py => regenerate_token_body.py} (82%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/register_request.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/register_response.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/reset_password_request.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/unaccess_request.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/unshare_request.py rename sdk/python/sdk/zrok/zrok_api/models/{frontend_body2.py => update_frontend_request.py} (74%) create mode 100644 sdk/python/sdk/zrok/zrok_api/models/update_share_request.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/verify_request.py create mode 100644 sdk/python/sdk/zrok/zrok_api/models/verify_response.py diff --git a/sdk/python/examples/pastebin/README.md b/sdk/python/examples/pastebin/README.md index 18cbef8d..be016135 100644 --- a/sdk/python/examples/pastebin/README.md +++ b/sdk/python/examples/pastebin/README.md @@ -4,7 +4,7 @@ This example shows the use of the zrok SDK spinning up a simple pastebin command ## Self-hosting Setup :wrench: -You don't need this section if you're using hosted zrok from NetFoundry (https://api-v1.zrok.io/). +You don't need this section if you're using hosted zrok from NetFoundry (https://api.zrok.io/). Refer to the [setup guide](../../../docs/guides/self-hosting/self_hosting_guide.md) for details on setting up your zrok environment if you're self-hosting zrok. diff --git a/sdk/python/sdk/zrok/.gitattributes b/sdk/python/sdk/zrok/.gitattributes new file mode 100644 index 00000000..4abb03b2 --- /dev/null +++ b/sdk/python/sdk/zrok/.gitattributes @@ -0,0 +1 @@ +zrok/_version.py export-subst diff --git a/sdk/python/sdk/zrok/.swagger-codegen-ignore b/sdk/python/sdk/zrok/.swagger-codegen-ignore index c5fa491b..cbe3e7fe 100644 --- a/sdk/python/sdk/zrok/.swagger-codegen-ignore +++ b/sdk/python/sdk/zrok/.swagger-codegen-ignore @@ -21,3 +21,12 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md + +.travis.yml +git_push.sh +tox.ini +test-requirements.txt +test/ +docs/ +README.md +setup.py \ No newline at end of file diff --git a/sdk/python/sdk/zrok/.swagger-codegen/VERSION b/sdk/python/sdk/zrok/.swagger-codegen/VERSION index b262b4de..24ade4ad 100644 --- a/sdk/python/sdk/zrok/.swagger-codegen/VERSION +++ b/sdk/python/sdk/zrok/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.51 \ No newline at end of file +2.4.43 \ No newline at end of file diff --git a/sdk/python/sdk/zrok/.travis.yml b/sdk/python/sdk/zrok/.travis.yml deleted file mode 100644 index dd6c4450..00000000 --- a/sdk/python/sdk/zrok/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/sdk/python/sdk/zrok/README.md b/sdk/python/sdk/zrok/README.md deleted file mode 100644 index eabbfa8c..00000000 --- a/sdk/python/sdk/zrok/README.md +++ /dev/null @@ -1,274 +0,0 @@ -# zrok_sdk -zrok client access - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import zrok_api -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import zrok_api -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.ChangePasswordBody() # ChangePasswordBody | (optional) - -try: - api_instance.change_password(body=body) -except ApiException as e: - print("Exception when calling AccountApi->change_password: %s\n" % e) - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.InviteBody() # InviteBody | (optional) - -try: - api_instance.invite(body=body) -except ApiException as e: - print("Exception when calling AccountApi->invite: %s\n" % e) - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.LoginBody() # LoginBody | (optional) - -try: - api_response = api_instance.login(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountApi->login: %s\n" % e) - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.RegenerateAccountTokenBody() # RegenerateAccountTokenBody | (optional) - -try: - api_response = api_instance.regenerate_account_token(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountApi->regenerate_account_token: %s\n" % e) - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.RegisterBody() # RegisterBody | (optional) - -try: - api_response = api_instance.register(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountApi->register: %s\n" % e) - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.ResetPasswordBody() # ResetPasswordBody | (optional) - -try: - api_instance.reset_password(body=body) -except ApiException as e: - print("Exception when calling AccountApi->reset_password: %s\n" % e) - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.ResetPasswordRequestBody() # ResetPasswordRequestBody | (optional) - -try: - api_instance.reset_password_request(body=body) -except ApiException as e: - print("Exception when calling AccountApi->reset_password_request: %s\n" % e) - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.VerifyBody() # VerifyBody | (optional) - -try: - api_response = api_instance.verify(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountApi->verify: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to */api/v1* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AccountApi* | [**change_password**](docs/AccountApi.md#change_password) | **POST** /changePassword | -*AccountApi* | [**invite**](docs/AccountApi.md#invite) | **POST** /invite | -*AccountApi* | [**login**](docs/AccountApi.md#login) | **POST** /login | -*AccountApi* | [**regenerate_account_token**](docs/AccountApi.md#regenerate_account_token) | **POST** /regenerateAccountToken | -*AccountApi* | [**register**](docs/AccountApi.md#register) | **POST** /register | -*AccountApi* | [**reset_password**](docs/AccountApi.md#reset_password) | **POST** /resetPassword | -*AccountApi* | [**reset_password_request**](docs/AccountApi.md#reset_password_request) | **POST** /resetPasswordRequest | -*AccountApi* | [**verify**](docs/AccountApi.md#verify) | **POST** /verify | -*AdminApi* | [**add_organization_member**](docs/AdminApi.md#add_organization_member) | **POST** /organization/add | -*AdminApi* | [**create_account**](docs/AdminApi.md#create_account) | **POST** /account | -*AdminApi* | [**create_frontend**](docs/AdminApi.md#create_frontend) | **POST** /frontend | -*AdminApi* | [**create_identity**](docs/AdminApi.md#create_identity) | **POST** /identity | -*AdminApi* | [**create_organization**](docs/AdminApi.md#create_organization) | **POST** /organization | -*AdminApi* | [**delete_frontend**](docs/AdminApi.md#delete_frontend) | **DELETE** /frontend | -*AdminApi* | [**delete_organization**](docs/AdminApi.md#delete_organization) | **DELETE** /organization | -*AdminApi* | [**grants**](docs/AdminApi.md#grants) | **POST** /grants | -*AdminApi* | [**invite_token_generate**](docs/AdminApi.md#invite_token_generate) | **POST** /invite/token/generate | -*AdminApi* | [**list_frontends**](docs/AdminApi.md#list_frontends) | **GET** /frontends | -*AdminApi* | [**list_organization_members**](docs/AdminApi.md#list_organization_members) | **POST** /organization/list | -*AdminApi* | [**list_organizations**](docs/AdminApi.md#list_organizations) | **GET** /organizations | -*AdminApi* | [**remove_organization_member**](docs/AdminApi.md#remove_organization_member) | **POST** /organization/remove | -*AdminApi* | [**update_frontend**](docs/AdminApi.md#update_frontend) | **PATCH** /frontend | -*EnvironmentApi* | [**disable**](docs/EnvironmentApi.md#disable) | **POST** /disable | -*EnvironmentApi* | [**enable**](docs/EnvironmentApi.md#enable) | **POST** /enable | -*MetadataApi* | [**client_version_check**](docs/MetadataApi.md#client_version_check) | **POST** /clientVersionCheck | -*MetadataApi* | [**configuration**](docs/MetadataApi.md#configuration) | **GET** /configuration | -*MetadataApi* | [**get_account_detail**](docs/MetadataApi.md#get_account_detail) | **GET** /detail/account | -*MetadataApi* | [**get_account_metrics**](docs/MetadataApi.md#get_account_metrics) | **GET** /metrics/account | -*MetadataApi* | [**get_environment_detail**](docs/MetadataApi.md#get_environment_detail) | **GET** /detail/environment/{envZId} | -*MetadataApi* | [**get_environment_metrics**](docs/MetadataApi.md#get_environment_metrics) | **GET** /metrics/environment/{envId} | -*MetadataApi* | [**get_frontend_detail**](docs/MetadataApi.md#get_frontend_detail) | **GET** /detail/frontend/{frontendId} | -*MetadataApi* | [**get_share_detail**](docs/MetadataApi.md#get_share_detail) | **GET** /detail/share/{shareToken} | -*MetadataApi* | [**get_share_metrics**](docs/MetadataApi.md#get_share_metrics) | **GET** /metrics/share/{shareToken} | -*MetadataApi* | [**get_sparklines**](docs/MetadataApi.md#get_sparklines) | **POST** /sparklines | -*MetadataApi* | [**list_memberships**](docs/MetadataApi.md#list_memberships) | **GET** /memberships | -*MetadataApi* | [**list_org_members**](docs/MetadataApi.md#list_org_members) | **GET** /members/{organizationToken} | -*MetadataApi* | [**org_account_overview**](docs/MetadataApi.md#org_account_overview) | **GET** /overview/{organizationToken}/{accountEmail} | -*MetadataApi* | [**overview**](docs/MetadataApi.md#overview) | **GET** /overview | -*MetadataApi* | [**version**](docs/MetadataApi.md#version) | **GET** /version | -*MetadataApi* | [**version_inventory**](docs/MetadataApi.md#version_inventory) | **GET** /versions | -*ShareApi* | [**access**](docs/ShareApi.md#access) | **POST** /access | -*ShareApi* | [**share**](docs/ShareApi.md#share) | **POST** /share | -*ShareApi* | [**unaccess**](docs/ShareApi.md#unaccess) | **DELETE** /unaccess | -*ShareApi* | [**unshare**](docs/ShareApi.md#unshare) | **DELETE** /unshare | -*ShareApi* | [**update_access**](docs/ShareApi.md#update_access) | **PATCH** /access | -*ShareApi* | [**update_share**](docs/ShareApi.md#update_share) | **PATCH** /share | - -## Documentation For Models - - - [AccessBody](docs/AccessBody.md) - - [AccessBody1](docs/AccessBody1.md) - - [AccountBody](docs/AccountBody.md) - - [AuthUser](docs/AuthUser.md) - - [ChangePasswordBody](docs/ChangePasswordBody.md) - - [ClientVersionCheckBody](docs/ClientVersionCheckBody.md) - - [Configuration](docs/Configuration.md) - - [DisableBody](docs/DisableBody.md) - - [EnableBody](docs/EnableBody.md) - - [Environment](docs/Environment.md) - - [EnvironmentAndResources](docs/EnvironmentAndResources.md) - - [Environments](docs/Environments.md) - - [ErrorMessage](docs/ErrorMessage.md) - - [Frontend](docs/Frontend.md) - - [FrontendBody](docs/FrontendBody.md) - - [FrontendBody1](docs/FrontendBody1.md) - - [FrontendBody2](docs/FrontendBody2.md) - - [Frontends](docs/Frontends.md) - - [GrantsBody](docs/GrantsBody.md) - - [IdentityBody](docs/IdentityBody.md) - - [InlineResponse200](docs/InlineResponse200.md) - - [InlineResponse2001](docs/InlineResponse2001.md) - - [InlineResponse2002](docs/InlineResponse2002.md) - - [InlineResponse2003](docs/InlineResponse2003.md) - - [InlineResponse2003Members](docs/InlineResponse2003Members.md) - - [InlineResponse2004](docs/InlineResponse2004.md) - - [InlineResponse2004Organizations](docs/InlineResponse2004Organizations.md) - - [InlineResponse2005](docs/InlineResponse2005.md) - - [InlineResponse2005Memberships](docs/InlineResponse2005Memberships.md) - - [InlineResponse2006](docs/InlineResponse2006.md) - - [InlineResponse2007](docs/InlineResponse2007.md) - - [InlineResponse201](docs/InlineResponse201.md) - - [InlineResponse2011](docs/InlineResponse2011.md) - - [InlineResponse2012](docs/InlineResponse2012.md) - - [InlineResponse2013](docs/InlineResponse2013.md) - - [InviteBody](docs/InviteBody.md) - - [LoginBody](docs/LoginBody.md) - - [Metrics](docs/Metrics.md) - - [MetricsSample](docs/MetricsSample.md) - - [OrganizationAddBody](docs/OrganizationAddBody.md) - - [OrganizationBody](docs/OrganizationBody.md) - - [OrganizationBody1](docs/OrganizationBody1.md) - - [OrganizationListBody](docs/OrganizationListBody.md) - - [OrganizationRemoveBody](docs/OrganizationRemoveBody.md) - - [Overview](docs/Overview.md) - - [Principal](docs/Principal.md) - - [RegenerateAccountTokenBody](docs/RegenerateAccountTokenBody.md) - - [RegisterBody](docs/RegisterBody.md) - - [ResetPasswordBody](docs/ResetPasswordBody.md) - - [ResetPasswordRequestBody](docs/ResetPasswordRequestBody.md) - - [Share](docs/Share.md) - - [ShareBody](docs/ShareBody.md) - - [ShareRequest](docs/ShareRequest.md) - - [ShareResponse](docs/ShareResponse.md) - - [Shares](docs/Shares.md) - - [SparkData](docs/SparkData.md) - - [SparkDataSample](docs/SparkDataSample.md) - - [SparklinesBody](docs/SparklinesBody.md) - - [TokenGenerateBody](docs/TokenGenerateBody.md) - - [UnaccessBody](docs/UnaccessBody.md) - - [UnshareBody](docs/UnshareBody.md) - - [VerifyBody](docs/VerifyBody.md) - - [Version](docs/Version.md) - -## Documentation For Authorization - - -## key - -- **Type**: API key -- **API key parameter name**: x-token -- **Location**: HTTP header - - -## Author - - diff --git a/sdk/python/sdk/zrok/__init__.py b/sdk/python/sdk/zrok/__init__.py new file mode 100644 index 00000000..e6b36ad8 --- /dev/null +++ b/sdk/python/sdk/zrok/__init__.py @@ -0,0 +1 @@ +from . import environment # noqa diff --git a/sdk/python/sdk/zrok/docs/AccessBody.md b/sdk/python/sdk/zrok/docs/AccessBody.md deleted file mode 100644 index 86e3636b..00000000 --- a/sdk/python/sdk/zrok/docs/AccessBody.md +++ /dev/null @@ -1,12 +0,0 @@ -# AccessBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**env_zid** | **str** | | [optional] -**share_token** | **str** | | [optional] -**bind_address** | **str** | | [optional] -**description** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/AccessBody1.md b/sdk/python/sdk/zrok/docs/AccessBody1.md deleted file mode 100644 index 68968950..00000000 --- a/sdk/python/sdk/zrok/docs/AccessBody1.md +++ /dev/null @@ -1,11 +0,0 @@ -# AccessBody1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frontend_token** | **str** | | [optional] -**bind_address** | **str** | | [optional] -**description** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/AccountApi.md b/sdk/python/sdk/zrok/docs/AccountApi.md deleted file mode 100644 index 531caa12..00000000 --- a/sdk/python/sdk/zrok/docs/AccountApi.md +++ /dev/null @@ -1,383 +0,0 @@ -# zrok_api.AccountApi - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**change_password**](AccountApi.md#change_password) | **POST** /changePassword | -[**invite**](AccountApi.md#invite) | **POST** /invite | -[**login**](AccountApi.md#login) | **POST** /login | -[**regenerate_account_token**](AccountApi.md#regenerate_account_token) | **POST** /regenerateAccountToken | -[**register**](AccountApi.md#register) | **POST** /register | -[**reset_password**](AccountApi.md#reset_password) | **POST** /resetPassword | -[**reset_password_request**](AccountApi.md#reset_password_request) | **POST** /resetPasswordRequest | -[**verify**](AccountApi.md#verify) | **POST** /verify | - -# **change_password** -> change_password(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.ChangePasswordBody() # ChangePasswordBody | (optional) - -try: - api_instance.change_password(body=body) -except ApiException as e: - print("Exception when calling AccountApi->change_password: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**ChangePasswordBody**](ChangePasswordBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **invite** -> invite(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.AccountApi() -body = zrok_api.InviteBody() # InviteBody | (optional) - -try: - api_instance.invite(body=body) -except ApiException as e: - print("Exception when calling AccountApi->invite: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**InviteBody**](InviteBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **login** -> str login(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.AccountApi() -body = zrok_api.LoginBody() # LoginBody | (optional) - -try: - api_response = api_instance.login(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountApi->login: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**LoginBody**](LoginBody.md)| | [optional] - -### Return type - -**str** - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **regenerate_account_token** -> InlineResponse200 regenerate_account_token(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration)) -body = zrok_api.RegenerateAccountTokenBody() # RegenerateAccountTokenBody | (optional) - -try: - api_response = api_instance.regenerate_account_token(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountApi->regenerate_account_token: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**RegenerateAccountTokenBody**](RegenerateAccountTokenBody.md)| | [optional] - -### Return type - -[**InlineResponse200**](InlineResponse200.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **register** -> InlineResponse200 register(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.AccountApi() -body = zrok_api.RegisterBody() # RegisterBody | (optional) - -try: - api_response = api_instance.register(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountApi->register: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**RegisterBody**](RegisterBody.md)| | [optional] - -### Return type - -[**InlineResponse200**](InlineResponse200.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **reset_password** -> reset_password(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.AccountApi() -body = zrok_api.ResetPasswordBody() # ResetPasswordBody | (optional) - -try: - api_instance.reset_password(body=body) -except ApiException as e: - print("Exception when calling AccountApi->reset_password: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**ResetPasswordBody**](ResetPasswordBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **reset_password_request** -> reset_password_request(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.AccountApi() -body = zrok_api.ResetPasswordRequestBody() # ResetPasswordRequestBody | (optional) - -try: - api_instance.reset_password_request(body=body) -except ApiException as e: - print("Exception when calling AccountApi->reset_password_request: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**ResetPasswordRequestBody**](ResetPasswordRequestBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **verify** -> InlineResponse2001 verify(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.AccountApi() -body = zrok_api.VerifyBody() # VerifyBody | (optional) - -try: - api_response = api_instance.verify(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AccountApi->verify: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**VerifyBody**](VerifyBody.md)| | [optional] - -### Return type - -[**InlineResponse2001**](InlineResponse2001.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/AccountBody.md b/sdk/python/sdk/zrok/docs/AccountBody.md deleted file mode 100644 index 076efa50..00000000 --- a/sdk/python/sdk/zrok/docs/AccountBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# AccountBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | | [optional] -**password** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/AdminApi.md b/sdk/python/sdk/zrok/docs/AdminApi.md deleted file mode 100644 index 34977dd4..00000000 --- a/sdk/python/sdk/zrok/docs/AdminApi.md +++ /dev/null @@ -1,720 +0,0 @@ -# zrok_api.AdminApi - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_organization_member**](AdminApi.md#add_organization_member) | **POST** /organization/add | -[**create_account**](AdminApi.md#create_account) | **POST** /account | -[**create_frontend**](AdminApi.md#create_frontend) | **POST** /frontend | -[**create_identity**](AdminApi.md#create_identity) | **POST** /identity | -[**create_organization**](AdminApi.md#create_organization) | **POST** /organization | -[**delete_frontend**](AdminApi.md#delete_frontend) | **DELETE** /frontend | -[**delete_organization**](AdminApi.md#delete_organization) | **DELETE** /organization | -[**grants**](AdminApi.md#grants) | **POST** /grants | -[**invite_token_generate**](AdminApi.md#invite_token_generate) | **POST** /invite/token/generate | -[**list_frontends**](AdminApi.md#list_frontends) | **GET** /frontends | -[**list_organization_members**](AdminApi.md#list_organization_members) | **POST** /organization/list | -[**list_organizations**](AdminApi.md#list_organizations) | **GET** /organizations | -[**remove_organization_member**](AdminApi.md#remove_organization_member) | **POST** /organization/remove | -[**update_frontend**](AdminApi.md#update_frontend) | **PATCH** /frontend | - -# **add_organization_member** -> add_organization_member(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.OrganizationAddBody() # OrganizationAddBody | (optional) - -try: - api_instance.add_organization_member(body=body) -except ApiException as e: - print("Exception when calling AdminApi->add_organization_member: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**OrganizationAddBody**](OrganizationAddBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_account** -> InlineResponse200 create_account(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.AccountBody() # AccountBody | (optional) - -try: - api_response = api_instance.create_account(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdminApi->create_account: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**AccountBody**](AccountBody.md)| | [optional] - -### Return type - -[**InlineResponse200**](InlineResponse200.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_frontend** -> InlineResponse201 create_frontend(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.FrontendBody() # FrontendBody | (optional) - -try: - api_response = api_instance.create_frontend(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdminApi->create_frontend: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**FrontendBody**](FrontendBody.md)| | [optional] - -### Return type - -[**InlineResponse201**](InlineResponse201.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_identity** -> InlineResponse2011 create_identity(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.IdentityBody() # IdentityBody | (optional) - -try: - api_response = api_instance.create_identity(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdminApi->create_identity: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**IdentityBody**](IdentityBody.md)| | [optional] - -### Return type - -[**InlineResponse2011**](InlineResponse2011.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **create_organization** -> InlineResponse2012 create_organization(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.OrganizationBody() # OrganizationBody | (optional) - -try: - api_response = api_instance.create_organization(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdminApi->create_organization: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**OrganizationBody**](OrganizationBody.md)| | [optional] - -### Return type - -[**InlineResponse2012**](InlineResponse2012.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_frontend** -> delete_frontend(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.FrontendBody1() # FrontendBody1 | (optional) - -try: - api_instance.delete_frontend(body=body) -except ApiException as e: - print("Exception when calling AdminApi->delete_frontend: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**FrontendBody1**](FrontendBody1.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **delete_organization** -> delete_organization(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.OrganizationBody1() # OrganizationBody1 | (optional) - -try: - api_instance.delete_organization(body=body) -except ApiException as e: - print("Exception when calling AdminApi->delete_organization: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**OrganizationBody1**](OrganizationBody1.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **grants** -> grants(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.GrantsBody() # GrantsBody | (optional) - -try: - api_instance.grants(body=body) -except ApiException as e: - print("Exception when calling AdminApi->grants: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**GrantsBody**](GrantsBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **invite_token_generate** -> invite_token_generate(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.TokenGenerateBody() # TokenGenerateBody | (optional) - -try: - api_instance.invite_token_generate(body=body) -except ApiException as e: - print("Exception when calling AdminApi->invite_token_generate: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**TokenGenerateBody**](TokenGenerateBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_frontends** -> list[InlineResponse2002] list_frontends() - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) - -try: - api_response = api_instance.list_frontends() - pprint(api_response) -except ApiException as e: - print("Exception when calling AdminApi->list_frontends: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**list[InlineResponse2002]**](InlineResponse2002.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_organization_members** -> InlineResponse2003 list_organization_members(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.OrganizationListBody() # OrganizationListBody | (optional) - -try: - api_response = api_instance.list_organization_members(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdminApi->list_organization_members: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**OrganizationListBody**](OrganizationListBody.md)| | [optional] - -### Return type - -[**InlineResponse2003**](InlineResponse2003.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_organizations** -> InlineResponse2004 list_organizations() - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) - -try: - api_response = api_instance.list_organizations() - pprint(api_response) -except ApiException as e: - print("Exception when calling AdminApi->list_organizations: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**InlineResponse2004**](InlineResponse2004.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **remove_organization_member** -> remove_organization_member(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.OrganizationRemoveBody() # OrganizationRemoveBody | (optional) - -try: - api_instance.remove_organization_member(body=body) -except ApiException as e: - print("Exception when calling AdminApi->remove_organization_member: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**OrganizationRemoveBody**](OrganizationRemoveBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_frontend** -> update_frontend(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.AdminApi(zrok_api.ApiClient(configuration)) -body = zrok_api.FrontendBody2() # FrontendBody2 | (optional) - -try: - api_instance.update_frontend(body=body) -except ApiException as e: - print("Exception when calling AdminApi->update_frontend: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**FrontendBody2**](FrontendBody2.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/AuthUser.md b/sdk/python/sdk/zrok/docs/AuthUser.md deleted file mode 100644 index 2abe24ba..00000000 --- a/sdk/python/sdk/zrok/docs/AuthUser.md +++ /dev/null @@ -1,10 +0,0 @@ -# AuthUser - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**username** | **str** | | [optional] -**password** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ChangePasswordBody.md b/sdk/python/sdk/zrok/docs/ChangePasswordBody.md deleted file mode 100644 index 1137de72..00000000 --- a/sdk/python/sdk/zrok/docs/ChangePasswordBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# ChangePasswordBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | | [optional] -**old_password** | **str** | | [optional] -**new_password** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ClientVersionCheckBody.md b/sdk/python/sdk/zrok/docs/ClientVersionCheckBody.md deleted file mode 100644 index 4a36f24e..00000000 --- a/sdk/python/sdk/zrok/docs/ClientVersionCheckBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# ClientVersionCheckBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_version** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Configuration.md b/sdk/python/sdk/zrok/docs/Configuration.md deleted file mode 100644 index ee94f24b..00000000 --- a/sdk/python/sdk/zrok/docs/Configuration.md +++ /dev/null @@ -1,13 +0,0 @@ -# Configuration - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**version** | **str** | | [optional] -**tou_link** | **str** | | [optional] -**invites_open** | **bool** | | [optional] -**requires_invite_token** | **bool** | | [optional] -**invite_token_contact** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/DisableBody.md b/sdk/python/sdk/zrok/docs/DisableBody.md deleted file mode 100644 index f6ee65f2..00000000 --- a/sdk/python/sdk/zrok/docs/DisableBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# DisableBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**identity** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/EnableBody.md b/sdk/python/sdk/zrok/docs/EnableBody.md deleted file mode 100644 index 7ba7d7b3..00000000 --- a/sdk/python/sdk/zrok/docs/EnableBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# EnableBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | | [optional] -**host** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Environment.md b/sdk/python/sdk/zrok/docs/Environment.md deleted file mode 100644 index bd71fee9..00000000 --- a/sdk/python/sdk/zrok/docs/Environment.md +++ /dev/null @@ -1,16 +0,0 @@ -# Environment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | | [optional] -**host** | **str** | | [optional] -**address** | **str** | | [optional] -**z_id** | **str** | | [optional] -**activity** | [**SparkData**](SparkData.md) | | [optional] -**limited** | **bool** | | [optional] -**created_at** | **int** | | [optional] -**updated_at** | **int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/EnvironmentAndResources.md b/sdk/python/sdk/zrok/docs/EnvironmentAndResources.md deleted file mode 100644 index 7ed1a39a..00000000 --- a/sdk/python/sdk/zrok/docs/EnvironmentAndResources.md +++ /dev/null @@ -1,11 +0,0 @@ -# EnvironmentAndResources - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**environment** | [**Environment**](Environment.md) | | [optional] -**frontends** | [**Frontends**](Frontends.md) | | [optional] -**shares** | [**Shares**](Shares.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/EnvironmentApi.md b/sdk/python/sdk/zrok/docs/EnvironmentApi.md deleted file mode 100644 index f9e49447..00000000 --- a/sdk/python/sdk/zrok/docs/EnvironmentApi.md +++ /dev/null @@ -1,110 +0,0 @@ -# zrok_api.EnvironmentApi - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**disable**](EnvironmentApi.md#disable) | **POST** /disable | -[**enable**](EnvironmentApi.md#enable) | **POST** /enable | - -# **disable** -> disable(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.EnvironmentApi(zrok_api.ApiClient(configuration)) -body = zrok_api.DisableBody() # DisableBody | (optional) - -try: - api_instance.disable(body=body) -except ApiException as e: - print("Exception when calling EnvironmentApi->disable: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**DisableBody**](DisableBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **enable** -> InlineResponse2011 enable(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.EnvironmentApi(zrok_api.ApiClient(configuration)) -body = zrok_api.EnableBody() # EnableBody | (optional) - -try: - api_response = api_instance.enable(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling EnvironmentApi->enable: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**EnableBody**](EnableBody.md)| | [optional] - -### Return type - -[**InlineResponse2011**](InlineResponse2011.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Environments.md b/sdk/python/sdk/zrok/docs/Environments.md deleted file mode 100644 index 5cdc8b26..00000000 --- a/sdk/python/sdk/zrok/docs/Environments.md +++ /dev/null @@ -1,8 +0,0 @@ -# Environments - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ErrorMessage.md b/sdk/python/sdk/zrok/docs/ErrorMessage.md deleted file mode 100644 index 25d74334..00000000 --- a/sdk/python/sdk/zrok/docs/ErrorMessage.md +++ /dev/null @@ -1,8 +0,0 @@ -# ErrorMessage - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Frontend.md b/sdk/python/sdk/zrok/docs/Frontend.md deleted file mode 100644 index 428eb19d..00000000 --- a/sdk/python/sdk/zrok/docs/Frontend.md +++ /dev/null @@ -1,17 +0,0 @@ -# Frontend - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**frontend_token** | **str** | | [optional] -**share_token** | **str** | | [optional] -**backend_mode** | **str** | | [optional] -**bind_address** | **str** | | [optional] -**description** | **str** | | [optional] -**z_id** | **str** | | [optional] -**created_at** | **int** | | [optional] -**updated_at** | **int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/FrontendBody.md b/sdk/python/sdk/zrok/docs/FrontendBody.md deleted file mode 100644 index 5d0a3e37..00000000 --- a/sdk/python/sdk/zrok/docs/FrontendBody.md +++ /dev/null @@ -1,12 +0,0 @@ -# FrontendBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**z_id** | **str** | | [optional] -**url_template** | **str** | | [optional] -**public_name** | **str** | | [optional] -**permission_mode** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/FrontendBody1.md b/sdk/python/sdk/zrok/docs/FrontendBody1.md deleted file mode 100644 index 7bcd3be5..00000000 --- a/sdk/python/sdk/zrok/docs/FrontendBody1.md +++ /dev/null @@ -1,9 +0,0 @@ -# FrontendBody1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frontend_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/FrontendBody2.md b/sdk/python/sdk/zrok/docs/FrontendBody2.md deleted file mode 100644 index e459d152..00000000 --- a/sdk/python/sdk/zrok/docs/FrontendBody2.md +++ /dev/null @@ -1,11 +0,0 @@ -# FrontendBody2 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frontend_token** | **str** | | [optional] -**public_name** | **str** | | [optional] -**url_template** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Frontends.md b/sdk/python/sdk/zrok/docs/Frontends.md deleted file mode 100644 index c308436b..00000000 --- a/sdk/python/sdk/zrok/docs/Frontends.md +++ /dev/null @@ -1,8 +0,0 @@ -# Frontends - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/GrantsBody.md b/sdk/python/sdk/zrok/docs/GrantsBody.md deleted file mode 100644 index 1e744a53..00000000 --- a/sdk/python/sdk/zrok/docs/GrantsBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# GrantsBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/IdentityBody.md b/sdk/python/sdk/zrok/docs/IdentityBody.md deleted file mode 100644 index 39125ca5..00000000 --- a/sdk/python/sdk/zrok/docs/IdentityBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# IdentityBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse200.md b/sdk/python/sdk/zrok/docs/InlineResponse200.md deleted file mode 100644 index cc5f9b8b..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse200.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse200 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2001.md b/sdk/python/sdk/zrok/docs/InlineResponse2001.md deleted file mode 100644 index 820bf042..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2001.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse2001 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2002.md b/sdk/python/sdk/zrok/docs/InlineResponse2002.md deleted file mode 100644 index d50b57e3..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2002.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineResponse2002 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frontend_token** | **str** | | [optional] -**z_id** | **str** | | [optional] -**url_template** | **str** | | [optional] -**public_name** | **str** | | [optional] -**created_at** | **int** | | [optional] -**updated_at** | **int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2003.md b/sdk/python/sdk/zrok/docs/InlineResponse2003.md deleted file mode 100644 index 39488d9e..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2003.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse2003 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**members** | [**list[InlineResponse2003Members]**](InlineResponse2003Members.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2003Members.md b/sdk/python/sdk/zrok/docs/InlineResponse2003Members.md deleted file mode 100644 index ddc3c4dd..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2003Members.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2003Members - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | | [optional] -**admin** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2004.md b/sdk/python/sdk/zrok/docs/InlineResponse2004.md deleted file mode 100644 index 8c11d95d..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2004.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse2004 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organizations** | [**list[InlineResponse2004Organizations]**](InlineResponse2004Organizations.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2004Members.md b/sdk/python/sdk/zrok/docs/InlineResponse2004Members.md deleted file mode 100644 index 9a3ba443..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2004Members.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2004Members - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | | [optional] -**admin** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2004Organizations.md b/sdk/python/sdk/zrok/docs/InlineResponse2004Organizations.md deleted file mode 100644 index 053d9f98..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2004Organizations.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2004Organizations - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_token** | **str** | | [optional] -**description** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2005.md b/sdk/python/sdk/zrok/docs/InlineResponse2005.md deleted file mode 100644 index 8f539747..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2005.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse2005 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**memberships** | [**list[InlineResponse2005Memberships]**](InlineResponse2005Memberships.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2005Memberships.md b/sdk/python/sdk/zrok/docs/InlineResponse2005Memberships.md deleted file mode 100644 index 147189c3..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2005Memberships.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2005Memberships - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_token** | **str** | | [optional] -**description** | **str** | | [optional] -**admin** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2005Organizations.md b/sdk/python/sdk/zrok/docs/InlineResponse2005Organizations.md deleted file mode 100644 index 2f4ba151..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2005Organizations.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2005Organizations - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **str** | | [optional] -**description** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2006.md b/sdk/python/sdk/zrok/docs/InlineResponse2006.md deleted file mode 100644 index 7a03d61e..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2006.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse2006 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sparklines** | [**list[Metrics]**](Metrics.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2006Memberships.md b/sdk/python/sdk/zrok/docs/InlineResponse2006Memberships.md deleted file mode 100644 index 3c6e1efe..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2006Memberships.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineResponse2006Memberships - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_token** | **str** | | [optional] -**description** | **str** | | [optional] -**admin** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2007.md b/sdk/python/sdk/zrok/docs/InlineResponse2007.md deleted file mode 100644 index e0914fdd..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2007.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse2007 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**controller_version** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse201.md b/sdk/python/sdk/zrok/docs/InlineResponse201.md deleted file mode 100644 index bbe25b94..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse201.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse201 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frontend_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2011.md b/sdk/python/sdk/zrok/docs/InlineResponse2011.md deleted file mode 100644 index 8fd74494..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2011.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2011 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**identity** | **str** | | [optional] -**cfg** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2012.md b/sdk/python/sdk/zrok/docs/InlineResponse2012.md deleted file mode 100644 index a72f2065..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2012.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse2012 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse2013.md b/sdk/python/sdk/zrok/docs/InlineResponse2013.md deleted file mode 100644 index 98930cb2..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse2013.md +++ /dev/null @@ -1,10 +0,0 @@ -# InlineResponse2013 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frontend_token** | **str** | | [optional] -**backend_mode** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InlineResponse400.md b/sdk/python/sdk/zrok/docs/InlineResponse400.md deleted file mode 100644 index 29c731f6..00000000 --- a/sdk/python/sdk/zrok/docs/InlineResponse400.md +++ /dev/null @@ -1,9 +0,0 @@ -# InlineResponse400 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/InviteBody.md b/sdk/python/sdk/zrok/docs/InviteBody.md deleted file mode 100644 index 0fb2fcb0..00000000 --- a/sdk/python/sdk/zrok/docs/InviteBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# InviteBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | | [optional] -**invite_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/LoginBody.md b/sdk/python/sdk/zrok/docs/LoginBody.md deleted file mode 100644 index b877ebb8..00000000 --- a/sdk/python/sdk/zrok/docs/LoginBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# LoginBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **str** | | [optional] -**password** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/MetadataApi.md b/sdk/python/sdk/zrok/docs/MetadataApi.md deleted file mode 100644 index 4d205435..00000000 --- a/sdk/python/sdk/zrok/docs/MetadataApi.md +++ /dev/null @@ -1,796 +0,0 @@ -# zrok_api.MetadataApi - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**client_version_check**](MetadataApi.md#client_version_check) | **POST** /clientVersionCheck | -[**configuration**](MetadataApi.md#configuration) | **GET** /configuration | -[**get_account_detail**](MetadataApi.md#get_account_detail) | **GET** /detail/account | -[**get_account_metrics**](MetadataApi.md#get_account_metrics) | **GET** /metrics/account | -[**get_environment_detail**](MetadataApi.md#get_environment_detail) | **GET** /detail/environment/{envZId} | -[**get_environment_metrics**](MetadataApi.md#get_environment_metrics) | **GET** /metrics/environment/{envId} | -[**get_frontend_detail**](MetadataApi.md#get_frontend_detail) | **GET** /detail/frontend/{frontendId} | -[**get_share_detail**](MetadataApi.md#get_share_detail) | **GET** /detail/share/{shareToken} | -[**get_share_metrics**](MetadataApi.md#get_share_metrics) | **GET** /metrics/share/{shareToken} | -[**get_sparklines**](MetadataApi.md#get_sparklines) | **POST** /sparklines | -[**list_memberships**](MetadataApi.md#list_memberships) | **GET** /memberships | -[**list_org_members**](MetadataApi.md#list_org_members) | **GET** /members/{organizationToken} | -[**org_account_overview**](MetadataApi.md#org_account_overview) | **GET** /overview/{organizationToken}/{accountEmail} | -[**overview**](MetadataApi.md#overview) | **GET** /overview | -[**version**](MetadataApi.md#version) | **GET** /version | -[**version_inventory**](MetadataApi.md#version_inventory) | **GET** /versions | - -# **client_version_check** -> client_version_check(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.MetadataApi() -body = zrok_api.ClientVersionCheckBody() # ClientVersionCheckBody | (optional) - -try: - api_instance.client_version_check(body=body) -except ApiException as e: - print("Exception when calling MetadataApi->client_version_check: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**ClientVersionCheckBody**](ClientVersionCheckBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **configuration** -> Configuration configuration() - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.MetadataApi() - -try: - api_response = api_instance.configuration() - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->configuration: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**Configuration**](Configuration.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_account_detail** -> Environments get_account_detail() - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) - -try: - api_response = api_instance.get_account_detail() - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->get_account_detail: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**Environments**](Environments.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_account_metrics** -> Metrics get_account_metrics(duration=duration) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -duration = 'duration_example' # str | (optional) - -try: - api_response = api_instance.get_account_metrics(duration=duration) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->get_account_metrics: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **duration** | **str**| | [optional] - -### Return type - -[**Metrics**](Metrics.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_environment_detail** -> EnvironmentAndResources get_environment_detail(env_zid) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -env_zid = 'env_zid_example' # str | - -try: - api_response = api_instance.get_environment_detail(env_zid) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->get_environment_detail: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **env_zid** | **str**| | - -### Return type - -[**EnvironmentAndResources**](EnvironmentAndResources.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_environment_metrics** -> Metrics get_environment_metrics(env_id, duration=duration) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -env_id = 'env_id_example' # str | -duration = 'duration_example' # str | (optional) - -try: - api_response = api_instance.get_environment_metrics(env_id, duration=duration) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->get_environment_metrics: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **env_id** | **str**| | - **duration** | **str**| | [optional] - -### Return type - -[**Metrics**](Metrics.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_frontend_detail** -> Frontend get_frontend_detail(frontend_id) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -frontend_id = 56 # int | - -try: - api_response = api_instance.get_frontend_detail(frontend_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->get_frontend_detail: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **frontend_id** | **int**| | - -### Return type - -[**Frontend**](Frontend.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_share_detail** -> Share get_share_detail(share_token) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -share_token = 'share_token_example' # str | - -try: - api_response = api_instance.get_share_detail(share_token) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->get_share_detail: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **share_token** | **str**| | - -### Return type - -[**Share**](Share.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_share_metrics** -> Metrics get_share_metrics(share_token, duration=duration) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -share_token = 'share_token_example' # str | -duration = 'duration_example' # str | (optional) - -try: - api_response = api_instance.get_share_metrics(share_token, duration=duration) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->get_share_metrics: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **share_token** | **str**| | - **duration** | **str**| | [optional] - -### Return type - -[**Metrics**](Metrics.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **get_sparklines** -> InlineResponse2006 get_sparklines(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -body = zrok_api.SparklinesBody() # SparklinesBody | (optional) - -try: - api_response = api_instance.get_sparklines(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->get_sparklines: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**SparklinesBody**](SparklinesBody.md)| | [optional] - -### Return type - -[**InlineResponse2006**](InlineResponse2006.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_memberships** -> InlineResponse2005 list_memberships() - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) - -try: - api_response = api_instance.list_memberships() - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->list_memberships: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**InlineResponse2005**](InlineResponse2005.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **list_org_members** -> InlineResponse2003 list_org_members(organization_token) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -organization_token = 'organization_token_example' # str | - -try: - api_response = api_instance.list_org_members(organization_token) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->list_org_members: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization_token** | **str**| | - -### Return type - -[**InlineResponse2003**](InlineResponse2003.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **org_account_overview** -> Overview org_account_overview(organization_token, account_email) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) -organization_token = 'organization_token_example' # str | -account_email = 'account_email_example' # str | - -try: - api_response = api_instance.org_account_overview(organization_token, account_email) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->org_account_overview: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization_token** | **str**| | - **account_email** | **str**| | - -### Return type - -[**Overview**](Overview.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **overview** -> Overview overview() - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.MetadataApi(zrok_api.ApiClient(configuration)) - -try: - api_response = api_instance.overview() - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->overview: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**Overview**](Overview.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **version** -> Version version() - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.MetadataApi() - -try: - api_response = api_instance.version() - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->version: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**Version**](Version.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **version_inventory** -> InlineResponse2007 version_inventory() - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = zrok_api.MetadataApi() - -try: - api_response = api_instance.version_inventory() - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataApi->version_inventory: %s\n" % e) -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**InlineResponse2007**](InlineResponse2007.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Metrics.md b/sdk/python/sdk/zrok/docs/Metrics.md deleted file mode 100644 index 0be4994b..00000000 --- a/sdk/python/sdk/zrok/docs/Metrics.md +++ /dev/null @@ -1,12 +0,0 @@ -# Metrics - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**scope** | **str** | | [optional] -**id** | **str** | | [optional] -**period** | **float** | | [optional] -**samples** | [**list[MetricsSample]**](MetricsSample.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/MetricsSample.md b/sdk/python/sdk/zrok/docs/MetricsSample.md deleted file mode 100644 index 60863b05..00000000 --- a/sdk/python/sdk/zrok/docs/MetricsSample.md +++ /dev/null @@ -1,11 +0,0 @@ -# MetricsSample - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rx** | **float** | | [optional] -**tx** | **float** | | [optional] -**timestamp** | **float** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/OrganizationAddBody.md b/sdk/python/sdk/zrok/docs/OrganizationAddBody.md deleted file mode 100644 index 485613d0..00000000 --- a/sdk/python/sdk/zrok/docs/OrganizationAddBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# OrganizationAddBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_token** | **str** | | [optional] -**email** | **str** | | [optional] -**admin** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/OrganizationBody.md b/sdk/python/sdk/zrok/docs/OrganizationBody.md deleted file mode 100644 index 014b7e7a..00000000 --- a/sdk/python/sdk/zrok/docs/OrganizationBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrganizationBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/OrganizationBody1.md b/sdk/python/sdk/zrok/docs/OrganizationBody1.md deleted file mode 100644 index 2fbaf697..00000000 --- a/sdk/python/sdk/zrok/docs/OrganizationBody1.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrganizationBody1 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/OrganizationListBody.md b/sdk/python/sdk/zrok/docs/OrganizationListBody.md deleted file mode 100644 index 2ceb8a7d..00000000 --- a/sdk/python/sdk/zrok/docs/OrganizationListBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrganizationListBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/OrganizationRemoveBody.md b/sdk/python/sdk/zrok/docs/OrganizationRemoveBody.md deleted file mode 100644 index f61c0b93..00000000 --- a/sdk/python/sdk/zrok/docs/OrganizationRemoveBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# OrganizationRemoveBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization_token** | **str** | | [optional] -**email** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Overview.md b/sdk/python/sdk/zrok/docs/Overview.md deleted file mode 100644 index 4d477740..00000000 --- a/sdk/python/sdk/zrok/docs/Overview.md +++ /dev/null @@ -1,10 +0,0 @@ -# Overview - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_limited** | **bool** | | [optional] -**environments** | [**list[EnvironmentAndResources]**](EnvironmentAndResources.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Principal.md b/sdk/python/sdk/zrok/docs/Principal.md deleted file mode 100644 index c45a677a..00000000 --- a/sdk/python/sdk/zrok/docs/Principal.md +++ /dev/null @@ -1,13 +0,0 @@ -# Principal - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [optional] -**email** | **str** | | [optional] -**token** | **str** | | [optional] -**limitless** | **bool** | | [optional] -**admin** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/RegenerateAccountTokenBody.md b/sdk/python/sdk/zrok/docs/RegenerateAccountTokenBody.md deleted file mode 100644 index 930d7945..00000000 --- a/sdk/python/sdk/zrok/docs/RegenerateAccountTokenBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# RegenerateAccountTokenBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_address** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/RegenerateTokenBody.md b/sdk/python/sdk/zrok/docs/RegenerateTokenBody.md deleted file mode 100644 index 2c863aba..00000000 --- a/sdk/python/sdk/zrok/docs/RegenerateTokenBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# RegenerateTokenBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_address** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/RegisterBody.md b/sdk/python/sdk/zrok/docs/RegisterBody.md deleted file mode 100644 index 0adc3fc8..00000000 --- a/sdk/python/sdk/zrok/docs/RegisterBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# RegisterBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**register_token** | **str** | | [optional] -**password** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ResetPasswordBody.md b/sdk/python/sdk/zrok/docs/ResetPasswordBody.md deleted file mode 100644 index 9f74c6d6..00000000 --- a/sdk/python/sdk/zrok/docs/ResetPasswordBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# ResetPasswordBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reset_token** | **str** | | [optional] -**password** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ResetPasswordRequestBody.md b/sdk/python/sdk/zrok/docs/ResetPasswordRequestBody.md deleted file mode 100644 index a59834d9..00000000 --- a/sdk/python/sdk/zrok/docs/ResetPasswordRequestBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# ResetPasswordRequestBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_address** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Share.md b/sdk/python/sdk/zrok/docs/Share.md deleted file mode 100644 index 8a5d67ab..00000000 --- a/sdk/python/sdk/zrok/docs/Share.md +++ /dev/null @@ -1,20 +0,0 @@ -# Share - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**share_token** | **str** | | [optional] -**z_id** | **str** | | [optional] -**share_mode** | **str** | | [optional] -**backend_mode** | **str** | | [optional] -**frontend_selection** | **str** | | [optional] -**frontend_endpoint** | **str** | | [optional] -**backend_proxy_endpoint** | **str** | | [optional] -**reserved** | **bool** | | [optional] -**activity** | [**SparkData**](SparkData.md) | | [optional] -**limited** | **bool** | | [optional] -**created_at** | **int** | | [optional] -**updated_at** | **int** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ShareApi.md b/sdk/python/sdk/zrok/docs/ShareApi.md deleted file mode 100644 index 86a8b390..00000000 --- a/sdk/python/sdk/zrok/docs/ShareApi.md +++ /dev/null @@ -1,315 +0,0 @@ -# zrok_api.ShareApi - -All URIs are relative to */api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**access**](ShareApi.md#access) | **POST** /access | -[**share**](ShareApi.md#share) | **POST** /share | -[**unaccess**](ShareApi.md#unaccess) | **DELETE** /unaccess | -[**unshare**](ShareApi.md#unshare) | **DELETE** /unshare | -[**update_access**](ShareApi.md#update_access) | **PATCH** /access | -[**update_share**](ShareApi.md#update_share) | **PATCH** /share | - -# **access** -> InlineResponse2013 access(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.ShareApi(zrok_api.ApiClient(configuration)) -body = zrok_api.AccessBody() # AccessBody | (optional) - -try: - api_response = api_instance.access(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ShareApi->access: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**AccessBody**](AccessBody.md)| | [optional] - -### Return type - -[**InlineResponse2013**](InlineResponse2013.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **share** -> ShareResponse share(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.ShareApi(zrok_api.ApiClient(configuration)) -body = zrok_api.ShareRequest() # ShareRequest | (optional) - -try: - api_response = api_instance.share(body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ShareApi->share: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**ShareRequest**](ShareRequest.md)| | [optional] - -### Return type - -[**ShareResponse**](ShareResponse.md) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **unaccess** -> unaccess(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.ShareApi(zrok_api.ApiClient(configuration)) -body = zrok_api.UnaccessBody() # UnaccessBody | (optional) - -try: - api_instance.unaccess(body=body) -except ApiException as e: - print("Exception when calling ShareApi->unaccess: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**UnaccessBody**](UnaccessBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **unshare** -> unshare(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.ShareApi(zrok_api.ApiClient(configuration)) -body = zrok_api.UnshareBody() # UnshareBody | (optional) - -try: - api_instance.unshare(body=body) -except ApiException as e: - print("Exception when calling ShareApi->unshare: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**UnshareBody**](UnshareBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: application/zrok.v1+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_access** -> update_access(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.ShareApi(zrok_api.ApiClient(configuration)) -body = zrok_api.AccessBody1() # AccessBody1 | (optional) - -try: - api_instance.update_access(body=body) -except ApiException as e: - print("Exception when calling ShareApi->update_access: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**AccessBody1**](AccessBody1.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **update_share** -> update_share(body=body) - - - -### Example -```python -from __future__ import print_function -import time -import zrok_api -from zrok_api.rest import ApiException -from pprint import pprint - -# Configure API key authorization: key -configuration = zrok_api.Configuration() -configuration.api_key['x-token'] = 'YOUR_API_KEY' -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# configuration.api_key_prefix['x-token'] = 'Bearer' - -# create an instance of the API class -api_instance = zrok_api.ShareApi(zrok_api.ApiClient(configuration)) -body = zrok_api.ShareBody() # ShareBody | (optional) - -try: - api_instance.update_share(body=body) -except ApiException as e: - print("Exception when calling ShareApi->update_share: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**ShareBody**](ShareBody.md)| | [optional] - -### Return type - -void (empty response body) - -### Authorization - -[key](../README.md#key) - -### HTTP request headers - - - **Content-Type**: application/zrok.v1+json - - **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ShareBody.md b/sdk/python/sdk/zrok/docs/ShareBody.md deleted file mode 100644 index 4c01d818..00000000 --- a/sdk/python/sdk/zrok/docs/ShareBody.md +++ /dev/null @@ -1,12 +0,0 @@ -# ShareBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**share_token** | **str** | | [optional] -**backend_proxy_endpoint** | **str** | | [optional] -**add_access_grants** | **list[str]** | | [optional] -**remove_access_grants** | **list[str]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ShareRequest.md b/sdk/python/sdk/zrok/docs/ShareRequest.md deleted file mode 100644 index d1054fc7..00000000 --- a/sdk/python/sdk/zrok/docs/ShareRequest.md +++ /dev/null @@ -1,22 +0,0 @@ -# ShareRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**env_zid** | **str** | | [optional] -**share_mode** | **str** | | [optional] -**frontend_selection** | **list[str]** | | [optional] -**backend_mode** | **str** | | [optional] -**backend_proxy_endpoint** | **str** | | [optional] -**auth_scheme** | **str** | | [optional] -**auth_users** | [**list[AuthUser]**](AuthUser.md) | | [optional] -**oauth_provider** | **str** | | [optional] -**oauth_email_domains** | **list[str]** | | [optional] -**oauth_authorization_check_interval** | **str** | | [optional] -**reserved** | **bool** | | [optional] -**permission_mode** | **str** | | [optional] -**access_grants** | **list[str]** | | [optional] -**unique_name** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/ShareResponse.md b/sdk/python/sdk/zrok/docs/ShareResponse.md deleted file mode 100644 index f6d09e89..00000000 --- a/sdk/python/sdk/zrok/docs/ShareResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# ShareResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frontend_proxy_endpoints** | **list[str]** | | [optional] -**share_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Shares.md b/sdk/python/sdk/zrok/docs/Shares.md deleted file mode 100644 index 5e8cabd6..00000000 --- a/sdk/python/sdk/zrok/docs/Shares.md +++ /dev/null @@ -1,8 +0,0 @@ -# Shares - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/SparkData.md b/sdk/python/sdk/zrok/docs/SparkData.md deleted file mode 100644 index a0065208..00000000 --- a/sdk/python/sdk/zrok/docs/SparkData.md +++ /dev/null @@ -1,8 +0,0 @@ -# SparkData - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/SparkDataSample.md b/sdk/python/sdk/zrok/docs/SparkDataSample.md deleted file mode 100644 index 192675b6..00000000 --- a/sdk/python/sdk/zrok/docs/SparkDataSample.md +++ /dev/null @@ -1,10 +0,0 @@ -# SparkDataSample - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rx** | **float** | | [optional] -**tx** | **float** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/SparklinesBody.md b/sdk/python/sdk/zrok/docs/SparklinesBody.md deleted file mode 100644 index 94437504..00000000 --- a/sdk/python/sdk/zrok/docs/SparklinesBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# SparklinesBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account** | **bool** | | [optional] -**environments** | **list[str]** | | [optional] -**shares** | **list[str]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/TokenGenerateBody.md b/sdk/python/sdk/zrok/docs/TokenGenerateBody.md deleted file mode 100644 index 0622eb92..00000000 --- a/sdk/python/sdk/zrok/docs/TokenGenerateBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# TokenGenerateBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invite_tokens** | **list[str]** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/UnaccessBody.md b/sdk/python/sdk/zrok/docs/UnaccessBody.md deleted file mode 100644 index d3bcdfbe..00000000 --- a/sdk/python/sdk/zrok/docs/UnaccessBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# UnaccessBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**frontend_token** | **str** | | [optional] -**env_zid** | **str** | | [optional] -**share_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/UnshareBody.md b/sdk/python/sdk/zrok/docs/UnshareBody.md deleted file mode 100644 index ec7c4dd1..00000000 --- a/sdk/python/sdk/zrok/docs/UnshareBody.md +++ /dev/null @@ -1,11 +0,0 @@ -# UnshareBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**env_zid** | **str** | | [optional] -**share_token** | **str** | | [optional] -**reserved** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/VerifyBody.md b/sdk/python/sdk/zrok/docs/VerifyBody.md deleted file mode 100644 index 993e6a34..00000000 --- a/sdk/python/sdk/zrok/docs/VerifyBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# VerifyBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**register_token** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/Version.md b/sdk/python/sdk/zrok/docs/Version.md deleted file mode 100644 index 203ff4a1..00000000 --- a/sdk/python/sdk/zrok/docs/Version.md +++ /dev/null @@ -1,8 +0,0 @@ -# Version - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/VersionBody.md b/sdk/python/sdk/zrok/docs/VersionBody.md deleted file mode 100644 index 43f385ee..00000000 --- a/sdk/python/sdk/zrok/docs/VersionBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# VersionBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_version** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/docs/VersionCheckBody.md b/sdk/python/sdk/zrok/docs/VersionCheckBody.md deleted file mode 100644 index b00f7a3f..00000000 --- a/sdk/python/sdk/zrok/docs/VersionCheckBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# VersionCheckBody - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**client_version** | **str** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/sdk/python/sdk/zrok/setup.cfg b/sdk/python/sdk/zrok/setup.cfg new file mode 100644 index 00000000..2194d4d2 --- /dev/null +++ b/sdk/python/sdk/zrok/setup.cfg @@ -0,0 +1,33 @@ +[metadata] +name = openziti +author = OpenZiti Developers +author_email = developers@openziti.org +description = Ziti Python SDK +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/openziti/zrok +license = Apache 2.0 +project_urls = + Source = https://github.com/openziti/zrok + Tracker = https://github.com/openziti/zrok/issues + Discussion = https://openziti.discourse.group/ + +[options] +package_dir = + = . +packages = find: + +[options.packages.find] +where = . + +[flake8] +exclude = zrok_api, build +max-line-length = 120 + +[versioneer] +VCS = git +style = pep440-pre +versionfile_source = zrok/_version.py +versionfile_build = zrok/_version.py +tag_prefix = v +parentdir_prefix = zrok- diff --git a/sdk/python/sdk/zrok/setup.py b/sdk/python/sdk/zrok/setup.py index 3d0fc92b..801f64a3 100644 --- a/sdk/python/sdk/zrok/setup.py +++ b/sdk/python/sdk/zrok/setup.py @@ -1,18 +1,9 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - from setuptools import setup, find_packages # noqa: H301 +import os +import versioneer -NAME = "zrok_sdk" +# optionally upload to TestPyPi with alternative name in testing repo +NAME = os.getenv('ZROK_PY_NAME', "zrok") VERSION = "1.0.0" # To install the library, run the following # @@ -21,19 +12,21 @@ VERSION = "1.0.0" # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil", "openziti >= 0.8.1"] setup( name=NAME, - version=VERSION, + cmdclass=versioneer.get_cmdclass(dict()), + version=versioneer.get_version(), description="zrok", author_email="", url="", keywords=["Swagger", "zrok"], install_requires=REQUIRES, + python_requires='>3.10.0', packages=find_packages(), include_package_data=True, long_description="""\ - zrok client access # noqa: E501 + Geo-scale, next-generation peer-to-peer sharing platform built on top of OpenZiti. """ ) diff --git a/sdk/python/sdk/zrok/test-requirements.txt b/sdk/python/sdk/zrok/test-requirements.txt deleted file mode 100644 index 2702246c..00000000 --- a/sdk/python/sdk/zrok/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/sdk/python/sdk/zrok/test/__init__.py b/sdk/python/sdk/zrok/test/__init__.py deleted file mode 100644 index 576f56f8..00000000 --- a/sdk/python/sdk/zrok/test/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# coding: utf-8 \ No newline at end of file diff --git a/sdk/python/sdk/zrok/test/test_access_body.py b/sdk/python/sdk/zrok/test/test_access_body.py deleted file mode 100644 index 7e936247..00000000 --- a/sdk/python/sdk/zrok/test/test_access_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.access_body import AccessBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestAccessBody(unittest.TestCase): - """AccessBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAccessBody(self): - """Test AccessBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.access_body.AccessBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_access_body1.py b/sdk/python/sdk/zrok/test/test_access_body1.py deleted file mode 100644 index 53e78285..00000000 --- a/sdk/python/sdk/zrok/test/test_access_body1.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.access_body1 import AccessBody1 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestAccessBody1(unittest.TestCase): - """AccessBody1 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAccessBody1(self): - """Test AccessBody1""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.access_body1.AccessBody1() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_account_api.py b/sdk/python/sdk/zrok/test/test_account_api.py deleted file mode 100644 index 2a02a258..00000000 --- a/sdk/python/sdk/zrok/test/test_account_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.api.account_api import AccountApi # noqa: E501 -from zrok_api.rest import ApiException - - -class TestAccountApi(unittest.TestCase): - """AccountApi unit test stubs""" - - def setUp(self): - self.api = AccountApi() # noqa: E501 - - def tearDown(self): - pass - - def test_change_password(self): - """Test case for change_password - - """ - pass - - def test_invite(self): - """Test case for invite - - """ - pass - - def test_login(self): - """Test case for login - - """ - pass - - def test_regenerate_token(self): - """Test case for regenerate_token - - """ - pass - - def test_register(self): - """Test case for register - - """ - pass - - def test_reset_password(self): - """Test case for reset_password - - """ - pass - - def test_reset_password_request(self): - """Test case for reset_password_request - - """ - pass - - def test_verify(self): - """Test case for verify - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_account_body.py b/sdk/python/sdk/zrok/test/test_account_body.py deleted file mode 100644 index 56a6837a..00000000 --- a/sdk/python/sdk/zrok/test/test_account_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.account_body import AccountBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestAccountBody(unittest.TestCase): - """AccountBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAccountBody(self): - """Test AccountBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.account_body.AccountBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_admin_api.py b/sdk/python/sdk/zrok/test/test_admin_api.py deleted file mode 100644 index 5b9a30b4..00000000 --- a/sdk/python/sdk/zrok/test/test_admin_api.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.api.admin_api import AdminApi # noqa: E501 -from zrok_api.rest import ApiException - - -class TestAdminApi(unittest.TestCase): - """AdminApi unit test stubs""" - - def setUp(self): - self.api = AdminApi() # noqa: E501 - - def tearDown(self): - pass - - def test_add_organization_member(self): - """Test case for add_organization_member - - """ - pass - - def test_create_account(self): - """Test case for create_account - - """ - pass - - def test_create_frontend(self): - """Test case for create_frontend - - """ - pass - - def test_create_identity(self): - """Test case for create_identity - - """ - pass - - def test_create_organization(self): - """Test case for create_organization - - """ - pass - - def test_delete_frontend(self): - """Test case for delete_frontend - - """ - pass - - def test_delete_organization(self): - """Test case for delete_organization - - """ - pass - - def test_grants(self): - """Test case for grants - - """ - pass - - def test_invite_token_generate(self): - """Test case for invite_token_generate - - """ - pass - - def test_list_frontends(self): - """Test case for list_frontends - - """ - pass - - def test_list_organization_members(self): - """Test case for list_organization_members - - """ - pass - - def test_list_organizations(self): - """Test case for list_organizations - - """ - pass - - def test_remove_organization_member(self): - """Test case for remove_organization_member - - """ - pass - - def test_update_frontend(self): - """Test case for update_frontend - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_auth_user.py b/sdk/python/sdk/zrok/test/test_auth_user.py deleted file mode 100644 index 3e362a20..00000000 --- a/sdk/python/sdk/zrok/test/test_auth_user.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.auth_user import AuthUser # noqa: E501 -from zrok_api.rest import ApiException - - -class TestAuthUser(unittest.TestCase): - """AuthUser unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAuthUser(self): - """Test AuthUser""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.auth_user.AuthUser() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_change_password_body.py b/sdk/python/sdk/zrok/test/test_change_password_body.py deleted file mode 100644 index d1ebf600..00000000 --- a/sdk/python/sdk/zrok/test/test_change_password_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.change_password_body import ChangePasswordBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestChangePasswordBody(unittest.TestCase): - """ChangePasswordBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testChangePasswordBody(self): - """Test ChangePasswordBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.change_password_body.ChangePasswordBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_client_version_check_body.py b/sdk/python/sdk/zrok/test/test_client_version_check_body.py deleted file mode 100644 index 11fec3f4..00000000 --- a/sdk/python/sdk/zrok/test/test_client_version_check_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.client_version_check_body import ClientVersionCheckBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestClientVersionCheckBody(unittest.TestCase): - """ClientVersionCheckBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testClientVersionCheckBody(self): - """Test ClientVersionCheckBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.client_version_check_body.ClientVersionCheckBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_configuration.py b/sdk/python/sdk/zrok/test/test_configuration.py deleted file mode 100644 index 29ad044b..00000000 --- a/sdk/python/sdk/zrok/test/test_configuration.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.configuration import Configuration # noqa: E501 -from zrok_api.rest import ApiException - - -class TestConfiguration(unittest.TestCase): - """Configuration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConfiguration(self): - """Test Configuration""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.configuration.Configuration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_disable_body.py b/sdk/python/sdk/zrok/test/test_disable_body.py deleted file mode 100644 index ab342d59..00000000 --- a/sdk/python/sdk/zrok/test/test_disable_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.disable_body import DisableBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestDisableBody(unittest.TestCase): - """DisableBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDisableBody(self): - """Test DisableBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.disable_body.DisableBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_enable_body.py b/sdk/python/sdk/zrok/test/test_enable_body.py deleted file mode 100644 index d3eec4b3..00000000 --- a/sdk/python/sdk/zrok/test/test_enable_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.enable_body import EnableBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestEnableBody(unittest.TestCase): - """EnableBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEnableBody(self): - """Test EnableBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.enable_body.EnableBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_environment.py b/sdk/python/sdk/zrok/test/test_environment.py deleted file mode 100644 index 3a339b29..00000000 --- a/sdk/python/sdk/zrok/test/test_environment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.environment import Environment # noqa: E501 -from zrok_api.rest import ApiException - - -class TestEnvironment(unittest.TestCase): - """Environment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEnvironment(self): - """Test Environment""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.environment.Environment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_environment_and_resources.py b/sdk/python/sdk/zrok/test/test_environment_and_resources.py deleted file mode 100644 index ab4f4501..00000000 --- a/sdk/python/sdk/zrok/test/test_environment_and_resources.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.environment_and_resources import EnvironmentAndResources # noqa: E501 -from zrok_api.rest import ApiException - - -class TestEnvironmentAndResources(unittest.TestCase): - """EnvironmentAndResources unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEnvironmentAndResources(self): - """Test EnvironmentAndResources""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.environment_and_resources.EnvironmentAndResources() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_environment_api.py b/sdk/python/sdk/zrok/test/test_environment_api.py deleted file mode 100644 index c70480e6..00000000 --- a/sdk/python/sdk/zrok/test/test_environment_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.api.environment_api import EnvironmentApi # noqa: E501 -from zrok_api.rest import ApiException - - -class TestEnvironmentApi(unittest.TestCase): - """EnvironmentApi unit test stubs""" - - def setUp(self): - self.api = EnvironmentApi() # noqa: E501 - - def tearDown(self): - pass - - def test_disable(self): - """Test case for disable - - """ - pass - - def test_enable(self): - """Test case for enable - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_environments.py b/sdk/python/sdk/zrok/test/test_environments.py deleted file mode 100644 index 21972eca..00000000 --- a/sdk/python/sdk/zrok/test/test_environments.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.environments import Environments # noqa: E501 -from zrok_api.rest import ApiException - - -class TestEnvironments(unittest.TestCase): - """Environments unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEnvironments(self): - """Test Environments""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.environments.Environments() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_error_message.py b/sdk/python/sdk/zrok/test/test_error_message.py deleted file mode 100644 index db509710..00000000 --- a/sdk/python/sdk/zrok/test/test_error_message.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.error_message import ErrorMessage # noqa: E501 -from zrok_api.rest import ApiException - - -class TestErrorMessage(unittest.TestCase): - """ErrorMessage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorMessage(self): - """Test ErrorMessage""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.error_message.ErrorMessage() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_frontend.py b/sdk/python/sdk/zrok/test/test_frontend.py deleted file mode 100644 index 7b44e3ef..00000000 --- a/sdk/python/sdk/zrok/test/test_frontend.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.frontend import Frontend # noqa: E501 -from zrok_api.rest import ApiException - - -class TestFrontend(unittest.TestCase): - """Frontend unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFrontend(self): - """Test Frontend""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.frontend.Frontend() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_frontend_body.py b/sdk/python/sdk/zrok/test/test_frontend_body.py deleted file mode 100644 index 8519edbc..00000000 --- a/sdk/python/sdk/zrok/test/test_frontend_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.frontend_body import FrontendBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestFrontendBody(unittest.TestCase): - """FrontendBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFrontendBody(self): - """Test FrontendBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.frontend_body.FrontendBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_frontend_body1.py b/sdk/python/sdk/zrok/test/test_frontend_body1.py deleted file mode 100644 index 5a560aff..00000000 --- a/sdk/python/sdk/zrok/test/test_frontend_body1.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.frontend_body1 import FrontendBody1 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestFrontendBody1(unittest.TestCase): - """FrontendBody1 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFrontendBody1(self): - """Test FrontendBody1""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.frontend_body1.FrontendBody1() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_frontend_body2.py b/sdk/python/sdk/zrok/test/test_frontend_body2.py deleted file mode 100644 index c8b2016c..00000000 --- a/sdk/python/sdk/zrok/test/test_frontend_body2.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.frontend_body2 import FrontendBody2 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestFrontendBody2(unittest.TestCase): - """FrontendBody2 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFrontendBody2(self): - """Test FrontendBody2""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.frontend_body2.FrontendBody2() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_frontends.py b/sdk/python/sdk/zrok/test/test_frontends.py deleted file mode 100644 index cb96d34b..00000000 --- a/sdk/python/sdk/zrok/test/test_frontends.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.frontends import Frontends # noqa: E501 -from zrok_api.rest import ApiException - - -class TestFrontends(unittest.TestCase): - """Frontends unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFrontends(self): - """Test Frontends""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.frontends.Frontends() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_grants_body.py b/sdk/python/sdk/zrok/test/test_grants_body.py deleted file mode 100644 index 431fd27b..00000000 --- a/sdk/python/sdk/zrok/test/test_grants_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.grants_body import GrantsBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestGrantsBody(unittest.TestCase): - """GrantsBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGrantsBody(self): - """Test GrantsBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.grants_body.GrantsBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_identity_body.py b/sdk/python/sdk/zrok/test/test_identity_body.py deleted file mode 100644 index b3716d87..00000000 --- a/sdk/python/sdk/zrok/test/test_identity_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.identity_body import IdentityBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestIdentityBody(unittest.TestCase): - """IdentityBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdentityBody(self): - """Test IdentityBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.identity_body.IdentityBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response200.py b/sdk/python/sdk/zrok/test/test_inline_response200.py deleted file mode 100644 index a447716d..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response200.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response200 import InlineResponse200 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse200(unittest.TestCase): - """InlineResponse200 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse200(self): - """Test InlineResponse200""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response200.InlineResponse200() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2001.py b/sdk/python/sdk/zrok/test/test_inline_response2001.py deleted file mode 100644 index 73fc1356..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2001.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2001 import InlineResponse2001 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2001(unittest.TestCase): - """InlineResponse2001 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2001(self): - """Test InlineResponse2001""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2001.InlineResponse2001() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2002.py b/sdk/python/sdk/zrok/test/test_inline_response2002.py deleted file mode 100644 index 0230ae38..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2002.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2002 import InlineResponse2002 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2002(unittest.TestCase): - """InlineResponse2002 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2002(self): - """Test InlineResponse2002""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2002.InlineResponse2002() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2003.py b/sdk/python/sdk/zrok/test/test_inline_response2003.py deleted file mode 100644 index dc30845e..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2003.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2003 import InlineResponse2003 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2003(unittest.TestCase): - """InlineResponse2003 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2003(self): - """Test InlineResponse2003""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2003.InlineResponse2003() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2003_members.py b/sdk/python/sdk/zrok/test/test_inline_response2003_members.py deleted file mode 100644 index 1fd04fa1..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2003_members.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2003_members import InlineResponse2003Members # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2003Members(unittest.TestCase): - """InlineResponse2003Members unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2003Members(self): - """Test InlineResponse2003Members""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2003_members.InlineResponse2003Members() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2004.py b/sdk/python/sdk/zrok/test/test_inline_response2004.py deleted file mode 100644 index 264bc094..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2004.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2004 import InlineResponse2004 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2004(unittest.TestCase): - """InlineResponse2004 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004(self): - """Test InlineResponse2004""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2004.InlineResponse2004() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2004_members.py b/sdk/python/sdk/zrok/test/test_inline_response2004_members.py deleted file mode 100644 index 7376a0b9..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2004_members.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2004_members import InlineResponse2004Members # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2004Members(unittest.TestCase): - """InlineResponse2004Members unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004Members(self): - """Test InlineResponse2004Members""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2004_members.InlineResponse2004Members() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2004_organizations.py b/sdk/python/sdk/zrok/test/test_inline_response2004_organizations.py deleted file mode 100644 index 598471e6..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2004_organizations.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2004_organizations import InlineResponse2004Organizations # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2004Organizations(unittest.TestCase): - """InlineResponse2004Organizations unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2004Organizations(self): - """Test InlineResponse2004Organizations""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2004_organizations.InlineResponse2004Organizations() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2005.py b/sdk/python/sdk/zrok/test/test_inline_response2005.py deleted file mode 100644 index cf3b41ac..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2005.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2005 import InlineResponse2005 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2005(unittest.TestCase): - """InlineResponse2005 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2005(self): - """Test InlineResponse2005""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2005.InlineResponse2005() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2005_memberships.py b/sdk/python/sdk/zrok/test/test_inline_response2005_memberships.py deleted file mode 100644 index 230a6ac2..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2005_memberships.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2005Memberships(unittest.TestCase): - """InlineResponse2005Memberships unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2005Memberships(self): - """Test InlineResponse2005Memberships""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2005_memberships.InlineResponse2005Memberships() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2005_organizations.py b/sdk/python/sdk/zrok/test/test_inline_response2005_organizations.py deleted file mode 100644 index 6c3e995e..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2005_organizations.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2005_organizations import InlineResponse2005Organizations # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2005Organizations(unittest.TestCase): - """InlineResponse2005Organizations unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2005Organizations(self): - """Test InlineResponse2005Organizations""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2005_organizations.InlineResponse2005Organizations() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2006.py b/sdk/python/sdk/zrok/test/test_inline_response2006.py deleted file mode 100644 index fd19aa10..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2006.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2006 import InlineResponse2006 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2006(unittest.TestCase): - """InlineResponse2006 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2006(self): - """Test InlineResponse2006""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2006.InlineResponse2006() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2006_memberships.py b/sdk/python/sdk/zrok/test/test_inline_response2006_memberships.py deleted file mode 100644 index 1a779c3e..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2006_memberships.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2006_memberships import InlineResponse2006Memberships # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2006Memberships(unittest.TestCase): - """InlineResponse2006Memberships unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2006Memberships(self): - """Test InlineResponse2006Memberships""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2006_memberships.InlineResponse2006Memberships() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2007.py b/sdk/python/sdk/zrok/test/test_inline_response2007.py deleted file mode 100644 index 52ae67ba..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2007.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2007 import InlineResponse2007 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2007(unittest.TestCase): - """InlineResponse2007 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2007(self): - """Test InlineResponse2007""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2007.InlineResponse2007() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response201.py b/sdk/python/sdk/zrok/test/test_inline_response201.py deleted file mode 100644 index 3c719ebd..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response201.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response201 import InlineResponse201 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse201(unittest.TestCase): - """InlineResponse201 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse201(self): - """Test InlineResponse201""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response201.InlineResponse201() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2011.py b/sdk/python/sdk/zrok/test/test_inline_response2011.py deleted file mode 100644 index 3594d34c..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2011.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2011 import InlineResponse2011 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2011(unittest.TestCase): - """InlineResponse2011 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2011(self): - """Test InlineResponse2011""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2011.InlineResponse2011() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2012.py b/sdk/python/sdk/zrok/test/test_inline_response2012.py deleted file mode 100644 index cc69a570..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2012.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2012 import InlineResponse2012 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2012(unittest.TestCase): - """InlineResponse2012 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2012(self): - """Test InlineResponse2012""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2012.InlineResponse2012() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response2013.py b/sdk/python/sdk/zrok/test/test_inline_response2013.py deleted file mode 100644 index 3b028a6c..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response2013.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response2013 import InlineResponse2013 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse2013(unittest.TestCase): - """InlineResponse2013 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2013(self): - """Test InlineResponse2013""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response2013.InlineResponse2013() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_inline_response400.py b/sdk/python/sdk/zrok/test/test_inline_response400.py deleted file mode 100644 index 13e6f8c6..00000000 --- a/sdk/python/sdk/zrok/test/test_inline_response400.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.inline_response400 import InlineResponse400 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInlineResponse400(unittest.TestCase): - """InlineResponse400 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse400(self): - """Test InlineResponse400""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.inline_response400.InlineResponse400() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_invite_body.py b/sdk/python/sdk/zrok/test/test_invite_body.py deleted file mode 100644 index 8228bdc0..00000000 --- a/sdk/python/sdk/zrok/test/test_invite_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.invite_body import InviteBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestInviteBody(unittest.TestCase): - """InviteBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInviteBody(self): - """Test InviteBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.invite_body.InviteBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_login_body.py b/sdk/python/sdk/zrok/test/test_login_body.py deleted file mode 100644 index 3dd5df4d..00000000 --- a/sdk/python/sdk/zrok/test/test_login_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.login_body import LoginBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestLoginBody(unittest.TestCase): - """LoginBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLoginBody(self): - """Test LoginBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.login_body.LoginBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_metadata_api.py b/sdk/python/sdk/zrok/test/test_metadata_api.py deleted file mode 100644 index 4d75a9a4..00000000 --- a/sdk/python/sdk/zrok/test/test_metadata_api.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.api.metadata_api import MetadataApi # noqa: E501 -from zrok_api.rest import ApiException - - -class TestMetadataApi(unittest.TestCase): - """MetadataApi unit test stubs""" - - def setUp(self): - self.api = MetadataApi() # noqa: E501 - - def tearDown(self): - pass - - def test_configuration(self): - """Test case for configuration - - """ - pass - - def test_get_account_detail(self): - """Test case for get_account_detail - - """ - pass - - def test_get_account_metrics(self): - """Test case for get_account_metrics - - """ - pass - - def test_get_environment_detail(self): - """Test case for get_environment_detail - - """ - pass - - def test_get_environment_metrics(self): - """Test case for get_environment_metrics - - """ - pass - - def test_get_frontend_detail(self): - """Test case for get_frontend_detail - - """ - pass - - def test_get_share_detail(self): - """Test case for get_share_detail - - """ - pass - - def test_get_share_metrics(self): - """Test case for get_share_metrics - - """ - pass - - def test_get_sparklines(self): - """Test case for get_sparklines - - """ - pass - - def test_list_memberships(self): - """Test case for list_memberships - - """ - pass - - def test_list_org_members(self): - """Test case for list_org_members - - """ - pass - - def test_org_account_overview(self): - """Test case for org_account_overview - - """ - pass - - def test_overview(self): - """Test case for overview - - """ - pass - - def test_version(self): - """Test case for version - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_metrics.py b/sdk/python/sdk/zrok/test/test_metrics.py deleted file mode 100644 index 71ae9c2a..00000000 --- a/sdk/python/sdk/zrok/test/test_metrics.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.metrics import Metrics # noqa: E501 -from zrok_api.rest import ApiException - - -class TestMetrics(unittest.TestCase): - """Metrics unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMetrics(self): - """Test Metrics""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.metrics.Metrics() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_metrics_sample.py b/sdk/python/sdk/zrok/test/test_metrics_sample.py deleted file mode 100644 index 19e956f0..00000000 --- a/sdk/python/sdk/zrok/test/test_metrics_sample.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.metrics_sample import MetricsSample # noqa: E501 -from zrok_api.rest import ApiException - - -class TestMetricsSample(unittest.TestCase): - """MetricsSample unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMetricsSample(self): - """Test MetricsSample""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.metrics_sample.MetricsSample() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_organization_add_body.py b/sdk/python/sdk/zrok/test/test_organization_add_body.py deleted file mode 100644 index 13274497..00000000 --- a/sdk/python/sdk/zrok/test/test_organization_add_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.organization_add_body import OrganizationAddBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestOrganizationAddBody(unittest.TestCase): - """OrganizationAddBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationAddBody(self): - """Test OrganizationAddBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.organization_add_body.OrganizationAddBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_organization_body.py b/sdk/python/sdk/zrok/test/test_organization_body.py deleted file mode 100644 index 05e57436..00000000 --- a/sdk/python/sdk/zrok/test/test_organization_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.organization_body import OrganizationBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestOrganizationBody(unittest.TestCase): - """OrganizationBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationBody(self): - """Test OrganizationBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.organization_body.OrganizationBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_organization_body1.py b/sdk/python/sdk/zrok/test/test_organization_body1.py deleted file mode 100644 index 930378cb..00000000 --- a/sdk/python/sdk/zrok/test/test_organization_body1.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.organization_body1 import OrganizationBody1 # noqa: E501 -from zrok_api.rest import ApiException - - -class TestOrganizationBody1(unittest.TestCase): - """OrganizationBody1 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationBody1(self): - """Test OrganizationBody1""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.organization_body1.OrganizationBody1() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_organization_list_body.py b/sdk/python/sdk/zrok/test/test_organization_list_body.py deleted file mode 100644 index b43c57e4..00000000 --- a/sdk/python/sdk/zrok/test/test_organization_list_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.organization_list_body import OrganizationListBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestOrganizationListBody(unittest.TestCase): - """OrganizationListBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationListBody(self): - """Test OrganizationListBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.organization_list_body.OrganizationListBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_organization_remove_body.py b/sdk/python/sdk/zrok/test/test_organization_remove_body.py deleted file mode 100644 index 07128ed8..00000000 --- a/sdk/python/sdk/zrok/test/test_organization_remove_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.organization_remove_body import OrganizationRemoveBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestOrganizationRemoveBody(unittest.TestCase): - """OrganizationRemoveBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOrganizationRemoveBody(self): - """Test OrganizationRemoveBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.organization_remove_body.OrganizationRemoveBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_overview.py b/sdk/python/sdk/zrok/test/test_overview.py deleted file mode 100644 index 8a92ad55..00000000 --- a/sdk/python/sdk/zrok/test/test_overview.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.overview import Overview # noqa: E501 -from zrok_api.rest import ApiException - - -class TestOverview(unittest.TestCase): - """Overview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOverview(self): - """Test Overview""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.overview.Overview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_principal.py b/sdk/python/sdk/zrok/test/test_principal.py deleted file mode 100644 index f38cb221..00000000 --- a/sdk/python/sdk/zrok/test/test_principal.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.principal import Principal # noqa: E501 -from zrok_api.rest import ApiException - - -class TestPrincipal(unittest.TestCase): - """Principal unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPrincipal(self): - """Test Principal""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.principal.Principal() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_regenerate_account_token_body.py b/sdk/python/sdk/zrok/test/test_regenerate_account_token_body.py deleted file mode 100644 index 405b07c4..00000000 --- a/sdk/python/sdk/zrok/test/test_regenerate_account_token_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.regenerate_account_token_body import RegenerateAccountTokenBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestRegenerateAccountTokenBody(unittest.TestCase): - """RegenerateAccountTokenBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRegenerateAccountTokenBody(self): - """Test RegenerateAccountTokenBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.regenerate_account_token_body.RegenerateAccountTokenBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_regenerate_token_body.py b/sdk/python/sdk/zrok/test/test_regenerate_token_body.py deleted file mode 100644 index adfd771e..00000000 --- a/sdk/python/sdk/zrok/test/test_regenerate_token_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.regenerate_token_body import RegenerateTokenBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestRegenerateTokenBody(unittest.TestCase): - """RegenerateTokenBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRegenerateTokenBody(self): - """Test RegenerateTokenBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.regenerate_token_body.RegenerateTokenBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_register_body.py b/sdk/python/sdk/zrok/test/test_register_body.py deleted file mode 100644 index fe72be1e..00000000 --- a/sdk/python/sdk/zrok/test/test_register_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.register_body import RegisterBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestRegisterBody(unittest.TestCase): - """RegisterBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRegisterBody(self): - """Test RegisterBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.register_body.RegisterBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_reset_password_body.py b/sdk/python/sdk/zrok/test/test_reset_password_body.py deleted file mode 100644 index f4c4561d..00000000 --- a/sdk/python/sdk/zrok/test/test_reset_password_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.reset_password_body import ResetPasswordBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestResetPasswordBody(unittest.TestCase): - """ResetPasswordBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResetPasswordBody(self): - """Test ResetPasswordBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.reset_password_body.ResetPasswordBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_reset_password_request_body.py b/sdk/python/sdk/zrok/test/test_reset_password_request_body.py deleted file mode 100644 index d9a3360b..00000000 --- a/sdk/python/sdk/zrok/test/test_reset_password_request_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.reset_password_request_body import ResetPasswordRequestBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestResetPasswordRequestBody(unittest.TestCase): - """ResetPasswordRequestBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResetPasswordRequestBody(self): - """Test ResetPasswordRequestBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.reset_password_request_body.ResetPasswordRequestBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_share.py b/sdk/python/sdk/zrok/test/test_share.py deleted file mode 100644 index 80a16c16..00000000 --- a/sdk/python/sdk/zrok/test/test_share.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.share import Share # noqa: E501 -from zrok_api.rest import ApiException - - -class TestShare(unittest.TestCase): - """Share unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testShare(self): - """Test Share""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.share.Share() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_share_api.py b/sdk/python/sdk/zrok/test/test_share_api.py deleted file mode 100644 index e799f3c8..00000000 --- a/sdk/python/sdk/zrok/test/test_share_api.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.api.share_api import ShareApi # noqa: E501 -from zrok_api.rest import ApiException - - -class TestShareApi(unittest.TestCase): - """ShareApi unit test stubs""" - - def setUp(self): - self.api = ShareApi() # noqa: E501 - - def tearDown(self): - pass - - def test_access(self): - """Test case for access - - """ - pass - - def test_share(self): - """Test case for share - - """ - pass - - def test_unaccess(self): - """Test case for unaccess - - """ - pass - - def test_unshare(self): - """Test case for unshare - - """ - pass - - def test_update_share(self): - """Test case for update_share - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_share_body.py b/sdk/python/sdk/zrok/test/test_share_body.py deleted file mode 100644 index fcbdb3a2..00000000 --- a/sdk/python/sdk/zrok/test/test_share_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.share_body import ShareBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestShareBody(unittest.TestCase): - """ShareBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testShareBody(self): - """Test ShareBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.share_body.ShareBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_share_request.py b/sdk/python/sdk/zrok/test/test_share_request.py deleted file mode 100644 index 79abd431..00000000 --- a/sdk/python/sdk/zrok/test/test_share_request.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.share_request import ShareRequest # noqa: E501 -from zrok_api.rest import ApiException - - -class TestShareRequest(unittest.TestCase): - """ShareRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testShareRequest(self): - """Test ShareRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.share_request.ShareRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_share_response.py b/sdk/python/sdk/zrok/test/test_share_response.py deleted file mode 100644 index e2ef3f94..00000000 --- a/sdk/python/sdk/zrok/test/test_share_response.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.share_response import ShareResponse # noqa: E501 -from zrok_api.rest import ApiException - - -class TestShareResponse(unittest.TestCase): - """ShareResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testShareResponse(self): - """Test ShareResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.share_response.ShareResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_shares.py b/sdk/python/sdk/zrok/test/test_shares.py deleted file mode 100644 index f225a196..00000000 --- a/sdk/python/sdk/zrok/test/test_shares.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.shares import Shares # noqa: E501 -from zrok_api.rest import ApiException - - -class TestShares(unittest.TestCase): - """Shares unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testShares(self): - """Test Shares""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.shares.Shares() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_spark_data.py b/sdk/python/sdk/zrok/test/test_spark_data.py deleted file mode 100644 index 0543758e..00000000 --- a/sdk/python/sdk/zrok/test/test_spark_data.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.spark_data import SparkData # noqa: E501 -from zrok_api.rest import ApiException - - -class TestSparkData(unittest.TestCase): - """SparkData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSparkData(self): - """Test SparkData""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.spark_data.SparkData() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_spark_data_sample.py b/sdk/python/sdk/zrok/test/test_spark_data_sample.py deleted file mode 100644 index 993babe2..00000000 --- a/sdk/python/sdk/zrok/test/test_spark_data_sample.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.spark_data_sample import SparkDataSample # noqa: E501 -from zrok_api.rest import ApiException - - -class TestSparkDataSample(unittest.TestCase): - """SparkDataSample unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSparkDataSample(self): - """Test SparkDataSample""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.spark_data_sample.SparkDataSample() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_sparklines_body.py b/sdk/python/sdk/zrok/test/test_sparklines_body.py deleted file mode 100644 index 00165b62..00000000 --- a/sdk/python/sdk/zrok/test/test_sparklines_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.sparklines_body import SparklinesBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestSparklinesBody(unittest.TestCase): - """SparklinesBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSparklinesBody(self): - """Test SparklinesBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.sparklines_body.SparklinesBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_token_generate_body.py b/sdk/python/sdk/zrok/test/test_token_generate_body.py deleted file mode 100644 index 990712d1..00000000 --- a/sdk/python/sdk/zrok/test/test_token_generate_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.token_generate_body import TokenGenerateBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestTokenGenerateBody(unittest.TestCase): - """TokenGenerateBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTokenGenerateBody(self): - """Test TokenGenerateBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.token_generate_body.TokenGenerateBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_unaccess_body.py b/sdk/python/sdk/zrok/test/test_unaccess_body.py deleted file mode 100644 index 23e63156..00000000 --- a/sdk/python/sdk/zrok/test/test_unaccess_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.unaccess_body import UnaccessBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestUnaccessBody(unittest.TestCase): - """UnaccessBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUnaccessBody(self): - """Test UnaccessBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.unaccess_body.UnaccessBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_unshare_body.py b/sdk/python/sdk/zrok/test/test_unshare_body.py deleted file mode 100644 index 23236afe..00000000 --- a/sdk/python/sdk/zrok/test/test_unshare_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.unshare_body import UnshareBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestUnshareBody(unittest.TestCase): - """UnshareBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUnshareBody(self): - """Test UnshareBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.unshare_body.UnshareBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_verify_body.py b/sdk/python/sdk/zrok/test/test_verify_body.py deleted file mode 100644 index 9148441b..00000000 --- a/sdk/python/sdk/zrok/test/test_verify_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.verify_body import VerifyBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestVerifyBody(unittest.TestCase): - """VerifyBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testVerifyBody(self): - """Test VerifyBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.verify_body.VerifyBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_version.py b/sdk/python/sdk/zrok/test/test_version.py deleted file mode 100644 index cad9c632..00000000 --- a/sdk/python/sdk/zrok/test/test_version.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.version import Version # noqa: E501 -from zrok_api.rest import ApiException - - -class TestVersion(unittest.TestCase): - """Version unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testVersion(self): - """Test Version""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.version.Version() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_version_body.py b/sdk/python/sdk/zrok/test/test_version_body.py deleted file mode 100644 index 1c0a1898..00000000 --- a/sdk/python/sdk/zrok/test/test_version_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.version_body import VersionBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestVersionBody(unittest.TestCase): - """VersionBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testVersionBody(self): - """Test VersionBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.version_body.VersionBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/test/test_version_check_body.py b/sdk/python/sdk/zrok/test/test_version_check_body.py deleted file mode 100644 index 5ba46b33..00000000 --- a/sdk/python/sdk/zrok/test/test_version_check_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import zrok_api -from zrok_api.models.version_check_body import VersionCheckBody # noqa: E501 -from zrok_api.rest import ApiException - - -class TestVersionCheckBody(unittest.TestCase): - """VersionCheckBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testVersionCheckBody(self): - """Test VersionCheckBody""" - # FIXME: construct object with mandatory attributes with example values - # model = zrok_api.models.version_check_body.VersionCheckBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/sdk/python/sdk/zrok/tox.ini b/sdk/python/sdk/zrok/tox.ini deleted file mode 100644 index a310bec9..00000000 --- a/sdk/python/sdk/zrok/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/sdk/python/sdk/zrok/versioneer.py b/sdk/python/sdk/zrok/versioneer.py new file mode 100644 index 00000000..1e3753e6 --- /dev/null +++ b/sdk/python/sdk/zrok/versioneer.py @@ -0,0 +1,2277 @@ + +# Version: 0.29 + +"""The Versioneer - like a rocketeer, but for versions. + +The Versioneer +============== + +* like a rocketeer, but for versions! +* https://github.com/python-versioneer/python-versioneer +* Brian Warner +* License: Public Domain (Unlicense) +* Compatible with: Python 3.7, 3.8, 3.9, 3.10, 3.11 and pypy3 +* [![Latest Version][pypi-image]][pypi-url] +* [![Build Status][travis-image]][travis-url] + +This is a tool for managing a recorded version number in setuptools-based +python projects. The goal is to remove the tedious and error-prone "update +the embedded version string" step from your release process. Making a new +release should be as easy as recording a new tag in your version-control +system, and maybe making new tarballs. + + +## Quick Install + +Versioneer provides two installation modes. The "classic" vendored mode installs +a copy of versioneer into your repository. The experimental build-time dependency mode +is intended to allow you to skip this step and simplify the process of upgrading. + +### Vendored mode + +* `pip install versioneer` to somewhere in your $PATH + * A [conda-forge recipe](https://github.com/conda-forge/versioneer-feedstock) is + available, so you can also use `conda install -c conda-forge versioneer` +* add a `[tool.versioneer]` section to your `pyproject.toml` or a + `[versioneer]` section to your `setup.cfg` (see [Install](INSTALL.md)) + * Note that you will need to add `tomli; python_version < "3.11"` to your + build-time dependencies if you use `pyproject.toml` +* run `versioneer install --vendor` in your source tree, commit the results +* verify version information with `python setup.py version` + +### Build-time dependency mode + +* `pip install versioneer` to somewhere in your $PATH + * A [conda-forge recipe](https://github.com/conda-forge/versioneer-feedstock) is + available, so you can also use `conda install -c conda-forge versioneer` +* add a `[tool.versioneer]` section to your `pyproject.toml` or a + `[versioneer]` section to your `setup.cfg` (see [Install](INSTALL.md)) +* add `versioneer` (with `[toml]` extra, if configuring in `pyproject.toml`) + to the `requires` key of the `build-system` table in `pyproject.toml`: + ```toml + [build-system] + requires = ["setuptools", "versioneer[toml]"] + build-backend = "setuptools.build_meta" + ``` +* run `versioneer install --no-vendor` in your source tree, commit the results +* verify version information with `python setup.py version` + +## Version Identifiers + +Source trees come from a variety of places: + +* a version-control system checkout (mostly used by developers) +* a nightly tarball, produced by build automation +* a snapshot tarball, produced by a web-based VCS browser, like github's + "tarball from tag" feature +* a release tarball, produced by "setup.py sdist", distributed through PyPI + +Within each source tree, the version identifier (either a string or a number, +this tool is format-agnostic) can come from a variety of places: + +* ask the VCS tool itself, e.g. "git describe" (for checkouts), which knows + about recent "tags" and an absolute revision-id +* the name of the directory into which the tarball was unpacked +* an expanded VCS keyword ($Id$, etc) +* a `_version.py` created by some earlier build step + +For released software, the version identifier is closely related to a VCS +tag. Some projects use tag names that include more than just the version +string (e.g. "myproject-1.2" instead of just "1.2"), in which case the tool +needs to strip the tag prefix to extract the version identifier. For +unreleased software (between tags), the version identifier should provide +enough information to help developers recreate the same tree, while also +giving them an idea of roughly how old the tree is (after version 1.2, before +version 1.3). Many VCS systems can report a description that captures this, +for example `git describe --tags --dirty --always` reports things like +"0.7-1-g574ab98-dirty" to indicate that the checkout is one revision past the +0.7 tag, has a unique revision id of "574ab98", and is "dirty" (it has +uncommitted changes). + +The version identifier is used for multiple purposes: + +* to allow the module to self-identify its version: `myproject.__version__` +* to choose a name and prefix for a 'setup.py sdist' tarball + +## Theory of Operation + +Versioneer works by adding a special `_version.py` file into your source +tree, where your `__init__.py` can import it. This `_version.py` knows how to +dynamically ask the VCS tool for version information at import time. + +`_version.py` also contains `$Revision$` markers, and the installation +process marks `_version.py` to have this marker rewritten with a tag name +during the `git archive` command. As a result, generated tarballs will +contain enough information to get the proper version. + +To allow `setup.py` to compute a version too, a `versioneer.py` is added to +the top level of your source tree, next to `setup.py` and the `setup.cfg` +that configures it. This overrides several distutils/setuptools commands to +compute the version when invoked, and changes `setup.py build` and `setup.py +sdist` to replace `_version.py` with a small static file that contains just +the generated version data. + +## Installation + +See [INSTALL.md](./INSTALL.md) for detailed installation instructions. + +## Version-String Flavors + +Code which uses Versioneer can learn about its version string at runtime by +importing `_version` from your main `__init__.py` file and running the +`get_versions()` function. From the "outside" (e.g. in `setup.py`), you can +import the top-level `versioneer.py` and run `get_versions()`. + +Both functions return a dictionary with different flavors of version +information: + +* `['version']`: A condensed version string, rendered using the selected + style. This is the most commonly used value for the project's version + string. The default "pep440" style yields strings like `0.11`, + `0.11+2.g1076c97`, or `0.11+2.g1076c97.dirty`. See the "Styles" section + below for alternative styles. + +* `['full-revisionid']`: detailed revision identifier. For Git, this is the + full SHA1 commit id, e.g. "1076c978a8d3cfc70f408fe5974aa6c092c949ac". + +* `['date']`: Date and time of the latest `HEAD` commit. For Git, it is the + commit date in ISO 8601 format. This will be None if the date is not + available. + +* `['dirty']`: a boolean, True if the tree has uncommitted changes. Note that + this is only accurate if run in a VCS checkout, otherwise it is likely to + be False or None + +* `['error']`: if the version string could not be computed, this will be set + to a string describing the problem, otherwise it will be None. It may be + useful to throw an exception in setup.py if this is set, to avoid e.g. + creating tarballs with a version string of "unknown". + +Some variants are more useful than others. Including `full-revisionid` in a +bug report should allow developers to reconstruct the exact code being tested +(or indicate the presence of local changes that should be shared with the +developers). `version` is suitable for display in an "about" box or a CLI +`--version` output: it can be easily compared against release notes and lists +of bugs fixed in various releases. + +The installer adds the following text to your `__init__.py` to place a basic +version in `YOURPROJECT.__version__`: + + from ._version import get_versions + __version__ = get_versions()['version'] + del get_versions + +## Styles + +The setup.cfg `style=` configuration controls how the VCS information is +rendered into a version string. + +The default style, "pep440", produces a PEP440-compliant string, equal to the +un-prefixed tag name for actual releases, and containing an additional "local +version" section with more detail for in-between builds. For Git, this is +TAG[+DISTANCE.gHEX[.dirty]] , using information from `git describe --tags +--dirty --always`. For example "0.11+2.g1076c97.dirty" indicates that the +tree is like the "1076c97" commit but has uncommitted changes (".dirty"), and +that this commit is two revisions ("+2") beyond the "0.11" tag. For released +software (exactly equal to a known tag), the identifier will only contain the +stripped tag, e.g. "0.11". + +Other styles are available. See [details.md](details.md) in the Versioneer +source tree for descriptions. + +## Debugging + +Versioneer tries to avoid fatal errors: if something goes wrong, it will tend +to return a version of "0+unknown". To investigate the problem, run `setup.py +version`, which will run the version-lookup code in a verbose mode, and will +display the full contents of `get_versions()` (including the `error` string, +which may help identify what went wrong). + +## Known Limitations + +Some situations are known to cause problems for Versioneer. This details the +most significant ones. More can be found on Github +[issues page](https://github.com/python-versioneer/python-versioneer/issues). + +### Subprojects + +Versioneer has limited support for source trees in which `setup.py` is not in +the root directory (e.g. `setup.py` and `.git/` are *not* siblings). The are +two common reasons why `setup.py` might not be in the root: + +* Source trees which contain multiple subprojects, such as + [Buildbot](https://github.com/buildbot/buildbot), which contains both + "master" and "slave" subprojects, each with their own `setup.py`, + `setup.cfg`, and `tox.ini`. Projects like these produce multiple PyPI + distributions (and upload multiple independently-installable tarballs). +* Source trees whose main purpose is to contain a C library, but which also + provide bindings to Python (and perhaps other languages) in subdirectories. + +Versioneer will look for `.git` in parent directories, and most operations +should get the right version string. However `pip` and `setuptools` have bugs +and implementation details which frequently cause `pip install .` from a +subproject directory to fail to find a correct version string (so it usually +defaults to `0+unknown`). + +`pip install --editable .` should work correctly. `setup.py install` might +work too. + +Pip-8.1.1 is known to have this problem, but hopefully it will get fixed in +some later version. + +[Bug #38](https://github.com/python-versioneer/python-versioneer/issues/38) is tracking +this issue. The discussion in +[PR #61](https://github.com/python-versioneer/python-versioneer/pull/61) describes the +issue from the Versioneer side in more detail. +[pip PR#3176](https://github.com/pypa/pip/pull/3176) and +[pip PR#3615](https://github.com/pypa/pip/pull/3615) contain work to improve +pip to let Versioneer work correctly. + +Versioneer-0.16 and earlier only looked for a `.git` directory next to the +`setup.cfg`, so subprojects were completely unsupported with those releases. + +### Editable installs with setuptools <= 18.5 + +`setup.py develop` and `pip install --editable .` allow you to install a +project into a virtualenv once, then continue editing the source code (and +test) without re-installing after every change. + +"Entry-point scripts" (`setup(entry_points={"console_scripts": ..})`) are a +convenient way to specify executable scripts that should be installed along +with the python package. + +These both work as expected when using modern setuptools. When using +setuptools-18.5 or earlier, however, certain operations will cause +`pkg_resources.DistributionNotFound` errors when running the entrypoint +script, which must be resolved by re-installing the package. This happens +when the install happens with one version, then the egg_info data is +regenerated while a different version is checked out. Many setup.py commands +cause egg_info to be rebuilt (including `sdist`, `wheel`, and installing into +a different virtualenv), so this can be surprising. + +[Bug #83](https://github.com/python-versioneer/python-versioneer/issues/83) describes +this one, but upgrading to a newer version of setuptools should probably +resolve it. + + +## Updating Versioneer + +To upgrade your project to a new release of Versioneer, do the following: + +* install the new Versioneer (`pip install -U versioneer` or equivalent) +* edit `setup.cfg` and `pyproject.toml`, if necessary, + to include any new configuration settings indicated by the release notes. + See [UPGRADING](./UPGRADING.md) for details. +* re-run `versioneer install --[no-]vendor` in your source tree, to replace + `SRC/_version.py` +* commit any changed files + +## Future Directions + +This tool is designed to make it easily extended to other version-control +systems: all VCS-specific components are in separate directories like +src/git/ . The top-level `versioneer.py` script is assembled from these +components by running make-versioneer.py . In the future, make-versioneer.py +will take a VCS name as an argument, and will construct a version of +`versioneer.py` that is specific to the given VCS. It might also take the +configuration arguments that are currently provided manually during +installation by editing setup.py . Alternatively, it might go the other +direction and include code from all supported VCS systems, reducing the +number of intermediate scripts. + +## Similar projects + +* [setuptools_scm](https://github.com/pypa/setuptools_scm/) - a non-vendored build-time + dependency +* [minver](https://github.com/jbweston/miniver) - a lightweight reimplementation of + versioneer +* [versioningit](https://github.com/jwodder/versioningit) - a PEP 518-based setuptools + plugin + +## License + +To make Versioneer easier to embed, all its code is dedicated to the public +domain. The `_version.py` that it creates is also in the public domain. +Specifically, both are released under the "Unlicense", as described in +https://unlicense.org/. + +[pypi-image]: https://img.shields.io/pypi/v/versioneer.svg +[pypi-url]: https://pypi.python.org/pypi/versioneer/ +[travis-image]: +https://img.shields.io/travis/com/python-versioneer/python-versioneer.svg +[travis-url]: https://travis-ci.com/github/python-versioneer/python-versioneer + +""" +# pylint:disable=invalid-name,import-outside-toplevel,missing-function-docstring +# pylint:disable=missing-class-docstring,too-many-branches,too-many-statements +# pylint:disable=raise-missing-from,too-many-lines,too-many-locals,import-error +# pylint:disable=too-few-public-methods,redefined-outer-name,consider-using-with +# pylint:disable=attribute-defined-outside-init,too-many-arguments + +import configparser +import errno +import json +import os +import re +import subprocess +import sys +from pathlib import Path +from typing import Any, Callable, cast, Dict, List, Optional, Tuple, Union +from typing import NoReturn +import functools + +have_tomllib = True +if sys.version_info >= (3, 11): + import tomllib +else: + try: + import tomli as tomllib + except ImportError: + have_tomllib = False + + +class VersioneerConfig: + """Container for Versioneer configuration parameters.""" + + VCS: str + style: str + tag_prefix: str + versionfile_source: str + versionfile_build: Optional[str] + parentdir_prefix: Optional[str] + verbose: Optional[bool] + + +def get_root() -> str: + """Get the project root directory. + + We require that all commands are run from the project root, i.e. the + directory that contains setup.py, setup.cfg, and versioneer.py . + """ + root = os.path.realpath(os.path.abspath(os.getcwd())) + setup_py = os.path.join(root, "setup.py") + pyproject_toml = os.path.join(root, "pyproject.toml") + versioneer_py = os.path.join(root, "versioneer.py") + if not ( + os.path.exists(setup_py) + or os.path.exists(pyproject_toml) + or os.path.exists(versioneer_py) + ): + # allow 'python path/to/setup.py COMMAND' + root = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0]))) + setup_py = os.path.join(root, "setup.py") + pyproject_toml = os.path.join(root, "pyproject.toml") + versioneer_py = os.path.join(root, "versioneer.py") + if not ( + os.path.exists(setup_py) + or os.path.exists(pyproject_toml) + or os.path.exists(versioneer_py) + ): + err = ("Versioneer was unable to run the project root directory. " + "Versioneer requires setup.py to be executed from " + "its immediate directory (like 'python setup.py COMMAND'), " + "or in a way that lets it use sys.argv[0] to find the root " + "(like 'python path/to/setup.py COMMAND').") + raise VersioneerBadRootError(err) + try: + # Certain runtime workflows (setup.py install/develop in a setuptools + # tree) execute all dependencies in a single python process, so + # "versioneer" may be imported multiple times, and python's shared + # module-import table will cache the first one. So we can't use + # os.path.dirname(__file__), as that will find whichever + # versioneer.py was first imported, even in later projects. + my_path = os.path.realpath(os.path.abspath(__file__)) + me_dir = os.path.normcase(os.path.splitext(my_path)[0]) + vsr_dir = os.path.normcase(os.path.splitext(versioneer_py)[0]) + if me_dir != vsr_dir and "VERSIONEER_PEP518" not in globals(): + print("Warning: build in %s is using versioneer.py from %s" + % (os.path.dirname(my_path), versioneer_py)) + except NameError: + pass + return root + + +def get_config_from_root(root: str) -> VersioneerConfig: + """Read the project setup.cfg file to determine Versioneer config.""" + # This might raise OSError (if setup.cfg is missing), or + # configparser.NoSectionError (if it lacks a [versioneer] section), or + # configparser.NoOptionError (if it lacks "VCS="). See the docstring at + # the top of versioneer.py for instructions on writing your setup.cfg . + root_pth = Path(root) + pyproject_toml = root_pth / "pyproject.toml" + setup_cfg = root_pth / "setup.cfg" + section: Union[Dict[str, Any], configparser.SectionProxy, None] = None + if pyproject_toml.exists() and have_tomllib: + try: + with open(pyproject_toml, 'rb') as fobj: + pp = tomllib.load(fobj) + section = pp['tool']['versioneer'] + except (tomllib.TOMLDecodeError, KeyError) as e: + print(f"Failed to load config from {pyproject_toml}: {e}") + print("Try to load it from setup.cfg") + if not section: + parser = configparser.ConfigParser() + with open(setup_cfg) as cfg_file: + parser.read_file(cfg_file) + parser.get("versioneer", "VCS") # raise error if missing + + section = parser["versioneer"] + + # `cast`` really shouldn't be used, but its simplest for the + # common VersioneerConfig users at the moment. We verify against + # `None` values elsewhere where it matters + + cfg = VersioneerConfig() + cfg.VCS = section['VCS'] + cfg.style = section.get("style", "") + cfg.versionfile_source = cast(str, section.get("versionfile_source")) + cfg.versionfile_build = section.get("versionfile_build") + cfg.tag_prefix = cast(str, section.get("tag_prefix")) + if cfg.tag_prefix in ("''", '""', None): + cfg.tag_prefix = "" + cfg.parentdir_prefix = section.get("parentdir_prefix") + if isinstance(section, configparser.SectionProxy): + # Make sure configparser translates to bool + cfg.verbose = section.getboolean("verbose") + else: + cfg.verbose = section.get("verbose") + + return cfg + + +class NotThisMethod(Exception): + """Exception raised if a method is not valid for the current scenario.""" + + +# these dictionaries contain VCS-specific tools +LONG_VERSION_PY: Dict[str, str] = {} +HANDLERS: Dict[str, Dict[str, Callable]] = {} + + +def register_vcs_handler(vcs: str, method: str) -> Callable: # decorator + """Create decorator to mark a method as the handler of a VCS.""" + def decorate(f: Callable) -> Callable: + """Store f in HANDLERS[vcs][method].""" + HANDLERS.setdefault(vcs, {})[method] = f + return f + return decorate + + +def run_command( + commands: List[str], + args: List[str], + cwd: Optional[str] = None, + verbose: bool = False, + hide_stderr: bool = False, + env: Optional[Dict[str, str]] = None, +) -> Tuple[Optional[str], Optional[int]]: + """Call the given command(s).""" + assert isinstance(commands, list) + process = None + + popen_kwargs: Dict[str, Any] = {} + if sys.platform == "win32": + # This hides the console window if pythonw.exe is used + startupinfo = subprocess.STARTUPINFO() + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + popen_kwargs["startupinfo"] = startupinfo + + for command in commands: + try: + dispcmd = str([command] + args) + # remember shell=False, so use git.cmd on windows, not just git + process = subprocess.Popen([command] + args, cwd=cwd, env=env, + stdout=subprocess.PIPE, + stderr=(subprocess.PIPE if hide_stderr + else None), **popen_kwargs) + break + except OSError as e: + if e.errno == errno.ENOENT: + continue + if verbose: + print("unable to run %s" % dispcmd) + print(e) + return None, None + else: + if verbose: + print("unable to find command, tried %s" % (commands,)) + return None, None + stdout = process.communicate()[0].strip().decode() + if process.returncode != 0: + if verbose: + print("unable to run %s (error)" % dispcmd) + print("stdout was %s" % stdout) + return None, process.returncode + return stdout, process.returncode + + +LONG_VERSION_PY['git'] = r''' +# This file helps to compute a version number in source trees obtained from +# git-archive tarball (such as those provided by githubs download-from-tag +# feature). Distribution tarballs (built by setup.py sdist) and build +# directories (produced by setup.py build) will contain a much shorter file +# that just contains the computed version number. + +# This file is released into the public domain. +# Generated by versioneer-0.29 +# https://github.com/python-versioneer/python-versioneer + +"""Git implementation of _version.py.""" + +import errno +import os +import re +import subprocess +import sys +from typing import Any, Callable, Dict, List, Optional, Tuple +import functools + + +def get_keywords() -> Dict[str, str]: + """Get the keywords needed to look up the version information.""" + # these strings will be replaced by git during git-archive. + # setup.py/versioneer.py will grep for the variable names, so they must + # each be defined on a line of their own. _version.py will just call + # get_keywords(). + git_refnames = "%(DOLLAR)sFormat:%%d%(DOLLAR)s" + git_full = "%(DOLLAR)sFormat:%%H%(DOLLAR)s" + git_date = "%(DOLLAR)sFormat:%%ci%(DOLLAR)s" + keywords = {"refnames": git_refnames, "full": git_full, "date": git_date} + return keywords + + +class VersioneerConfig: + """Container for Versioneer configuration parameters.""" + + VCS: str + style: str + tag_prefix: str + parentdir_prefix: str + versionfile_source: str + verbose: bool + + +def get_config() -> VersioneerConfig: + """Create, populate and return the VersioneerConfig() object.""" + # these strings are filled in when 'setup.py versioneer' creates + # _version.py + cfg = VersioneerConfig() + cfg.VCS = "git" + cfg.style = "%(STYLE)s" + cfg.tag_prefix = "%(TAG_PREFIX)s" + cfg.parentdir_prefix = "%(PARENTDIR_PREFIX)s" + cfg.versionfile_source = "%(VERSIONFILE_SOURCE)s" + cfg.verbose = False + return cfg + + +class NotThisMethod(Exception): + """Exception raised if a method is not valid for the current scenario.""" + + +LONG_VERSION_PY: Dict[str, str] = {} +HANDLERS: Dict[str, Dict[str, Callable]] = {} + + +def register_vcs_handler(vcs: str, method: str) -> Callable: # decorator + """Create decorator to mark a method as the handler of a VCS.""" + def decorate(f: Callable) -> Callable: + """Store f in HANDLERS[vcs][method].""" + if vcs not in HANDLERS: + HANDLERS[vcs] = {} + HANDLERS[vcs][method] = f + return f + return decorate + + +def run_command( + commands: List[str], + args: List[str], + cwd: Optional[str] = None, + verbose: bool = False, + hide_stderr: bool = False, + env: Optional[Dict[str, str]] = None, +) -> Tuple[Optional[str], Optional[int]]: + """Call the given command(s).""" + assert isinstance(commands, list) + process = None + + popen_kwargs: Dict[str, Any] = {} + if sys.platform == "win32": + # This hides the console window if pythonw.exe is used + startupinfo = subprocess.STARTUPINFO() + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + popen_kwargs["startupinfo"] = startupinfo + + for command in commands: + try: + dispcmd = str([command] + args) + # remember shell=False, so use git.cmd on windows, not just git + process = subprocess.Popen([command] + args, cwd=cwd, env=env, + stdout=subprocess.PIPE, + stderr=(subprocess.PIPE if hide_stderr + else None), **popen_kwargs) + break + except OSError as e: + if e.errno == errno.ENOENT: + continue + if verbose: + print("unable to run %%s" %% dispcmd) + print(e) + return None, None + else: + if verbose: + print("unable to find command, tried %%s" %% (commands,)) + return None, None + stdout = process.communicate()[0].strip().decode() + if process.returncode != 0: + if verbose: + print("unable to run %%s (error)" %% dispcmd) + print("stdout was %%s" %% stdout) + return None, process.returncode + return stdout, process.returncode + + +def versions_from_parentdir( + parentdir_prefix: str, + root: str, + verbose: bool, +) -> Dict[str, Any]: + """Try to determine the version from the parent directory name. + + Source tarballs conventionally unpack into a directory that includes both + the project name and a version string. We will also support searching up + two directory levels for an appropriately named parent directory + """ + rootdirs = [] + + for _ in range(3): + dirname = os.path.basename(root) + if dirname.startswith(parentdir_prefix): + return {"version": dirname[len(parentdir_prefix):], + "full-revisionid": None, + "dirty": False, "error": None, "date": None} + rootdirs.append(root) + root = os.path.dirname(root) # up a level + + if verbose: + print("Tried directories %%s but none started with prefix %%s" %% + (str(rootdirs), parentdir_prefix)) + raise NotThisMethod("rootdir doesn't start with parentdir_prefix") + + +@register_vcs_handler("git", "get_keywords") +def git_get_keywords(versionfile_abs: str) -> Dict[str, str]: + """Extract version information from the given file.""" + # the code embedded in _version.py can just fetch the value of these + # keywords. When used from setup.py, we don't want to import _version.py, + # so we do it with a regexp instead. This function is not used from + # _version.py. + keywords: Dict[str, str] = {} + try: + with open(versionfile_abs, "r") as fobj: + for line in fobj: + if line.strip().startswith("git_refnames ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["refnames"] = mo.group(1) + if line.strip().startswith("git_full ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["full"] = mo.group(1) + if line.strip().startswith("git_date ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["date"] = mo.group(1) + except OSError: + pass + return keywords + + +@register_vcs_handler("git", "keywords") +def git_versions_from_keywords( + keywords: Dict[str, str], + tag_prefix: str, + verbose: bool, +) -> Dict[str, Any]: + """Get version information from git keywords.""" + if "refnames" not in keywords: + raise NotThisMethod("Short version file found") + date = keywords.get("date") + if date is not None: + # Use only the last line. Previous lines may contain GPG signature + # information. + date = date.splitlines()[-1] + + # git-2.2.0 added "%%cI", which expands to an ISO-8601 -compliant + # datestamp. However we prefer "%%ci" (which expands to an "ISO-8601 + # -like" string, which we must then edit to make compliant), because + # it's been around since git-1.5.3, and it's too difficult to + # discover which version we're using, or to work around using an + # older one. + date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) + refnames = keywords["refnames"].strip() + if refnames.startswith("$Format"): + if verbose: + print("keywords are unexpanded, not using") + raise NotThisMethod("unexpanded keywords, not a git-archive tarball") + refs = {r.strip() for r in refnames.strip("()").split(",")} + # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of + # just "foo-1.0". If we see a "tag: " prefix, prefer those. + TAG = "tag: " + tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} + if not tags: + # Either we're using git < 1.8.3, or there really are no tags. We use + # a heuristic: assume all version tags have a digit. The old git %%d + # expansion behaves like git log --decorate=short and strips out the + # refs/heads/ and refs/tags/ prefixes that would let us distinguish + # between branches and tags. By ignoring refnames without digits, we + # filter out many common branch names like "release" and + # "stabilization", as well as "HEAD" and "master". + tags = {r for r in refs if re.search(r'\d', r)} + if verbose: + print("discarding '%%s', no digits" %% ",".join(refs - tags)) + if verbose: + print("likely tags: %%s" %% ",".join(sorted(tags))) + for ref in sorted(tags): + # sorting will prefer e.g. "2.0" over "2.0rc1" + if ref.startswith(tag_prefix): + r = ref[len(tag_prefix):] + # Filter out refs that exactly match prefix or that don't start + # with a number once the prefix is stripped (mostly a concern + # when prefix is '') + if not re.match(r'\d', r): + continue + if verbose: + print("picking %%s" %% r) + return {"version": r, + "full-revisionid": keywords["full"].strip(), + "dirty": False, "error": None, + "date": date} + # no suitable tags, so version is "0+unknown", but full hex is still there + if verbose: + print("no suitable tags, using unknown + full revision id") + return {"version": "0+unknown", + "full-revisionid": keywords["full"].strip(), + "dirty": False, "error": "no suitable tags", "date": None} + + +@register_vcs_handler("git", "pieces_from_vcs") +def git_pieces_from_vcs( + tag_prefix: str, + root: str, + verbose: bool, + runner: Callable = run_command +) -> Dict[str, Any]: + """Get version from 'git describe' in the root of the source tree. + + This only gets called if the git-archive 'subst' keywords were *not* + expanded, and _version.py hasn't already been rewritten with a short + version string, meaning we're inside a checked out source tree. + """ + GITS = ["git"] + if sys.platform == "win32": + GITS = ["git.cmd", "git.exe"] + + # GIT_DIR can interfere with correct operation of Versioneer. + # It may be intended to be passed to the Versioneer-versioned project, + # but that should not change where we get our version from. + env = os.environ.copy() + env.pop("GIT_DIR", None) + runner = functools.partial(runner, env=env) + + _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, + hide_stderr=not verbose) + if rc != 0: + if verbose: + print("Directory %%s not under git control" %% root) + raise NotThisMethod("'git rev-parse --git-dir' returned error") + + # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] + # if there isn't one, this yields HEX[-dirty] (no NUM) + describe_out, rc = runner(GITS, [ + "describe", "--tags", "--dirty", "--always", "--long", + "--match", f"{tag_prefix}[[:digit:]]*" + ], cwd=root) + # --long was added in git-1.5.5 + if describe_out is None: + raise NotThisMethod("'git describe' failed") + describe_out = describe_out.strip() + full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) + if full_out is None: + raise NotThisMethod("'git rev-parse' failed") + full_out = full_out.strip() + + pieces: Dict[str, Any] = {} + pieces["long"] = full_out + pieces["short"] = full_out[:7] # maybe improved later + pieces["error"] = None + + branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], + cwd=root) + # --abbrev-ref was added in git-1.6.3 + if rc != 0 or branch_name is None: + raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") + branch_name = branch_name.strip() + + if branch_name == "HEAD": + # If we aren't exactly on a branch, pick a branch which represents + # the current commit. If all else fails, we are on a branchless + # commit. + branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) + # --contains was added in git-1.5.4 + if rc != 0 or branches is None: + raise NotThisMethod("'git branch --contains' returned error") + branches = branches.split("\n") + + # Remove the first line if we're running detached + if "(" in branches[0]: + branches.pop(0) + + # Strip off the leading "* " from the list of branches. + branches = [branch[2:] for branch in branches] + if "master" in branches: + branch_name = "master" + elif not branches: + branch_name = None + else: + # Pick the first branch that is returned. Good or bad. + branch_name = branches[0] + + pieces["branch"] = branch_name + + # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] + # TAG might have hyphens. + git_describe = describe_out + + # look for -dirty suffix + dirty = git_describe.endswith("-dirty") + pieces["dirty"] = dirty + if dirty: + git_describe = git_describe[:git_describe.rindex("-dirty")] + + # now we have TAG-NUM-gHEX or HEX + + if "-" in git_describe: + # TAG-NUM-gHEX + mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) + if not mo: + # unparsable. Maybe git-describe is misbehaving? + pieces["error"] = ("unable to parse git-describe output: '%%s'" + %% describe_out) + return pieces + + # tag + full_tag = mo.group(1) + if not full_tag.startswith(tag_prefix): + if verbose: + fmt = "tag '%%s' doesn't start with prefix '%%s'" + print(fmt %% (full_tag, tag_prefix)) + pieces["error"] = ("tag '%%s' doesn't start with prefix '%%s'" + %% (full_tag, tag_prefix)) + return pieces + pieces["closest-tag"] = full_tag[len(tag_prefix):] + + # distance: number of commits since tag + pieces["distance"] = int(mo.group(2)) + + # commit: short hex revision ID + pieces["short"] = mo.group(3) + + else: + # HEX: no tags + pieces["closest-tag"] = None + out, rc = runner(GITS, ["rev-list", "HEAD", "--left-right"], cwd=root) + pieces["distance"] = len(out.split()) # total number of commits + + # commit date: see ISO-8601 comment in git_versions_from_keywords() + date = runner(GITS, ["show", "-s", "--format=%%ci", "HEAD"], cwd=root)[0].strip() + # Use only the last line. Previous lines may contain GPG signature + # information. + date = date.splitlines()[-1] + pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) + + return pieces + + +def plus_or_dot(pieces: Dict[str, Any]) -> str: + """Return a + if we don't already have one, else return a .""" + if "+" in pieces.get("closest-tag", ""): + return "." + return "+" + + +def render_pep440(pieces: Dict[str, Any]) -> str: + """Build up version string, with post-release "local version identifier". + + Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you + get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty + + Exceptions: + 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += plus_or_dot(pieces) + rendered += "%%d.g%%s" %% (pieces["distance"], pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0+untagged.%%d.g%%s" %% (pieces["distance"], + pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def render_pep440_branch(pieces: Dict[str, Any]) -> str: + """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . + + The ".dev0" means not master branch. Note that .dev0 sorts backwards + (a feature branch will appear "older" than the master branch). + + Exceptions: + 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "%%d.g%%s" %% (pieces["distance"], pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0" + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += "+untagged.%%d.g%%s" %% (pieces["distance"], + pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def pep440_split_post(ver: str) -> Tuple[str, Optional[int]]: + """Split pep440 version string at the post-release segment. + + Returns the release segments before the post-release and the + post-release version number (or -1 if no post-release segment is present). + """ + vc = str.split(ver, ".post") + return vc[0], int(vc[1] or 0) if len(vc) == 2 else None + + +def render_pep440_pre(pieces: Dict[str, Any]) -> str: + """TAG[.postN.devDISTANCE] -- No -dirty. + + Exceptions: + 1: no tags. 0.post0.devDISTANCE + """ + if pieces["closest-tag"]: + if pieces["distance"]: + # update the post release segment + tag_version, post_version = pep440_split_post(pieces["closest-tag"]) + rendered = tag_version + if post_version is not None: + rendered += ".post%%d.dev%%d" %% (post_version + 1, pieces["distance"]) + else: + rendered += ".post0.dev%%d" %% (pieces["distance"]) + else: + # no commits, use the tag as the version + rendered = pieces["closest-tag"] + else: + # exception #1 + rendered = "0.post0.dev%%d" %% pieces["distance"] + return rendered + + +def render_pep440_post(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]+gHEX] . + + The ".dev0" means dirty. Note that .dev0 sorts backwards + (a dirty tree will appear "older" than the corresponding clean one), + but you shouldn't be releasing software with -dirty anyways. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%%d" %% pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "g%%s" %% pieces["short"] + else: + # exception #1 + rendered = "0.post%%d" %% pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + rendered += "+g%%s" %% pieces["short"] + return rendered + + +def render_pep440_post_branch(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . + + The ".dev0" means not master branch. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%%d" %% pieces["distance"] + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "g%%s" %% pieces["short"] + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0.post%%d" %% pieces["distance"] + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += "+g%%s" %% pieces["short"] + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def render_pep440_old(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]] . + + The ".dev0" means dirty. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%%d" %% pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + else: + # exception #1 + rendered = "0.post%%d" %% pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + return rendered + + +def render_git_describe(pieces: Dict[str, Any]) -> str: + """TAG[-DISTANCE-gHEX][-dirty]. + + Like 'git describe --tags --dirty --always'. + + Exceptions: + 1: no tags. HEX[-dirty] (note: no 'g' prefix) + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"]: + rendered += "-%%d-g%%s" %% (pieces["distance"], pieces["short"]) + else: + # exception #1 + rendered = pieces["short"] + if pieces["dirty"]: + rendered += "-dirty" + return rendered + + +def render_git_describe_long(pieces: Dict[str, Any]) -> str: + """TAG-DISTANCE-gHEX[-dirty]. + + Like 'git describe --tags --dirty --always -long'. + The distance/hash is unconditional. + + Exceptions: + 1: no tags. HEX[-dirty] (note: no 'g' prefix) + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + rendered += "-%%d-g%%s" %% (pieces["distance"], pieces["short"]) + else: + # exception #1 + rendered = pieces["short"] + if pieces["dirty"]: + rendered += "-dirty" + return rendered + + +def render(pieces: Dict[str, Any], style: str) -> Dict[str, Any]: + """Render the given version pieces into the requested style.""" + if pieces["error"]: + return {"version": "unknown", + "full-revisionid": pieces.get("long"), + "dirty": None, + "error": pieces["error"], + "date": None} + + if not style or style == "default": + style = "pep440" # the default + + if style == "pep440": + rendered = render_pep440(pieces) + elif style == "pep440-branch": + rendered = render_pep440_branch(pieces) + elif style == "pep440-pre": + rendered = render_pep440_pre(pieces) + elif style == "pep440-post": + rendered = render_pep440_post(pieces) + elif style == "pep440-post-branch": + rendered = render_pep440_post_branch(pieces) + elif style == "pep440-old": + rendered = render_pep440_old(pieces) + elif style == "git-describe": + rendered = render_git_describe(pieces) + elif style == "git-describe-long": + rendered = render_git_describe_long(pieces) + else: + raise ValueError("unknown style '%%s'" %% style) + + return {"version": rendered, "full-revisionid": pieces["long"], + "dirty": pieces["dirty"], "error": None, + "date": pieces.get("date")} + + +def get_versions() -> Dict[str, Any]: + """Get version information or return default if unable to do so.""" + # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have + # __file__, we can work backwards from there to the root. Some + # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which + # case we can only use expanded keywords. + + cfg = get_config() + verbose = cfg.verbose + + try: + return git_versions_from_keywords(get_keywords(), cfg.tag_prefix, + verbose) + except NotThisMethod: + pass + + try: + root = os.path.realpath(__file__) + # versionfile_source is the relative path from the top of the source + # tree (where the .git directory might live) to this file. Invert + # this to find the root from __file__. + for _ in cfg.versionfile_source.split('/'): + root = os.path.dirname(root) + except NameError: + return {"version": "0+unknown", "full-revisionid": None, + "dirty": None, + "error": "unable to find root of source tree", + "date": None} + + try: + pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose) + return render(pieces, cfg.style) + except NotThisMethod: + pass + + try: + if cfg.parentdir_prefix: + return versions_from_parentdir(cfg.parentdir_prefix, root, verbose) + except NotThisMethod: + pass + + return {"version": "0+unknown", "full-revisionid": None, + "dirty": None, + "error": "unable to compute version", "date": None} +''' + + +@register_vcs_handler("git", "get_keywords") +def git_get_keywords(versionfile_abs: str) -> Dict[str, str]: + """Extract version information from the given file.""" + # the code embedded in _version.py can just fetch the value of these + # keywords. When used from setup.py, we don't want to import _version.py, + # so we do it with a regexp instead. This function is not used from + # _version.py. + keywords: Dict[str, str] = {} + try: + with open(versionfile_abs, "r") as fobj: + for line in fobj: + if line.strip().startswith("git_refnames ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["refnames"] = mo.group(1) + if line.strip().startswith("git_full ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["full"] = mo.group(1) + if line.strip().startswith("git_date ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["date"] = mo.group(1) + except OSError: + pass + return keywords + + +@register_vcs_handler("git", "keywords") +def git_versions_from_keywords( + keywords: Dict[str, str], + tag_prefix: str, + verbose: bool, +) -> Dict[str, Any]: + """Get version information from git keywords.""" + if "refnames" not in keywords: + raise NotThisMethod("Short version file found") + date = keywords.get("date") + if date is not None: + # Use only the last line. Previous lines may contain GPG signature + # information. + date = date.splitlines()[-1] + + # git-2.2.0 added "%cI", which expands to an ISO-8601 -compliant + # datestamp. However we prefer "%ci" (which expands to an "ISO-8601 + # -like" string, which we must then edit to make compliant), because + # it's been around since git-1.5.3, and it's too difficult to + # discover which version we're using, or to work around using an + # older one. + date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) + refnames = keywords["refnames"].strip() + if refnames.startswith("$Format"): + if verbose: + print("keywords are unexpanded, not using") + raise NotThisMethod("unexpanded keywords, not a git-archive tarball") + refs = {r.strip() for r in refnames.strip("()").split(",")} + # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of + # just "foo-1.0". If we see a "tag: " prefix, prefer those. + TAG = "tag: " + tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} + if not tags: + # Either we're using git < 1.8.3, or there really are no tags. We use + # a heuristic: assume all version tags have a digit. The old git %d + # expansion behaves like git log --decorate=short and strips out the + # refs/heads/ and refs/tags/ prefixes that would let us distinguish + # between branches and tags. By ignoring refnames without digits, we + # filter out many common branch names like "release" and + # "stabilization", as well as "HEAD" and "master". + tags = {r for r in refs if re.search(r'\d', r)} + if verbose: + print("discarding '%s', no digits" % ",".join(refs - tags)) + if verbose: + print("likely tags: %s" % ",".join(sorted(tags))) + for ref in sorted(tags): + # sorting will prefer e.g. "2.0" over "2.0rc1" + if ref.startswith(tag_prefix): + r = ref[len(tag_prefix):] + # Filter out refs that exactly match prefix or that don't start + # with a number once the prefix is stripped (mostly a concern + # when prefix is '') + if not re.match(r'\d', r): + continue + if verbose: + print("picking %s" % r) + return {"version": r, + "full-revisionid": keywords["full"].strip(), + "dirty": False, "error": None, + "date": date} + # no suitable tags, so version is "0+unknown", but full hex is still there + if verbose: + print("no suitable tags, using unknown + full revision id") + return {"version": "0+unknown", + "full-revisionid": keywords["full"].strip(), + "dirty": False, "error": "no suitable tags", "date": None} + + +@register_vcs_handler("git", "pieces_from_vcs") +def git_pieces_from_vcs( + tag_prefix: str, + root: str, + verbose: bool, + runner: Callable = run_command +) -> Dict[str, Any]: + """Get version from 'git describe' in the root of the source tree. + + This only gets called if the git-archive 'subst' keywords were *not* + expanded, and _version.py hasn't already been rewritten with a short + version string, meaning we're inside a checked out source tree. + """ + GITS = ["git"] + if sys.platform == "win32": + GITS = ["git.cmd", "git.exe"] + + # GIT_DIR can interfere with correct operation of Versioneer. + # It may be intended to be passed to the Versioneer-versioned project, + # but that should not change where we get our version from. + env = os.environ.copy() + env.pop("GIT_DIR", None) + runner = functools.partial(runner, env=env) + + _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, + hide_stderr=not verbose) + if rc != 0: + if verbose: + print("Directory %s not under git control" % root) + raise NotThisMethod("'git rev-parse --git-dir' returned error") + + # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] + # if there isn't one, this yields HEX[-dirty] (no NUM) + describe_out, rc = runner(GITS, [ + "describe", "--tags", "--dirty", "--always", "--long", + "--match", f"{tag_prefix}[[:digit:]]*" + ], cwd=root) + # --long was added in git-1.5.5 + if describe_out is None: + raise NotThisMethod("'git describe' failed") + describe_out = describe_out.strip() + full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) + if full_out is None: + raise NotThisMethod("'git rev-parse' failed") + full_out = full_out.strip() + + pieces: Dict[str, Any] = {} + pieces["long"] = full_out + pieces["short"] = full_out[:7] # maybe improved later + pieces["error"] = None + + branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], + cwd=root) + # --abbrev-ref was added in git-1.6.3 + if rc != 0 or branch_name is None: + raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") + branch_name = branch_name.strip() + + if branch_name == "HEAD": + # If we aren't exactly on a branch, pick a branch which represents + # the current commit. If all else fails, we are on a branchless + # commit. + branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) + # --contains was added in git-1.5.4 + if rc != 0 or branches is None: + raise NotThisMethod("'git branch --contains' returned error") + branches = branches.split("\n") + + # Remove the first line if we're running detached + if "(" in branches[0]: + branches.pop(0) + + # Strip off the leading "* " from the list of branches. + branches = [branch[2:] for branch in branches] + if "master" in branches: + branch_name = "master" + elif not branches: + branch_name = None + else: + # Pick the first branch that is returned. Good or bad. + branch_name = branches[0] + + pieces["branch"] = branch_name + + # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] + # TAG might have hyphens. + git_describe = describe_out + + # look for -dirty suffix + dirty = git_describe.endswith("-dirty") + pieces["dirty"] = dirty + if dirty: + git_describe = git_describe[:git_describe.rindex("-dirty")] + + # now we have TAG-NUM-gHEX or HEX + + if "-" in git_describe: + # TAG-NUM-gHEX + mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) + if not mo: + # unparsable. Maybe git-describe is misbehaving? + pieces["error"] = ("unable to parse git-describe output: '%s'" + % describe_out) + return pieces + + # tag + full_tag = mo.group(1) + if not full_tag.startswith(tag_prefix): + if verbose: + fmt = "tag '%s' doesn't start with prefix '%s'" + print(fmt % (full_tag, tag_prefix)) + pieces["error"] = ("tag '%s' doesn't start with prefix '%s'" + % (full_tag, tag_prefix)) + return pieces + pieces["closest-tag"] = full_tag[len(tag_prefix):] + + # distance: number of commits since tag + pieces["distance"] = int(mo.group(2)) + + # commit: short hex revision ID + pieces["short"] = mo.group(3) + + else: + # HEX: no tags + pieces["closest-tag"] = None + out, rc = runner(GITS, ["rev-list", "HEAD", "--left-right"], cwd=root) + pieces["distance"] = len(out.split()) # total number of commits + + # commit date: see ISO-8601 comment in git_versions_from_keywords() + date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip() + # Use only the last line. Previous lines may contain GPG signature + # information. + date = date.splitlines()[-1] + pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) + + return pieces + + +def do_vcs_install(versionfile_source: str, ipy: Optional[str]) -> None: + """Git-specific installation logic for Versioneer. + + For Git, this means creating/changing .gitattributes to mark _version.py + for export-subst keyword substitution. + """ + GITS = ["git"] + if sys.platform == "win32": + GITS = ["git.cmd", "git.exe"] + files = [versionfile_source] + if ipy: + files.append(ipy) + if "VERSIONEER_PEP518" not in globals(): + try: + my_path = __file__ + if my_path.endswith((".pyc", ".pyo")): + my_path = os.path.splitext(my_path)[0] + ".py" + versioneer_file = os.path.relpath(my_path) + except NameError: + versioneer_file = "versioneer.py" + files.append(versioneer_file) + present = False + try: + with open(".gitattributes", "r") as fobj: + for line in fobj: + if line.strip().startswith(versionfile_source): + if "export-subst" in line.strip().split()[1:]: + present = True + break + except OSError: + pass + if not present: + with open(".gitattributes", "a+") as fobj: + fobj.write(f"{versionfile_source} export-subst\n") + files.append(".gitattributes") + run_command(GITS, ["add", "--"] + files) + + +def versions_from_parentdir( + parentdir_prefix: str, + root: str, + verbose: bool, +) -> Dict[str, Any]: + """Try to determine the version from the parent directory name. + + Source tarballs conventionally unpack into a directory that includes both + the project name and a version string. We will also support searching up + two directory levels for an appropriately named parent directory + """ + rootdirs = [] + + for _ in range(3): + dirname = os.path.basename(root) + if dirname.startswith(parentdir_prefix): + return {"version": dirname[len(parentdir_prefix):], + "full-revisionid": None, + "dirty": False, "error": None, "date": None} + rootdirs.append(root) + root = os.path.dirname(root) # up a level + + if verbose: + print("Tried directories %s but none started with prefix %s" % + (str(rootdirs), parentdir_prefix)) + raise NotThisMethod("rootdir doesn't start with parentdir_prefix") + + +SHORT_VERSION_PY = """ +# This file was generated by 'versioneer.py' (0.29) from +# revision-control system data, or from the parent directory name of an +# unpacked source archive. Distribution tarballs contain a pre-generated copy +# of this file. + +import json + +version_json = ''' +%s +''' # END VERSION_JSON + + +def get_versions(): + return json.loads(version_json) +""" + + +def versions_from_file(filename: str) -> Dict[str, Any]: + """Try to determine the version from _version.py if present.""" + try: + with open(filename) as f: + contents = f.read() + except OSError: + raise NotThisMethod("unable to read _version.py") + mo = re.search(r"version_json = '''\n(.*)''' # END VERSION_JSON", + contents, re.M | re.S) + if not mo: + mo = re.search(r"version_json = '''\r\n(.*)''' # END VERSION_JSON", + contents, re.M | re.S) + if not mo: + raise NotThisMethod("no version_json in _version.py") + return json.loads(mo.group(1)) + + +def write_to_version_file(filename: str, versions: Dict[str, Any]) -> None: + """Write the given version number to the given _version.py file.""" + contents = json.dumps(versions, sort_keys=True, + indent=1, separators=(",", ": ")) + with open(filename, "w") as f: + f.write(SHORT_VERSION_PY % contents) + + print("set %s to '%s'" % (filename, versions["version"])) + + +def plus_or_dot(pieces: Dict[str, Any]) -> str: + """Return a + if we don't already have one, else return a .""" + if "+" in pieces.get("closest-tag", ""): + return "." + return "+" + + +def render_pep440(pieces: Dict[str, Any]) -> str: + """Build up version string, with post-release "local version identifier". + + Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you + get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty + + Exceptions: + 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += plus_or_dot(pieces) + rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0+untagged.%d.g%s" % (pieces["distance"], + pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def render_pep440_branch(pieces: Dict[str, Any]) -> str: + """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . + + The ".dev0" means not master branch. Note that .dev0 sorts backwards + (a feature branch will appear "older" than the master branch). + + Exceptions: + 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0" + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += "+untagged.%d.g%s" % (pieces["distance"], + pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def pep440_split_post(ver: str) -> Tuple[str, Optional[int]]: + """Split pep440 version string at the post-release segment. + + Returns the release segments before the post-release and the + post-release version number (or -1 if no post-release segment is present). + """ + vc = str.split(ver, ".post") + return vc[0], int(vc[1] or 0) if len(vc) == 2 else None + + +def render_pep440_pre(pieces: Dict[str, Any]) -> str: + """TAG[.postN.devDISTANCE] -- No -dirty. + + Exceptions: + 1: no tags. 0.post0.devDISTANCE + """ + if pieces["closest-tag"]: + if pieces["distance"]: + # update the post release segment + tag_version, post_version = pep440_split_post(pieces["closest-tag"]) + rendered = tag_version + if post_version is not None: + rendered += ".post%d.dev%d" % (post_version + 1, pieces["distance"]) + else: + rendered += ".post0.dev%d" % (pieces["distance"]) + else: + # no commits, use the tag as the version + rendered = pieces["closest-tag"] + else: + # exception #1 + rendered = "0.post0.dev%d" % pieces["distance"] + return rendered + + +def render_pep440_post(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]+gHEX] . + + The ".dev0" means dirty. Note that .dev0 sorts backwards + (a dirty tree will appear "older" than the corresponding clean one), + but you shouldn't be releasing software with -dirty anyways. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%d" % pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "g%s" % pieces["short"] + else: + # exception #1 + rendered = "0.post%d" % pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + rendered += "+g%s" % pieces["short"] + return rendered + + +def render_pep440_post_branch(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . + + The ".dev0" means not master branch. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%d" % pieces["distance"] + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "g%s" % pieces["short"] + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0.post%d" % pieces["distance"] + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += "+g%s" % pieces["short"] + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def render_pep440_old(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]] . + + The ".dev0" means dirty. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%d" % pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + else: + # exception #1 + rendered = "0.post%d" % pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + return rendered + + +def render_git_describe(pieces: Dict[str, Any]) -> str: + """TAG[-DISTANCE-gHEX][-dirty]. + + Like 'git describe --tags --dirty --always'. + + Exceptions: + 1: no tags. HEX[-dirty] (note: no 'g' prefix) + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"]: + rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) + else: + # exception #1 + rendered = pieces["short"] + if pieces["dirty"]: + rendered += "-dirty" + return rendered + + +def render_git_describe_long(pieces: Dict[str, Any]) -> str: + """TAG-DISTANCE-gHEX[-dirty]. + + Like 'git describe --tags --dirty --always -long'. + The distance/hash is unconditional. + + Exceptions: + 1: no tags. HEX[-dirty] (note: no 'g' prefix) + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) + else: + # exception #1 + rendered = pieces["short"] + if pieces["dirty"]: + rendered += "-dirty" + return rendered + + +def render(pieces: Dict[str, Any], style: str) -> Dict[str, Any]: + """Render the given version pieces into the requested style.""" + if pieces["error"]: + return {"version": "unknown", + "full-revisionid": pieces.get("long"), + "dirty": None, + "error": pieces["error"], + "date": None} + + if not style or style == "default": + style = "pep440" # the default + + if style == "pep440": + rendered = render_pep440(pieces) + elif style == "pep440-branch": + rendered = render_pep440_branch(pieces) + elif style == "pep440-pre": + rendered = render_pep440_pre(pieces) + elif style == "pep440-post": + rendered = render_pep440_post(pieces) + elif style == "pep440-post-branch": + rendered = render_pep440_post_branch(pieces) + elif style == "pep440-old": + rendered = render_pep440_old(pieces) + elif style == "git-describe": + rendered = render_git_describe(pieces) + elif style == "git-describe-long": + rendered = render_git_describe_long(pieces) + else: + raise ValueError("unknown style '%s'" % style) + + return {"version": rendered, "full-revisionid": pieces["long"], + "dirty": pieces["dirty"], "error": None, + "date": pieces.get("date")} + + +class VersioneerBadRootError(Exception): + """The project root directory is unknown or missing key files.""" + + +def get_versions(verbose: bool = False) -> Dict[str, Any]: + """Get the project version from whatever source is available. + + Returns dict with two keys: 'version' and 'full'. + """ + if "versioneer" in sys.modules: + # see the discussion in cmdclass.py:get_cmdclass() + del sys.modules["versioneer"] + + root = get_root() + cfg = get_config_from_root(root) + + assert cfg.VCS is not None, "please set [versioneer]VCS= in setup.cfg" + handlers = HANDLERS.get(cfg.VCS) + assert handlers, "unrecognized VCS '%s'" % cfg.VCS + verbose = verbose or bool(cfg.verbose) # `bool()` used to avoid `None` + assert cfg.versionfile_source is not None, \ + "please set versioneer.versionfile_source" + assert cfg.tag_prefix is not None, "please set versioneer.tag_prefix" + + versionfile_abs = os.path.join(root, cfg.versionfile_source) + + # extract version from first of: _version.py, VCS command (e.g. 'git + # describe'), parentdir. This is meant to work for developers using a + # source checkout, for users of a tarball created by 'setup.py sdist', + # and for users of a tarball/zipball created by 'git archive' or github's + # download-from-tag feature or the equivalent in other VCSes. + + get_keywords_f = handlers.get("get_keywords") + from_keywords_f = handlers.get("keywords") + if get_keywords_f and from_keywords_f: + try: + keywords = get_keywords_f(versionfile_abs) + ver = from_keywords_f(keywords, cfg.tag_prefix, verbose) + if verbose: + print("got version from expanded keyword %s" % ver) + return ver + except NotThisMethod: + pass + + try: + ver = versions_from_file(versionfile_abs) + if verbose: + print("got version from file %s %s" % (versionfile_abs, ver)) + return ver + except NotThisMethod: + pass + + from_vcs_f = handlers.get("pieces_from_vcs") + if from_vcs_f: + try: + pieces = from_vcs_f(cfg.tag_prefix, root, verbose) + ver = render(pieces, cfg.style) + if verbose: + print("got version from VCS %s" % ver) + return ver + except NotThisMethod: + pass + + try: + if cfg.parentdir_prefix: + ver = versions_from_parentdir(cfg.parentdir_prefix, root, verbose) + if verbose: + print("got version from parentdir %s" % ver) + return ver + except NotThisMethod: + pass + + if verbose: + print("unable to compute version") + + return {"version": "0+unknown", "full-revisionid": None, + "dirty": None, "error": "unable to compute version", + "date": None} + + +def get_version() -> str: + """Get the short version string for this project.""" + return get_versions()["version"] + + +def get_cmdclass(cmdclass: Optional[Dict[str, Any]] = None): + """Get the custom setuptools subclasses used by Versioneer. + + If the package uses a different cmdclass (e.g. one from numpy), it + should be provide as an argument. + """ + if "versioneer" in sys.modules: + del sys.modules["versioneer"] + # this fixes the "python setup.py develop" case (also 'install' and + # 'easy_install .'), in which subdependencies of the main project are + # built (using setup.py bdist_egg) in the same python process. Assume + # a main project A and a dependency B, which use different versions + # of Versioneer. A's setup.py imports A's Versioneer, leaving it in + # sys.modules by the time B's setup.py is executed, causing B to run + # with the wrong versioneer. Setuptools wraps the sub-dep builds in a + # sandbox that restores sys.modules to it's pre-build state, so the + # parent is protected against the child's "import versioneer". By + # removing ourselves from sys.modules here, before the child build + # happens, we protect the child from the parent's versioneer too. + # Also see https://github.com/python-versioneer/python-versioneer/issues/52 + + cmds = {} if cmdclass is None else cmdclass.copy() + + # we add "version" to setuptools + from setuptools import Command + + class cmd_version(Command): + description = "report generated version string" + user_options: List[Tuple[str, str, str]] = [] + boolean_options: List[str] = [] + + def initialize_options(self) -> None: + pass + + def finalize_options(self) -> None: + pass + + def run(self) -> None: + vers = get_versions(verbose=True) + print("Version: %s" % vers["version"]) + print(" full-revisionid: %s" % vers.get("full-revisionid")) + print(" dirty: %s" % vers.get("dirty")) + print(" date: %s" % vers.get("date")) + if vers["error"]: + print(" error: %s" % vers["error"]) + cmds["version"] = cmd_version + + # we override "build_py" in setuptools + # + # most invocation pathways end up running build_py: + # distutils/build -> build_py + # distutils/install -> distutils/build ->.. + # setuptools/bdist_wheel -> distutils/install ->.. + # setuptools/bdist_egg -> distutils/install_lib -> build_py + # setuptools/install -> bdist_egg ->.. + # setuptools/develop -> ? + # pip install: + # copies source tree to a tempdir before running egg_info/etc + # if .git isn't copied too, 'git describe' will fail + # then does setup.py bdist_wheel, or sometimes setup.py install + # setup.py egg_info -> ? + + # pip install -e . and setuptool/editable_wheel will invoke build_py + # but the build_py command is not expected to copy any files. + + # we override different "build_py" commands for both environments + if 'build_py' in cmds: + _build_py: Any = cmds['build_py'] + else: + from setuptools.command.build_py import build_py as _build_py + + class cmd_build_py(_build_py): + def run(self) -> None: + root = get_root() + cfg = get_config_from_root(root) + versions = get_versions() + _build_py.run(self) + if getattr(self, "editable_mode", False): + # During editable installs `.py` and data files are + # not copied to build_lib + return + # now locate _version.py in the new build/ directory and replace + # it with an updated value + if cfg.versionfile_build: + target_versionfile = os.path.join(self.build_lib, + cfg.versionfile_build) + print("UPDATING %s" % target_versionfile) + write_to_version_file(target_versionfile, versions) + cmds["build_py"] = cmd_build_py + + if 'build_ext' in cmds: + _build_ext: Any = cmds['build_ext'] + else: + from setuptools.command.build_ext import build_ext as _build_ext + + class cmd_build_ext(_build_ext): + def run(self) -> None: + root = get_root() + cfg = get_config_from_root(root) + versions = get_versions() + _build_ext.run(self) + if self.inplace: + # build_ext --inplace will only build extensions in + # build/lib<..> dir with no _version.py to write to. + # As in place builds will already have a _version.py + # in the module dir, we do not need to write one. + return + # now locate _version.py in the new build/ directory and replace + # it with an updated value + if not cfg.versionfile_build: + return + target_versionfile = os.path.join(self.build_lib, + cfg.versionfile_build) + if not os.path.exists(target_versionfile): + print(f"Warning: {target_versionfile} does not exist, skipping " + "version update. This can happen if you are running build_ext " + "without first running build_py.") + return + print("UPDATING %s" % target_versionfile) + write_to_version_file(target_versionfile, versions) + cmds["build_ext"] = cmd_build_ext + + if "cx_Freeze" in sys.modules: # cx_freeze enabled? + from cx_Freeze.dist import build_exe as _build_exe # type: ignore + # nczeczulin reports that py2exe won't like the pep440-style string + # as FILEVERSION, but it can be used for PRODUCTVERSION, e.g. + # setup(console=[{ + # "version": versioneer.get_version().split("+", 1)[0], # FILEVERSION + # "product_version": versioneer.get_version(), + # ... + + class cmd_build_exe(_build_exe): + def run(self) -> None: + root = get_root() + cfg = get_config_from_root(root) + versions = get_versions() + target_versionfile = cfg.versionfile_source + print("UPDATING %s" % target_versionfile) + write_to_version_file(target_versionfile, versions) + + _build_exe.run(self) + os.unlink(target_versionfile) + with open(cfg.versionfile_source, "w") as f: + LONG = LONG_VERSION_PY[cfg.VCS] + f.write(LONG % + {"DOLLAR": "$", + "STYLE": cfg.style, + "TAG_PREFIX": cfg.tag_prefix, + "PARENTDIR_PREFIX": cfg.parentdir_prefix, + "VERSIONFILE_SOURCE": cfg.versionfile_source, + }) + cmds["build_exe"] = cmd_build_exe + del cmds["build_py"] + + if 'py2exe' in sys.modules: # py2exe enabled? + try: + from py2exe.setuptools_buildexe import py2exe as _py2exe # type: ignore + except ImportError: + from py2exe.distutils_buildexe import py2exe as _py2exe # type: ignore + + class cmd_py2exe(_py2exe): + def run(self) -> None: + root = get_root() + cfg = get_config_from_root(root) + versions = get_versions() + target_versionfile = cfg.versionfile_source + print("UPDATING %s" % target_versionfile) + write_to_version_file(target_versionfile, versions) + + _py2exe.run(self) + os.unlink(target_versionfile) + with open(cfg.versionfile_source, "w") as f: + LONG = LONG_VERSION_PY[cfg.VCS] + f.write(LONG % + {"DOLLAR": "$", + "STYLE": cfg.style, + "TAG_PREFIX": cfg.tag_prefix, + "PARENTDIR_PREFIX": cfg.parentdir_prefix, + "VERSIONFILE_SOURCE": cfg.versionfile_source, + }) + cmds["py2exe"] = cmd_py2exe + + # sdist farms its file list building out to egg_info + if 'egg_info' in cmds: + _egg_info: Any = cmds['egg_info'] + else: + from setuptools.command.egg_info import egg_info as _egg_info + + class cmd_egg_info(_egg_info): + def find_sources(self) -> None: + # egg_info.find_sources builds the manifest list and writes it + # in one shot + super().find_sources() + + # Modify the filelist and normalize it + root = get_root() + cfg = get_config_from_root(root) + self.filelist.append('versioneer.py') + if cfg.versionfile_source: + # There are rare cases where versionfile_source might not be + # included by default, so we must be explicit + self.filelist.append(cfg.versionfile_source) + self.filelist.sort() + self.filelist.remove_duplicates() + + # The write method is hidden in the manifest_maker instance that + # generated the filelist and was thrown away + # We will instead replicate their final normalization (to unicode, + # and POSIX-style paths) + from setuptools import unicode_utils + normalized = [unicode_utils.filesys_decode(f).replace(os.sep, '/') + for f in self.filelist.files] + + manifest_filename = os.path.join(self.egg_info, 'SOURCES.txt') + with open(manifest_filename, 'w') as fobj: + fobj.write('\n'.join(normalized)) + + cmds['egg_info'] = cmd_egg_info + + # we override different "sdist" commands for both environments + if 'sdist' in cmds: + _sdist: Any = cmds['sdist'] + else: + from setuptools.command.sdist import sdist as _sdist + + class cmd_sdist(_sdist): + def run(self) -> None: + versions = get_versions() + self._versioneer_generated_versions = versions + # unless we update this, the command will keep using the old + # version + self.distribution.metadata.version = versions["version"] + return _sdist.run(self) + + def make_release_tree(self, base_dir: str, files: List[str]) -> None: + root = get_root() + cfg = get_config_from_root(root) + _sdist.make_release_tree(self, base_dir, files) + # now locate _version.py in the new base_dir directory + # (remembering that it may be a hardlink) and replace it with an + # updated value + target_versionfile = os.path.join(base_dir, cfg.versionfile_source) + print("UPDATING %s" % target_versionfile) + write_to_version_file(target_versionfile, + self._versioneer_generated_versions) + cmds["sdist"] = cmd_sdist + + return cmds + + +CONFIG_ERROR = """ +setup.cfg is missing the necessary Versioneer configuration. You need +a section like: + + [versioneer] + VCS = git + style = pep440 + versionfile_source = src/myproject/_version.py + versionfile_build = myproject/_version.py + tag_prefix = + parentdir_prefix = myproject- + +You will also need to edit your setup.py to use the results: + + import versioneer + setup(version=versioneer.get_version(), + cmdclass=versioneer.get_cmdclass(), ...) + +Please read the docstring in ./versioneer.py for configuration instructions, +edit setup.cfg, and re-run the installer or 'python versioneer.py setup'. +""" + +SAMPLE_CONFIG = """ +# See the docstring in versioneer.py for instructions. Note that you must +# re-run 'versioneer.py setup' after changing this section, and commit the +# resulting files. + +[versioneer] +#VCS = git +#style = pep440 +#versionfile_source = +#versionfile_build = +#tag_prefix = +#parentdir_prefix = + +""" + +OLD_SNIPPET = """ +from ._version import get_versions +__version__ = get_versions()['version'] +del get_versions +""" + +INIT_PY_SNIPPET = """ +from . import {0} +__version__ = {0}.get_versions()['version'] +""" + + +def do_setup() -> int: + """Do main VCS-independent setup function for installing Versioneer.""" + root = get_root() + try: + cfg = get_config_from_root(root) + except (OSError, configparser.NoSectionError, + configparser.NoOptionError) as e: + if isinstance(e, (OSError, configparser.NoSectionError)): + print("Adding sample versioneer config to setup.cfg", + file=sys.stderr) + with open(os.path.join(root, "setup.cfg"), "a") as f: + f.write(SAMPLE_CONFIG) + print(CONFIG_ERROR, file=sys.stderr) + return 1 + + print(" creating %s" % cfg.versionfile_source) + with open(cfg.versionfile_source, "w") as f: + LONG = LONG_VERSION_PY[cfg.VCS] + f.write(LONG % {"DOLLAR": "$", + "STYLE": cfg.style, + "TAG_PREFIX": cfg.tag_prefix, + "PARENTDIR_PREFIX": cfg.parentdir_prefix, + "VERSIONFILE_SOURCE": cfg.versionfile_source, + }) + + ipy = os.path.join(os.path.dirname(cfg.versionfile_source), + "__init__.py") + maybe_ipy: Optional[str] = ipy + if os.path.exists(ipy): + try: + with open(ipy, "r") as f: + old = f.read() + except OSError: + old = "" + module = os.path.splitext(os.path.basename(cfg.versionfile_source))[0] + snippet = INIT_PY_SNIPPET.format(module) + if OLD_SNIPPET in old: + print(" replacing boilerplate in %s" % ipy) + with open(ipy, "w") as f: + f.write(old.replace(OLD_SNIPPET, snippet)) + elif snippet not in old: + print(" appending to %s" % ipy) + with open(ipy, "a") as f: + f.write(snippet) + else: + print(" %s unmodified" % ipy) + else: + print(" %s doesn't exist, ok" % ipy) + maybe_ipy = None + + # Make VCS-specific changes. For git, this means creating/changing + # .gitattributes to mark _version.py for export-subst keyword + # substitution. + do_vcs_install(cfg.versionfile_source, maybe_ipy) + return 0 + + +def scan_setup_py() -> int: + """Validate the contents of setup.py against Versioneer's expectations.""" + found = set() + setters = False + errors = 0 + with open("setup.py", "r") as f: + for line in f.readlines(): + if "import versioneer" in line: + found.add("import") + if "versioneer.get_cmdclass()" in line: + found.add("cmdclass") + if "versioneer.get_version()" in line: + found.add("get_version") + if "versioneer.VCS" in line: + setters = True + if "versioneer.versionfile_source" in line: + setters = True + if len(found) != 3: + print("") + print("Your setup.py appears to be missing some important items") + print("(but I might be wrong). Please make sure it has something") + print("roughly like the following:") + print("") + print(" import versioneer") + print(" setup( version=versioneer.get_version(),") + print(" cmdclass=versioneer.get_cmdclass(), ...)") + print("") + errors += 1 + if setters: + print("You should remove lines like 'versioneer.VCS = ' and") + print("'versioneer.versionfile_source = ' . This configuration") + print("now lives in setup.cfg, and should be removed from setup.py") + print("") + errors += 1 + return errors + + +def setup_command() -> NoReturn: + """Set up Versioneer and exit with appropriate error code.""" + errors = do_setup() + errors += scan_setup_py() + sys.exit(1 if errors else 0) + + +if __name__ == "__main__": + cmd = sys.argv[1] + if cmd == "setup": + setup_command() diff --git a/sdk/python/sdk/zrok/zrok/__init__.py b/sdk/python/sdk/zrok/zrok/__init__.py new file mode 100644 index 00000000..3ae70bb1 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/__init__.py @@ -0,0 +1,4 @@ +from . import environment # noqa +from . import access, decor, model, share, overview # noqa +from . import _version +__version__ = _version.get_versions()['version'] diff --git a/sdk/python/sdk/zrok/zrok/_version.py b/sdk/python/sdk/zrok/zrok/_version.py new file mode 100644 index 00000000..b5a79645 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/_version.py @@ -0,0 +1,683 @@ + +# This file helps to compute a version number in source trees obtained from +# git-archive tarball (such as those provided by githubs download-from-tag +# feature). Distribution tarballs (built by setup.py sdist) and build +# directories (produced by setup.py build) will contain a much shorter file +# that just contains the computed version number. + +# This file is released into the public domain. +# Generated by versioneer-0.29 +# https://github.com/python-versioneer/python-versioneer + +"""Git implementation of _version.py.""" + +import errno +import os +import re +import subprocess +import sys +from typing import Any, Callable, Dict, List, Optional, Tuple +import functools + + +def get_keywords() -> Dict[str, str]: + """Get the keywords needed to look up the version information.""" + # these strings will be replaced by git during git-archive. + # setup.py/versioneer.py will grep for the variable names, so they must + # each be defined on a line of their own. _version.py will just call + # get_keywords(). + git_refnames = "$Format:%d$" + git_full = "$Format:%H$" + git_date = "$Format:%ci$" + keywords = {"refnames": git_refnames, "full": git_full, "date": git_date} + return keywords + + +class VersioneerConfig: + """Container for Versioneer configuration parameters.""" + + VCS: str + style: str + tag_prefix: str + parentdir_prefix: str + versionfile_source: str + verbose: bool + + +def get_config() -> VersioneerConfig: + """Create, populate and return the VersioneerConfig() object.""" + # these strings are filled in when 'setup.py versioneer' creates + # _version.py + cfg = VersioneerConfig() + cfg.VCS = "git" + cfg.style = "pep440-pre" + cfg.tag_prefix = "v" + cfg.parentdir_prefix = "zrok-" + cfg.versionfile_source = "zrok/_version.py" + cfg.verbose = False + return cfg + + +class NotThisMethod(Exception): + """Exception raised if a method is not valid for the current scenario.""" + + +LONG_VERSION_PY: Dict[str, str] = {} +HANDLERS: Dict[str, Dict[str, Callable]] = {} + + +def register_vcs_handler(vcs: str, method: str) -> Callable: # decorator + """Create decorator to mark a method as the handler of a VCS.""" + def decorate(f: Callable) -> Callable: + """Store f in HANDLERS[vcs][method].""" + if vcs not in HANDLERS: + HANDLERS[vcs] = {} + HANDLERS[vcs][method] = f + return f + return decorate + + +def run_command( + commands: List[str], + args: List[str], + cwd: Optional[str] = None, + verbose: bool = False, + hide_stderr: bool = False, + env: Optional[Dict[str, str]] = None, +) -> Tuple[Optional[str], Optional[int]]: + """Call the given command(s).""" + assert isinstance(commands, list) + process = None + + popen_kwargs: Dict[str, Any] = {} + if sys.platform == "win32": + # This hides the console window if pythonw.exe is used + startupinfo = subprocess.STARTUPINFO() + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + popen_kwargs["startupinfo"] = startupinfo + + for command in commands: + try: + dispcmd = str([command] + args) + # remember shell=False, so use git.cmd on windows, not just git + process = subprocess.Popen([command] + args, cwd=cwd, env=env, + stdout=subprocess.PIPE, + stderr=(subprocess.PIPE if hide_stderr + else None), **popen_kwargs) + break + except OSError as e: + if e.errno == errno.ENOENT: + continue + if verbose: + print("unable to run %s" % dispcmd) + print(e) + return None, None + else: + if verbose: + print("unable to find command, tried %s" % (commands,)) + return None, None + stdout = process.communicate()[0].strip().decode() + if process.returncode != 0: + if verbose: + print("unable to run %s (error)" % dispcmd) + print("stdout was %s" % stdout) + return None, process.returncode + return stdout, process.returncode + + +def versions_from_parentdir( + parentdir_prefix: str, + root: str, + verbose: bool, +) -> Dict[str, Any]: + """Try to determine the version from the parent directory name. + + Source tarballs conventionally unpack into a directory that includes both + the project name and a version string. We will also support searching up + two directory levels for an appropriately named parent directory + """ + rootdirs = [] + + for _ in range(3): + dirname = os.path.basename(root) + if dirname.startswith(parentdir_prefix): + return {"version": dirname[len(parentdir_prefix):], + "full-revisionid": None, + "dirty": False, "error": None, "date": None} + rootdirs.append(root) + root = os.path.dirname(root) # up a level + + if verbose: + print("Tried directories %s but none started with prefix %s" % + (str(rootdirs), parentdir_prefix)) + raise NotThisMethod("rootdir doesn't start with parentdir_prefix") + + +@register_vcs_handler("git", "get_keywords") +def git_get_keywords(versionfile_abs: str) -> Dict[str, str]: + """Extract version information from the given file.""" + # the code embedded in _version.py can just fetch the value of these + # keywords. When used from setup.py, we don't want to import _version.py, + # so we do it with a regexp instead. This function is not used from + # _version.py. + keywords: Dict[str, str] = {} + try: + with open(versionfile_abs, "r") as fobj: + for line in fobj: + if line.strip().startswith("git_refnames ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["refnames"] = mo.group(1) + if line.strip().startswith("git_full ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["full"] = mo.group(1) + if line.strip().startswith("git_date ="): + mo = re.search(r'=\s*"(.*)"', line) + if mo: + keywords["date"] = mo.group(1) + except OSError: + pass + return keywords + + +@register_vcs_handler("git", "keywords") +def git_versions_from_keywords( + keywords: Dict[str, str], + tag_prefix: str, + verbose: bool, +) -> Dict[str, Any]: + """Get version information from git keywords.""" + if "refnames" not in keywords: + raise NotThisMethod("Short version file found") + date = keywords.get("date") + if date is not None: + # Use only the last line. Previous lines may contain GPG signature + # information. + date = date.splitlines()[-1] + + # git-2.2.0 added "%cI", which expands to an ISO-8601 -compliant + # datestamp. However we prefer "%ci" (which expands to an "ISO-8601 + # -like" string, which we must then edit to make compliant), because + # it's been around since git-1.5.3, and it's too difficult to + # discover which version we're using, or to work around using an + # older one. + date = date.strip().replace(" ", "T", 1).replace(" ", "", 1) + refnames = keywords["refnames"].strip() + if refnames.startswith("$Format"): + if verbose: + print("keywords are unexpanded, not using") + raise NotThisMethod("unexpanded keywords, not a git-archive tarball") + refs = {r.strip() for r in refnames.strip("()").split(",")} + # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of + # just "foo-1.0". If we see a "tag: " prefix, prefer those. + TAG = "tag: " + tags = {r[len(TAG):] for r in refs if r.startswith(TAG)} + if not tags: + # Either we're using git < 1.8.3, or there really are no tags. We use + # a heuristic: assume all version tags have a digit. The old git %d + # expansion behaves like git log --decorate=short and strips out the + # refs/heads/ and refs/tags/ prefixes that would let us distinguish + # between branches and tags. By ignoring refnames without digits, we + # filter out many common branch names like "release" and + # "stabilization", as well as "HEAD" and "master". + tags = {r for r in refs if re.search(r'\d', r)} + if verbose: + print("discarding '%s', no digits" % ",".join(refs - tags)) + if verbose: + print("likely tags: %s" % ",".join(sorted(tags))) + for ref in sorted(tags): + # sorting will prefer e.g. "2.0" over "2.0rc1" + if ref.startswith(tag_prefix): + r = ref[len(tag_prefix):] + # Filter out refs that exactly match prefix or that don't start + # with a number once the prefix is stripped (mostly a concern + # when prefix is '') + if not re.match(r'\d', r): + continue + if verbose: + print("picking %s" % r) + return {"version": r, + "full-revisionid": keywords["full"].strip(), + "dirty": False, "error": None, + "date": date} + # no suitable tags, so version is "0+unknown", but full hex is still there + if verbose: + print("no suitable tags, using unknown + full revision id") + return {"version": "0+unknown", + "full-revisionid": keywords["full"].strip(), + "dirty": False, "error": "no suitable tags", "date": None} + + +@register_vcs_handler("git", "pieces_from_vcs") +def git_pieces_from_vcs( + tag_prefix: str, + root: str, + verbose: bool, + runner: Callable = run_command +) -> Dict[str, Any]: + """Get version from 'git describe' in the root of the source tree. + + This only gets called if the git-archive 'subst' keywords were *not* + expanded, and _version.py hasn't already been rewritten with a short + version string, meaning we're inside a checked out source tree. + """ + GITS = ["git"] + if sys.platform == "win32": + GITS = ["git.cmd", "git.exe"] + + # GIT_DIR can interfere with correct operation of Versioneer. + # It may be intended to be passed to the Versioneer-versioned project, + # but that should not change where we get our version from. + env = os.environ.copy() + env.pop("GIT_DIR", None) + runner = functools.partial(runner, env=env) + + _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root, + hide_stderr=not verbose) + if rc != 0: + if verbose: + print("Directory %s not under git control" % root) + raise NotThisMethod("'git rev-parse --git-dir' returned error") + + # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] + # if there isn't one, this yields HEX[-dirty] (no NUM) + describe_out, rc = runner(GITS, [ + "describe", "--tags", "--dirty", "--always", "--long", + "--match", f"{tag_prefix}[[:digit:]]*" + ], cwd=root) + # --long was added in git-1.5.5 + if describe_out is None: + raise NotThisMethod("'git describe' failed") + describe_out = describe_out.strip() + full_out, rc = runner(GITS, ["rev-parse", "HEAD"], cwd=root) + if full_out is None: + raise NotThisMethod("'git rev-parse' failed") + full_out = full_out.strip() + + pieces: Dict[str, Any] = {} + pieces["long"] = full_out + pieces["short"] = full_out[:7] # maybe improved later + pieces["error"] = None + + branch_name, rc = runner(GITS, ["rev-parse", "--abbrev-ref", "HEAD"], + cwd=root) + # --abbrev-ref was added in git-1.6.3 + if rc != 0 or branch_name is None: + raise NotThisMethod("'git rev-parse --abbrev-ref' returned error") + branch_name = branch_name.strip() + + if branch_name == "HEAD": + # If we aren't exactly on a branch, pick a branch which represents + # the current commit. If all else fails, we are on a branchless + # commit. + branches, rc = runner(GITS, ["branch", "--contains"], cwd=root) + # --contains was added in git-1.5.4 + if rc != 0 or branches is None: + raise NotThisMethod("'git branch --contains' returned error") + branches = branches.split("\n") + + # Remove the first line if we're running detached + if "(" in branches[0]: + branches.pop(0) + + # Strip off the leading "* " from the list of branches. + branches = [branch[2:] for branch in branches] + if "master" in branches: + branch_name = "master" + elif not branches: + branch_name = None + else: + # Pick the first branch that is returned. Good or bad. + branch_name = branches[0] + + pieces["branch"] = branch_name + + # parse describe_out. It will be like TAG-NUM-gHEX[-dirty] or HEX[-dirty] + # TAG might have hyphens. + git_describe = describe_out + + # look for -dirty suffix + dirty = git_describe.endswith("-dirty") + pieces["dirty"] = dirty + if dirty: + git_describe = git_describe[:git_describe.rindex("-dirty")] + + # now we have TAG-NUM-gHEX or HEX + + if "-" in git_describe: + # TAG-NUM-gHEX + mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) + if not mo: + # unparsable. Maybe git-describe is misbehaving? + pieces["error"] = ("unable to parse git-describe output: '%s'" + % describe_out) + return pieces + + # tag + full_tag = mo.group(1) + if not full_tag.startswith(tag_prefix): + if verbose: + fmt = "tag '%s' doesn't start with prefix '%s'" + print(fmt % (full_tag, tag_prefix)) + pieces["error"] = ("tag '%s' doesn't start with prefix '%s'" + % (full_tag, tag_prefix)) + return pieces + pieces["closest-tag"] = full_tag[len(tag_prefix):] + + # distance: number of commits since tag + pieces["distance"] = int(mo.group(2)) + + # commit: short hex revision ID + pieces["short"] = mo.group(3) + + else: + # HEX: no tags + pieces["closest-tag"] = None + out, rc = runner(GITS, ["rev-list", "HEAD", "--left-right"], cwd=root) + pieces["distance"] = len(out.split()) # total number of commits + + # commit date: see ISO-8601 comment in git_versions_from_keywords() + date = runner(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[0].strip() + # Use only the last line. Previous lines may contain GPG signature + # information. + date = date.splitlines()[-1] + pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) + + return pieces + + +def plus_or_dot(pieces: Dict[str, Any]) -> str: + """Return a + if we don't already have one, else return a .""" + if "+" in pieces.get("closest-tag", ""): + return "." + return "+" + + +def render_pep440(pieces: Dict[str, Any]) -> str: + """Build up version string, with post-release "local version identifier". + + Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you + get a tagged build and then dirty it, you'll get TAG+0.gHEX.dirty + + Exceptions: + 1: no tags. git_describe was just HEX. 0+untagged.DISTANCE.gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += plus_or_dot(pieces) + rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0+untagged.%d.g%s" % (pieces["distance"], + pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def render_pep440_branch(pieces: Dict[str, Any]) -> str: + """TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . + + The ".dev0" means not master branch. Note that .dev0 sorts backwards + (a feature branch will appear "older" than the master branch). + + Exceptions: + 1: no tags. 0[.dev0]+untagged.DISTANCE.gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "%d.g%s" % (pieces["distance"], pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0" + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += "+untagged.%d.g%s" % (pieces["distance"], + pieces["short"]) + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def pep440_split_post(ver: str) -> Tuple[str, Optional[int]]: + """Split pep440 version string at the post-release segment. + + Returns the release segments before the post-release and the + post-release version number (or -1 if no post-release segment is present). + """ + vc = str.split(ver, ".post") + return vc[0], int(vc[1] or 0) if len(vc) == 2 else None + + +def render_pep440_pre(pieces: Dict[str, Any]) -> str: + """TAG[.postN.devDISTANCE] -- No -dirty. + + Exceptions: + 1: no tags. 0.post0.devDISTANCE + """ + if pieces["closest-tag"]: + if pieces["distance"]: + # update the post release segment + tag_version, post_version = pep440_split_post(pieces["closest-tag"]) + rendered = tag_version + if post_version is not None: + rendered += ".post%d.dev%d" % (post_version + 1, pieces["distance"]) + else: + rendered += ".post0.dev%d" % (pieces["distance"]) + else: + # no commits, use the tag as the version + rendered = pieces["closest-tag"] + else: + # exception #1 + rendered = "0.post0.dev%d" % pieces["distance"] + return rendered + + +def render_pep440_post(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]+gHEX] . + + The ".dev0" means dirty. Note that .dev0 sorts backwards + (a dirty tree will appear "older" than the corresponding clean one), + but you shouldn't be releasing software with -dirty anyways. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%d" % pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "g%s" % pieces["short"] + else: + # exception #1 + rendered = "0.post%d" % pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + rendered += "+g%s" % pieces["short"] + return rendered + + +def render_pep440_post_branch(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . + + The ".dev0" means not master branch. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%d" % pieces["distance"] + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += plus_or_dot(pieces) + rendered += "g%s" % pieces["short"] + if pieces["dirty"]: + rendered += ".dirty" + else: + # exception #1 + rendered = "0.post%d" % pieces["distance"] + if pieces["branch"] != "master": + rendered += ".dev0" + rendered += "+g%s" % pieces["short"] + if pieces["dirty"]: + rendered += ".dirty" + return rendered + + +def render_pep440_old(pieces: Dict[str, Any]) -> str: + """TAG[.postDISTANCE[.dev0]] . + + The ".dev0" means dirty. + + Exceptions: + 1: no tags. 0.postDISTANCE[.dev0] + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"] or pieces["dirty"]: + rendered += ".post%d" % pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + else: + # exception #1 + rendered = "0.post%d" % pieces["distance"] + if pieces["dirty"]: + rendered += ".dev0" + return rendered + + +def render_git_describe(pieces: Dict[str, Any]) -> str: + """TAG[-DISTANCE-gHEX][-dirty]. + + Like 'git describe --tags --dirty --always'. + + Exceptions: + 1: no tags. HEX[-dirty] (note: no 'g' prefix) + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + if pieces["distance"]: + rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) + else: + # exception #1 + rendered = pieces["short"] + if pieces["dirty"]: + rendered += "-dirty" + return rendered + + +def render_git_describe_long(pieces: Dict[str, Any]) -> str: + """TAG-DISTANCE-gHEX[-dirty]. + + Like 'git describe --tags --dirty --always -long'. + The distance/hash is unconditional. + + Exceptions: + 1: no tags. HEX[-dirty] (note: no 'g' prefix) + """ + if pieces["closest-tag"]: + rendered = pieces["closest-tag"] + rendered += "-%d-g%s" % (pieces["distance"], pieces["short"]) + else: + # exception #1 + rendered = pieces["short"] + if pieces["dirty"]: + rendered += "-dirty" + return rendered + + +def render(pieces: Dict[str, Any], style: str) -> Dict[str, Any]: + """Render the given version pieces into the requested style.""" + if pieces["error"]: + return {"version": "unknown", + "full-revisionid": pieces.get("long"), + "dirty": None, + "error": pieces["error"], + "date": None} + + if not style or style == "default": + style = "pep440" # the default + + if style == "pep440": + rendered = render_pep440(pieces) + elif style == "pep440-branch": + rendered = render_pep440_branch(pieces) + elif style == "pep440-pre": + rendered = render_pep440_pre(pieces) + elif style == "pep440-post": + rendered = render_pep440_post(pieces) + elif style == "pep440-post-branch": + rendered = render_pep440_post_branch(pieces) + elif style == "pep440-old": + rendered = render_pep440_old(pieces) + elif style == "git-describe": + rendered = render_git_describe(pieces) + elif style == "git-describe-long": + rendered = render_git_describe_long(pieces) + else: + raise ValueError("unknown style '%s'" % style) + + return {"version": rendered, "full-revisionid": pieces["long"], + "dirty": pieces["dirty"], "error": None, + "date": pieces.get("date")} + + +def get_versions() -> Dict[str, Any]: + """Get version information or return default if unable to do so.""" + # I am in _version.py, which lives at ROOT/VERSIONFILE_SOURCE. If we have + # __file__, we can work backwards from there to the root. Some + # py2exe/bbfreeze/non-CPython implementations don't do __file__, in which + # case we can only use expanded keywords. + + cfg = get_config() + verbose = cfg.verbose + + try: + return git_versions_from_keywords(get_keywords(), cfg.tag_prefix, + verbose) + except NotThisMethod: + pass + + try: + root = os.path.realpath(__file__) + # versionfile_source is the relative path from the top of the source + # tree (where the .git directory might live) to this file. Invert + # this to find the root from __file__. + for _ in cfg.versionfile_source.split('/'): + root = os.path.dirname(root) + except NameError: + return {"version": "0+unknown", "full-revisionid": None, + "dirty": None, + "error": "unable to find root of source tree", + "date": None} + + try: + pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose) + return render(pieces, cfg.style) + except NotThisMethod: + pass + + try: + if cfg.parentdir_prefix: + return versions_from_parentdir(cfg.parentdir_prefix, root, verbose) + except NotThisMethod: + pass + + return {"version": "0+unknown", "full-revisionid": None, + "dirty": None, + "error": "unable to compute version", "date": None} diff --git a/sdk/python/sdk/zrok/zrok/access.py b/sdk/python/sdk/zrok/zrok/access.py new file mode 100644 index 00000000..dc3a1dfd --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/access.py @@ -0,0 +1,57 @@ +from zrok.environment.root import Root +from zrok_api.models import AccessRequest, UnaccessRequest +from zrok_api.api import ShareApi +from zrok import model + + +class Access(): + root: Root + request: model.AccessRequest + access: model.Access + + def __init__(self, root: Root, request: model.AccessRequest): + self.root = root + self.request = request + + def __enter__(self) -> model.Access: + self.access = CreateAccess(root=self.root, request=self.request) + return self.access + + def __exit__(self, exception_type, exception_value, exception_traceback): + DeleteAccess(root=self.root, acc=self.access) + + +def CreateAccess(root: Root, request: model.AccessRequest) -> model.Access: + if not root.IsEnabled(): + raise Exception("environment is not enabled; enable with 'zrok enable' first!") + + out = AccessRequest(shr_token=request.ShareToken, + env_zid=root.env.ZitiIdentity) + + try: + zrok = root.Client() + except Exception as e: + raise Exception("error getting zrok client", e) + try: + res = ShareApi(zrok).access(body=out) + except Exception as e: + raise Exception("unable to create access", e) + return model.Access(Token=res.frontend_token, + ShareToken=request.ShareToken, + BackendMode=res.backend_mode) + + +def DeleteAccess(root: Root, acc: model.Access): + req = UnaccessRequest(frontend_token=acc.Token, + shr_token=acc.ShareToken, + env_zid=root.env.ZitiIdentity) + + try: + zrok = root.Client() + except Exception as e: + raise Exception("error getting zrok client", e) + + try: + ShareApi(zrok).unaccess(body=req) + except Exception as e: + raise Exception("error deleting access", e) diff --git a/sdk/python/sdk/zrok/zrok/decor.py b/sdk/python/sdk/zrok/zrok/decor.py new file mode 100644 index 00000000..afaca880 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/decor.py @@ -0,0 +1,33 @@ +from dataclasses import dataclass +import openziti +from zrok.environment.root import Root + + +@dataclass +class Opts: + root: Root + shrToken: str + bindPort: int + bindHost: str = "" + + +class MonkeyPatch(openziti.monkeypatch): + def __init__(self, opts: {}, *args, **kwargs): + zif = opts['cfg'].root.ZitiIdentityNamed(opts['cfg'].root.EnvironmentIdentityName()) + cfg = dict(ztx=openziti.load(zif), service=opts['cfg'].shrToken) + super(MonkeyPatch, self).__init__(bindings={(opts['cfg'].bindHost, opts['cfg'].bindPort): cfg}, *args, **kwargs) + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + super(MonkeyPatch, self).__exit__(exc_type, exc_val, exc_tb) + + +def zrok(opts: {}, *zargs, **zkwargs): + def zrockify_func(func): + def zrockified(*args, **kwargs): + with MonkeyPatch(opts=opts, *zargs, **zkwargs): + func(*args, **kwargs) + return zrockified + return zrockify_func diff --git a/sdk/python/sdk/zrok/zrok/dialer.py b/sdk/python/sdk/zrok/zrok/dialer.py new file mode 100644 index 00000000..adf3c632 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/dialer.py @@ -0,0 +1,10 @@ +from zrok.environment.root import Root +import openziti +from socket import SOCK_STREAM + + +def Dialer(shrToken: str, root: Root) -> openziti.zitisock.ZitiSocket: + openziti.load(root.ZitiIdentityNamed(root.EnvironmentIdentityName())) + client = openziti.socket(type=SOCK_STREAM) + client.connect((shrToken, 1)) + return client diff --git a/sdk/python/sdk/zrok/zrok/environment/__init__.py b/sdk/python/sdk/zrok/zrok/environment/__init__.py new file mode 100644 index 00000000..c8f5e5a1 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/environment/__init__.py @@ -0,0 +1 @@ +from . import dirs, root # noqa diff --git a/sdk/python/sdk/zrok/zrok/environment/dirs.py b/sdk/python/sdk/zrok/zrok/environment/dirs.py new file mode 100644 index 00000000..4b53d292 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/environment/dirs.py @@ -0,0 +1,32 @@ +from pathlib import Path +import os + + +def rootDir() -> str: + home = str(Path.home()) + return os.path.join(home, ".zrok") + + +def metadataFile() -> str: + zrd = rootDir() + return os.path.join(zrd, "metadata.json") + + +def configFile() -> str: + zrd = rootDir() + return os.path.join(zrd, "config.json") + + +def environmentFile() -> str: + zrd = rootDir() + return os.path.join(zrd, "environment.json") + + +def identitiesDir() -> str: + zrd = rootDir() + return os.path.join(zrd, "identities") + + +def identityFile(name: str) -> str: + idd = identitiesDir() + return os.path.join(idd, name + ".json") diff --git a/sdk/python/sdk/zrok/zrok/environment/root.py b/sdk/python/sdk/zrok/zrok/environment/root.py index 94c176d6..ad7ae6ef 100644 --- a/sdk/python/sdk/zrok/zrok/environment/root.py +++ b/sdk/python/sdk/zrok/zrok/environment/root.py @@ -61,7 +61,7 @@ class Root: return zrock_client def ApiEndpoint(self) -> ApiEndpoint: - apiEndpoint = "https://api-v1.zrok.io" + apiEndpoint = "https://api.zrok.io" frm = "binary" if self.cfg.ApiEndpoint != "": diff --git a/sdk/python/sdk/zrok/zrok/listener.py b/sdk/python/sdk/zrok/zrok/listener.py new file mode 100644 index 00000000..5f85f58d --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/listener.py @@ -0,0 +1,29 @@ +import openziti +from zrok.environment.root import Root + + +class Listener(): + shrToken: str + root: Root + __server: openziti.zitisock.ZitiSocket + + def __init__(self, shrToken: str, root: Root): + self.shrToken = shrToken + self.root = root + ztx = openziti.load( + self.root.ZitiIdentityNamed( + self.root.EnvironmentIdentityName())) + self.__server = ztx.bind(self.shrToken) + + def __enter__(self) -> openziti.zitisock.ZitiSocket: + self.listen() + return self.__server + + def __exit__(self, exception_type, exception_value, exception_traceback): + self.close() + + def listen(self): + self.__server.listen() + + def close(self): + self.__server.close() diff --git a/sdk/python/sdk/zrok/zrok/model.py b/sdk/python/sdk/zrok/zrok/model.py new file mode 100644 index 00000000..90f51342 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/model.py @@ -0,0 +1,76 @@ +from dataclasses import dataclass, field + +BackendMode = str + +PROXY_BACKEND_MODE: BackendMode = "proxy" +WEB_BACKEND_MODE: BackendMode = "web" +TCP_TUNNEL_BACKEND_MODE: BackendMode = "tcpTunnel" +UDP_TUNNEL_BACKEND_MODE: BackendMode = "udpTunnel" +CADDY_BACKEND_MODE: BackendMode = "caddy" +DRIVE_BACKEND_MODE: BackendMode = "drive" +SOCKS_BACKEND_MODE: BackendMode = "socks" +VPN_BACKEND_MODE: BackendMode = "vpn" + +ShareMode = str + +PRIVATE_SHARE_MODE: ShareMode = "private" +PUBLIC_SHARE_MODE: ShareMode = "public" + +PermissionMode = str + +OPEN_PERMISSION_MODE: PermissionMode = "open" +CLOSED_PERMISSION_MODE: PermissionMode = "closed" + + +@dataclass +class ShareRequest: + BackendMode: BackendMode + ShareMode: ShareMode + Target: str + Frontends: list[str] = field(default_factory=list[str]) + BasicAuth: list[str] = field(default_factory=list[str]) + OauthProvider: str = "" + OauthEmailAddressPatterns: list[str] = field(default_factory=list[str]) + OauthAuthorizationCheckInterval: str = "" + Reserved: bool = False + UniqueName: str = "" + PermissionMode: PermissionMode = OPEN_PERMISSION_MODE + AccessGrants: list[str] = field(default_factory=list[str]) + + +@dataclass +class Share: + Token: str + FrontendEndpoints: list[str] + + +@dataclass +class AccessRequest: + ShareToken: str + + +@dataclass +class Access: + Token: str + ShareToken: str + BackendMode: BackendMode + + +@dataclass +class SessionMetrics: + BytesRead: int + BytesWritten: int + LastUpdate: int + + +@dataclass +class Metrics: + Namespace: str + Sessions: dict[str, SessionMetrics] + + +AuthScheme = str + +AUTH_SCHEME_NONE: AuthScheme = "none" +AUTH_SCHEME_BASIC: AuthScheme = "basic" +AUTH_SCHEME_OAUTH: AuthScheme = "oauth" diff --git a/sdk/python/sdk/zrok/zrok/overview.py b/sdk/python/sdk/zrok/zrok/overview.py new file mode 100644 index 00000000..f7b981eb --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/overview.py @@ -0,0 +1,78 @@ +import json +from dataclasses import dataclass, field +from typing import List + +import urllib3 +from zrok.environment.root import Root +from zrok_api.models.environment import Environment +from zrok_api.models.environment_and_resources import EnvironmentAndResources +from zrok_api.models.frontends import Frontends +from zrok_api.models.share import Share + + +@dataclass +class Overview: + environments: List[EnvironmentAndResources] = field(default_factory=list) + + @classmethod + def create(cls, root: Root) -> 'Overview': + if not root.IsEnabled(): + raise Exception("environment is not enabled; enable with 'zrok enable' first!") + + http = urllib3.PoolManager() + apiEndpoint = root.ApiEndpoint().endpoint + try: + response = http.request( + 'GET', + apiEndpoint + "/api/v1/overview", + headers={ + "X-TOKEN": root.env.Token + }) + except Exception as e: + raise Exception("unable to get account overview", e) + + json_data = json.loads(response.data.decode('utf-8')) + overview = cls() + + for env_data in json_data.get('environments', []): + env_dict = env_data['environment'] + # Map the JSON keys to the Environment class parameters + environment = Environment( + description=env_dict.get('description'), + host=env_dict.get('host'), + address=env_dict.get('address'), + z_id=env_dict.get('zId'), + activity=env_dict.get('activity'), + limited=env_dict.get('limited'), + created_at=env_dict.get('createdAt'), + updated_at=env_dict.get('updatedAt') + ) + + # Create Shares object from share data + share_list = [] + for share_data in env_data.get('shares', []): + share = Share( + token=share_data.get('token'), + z_id=share_data.get('zId'), + share_mode=share_data.get('shareMode'), + backend_mode=share_data.get('backendMode'), + frontend_selection=share_data.get('frontendSelection'), + frontend_endpoint=share_data.get('frontendEndpoint'), + backend_proxy_endpoint=share_data.get('backendProxyEndpoint'), + reserved=share_data.get('reserved'), + activity=share_data.get('activity'), + limited=share_data.get('limited'), + created_at=share_data.get('createdAt'), + updated_at=share_data.get('updatedAt') + ) + share_list.append(share) + + # Create EnvironmentAndResources object + env_resources = EnvironmentAndResources( + environment=environment, + shares=share_list, + frontends=Frontends() # Empty frontends for now as it's not in the input data + ) + overview.environments.append(env_resources) + + return overview diff --git a/sdk/python/sdk/zrok/zrok/proxy.py b/sdk/python/sdk/zrok/zrok/proxy.py new file mode 100644 index 00000000..a1244ca3 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/proxy.py @@ -0,0 +1,203 @@ +""" +Proxy share management functionality for the zrok SDK. +""" + +import atexit +import logging +import urllib.parse +from dataclasses import dataclass +from typing import Any, Dict, List, Optional + +import requests +from flask import Flask, Response, request +from waitress import serve +from zrok.environment.root import Root +from zrok.model import (PROXY_BACKEND_MODE, PUBLIC_SHARE_MODE, PRIVATE_SHARE_MODE, Share, + ShareRequest) +from zrok.overview import Overview +from zrok.share import CreateShare, ReleaseReservedShare + +import zrok + +logger = logging.getLogger(__name__) + +# List of hop-by-hop headers that should not be returned to the viewer +HOP_BY_HOP_HEADERS = { + 'connection', + 'keep-alive', + 'proxy-authenticate', + 'proxy-authorization', + 'te', + 'trailers', + 'transfer-encoding', + 'upgrade' +} + +# The proxy only listens on the zrok socket, the port used to initialize the Waitress server is not actually bound or +# listening +DUMMY_PORT = 18081 + + +@dataclass +class ProxyShare: + """Represents a proxy share with its configuration and state.""" + root: Root + share: Share + target: str + unique_name: Optional[str] = None + _cleanup_registered: bool = False + _app: Optional[Flask] = None + verify_ssl: bool = True + + @classmethod + def create(cls, root: Root, target: str, share_mode: str = PUBLIC_SHARE_MODE, unique_name: Optional[str] = None, + frontends: Optional[List[str]] = None, verify_ssl: bool = True) -> 'ProxyShare': + """ + Create a new proxy share, handling reservation and cleanup logic based on unique_name. + + Args: + root: The zrok root environment + target: Target URL or service to proxy to + unique_name: Optional unique name for a reserved share + frontends: Optional list of frontends to use, takes precedence over root's default_frontend + verify_ssl: Whether to verify SSL certificates when forwarding requests. + + Returns: + ProxyShare instance configured with the created share + """ + # First check if we have an existing reserved share with this name + if unique_name: + existing_share = cls._find_existing_share(root, unique_name) + if existing_share: + logger.debug(f"Found existing share with token: {existing_share.Token}") + return cls( + root=root, + share=existing_share, + target=target, + unique_name=unique_name, + verify_ssl=verify_ssl + ) + + # Compose the share request + share_frontends = [] + if share_mode == PUBLIC_SHARE_MODE: + if frontends: + share_frontends = frontends + elif root.cfg and root.cfg.DefaultFrontend: + share_frontends = [root.cfg.DefaultFrontend] + else: + share_frontends = ['public'] + + share_request = ShareRequest( + BackendMode=PROXY_BACKEND_MODE, + ShareMode=share_mode, + Target=target, + Frontends=share_frontends, + Reserved=True + ) + if unique_name: + share_request.UniqueName = unique_name + + # Create the share + share = CreateShare(root=root, request=share_request) + if share_mode == PUBLIC_SHARE_MODE: + logger.debug(f"Created new proxy share with endpoints: {', '.join(share.FrontendEndpoints)}") + elif share_mode == PRIVATE_SHARE_MODE: + logger.debug(f"Created new private share with token: {share.Token}") + + # Create class instance and setup cleanup-at-exit if we reserved a random share token + instance = cls( + root=root, + share=share, + target=target, + unique_name=unique_name, + verify_ssl=verify_ssl + ) + if not unique_name: + instance.register_cleanup() + return instance + + @staticmethod + def _find_existing_share(root: Root, unique_name: str) -> Optional[Share]: + """Find an existing share with the given unique name.""" + overview = Overview.create(root=root) + for env in overview.environments: + if env.environment.z_id == root.env.ZitiIdentity: + for share in env.shares: + if share.token == unique_name: + return Share(Token=share.token, FrontendEndpoints=[share.frontend_endpoint]) + return None + + def register_cleanup(self): + """Register cleanup handler to release randomly generated shares on exit.""" + if not self._cleanup_registered: + def cleanup(): + try: + ReleaseReservedShare(root=self.root, shr=self.share) + logger.info(f"Share {self.share.Token} released") + except Exception as e: + logger.error(f"Error during cleanup: {e}") + + # Register for normal exit only + atexit.register(cleanup) + self._cleanup_registered = True + return cleanup # Return the cleanup function for reuse + + def _create_app(self) -> Flask: + """Create and configure the Flask app for proxying.""" + app = Flask(__name__) + + @app.route('/', defaults={'path': ''}, methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS']) + @app.route('/', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS']) + def proxy(path): + # Construct the target URL + url = urllib.parse.urljoin(self.target, path) + + # Forward the request + resp = requests.request( + method=request.method, + url=url, + headers={key: value for (key, value) in request.headers + if key.lower() not in HOP_BY_HOP_HEADERS}, + data=request.get_data(), + cookies=request.cookies, + allow_redirects=False, + stream=True, + verify=self.verify_ssl + ) + + # Create the response + excluded_headers = HOP_BY_HOP_HEADERS.union({'host'}) + headers = [(name, value) for (name, value) in resp.raw.headers.items() + if name.lower() not in excluded_headers] + + return Response( + resp.iter_content(chunk_size=10*1024), + status=resp.status_code, + headers=headers + ) + return app + + def run(self): + """Run the proxy server.""" + if not self._app: + self._app = self._create_app() + + zrok_opts: Dict[str, Any] = {} + zrok_opts['cfg'] = zrok.decor.Opts(root=self.root, shrToken=self.token, bindPort=DUMMY_PORT) + + @zrok.decor.zrok(opts=zrok_opts) + def run_server(): + serve(self._app, port=DUMMY_PORT, _quiet=True) + + run_server() + + @property + def endpoints(self) -> List[str]: + """Get the frontend endpoints for this share.""" + return self.share.FrontendEndpoints + + @property + def token(self) -> str: + """Get the share token.""" + return self.share.Token diff --git a/sdk/python/sdk/zrok/zrok/share.py b/sdk/python/sdk/zrok/zrok/share.py new file mode 100644 index 00000000..918f5c6a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok/share.py @@ -0,0 +1,122 @@ +from zrok.environment.root import Root +from zrok_api.models import ShareRequest, UnshareRequest, AuthUser +from zrok_api.api import ShareApi +from zrok import model + + +class Share(): + root: Root + request: model.ShareRequest + share: model.Share + + def __init__(self, root: Root, request: model.ShareRequest): + self.root = root + self.request = request + + def __enter__(self) -> model.Share: + self.share = CreateShare(root=self.root, request=self.request) + return self.share + + def __exit__(self, exception_type, exception_value, exception_traceback): + if not self.request.Reserved: + DeleteShare(root=self.root, shr=self.share) + + +def CreateShare(root: Root, request: model.ShareRequest) -> model.Share: + if not root.IsEnabled(): + raise Exception("environment is not enabled; enable with 'zrok enable' first!") + + match request.ShareMode: + case model.PRIVATE_SHARE_MODE: + out = __newPrivateShare(root, request) + case model.PUBLIC_SHARE_MODE: + out = __newPublicShare(root, request) + case _: + raise Exception("unknown share mode " + request.ShareMode) + out.reserved = request.Reserved + if request.Reserved: + out.unique_name = request.UniqueName + + if len(request.BasicAuth) > 0: + out.auth_scheme = model.AUTH_SCHEME_BASIC + for pair in request.BasicAuth: + tokens = pair.split(":") + if len(tokens) == 2: + out.auth_users.append(AuthUser(username=tokens[0].strip(), password=tokens[1].strip())) + else: + raise Exception("invalid username:password pair: " + pair) + + if request.OauthProvider != "": + out.auth_scheme = model.AUTH_SCHEME_OAUTH + + try: + zrok = root.Client() + except Exception as e: + raise Exception("error getting zrok client", e) + try: + res = ShareApi(zrok).share(body=out) + except Exception as e: + raise Exception("unable to create share", e) + + return model.Share(Token=res.shr_token, + FrontendEndpoints=res.frontend_proxy_endpoints) + + +def __newPrivateShare(root: Root, request: model.ShareRequest) -> ShareRequest: + return ShareRequest(env_zid=root.env.ZitiIdentity, + share_mode=request.ShareMode, + backend_mode=request.BackendMode, + backend_proxy_endpoint=request.Target, + auth_scheme=model.AUTH_SCHEME_NONE, + permission_mode=request.PermissionMode, + access_grants=request.AccessGrants + ) + + +def __newPublicShare(root: Root, request: model.ShareRequest) -> ShareRequest: + ret = ShareRequest(env_zid=root.env.ZitiIdentity, + share_mode=request.ShareMode, + frontend_selection=request.Frontends, + backend_mode=request.BackendMode, + backend_proxy_endpoint=request.Target, + auth_scheme=model.AUTH_SCHEME_NONE, + oauth_email_domains=request.OauthEmailAddressPatterns, + oauth_authorization_check_interval=request.OauthAuthorizationCheckInterval, + permission_mode=request.PermissionMode, + access_grants=request.AccessGrants + ) + if request.OauthProvider != "": + ret.oauth_provider = request.OauthProvider + + return ret + + +def DeleteShare(root: Root, shr: model.Share): + req = UnshareRequest(env_zid=root.env.ZitiIdentity, + shr_token=shr.Token) + + try: + zrok = root.Client() + except Exception as e: + raise Exception("error getting zrok client", e) + + try: + ShareApi(zrok).unshare(body=req) + except Exception as e: + raise Exception("error deleting share", e) + + +def ReleaseReservedShare(root: Root, shr: model.Share): + req = UnshareRequest(env_zid=root.env.ZitiIdentity, + shr_token=shr.Token, + reserved=True) + + try: + zrok = root.Client() + except Exception as e: + raise Exception("error getting zrok client", e) + + try: + ShareApi(zrok).unshare(body=req) + except Exception as e: + raise Exception("error releasing share", e) diff --git a/sdk/python/sdk/zrok/zrok_api/__init__.py b/sdk/python/sdk/zrok/zrok_api/__init__.py index a231330e..412c46f6 100644 --- a/sdk/python/sdk/zrok/zrok_api/__init__.py +++ b/sdk/python/sdk/zrok/zrok_api/__init__.py @@ -12,6 +12,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import # import apis into sdk package @@ -20,70 +21,58 @@ from zrok_api.api.admin_api import AdminApi from zrok_api.api.environment_api import EnvironmentApi from zrok_api.api.metadata_api import MetadataApi from zrok_api.api.share_api import ShareApi + # import ApiClient from zrok_api.api_client import ApiClient from zrok_api.configuration import Configuration # import models into sdk package -from zrok_api.models.access_body import AccessBody -from zrok_api.models.access_body1 import AccessBody1 -from zrok_api.models.account_body import AccountBody from zrok_api.models.auth_user import AuthUser -from zrok_api.models.change_password_body import ChangePasswordBody -from zrok_api.models.client_version_check_body import ClientVersionCheckBody +from zrok_api.models.body import Body +from zrok_api.models.body1 import Body1 +from zrok_api.models.body10 import Body10 +from zrok_api.models.body11 import Body11 +from zrok_api.models.body12 import Body12 +from zrok_api.models.body13 import Body13 +from zrok_api.models.body14 import Body14 +from zrok_api.models.body15 import Body15 +from zrok_api.models.body16 import Body16 +from zrok_api.models.body17 import Body17 +from zrok_api.models.body18 import Body18 +from zrok_api.models.body19 import Body19 +from zrok_api.models.body2 import Body2 +from zrok_api.models.body20 import Body20 +from zrok_api.models.body21 import Body21 +from zrok_api.models.body22 import Body22 +from zrok_api.models.body23 import Body23 +from zrok_api.models.body24 import Body24 +from zrok_api.models.body25 import Body25 +from zrok_api.models.body26 import Body26 +from zrok_api.models.body27 import Body27 +from zrok_api.models.body28 import Body28 +from zrok_api.models.body3 import Body3 +from zrok_api.models.body4 import Body4 +from zrok_api.models.body5 import Body5 +from zrok_api.models.body6 import Body6 +from zrok_api.models.body7 import Body7 +from zrok_api.models.body8 import Body8 +from zrok_api.models.body9 import Body9 from zrok_api.models.configuration import Configuration -from zrok_api.models.disable_body import DisableBody -from zrok_api.models.enable_body import EnableBody from zrok_api.models.environment import Environment from zrok_api.models.environment_and_resources import EnvironmentAndResources from zrok_api.models.environments import Environments from zrok_api.models.error_message import ErrorMessage from zrok_api.models.frontend import Frontend -from zrok_api.models.frontend_body import FrontendBody -from zrok_api.models.frontend_body1 import FrontendBody1 -from zrok_api.models.frontend_body2 import FrontendBody2 from zrok_api.models.frontends import Frontends -from zrok_api.models.grants_body import GrantsBody -from zrok_api.models.identity_body import IdentityBody from zrok_api.models.inline_response200 import InlineResponse200 -from zrok_api.models.inline_response2001 import InlineResponse2001 -from zrok_api.models.inline_response2002 import InlineResponse2002 -from zrok_api.models.inline_response2003 import InlineResponse2003 -from zrok_api.models.inline_response2003_members import InlineResponse2003Members -from zrok_api.models.inline_response2004 import InlineResponse2004 -from zrok_api.models.inline_response2004_organizations import InlineResponse2004Organizations -from zrok_api.models.inline_response2005 import InlineResponse2005 -from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships -from zrok_api.models.inline_response2006 import InlineResponse2006 -from zrok_api.models.inline_response2007 import InlineResponse2007 from zrok_api.models.inline_response201 import InlineResponse201 -from zrok_api.models.inline_response2011 import InlineResponse2011 -from zrok_api.models.inline_response2012 import InlineResponse2012 -from zrok_api.models.inline_response2013 import InlineResponse2013 -from zrok_api.models.invite_body import InviteBody -from zrok_api.models.login_body import LoginBody from zrok_api.models.metrics import Metrics from zrok_api.models.metrics_sample import MetricsSample -from zrok_api.models.organization_add_body import OrganizationAddBody -from zrok_api.models.organization_body import OrganizationBody -from zrok_api.models.organization_body1 import OrganizationBody1 -from zrok_api.models.organization_list_body import OrganizationListBody -from zrok_api.models.organization_remove_body import OrganizationRemoveBody from zrok_api.models.overview import Overview from zrok_api.models.principal import Principal -from zrok_api.models.regenerate_account_token_body import RegenerateAccountTokenBody -from zrok_api.models.register_body import RegisterBody -from zrok_api.models.reset_password_body import ResetPasswordBody -from zrok_api.models.reset_password_request_body import ResetPasswordRequestBody from zrok_api.models.share import Share -from zrok_api.models.share_body import ShareBody from zrok_api.models.share_request import ShareRequest from zrok_api.models.share_response import ShareResponse from zrok_api.models.shares import Shares from zrok_api.models.spark_data import SparkData from zrok_api.models.spark_data_sample import SparkDataSample -from zrok_api.models.sparklines_body import SparklinesBody -from zrok_api.models.token_generate_body import TokenGenerateBody -from zrok_api.models.unaccess_body import UnaccessBody -from zrok_api.models.unshare_body import UnshareBody -from zrok_api.models.verify_body import VerifyBody from zrok_api.models.version import Version diff --git a/sdk/python/sdk/zrok/zrok_api/api/account_api.py b/sdk/python/sdk/zrok/zrok_api/api/account_api.py index 8a85d9e1..6166da61 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/account_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/account_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,7 +42,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param ChangePasswordBody body: + :param Body body: :return: None If the method is called asynchronously, returns the request thread. @@ -62,7 +63,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param ChangePasswordBody body: + :param Body body: :return: None If the method is called asynchronously, returns the request thread. @@ -134,7 +135,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param InviteBody body: + :param Body1 body: :return: None If the method is called asynchronously, returns the request thread. @@ -155,7 +156,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param InviteBody body: + :param Body1 body: :return: None If the method is called asynchronously, returns the request thread. @@ -227,7 +228,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param LoginBody body: + :param Body2 body: :return: str If the method is called asynchronously, returns the request thread. @@ -248,7 +249,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param LoginBody body: + :param Body2 body: :return: str If the method is called asynchronously, returns the request thread. @@ -320,8 +321,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param RegenerateAccountTokenBody body: - :return: InlineResponse200 + :param Body3 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -341,8 +342,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param RegenerateAccountTokenBody body: - :return: InlineResponse200 + :param Body3 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -396,7 +397,7 @@ class AccountApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse200', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -413,8 +414,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param RegisterBody body: - :return: InlineResponse200 + :param Body4 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -434,8 +435,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param RegisterBody body: - :return: InlineResponse200 + :param Body4 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -489,7 +490,7 @@ class AccountApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse200', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -506,7 +507,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param ResetPasswordBody body: + :param Body5 body: :return: None If the method is called asynchronously, returns the request thread. @@ -527,7 +528,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param ResetPasswordBody body: + :param Body5 body: :return: None If the method is called asynchronously, returns the request thread. @@ -599,7 +600,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param ResetPasswordRequestBody body: + :param Body6 body: :return: None If the method is called asynchronously, returns the request thread. @@ -620,7 +621,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param ResetPasswordRequestBody body: + :param Body6 body: :return: None If the method is called asynchronously, returns the request thread. @@ -656,6 +657,10 @@ class AccountApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -688,8 +693,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param VerifyBody body: - :return: InlineResponse2001 + :param Body7 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -709,8 +714,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param VerifyBody body: - :return: InlineResponse2001 + :param Body7 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -764,7 +769,7 @@ class AccountApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2001', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/sdk/python/sdk/zrok/zrok_api/api/admin_api.py b/sdk/python/sdk/zrok/zrok_api/api/admin_api.py index 081dbe65..b9649da7 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/admin_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/admin_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,7 +42,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationAddBody body: + :param Body17 body: :return: None If the method is called asynchronously, returns the request thread. @@ -62,7 +63,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationAddBody body: + :param Body17 body: :return: None If the method is called asynchronously, returns the request thread. @@ -98,6 +99,10 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -130,8 +135,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param AccountBody body: - :return: InlineResponse200 + :param Body8 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -151,8 +156,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param AccountBody body: - :return: InlineResponse200 + :param Body8 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -206,7 +211,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse200', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -223,7 +228,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param FrontendBody body: + :param Body9 body: :return: InlineResponse201 If the method is called asynchronously, returns the request thread. @@ -244,7 +249,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param FrontendBody body: + :param Body9 body: :return: InlineResponse201 If the method is called asynchronously, returns the request thread. @@ -316,8 +321,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param IdentityBody body: - :return: InlineResponse2011 + :param Body13 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -337,8 +342,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param IdentityBody body: - :return: InlineResponse2011 + :param Body13 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -392,7 +397,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2011', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -409,8 +414,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationBody body: - :return: InlineResponse2012 + :param Body15 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -430,8 +435,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationBody body: - :return: InlineResponse2012 + :param Body15 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -485,7 +490,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2012', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -502,7 +507,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param FrontendBody1 body: + :param Body10 body: :return: None If the method is called asynchronously, returns the request thread. @@ -523,7 +528,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param FrontendBody1 body: + :param Body10 body: :return: None If the method is called asynchronously, returns the request thread. @@ -559,6 +564,10 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -591,7 +600,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationBody1 body: + :param Body16 body: :return: None If the method is called asynchronously, returns the request thread. @@ -612,7 +621,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationBody1 body: + :param Body16 body: :return: None If the method is called asynchronously, returns the request thread. @@ -648,6 +657,10 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -680,7 +693,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param GrantsBody body: + :param Body12 body: :return: None If the method is called asynchronously, returns the request thread. @@ -701,7 +714,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param GrantsBody body: + :param Body12 body: :return: None If the method is called asynchronously, returns the request thread. @@ -737,6 +750,10 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -769,7 +786,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param TokenGenerateBody body: + :param Body14 body: :return: None If the method is called asynchronously, returns the request thread. @@ -790,7 +807,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param TokenGenerateBody body: + :param Body14 body: :return: None If the method is called asynchronously, returns the request thread. @@ -826,6 +843,10 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -858,7 +879,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :return: list[InlineResponse2002] + :return: list[InlineResponse200] If the method is called asynchronously, returns the request thread. """ @@ -878,7 +899,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :return: list[InlineResponse2002] + :return: list[InlineResponse200] If the method is called asynchronously, returns the request thread. """ @@ -915,6 +936,10 @@ class AdminApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -926,7 +951,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='list[InlineResponse2002]', # noqa: E501 + response_type='list[InlineResponse200]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -943,8 +968,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationListBody body: - :return: InlineResponse2003 + :param Body18 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -964,8 +989,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationListBody body: - :return: InlineResponse2003 + :param Body18 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -1019,7 +1044,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2003', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1036,7 +1061,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :return: InlineResponse2004 + :return: object If the method is called asynchronously, returns the request thread. """ @@ -1056,7 +1081,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :return: InlineResponse2004 + :return: object If the method is called asynchronously, returns the request thread. """ @@ -1093,6 +1118,10 @@ class AdminApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1104,7 +1133,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2004', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1121,7 +1150,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationRemoveBody body: + :param Body19 body: :return: None If the method is called asynchronously, returns the request thread. @@ -1142,7 +1171,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param OrganizationRemoveBody body: + :param Body19 body: :return: None If the method is called asynchronously, returns the request thread. @@ -1178,6 +1207,10 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -1210,7 +1243,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param FrontendBody2 body: + :param Body11 body: :return: None If the method is called asynchronously, returns the request thread. @@ -1231,7 +1264,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param FrontendBody2 body: + :param Body11 body: :return: None If the method is called asynchronously, returns the request thread. @@ -1267,6 +1300,10 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 diff --git a/sdk/python/sdk/zrok/zrok_api/api/environment_api.py b/sdk/python/sdk/zrok/zrok_api/api/environment_api.py index 16bc987e..a226f6df 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/environment_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/environment_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,7 +42,7 @@ class EnvironmentApi(object): >>> result = thread.get() :param async_req bool - :param DisableBody body: + :param Body21 body: :return: None If the method is called asynchronously, returns the request thread. @@ -62,7 +63,7 @@ class EnvironmentApi(object): >>> result = thread.get() :param async_req bool - :param DisableBody body: + :param Body21 body: :return: None If the method is called asynchronously, returns the request thread. @@ -98,6 +99,10 @@ class EnvironmentApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -130,8 +135,8 @@ class EnvironmentApi(object): >>> result = thread.get() :param async_req bool - :param EnableBody body: - :return: InlineResponse2011 + :param Body20 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -151,8 +156,8 @@ class EnvironmentApi(object): >>> result = thread.get() :param async_req bool - :param EnableBody body: - :return: InlineResponse2011 + :param Body20 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -206,7 +211,7 @@ class EnvironmentApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2011', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py b/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py index 1afe9e25..a07654db 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,7 +42,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :param ClientVersionCheckBody body: + :param Body22 body: :return: None If the method is called asynchronously, returns the request thread. @@ -62,7 +63,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :param ClientVersionCheckBody body: + :param Body22 body: :return: None If the method is called asynchronously, returns the request thread. @@ -191,6 +192,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 @@ -276,6 +281,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -365,6 +374,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -436,8 +449,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'env_zid' is set - if ('env_zid' not in params or - params['env_zid'] is None): + if self.api_client.client_side_validation and ('env_zid' not in params or + params['env_zid'] is None): # noqa: E501 raise ValueError("Missing the required parameter `env_zid` when calling `get_environment_detail`") # noqa: E501 collection_formats = {} @@ -458,6 +471,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -531,8 +548,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'env_id' is set - if ('env_id' not in params or - params['env_id'] is None): + if self.api_client.client_side_validation and ('env_id' not in params or + params['env_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `env_id` when calling `get_environment_metrics`") # noqa: E501 collection_formats = {} @@ -555,6 +572,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -626,8 +647,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'frontend_id' is set - if ('frontend_id' not in params or - params['frontend_id'] is None): + if self.api_client.client_side_validation and ('frontend_id' not in params or + params['frontend_id'] is None): # noqa: E501 raise ValueError("Missing the required parameter `frontend_id` when calling `get_frontend_detail`") # noqa: E501 collection_formats = {} @@ -648,6 +669,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -719,8 +744,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'share_token' is set - if ('share_token' not in params or - params['share_token'] is None): + if self.api_client.client_side_validation and ('share_token' not in params or + params['share_token'] is None): # noqa: E501 raise ValueError("Missing the required parameter `share_token` when calling `get_share_detail`") # noqa: E501 collection_formats = {} @@ -741,6 +766,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -814,8 +843,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'share_token' is set - if ('share_token' not in params or - params['share_token'] is None): + if self.api_client.client_side_validation and ('share_token' not in params or + params['share_token'] is None): # noqa: E501 raise ValueError("Missing the required parameter `share_token` when calling `get_share_metrics`") # noqa: E501 collection_formats = {} @@ -838,6 +867,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -866,8 +899,8 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :param SparklinesBody body: - :return: InlineResponse2006 + :param Body23 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -887,8 +920,8 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :param SparklinesBody body: - :return: InlineResponse2006 + :param Body23 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -942,7 +975,7 @@ class MetadataApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2006', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -959,7 +992,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :return: InlineResponse2005 + :return: object If the method is called asynchronously, returns the request thread. """ @@ -979,7 +1012,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :return: InlineResponse2005 + :return: object If the method is called asynchronously, returns the request thread. """ @@ -1016,6 +1049,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1027,7 +1064,7 @@ class MetadataApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2005', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1045,7 +1082,7 @@ class MetadataApi(object): :param async_req bool :param str organization_token: (required) - :return: InlineResponse2003 + :return: object If the method is called asynchronously, returns the request thread. """ @@ -1066,7 +1103,7 @@ class MetadataApi(object): :param async_req bool :param str organization_token: (required) - :return: InlineResponse2003 + :return: object If the method is called asynchronously, returns the request thread. """ @@ -1087,8 +1124,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'organization_token' is set - if ('organization_token' not in params or - params['organization_token'] is None): + if self.api_client.client_side_validation and ('organization_token' not in params or + params['organization_token'] is None): # noqa: E501 raise ValueError("Missing the required parameter `organization_token` when calling `list_org_members`") # noqa: E501 collection_formats = {} @@ -1109,6 +1146,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1120,7 +1161,7 @@ class MetadataApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2003', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1182,12 +1223,12 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'organization_token' is set - if ('organization_token' not in params or - params['organization_token'] is None): + if self.api_client.client_side_validation and ('organization_token' not in params or + params['organization_token'] is None): # noqa: E501 raise ValueError("Missing the required parameter `organization_token` when calling `org_account_overview`") # noqa: E501 # verify the required parameter 'account_email' is set - if ('account_email' not in params or - params['account_email'] is None): + if self.api_client.client_side_validation and ('account_email' not in params or + params['account_email'] is None): # noqa: E501 raise ValueError("Missing the required parameter `account_email` when calling `org_account_overview`") # noqa: E501 collection_formats = {} @@ -1210,6 +1251,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1295,6 +1340,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1380,6 +1429,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 @@ -1408,7 +1461,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :return: InlineResponse2007 + :return: object If the method is called asynchronously, returns the request thread. """ @@ -1428,7 +1481,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :return: InlineResponse2007 + :return: object If the method is called asynchronously, returns the request thread. """ @@ -1465,6 +1518,10 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/zrok.v1+json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 @@ -1476,7 +1533,7 @@ class MetadataApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2007', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/sdk/python/sdk/zrok/zrok_api/api/share_api.py b/sdk/python/sdk/zrok/zrok_api/api/share_api.py index 49362e17..63090a4f 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/share_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/share_api.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import re # noqa: F401 @@ -41,8 +42,8 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param AccessBody body: - :return: InlineResponse2013 + :param Body24 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -62,8 +63,8 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param AccessBody body: - :return: InlineResponse2013 + :param Body24 body: + :return: object If the method is called asynchronously, returns the request thread. """ @@ -117,7 +118,7 @@ class ShareApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2013', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -227,7 +228,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param UnaccessBody body: + :param Body27 body: :return: None If the method is called asynchronously, returns the request thread. @@ -248,7 +249,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param UnaccessBody body: + :param Body27 body: :return: None If the method is called asynchronously, returns the request thread. @@ -284,6 +285,10 @@ class ShareApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -316,7 +321,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param UnshareBody body: + :param Body28 body: :return: None If the method is called asynchronously, returns the request thread. @@ -337,7 +342,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param UnshareBody body: + :param Body28 body: :return: None If the method is called asynchronously, returns the request thread. @@ -409,7 +414,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param AccessBody1 body: + :param Body25 body: :return: None If the method is called asynchronously, returns the request thread. @@ -430,7 +435,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param AccessBody1 body: + :param Body25 body: :return: None If the method is called asynchronously, returns the request thread. @@ -466,6 +471,10 @@ class ShareApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -498,7 +507,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param ShareBody body: + :param Body26 body: :return: None If the method is called asynchronously, returns the request thread. @@ -519,7 +528,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param ShareBody body: + :param Body26 body: :return: None If the method is called asynchronously, returns the request thread. @@ -555,6 +564,10 @@ class ShareApi(object): body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/zrok.v1+json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 diff --git a/sdk/python/sdk/zrok/zrok_api/api_client.py b/sdk/python/sdk/zrok/zrok_api/api_client.py index f917a79b..c8d822a5 100644 --- a/sdk/python/sdk/zrok/zrok_api/api_client.py +++ b/sdk/python/sdk/zrok/zrok_api/api_client.py @@ -8,6 +8,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import datetime @@ -65,7 +66,8 @@ class ApiClient(object): configuration = Configuration() self.configuration = configuration - self.pool = ThreadPool() + # Use the pool property to lazily initialize the ThreadPool. + self._pool = None self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: @@ -73,10 +75,18 @@ class ApiClient(object): self.cookie = cookie # Set default User-Agent. self.user_agent = 'Swagger-Codegen/1.0.0/python' + self.client_side_validation = configuration.client_side_validation def __del__(self): - self.pool.close() - self.pool.join() + if self._pool is not None: + self._pool.close() + self._pool.join() + + @property + def pool(self): + if self._pool is None: + self._pool = ThreadPool() + return self._pool @property def user_agent(self): @@ -523,14 +533,10 @@ class ApiClient(object): filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).group(1) path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) + + with open(path, "w") as f: + f.write(response.data) + return path def __deserialize_primitive(self, data, klass): @@ -595,7 +601,7 @@ class ApiClient(object): ) def __hasattr(self, object, name): - return name in object.__class__.__dict__ + return name in object.__class__.__dict__ def __deserialize_model(self, data, klass): """Deserializes list or dict to model. @@ -605,7 +611,8 @@ class ApiClient(object): :return: model object. """ - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): + if (not klass.swagger_types and + not self.__hasattr(klass, 'get_real_child_model')): return data kwargs = {} diff --git a/sdk/python/sdk/zrok/zrok_api/configuration.py b/sdk/python/sdk/zrok/zrok_api/configuration.py index 331c27b7..4b3f8d38 100644 --- a/sdk/python/sdk/zrok/zrok_api/configuration.py +++ b/sdk/python/sdk/zrok/zrok_api/configuration.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import copy @@ -22,31 +23,24 @@ import six from six.moves import http_client as httplib -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): +class Configuration(object): """NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. """ + _default = None + def __init__(self): """Constructor""" + if self._default: + for key in self._default.__dict__.keys(): + self.__dict__[key] = copy.copy(self._default.__dict__[key]) + return + # Default Base url - self.host = "/api/v1" + self.host = "http://localhost/api/v1" # Temp file folder for downloading files self.temp_folder_path = None @@ -61,6 +55,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): self.username = "" # Password for HTTP basic authentication self.password = "" + # Logging Settings self.logger = {} self.logger["package_logger"] = logging.getLogger("zrok_api") @@ -101,6 +96,13 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): # Safe chars for path_param self.safe_chars_for_path_param = '' + # Disable client side validation + self.client_side_validation = True + + @classmethod + def set_default(cls, default): + cls._default = default + @property def logger_file(self): """The logger file. @@ -203,6 +205,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ + if self.refresh_api_key_hook: self.refresh_api_key_hook(self) @@ -219,9 +222,12 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): :return: The token for basic HTTP authentication. """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') + token = "" + if self.username or self.password: + token = urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + return token def auth_settings(self): """Gets Auth Settings dict for api client. @@ -236,6 +242,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)): 'key': 'x-token', 'value': self.get_api_key_with_prefix('x-token') }, + } def to_debug_report(self): diff --git a/sdk/python/sdk/zrok/zrok_api/models/__init__.py b/sdk/python/sdk/zrok/zrok_api/models/__init__.py index c59710d3..ead7e734 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/__init__.py +++ b/sdk/python/sdk/zrok/zrok_api/models/__init__.py @@ -11,69 +11,57 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import # import models into model package -from zrok_api.models.access_body import AccessBody -from zrok_api.models.access_body1 import AccessBody1 -from zrok_api.models.account_body import AccountBody from zrok_api.models.auth_user import AuthUser -from zrok_api.models.change_password_body import ChangePasswordBody -from zrok_api.models.client_version_check_body import ClientVersionCheckBody +from zrok_api.models.body import Body +from zrok_api.models.body1 import Body1 +from zrok_api.models.body10 import Body10 +from zrok_api.models.body11 import Body11 +from zrok_api.models.body12 import Body12 +from zrok_api.models.body13 import Body13 +from zrok_api.models.body14 import Body14 +from zrok_api.models.body15 import Body15 +from zrok_api.models.body16 import Body16 +from zrok_api.models.body17 import Body17 +from zrok_api.models.body18 import Body18 +from zrok_api.models.body19 import Body19 +from zrok_api.models.body2 import Body2 +from zrok_api.models.body20 import Body20 +from zrok_api.models.body21 import Body21 +from zrok_api.models.body22 import Body22 +from zrok_api.models.body23 import Body23 +from zrok_api.models.body24 import Body24 +from zrok_api.models.body25 import Body25 +from zrok_api.models.body26 import Body26 +from zrok_api.models.body27 import Body27 +from zrok_api.models.body28 import Body28 +from zrok_api.models.body3 import Body3 +from zrok_api.models.body4 import Body4 +from zrok_api.models.body5 import Body5 +from zrok_api.models.body6 import Body6 +from zrok_api.models.body7 import Body7 +from zrok_api.models.body8 import Body8 +from zrok_api.models.body9 import Body9 from zrok_api.models.configuration import Configuration -from zrok_api.models.disable_body import DisableBody -from zrok_api.models.enable_body import EnableBody from zrok_api.models.environment import Environment from zrok_api.models.environment_and_resources import EnvironmentAndResources from zrok_api.models.environments import Environments from zrok_api.models.error_message import ErrorMessage from zrok_api.models.frontend import Frontend -from zrok_api.models.frontend_body import FrontendBody -from zrok_api.models.frontend_body1 import FrontendBody1 -from zrok_api.models.frontend_body2 import FrontendBody2 from zrok_api.models.frontends import Frontends -from zrok_api.models.grants_body import GrantsBody -from zrok_api.models.identity_body import IdentityBody from zrok_api.models.inline_response200 import InlineResponse200 -from zrok_api.models.inline_response2001 import InlineResponse2001 -from zrok_api.models.inline_response2002 import InlineResponse2002 -from zrok_api.models.inline_response2003 import InlineResponse2003 -from zrok_api.models.inline_response2003_members import InlineResponse2003Members -from zrok_api.models.inline_response2004 import InlineResponse2004 -from zrok_api.models.inline_response2004_organizations import InlineResponse2004Organizations -from zrok_api.models.inline_response2005 import InlineResponse2005 -from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships -from zrok_api.models.inline_response2006 import InlineResponse2006 -from zrok_api.models.inline_response2007 import InlineResponse2007 from zrok_api.models.inline_response201 import InlineResponse201 -from zrok_api.models.inline_response2011 import InlineResponse2011 -from zrok_api.models.inline_response2012 import InlineResponse2012 -from zrok_api.models.inline_response2013 import InlineResponse2013 -from zrok_api.models.invite_body import InviteBody -from zrok_api.models.login_body import LoginBody from zrok_api.models.metrics import Metrics from zrok_api.models.metrics_sample import MetricsSample -from zrok_api.models.organization_add_body import OrganizationAddBody -from zrok_api.models.organization_body import OrganizationBody -from zrok_api.models.organization_body1 import OrganizationBody1 -from zrok_api.models.organization_list_body import OrganizationListBody -from zrok_api.models.organization_remove_body import OrganizationRemoveBody from zrok_api.models.overview import Overview from zrok_api.models.principal import Principal -from zrok_api.models.regenerate_account_token_body import RegenerateAccountTokenBody -from zrok_api.models.register_body import RegisterBody -from zrok_api.models.reset_password_body import ResetPasswordBody -from zrok_api.models.reset_password_request_body import ResetPasswordRequestBody from zrok_api.models.share import Share -from zrok_api.models.share_body import ShareBody from zrok_api.models.share_request import ShareRequest from zrok_api.models.share_response import ShareResponse from zrok_api.models.shares import Shares from zrok_api.models.spark_data import SparkData from zrok_api.models.spark_data_sample import SparkDataSample -from zrok_api.models.sparklines_body import SparklinesBody -from zrok_api.models.token_generate_body import TokenGenerateBody -from zrok_api.models.unaccess_body import UnaccessBody -from zrok_api.models.unshare_body import UnshareBody -from zrok_api.models.verify_body import VerifyBody from zrok_api.models.version import Version diff --git a/sdk/python/sdk/zrok/zrok_api/models/access_request.py b/sdk/python/sdk/zrok/zrok_api/models/access_request.py new file mode 100644 index 00000000..e51ea20a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/access_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AccessRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'env_zid': 'str', + 'shr_token': 'str' + } + + attribute_map = { + 'env_zid': 'envZId', + 'shr_token': 'shrToken' + } + + def __init__(self, env_zid=None, shr_token=None): # noqa: E501 + """AccessRequest - a model defined in Swagger""" # noqa: E501 + self._env_zid = None + self._shr_token = None + self.discriminator = None + if env_zid is not None: + self.env_zid = env_zid + if shr_token is not None: + self.shr_token = shr_token + + @property + def env_zid(self): + """Gets the env_zid of this AccessRequest. # noqa: E501 + + + :return: The env_zid of this AccessRequest. # noqa: E501 + :rtype: str + """ + return self._env_zid + + @env_zid.setter + def env_zid(self, env_zid): + """Sets the env_zid of this AccessRequest. + + + :param env_zid: The env_zid of this AccessRequest. # noqa: E501 + :type: str + """ + + self._env_zid = env_zid + + @property + def shr_token(self): + """Gets the shr_token of this AccessRequest. # noqa: E501 + + + :return: The shr_token of this AccessRequest. # noqa: E501 + :rtype: str + """ + return self._shr_token + + @shr_token.setter + def shr_token(self, shr_token): + """Sets the shr_token of this AccessRequest. + + + :param shr_token: The shr_token of this AccessRequest. # noqa: E501 + :type: str + """ + + self._shr_token = shr_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AccessRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AccessRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2013.py b/sdk/python/sdk/zrok/zrok_api/models/access_response.py similarity index 78% rename from sdk/python/sdk/zrok/zrok_api/models/inline_response2013.py rename to sdk/python/sdk/zrok/zrok_api/models/access_response.py index 34a37b49..ba02584f 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2013.py +++ b/sdk/python/sdk/zrok/zrok_api/models/access_response.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class InlineResponse2013(object): +class AccessResponse(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +38,7 @@ class InlineResponse2013(object): } def __init__(self, frontend_token=None, backend_mode=None): # noqa: E501 - """InlineResponse2013 - a model defined in Swagger""" # noqa: E501 + """AccessResponse - a model defined in Swagger""" # noqa: E501 self._frontend_token = None self._backend_mode = None self.discriminator = None @@ -49,20 +49,20 @@ class InlineResponse2013(object): @property def frontend_token(self): - """Gets the frontend_token of this InlineResponse2013. # noqa: E501 + """Gets the frontend_token of this AccessResponse. # noqa: E501 - :return: The frontend_token of this InlineResponse2013. # noqa: E501 + :return: The frontend_token of this AccessResponse. # noqa: E501 :rtype: str """ return self._frontend_token @frontend_token.setter def frontend_token(self, frontend_token): - """Sets the frontend_token of this InlineResponse2013. + """Sets the frontend_token of this AccessResponse. - :param frontend_token: The frontend_token of this InlineResponse2013. # noqa: E501 + :param frontend_token: The frontend_token of this AccessResponse. # noqa: E501 :type: str """ @@ -70,20 +70,20 @@ class InlineResponse2013(object): @property def backend_mode(self): - """Gets the backend_mode of this InlineResponse2013. # noqa: E501 + """Gets the backend_mode of this AccessResponse. # noqa: E501 - :return: The backend_mode of this InlineResponse2013. # noqa: E501 + :return: The backend_mode of this AccessResponse. # noqa: E501 :rtype: str """ return self._backend_mode @backend_mode.setter def backend_mode(self, backend_mode): - """Sets the backend_mode of this InlineResponse2013. + """Sets the backend_mode of this AccessResponse. - :param backend_mode: The backend_mode of this InlineResponse2013. # noqa: E501 + :param backend_mode: The backend_mode of this AccessResponse. # noqa: E501 :type: str """ @@ -110,7 +110,7 @@ class InlineResponse2013(object): )) else: result[attr] = value - if issubclass(InlineResponse2013, dict): + if issubclass(AccessResponse, dict): for key, value in self.items(): result[key] = value @@ -126,7 +126,7 @@ class InlineResponse2013(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2013): + if not isinstance(other, AccessResponse): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/account_body.py b/sdk/python/sdk/zrok/zrok_api/models/account_body.py index ea261eb0..2447dea1 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/account_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/account_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/auth_user.py b/sdk/python/sdk/zrok/zrok_api/models/auth_user.py index 0a04dc10..71c88cd4 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/auth_user.py +++ b/sdk/python/sdk/zrok/zrok_api/models/auth_user.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class AuthUser(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class AuthUser(object): 'password': 'password' } - def __init__(self, username=None, password=None): # noqa: E501 + def __init__(self, username=None, password=None, _configuration=None): # noqa: E501 """AuthUser - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._username = None self._password = None self.discriminator = None + if username is not None: self.username = username if password is not None: @@ -129,8 +139,11 @@ class AuthUser(object): if not isinstance(other, AuthUser): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AuthUser): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body.py b/sdk/python/sdk/zrok/zrok_api/models/body.py new file mode 100644 index 00000000..50910f74 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'old_password': 'str', + 'new_password': 'str' + } + + attribute_map = { + 'email': 'email', + 'old_password': 'oldPassword', + 'new_password': 'newPassword' + } + + def __init__(self, email=None, old_password=None, new_password=None, _configuration=None): # noqa: E501 + """Body - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._email = None + self._old_password = None + self._new_password = None + self.discriminator = None + + if email is not None: + self.email = email + if old_password is not None: + self.old_password = old_password + if new_password is not None: + self.new_password = new_password + + @property + def email(self): + """Gets the email of this Body. # noqa: E501 + + + :return: The email of this Body. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Body. + + + :param email: The email of this Body. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def old_password(self): + """Gets the old_password of this Body. # noqa: E501 + + + :return: The old_password of this Body. # noqa: E501 + :rtype: str + """ + return self._old_password + + @old_password.setter + def old_password(self, old_password): + """Sets the old_password of this Body. + + + :param old_password: The old_password of this Body. # noqa: E501 + :type: str + """ + + self._old_password = old_password + + @property + def new_password(self): + """Gets the new_password of this Body. # noqa: E501 + + + :return: The new_password of this Body. # noqa: E501 + :rtype: str + """ + return self._new_password + + @new_password.setter + def new_password(self, new_password): + """Sets the new_password of this Body. + + + :param new_password: The new_password of this Body. # noqa: E501 + :type: str + """ + + self._new_password = new_password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/invite_body.py b/sdk/python/sdk/zrok/zrok_api/models/body1.py similarity index 72% rename from sdk/python/sdk/zrok/zrok_api/models/invite_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body1.py index bb4840d5..42f6e3de 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/invite_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body1.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class InviteBody(object): +from zrok_api.configuration import Configuration + + +class Body1(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class InviteBody(object): 'invite_token': 'inviteToken' } - def __init__(self, email=None, invite_token=None): # noqa: E501 - """InviteBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, email=None, invite_token=None, _configuration=None): # noqa: E501 + """Body1 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._email = None self._invite_token = None self.discriminator = None + if email is not None: self.email = email if invite_token is not None: @@ -49,20 +59,20 @@ class InviteBody(object): @property def email(self): - """Gets the email of this InviteBody. # noqa: E501 + """Gets the email of this Body1. # noqa: E501 - :return: The email of this InviteBody. # noqa: E501 + :return: The email of this Body1. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): - """Sets the email of this InviteBody. + """Sets the email of this Body1. - :param email: The email of this InviteBody. # noqa: E501 + :param email: The email of this Body1. # noqa: E501 :type: str """ @@ -70,20 +80,20 @@ class InviteBody(object): @property def invite_token(self): - """Gets the invite_token of this InviteBody. # noqa: E501 + """Gets the invite_token of this Body1. # noqa: E501 - :return: The invite_token of this InviteBody. # noqa: E501 + :return: The invite_token of this Body1. # noqa: E501 :rtype: str """ return self._invite_token @invite_token.setter def invite_token(self, invite_token): - """Sets the invite_token of this InviteBody. + """Sets the invite_token of this Body1. - :param invite_token: The invite_token of this InviteBody. # noqa: E501 + :param invite_token: The invite_token of this Body1. # noqa: E501 :type: str """ @@ -110,7 +120,7 @@ class InviteBody(object): )) else: result[attr] = value - if issubclass(InviteBody, dict): + if issubclass(Body1, dict): for key, value in self.items(): result[key] = value @@ -126,11 +136,14 @@ class InviteBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InviteBody): + if not isinstance(other, Body1): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body1): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2007.py b/sdk/python/sdk/zrok/zrok_api/models/body10.py similarity index 63% rename from sdk/python/sdk/zrok/zrok_api/models/inline_response2007.py rename to sdk/python/sdk/zrok/zrok_api/models/body10.py index 356d155a..4c2c524b 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2007.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body10.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class InlineResponse2007(object): +from zrok_api.configuration import Configuration + + +class Body10(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -28,40 +33,45 @@ class InlineResponse2007(object): and the value is json key in definition. """ swagger_types = { - 'controller_version': 'str' + 'frontend_token': 'str' } attribute_map = { - 'controller_version': 'controllerVersion' + 'frontend_token': 'frontendToken' } - def __init__(self, controller_version=None): # noqa: E501 - """InlineResponse2007 - a model defined in Swagger""" # noqa: E501 - self._controller_version = None + def __init__(self, frontend_token=None, _configuration=None): # noqa: E501 + """Body10 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._frontend_token = None self.discriminator = None - if controller_version is not None: - self.controller_version = controller_version + + if frontend_token is not None: + self.frontend_token = frontend_token @property - def controller_version(self): - """Gets the controller_version of this InlineResponse2007. # noqa: E501 + def frontend_token(self): + """Gets the frontend_token of this Body10. # noqa: E501 - :return: The controller_version of this InlineResponse2007. # noqa: E501 + :return: The frontend_token of this Body10. # noqa: E501 :rtype: str """ - return self._controller_version + return self._frontend_token - @controller_version.setter - def controller_version(self, controller_version): - """Sets the controller_version of this InlineResponse2007. + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this Body10. - :param controller_version: The controller_version of this InlineResponse2007. # noqa: E501 + :param frontend_token: The frontend_token of this Body10. # noqa: E501 :type: str """ - self._controller_version = controller_version + self._frontend_token = frontend_token def to_dict(self): """Returns the model properties as a dict""" @@ -84,7 +94,7 @@ class InlineResponse2007(object): )) else: result[attr] = value - if issubclass(InlineResponse2007, dict): + if issubclass(Body10, dict): for key, value in self.items(): result[key] = value @@ -100,11 +110,14 @@ class InlineResponse2007(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2007): + if not isinstance(other, Body10): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body10): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body11.py b/sdk/python/sdk/zrok/zrok_api/models/body11.py new file mode 100644 index 00000000..7002c803 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body11.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body11(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'frontend_token': 'str', + 'public_name': 'str', + 'url_template': 'str' + } + + attribute_map = { + 'frontend_token': 'frontendToken', + 'public_name': 'publicName', + 'url_template': 'urlTemplate' + } + + def __init__(self, frontend_token=None, public_name=None, url_template=None, _configuration=None): # noqa: E501 + """Body11 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._frontend_token = None + self._public_name = None + self._url_template = None + self.discriminator = None + + if frontend_token is not None: + self.frontend_token = frontend_token + if public_name is not None: + self.public_name = public_name + if url_template is not None: + self.url_template = url_template + + @property + def frontend_token(self): + """Gets the frontend_token of this Body11. # noqa: E501 + + + :return: The frontend_token of this Body11. # noqa: E501 + :rtype: str + """ + return self._frontend_token + + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this Body11. + + + :param frontend_token: The frontend_token of this Body11. # noqa: E501 + :type: str + """ + + self._frontend_token = frontend_token + + @property + def public_name(self): + """Gets the public_name of this Body11. # noqa: E501 + + + :return: The public_name of this Body11. # noqa: E501 + :rtype: str + """ + return self._public_name + + @public_name.setter + def public_name(self, public_name): + """Sets the public_name of this Body11. + + + :param public_name: The public_name of this Body11. # noqa: E501 + :type: str + """ + + self._public_name = public_name + + @property + def url_template(self): + """Gets the url_template of this Body11. # noqa: E501 + + + :return: The url_template of this Body11. # noqa: E501 + :rtype: str + """ + return self._url_template + + @url_template.setter + def url_template(self, url_template): + """Sets the url_template of this Body11. + + + :param url_template: The url_template of this Body11. # noqa: E501 + :type: str + """ + + self._url_template = url_template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body11, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body11): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body11): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body12.py b/sdk/python/sdk/zrok/zrok_api/models/body12.py new file mode 100644 index 00000000..8740741c --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body12.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body12(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str' + } + + attribute_map = { + 'email': 'email' + } + + def __init__(self, email=None, _configuration=None): # noqa: E501 + """Body12 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._email = None + self.discriminator = None + + if email is not None: + self.email = email + + @property + def email(self): + """Gets the email of this Body12. # noqa: E501 + + + :return: The email of this Body12. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Body12. + + + :param email: The email of this Body12. # noqa: E501 + :type: str + """ + + self._email = email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body12, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body12): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body12): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body13.py b/sdk/python/sdk/zrok/zrok_api/models/body13.py new file mode 100644 index 00000000..0607b626 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body13.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body13(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None, _configuration=None): # noqa: E501 + """Body13 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._name = None + self.discriminator = None + + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this Body13. # noqa: E501 + + + :return: The name of this Body13. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Body13. + + + :param name: The name of this Body13. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body13, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body13): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body13): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/token_generate_body.py b/sdk/python/sdk/zrok/zrok_api/models/body14.py similarity index 74% rename from sdk/python/sdk/zrok/zrok_api/models/token_generate_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body14.py index 0aaa2468..36b8a41e 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/token_generate_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body14.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class TokenGenerateBody(object): +from zrok_api.configuration import Configuration + + +class Body14(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,29 +40,34 @@ class TokenGenerateBody(object): 'invite_tokens': 'inviteTokens' } - def __init__(self, invite_tokens=None): # noqa: E501 - """TokenGenerateBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, invite_tokens=None, _configuration=None): # noqa: E501 + """Body14 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._invite_tokens = None self.discriminator = None + if invite_tokens is not None: self.invite_tokens = invite_tokens @property def invite_tokens(self): - """Gets the invite_tokens of this TokenGenerateBody. # noqa: E501 + """Gets the invite_tokens of this Body14. # noqa: E501 - :return: The invite_tokens of this TokenGenerateBody. # noqa: E501 + :return: The invite_tokens of this Body14. # noqa: E501 :rtype: list[str] """ return self._invite_tokens @invite_tokens.setter def invite_tokens(self, invite_tokens): - """Sets the invite_tokens of this TokenGenerateBody. + """Sets the invite_tokens of this Body14. - :param invite_tokens: The invite_tokens of this TokenGenerateBody. # noqa: E501 + :param invite_tokens: The invite_tokens of this Body14. # noqa: E501 :type: list[str] """ @@ -84,7 +94,7 @@ class TokenGenerateBody(object): )) else: result[attr] = value - if issubclass(TokenGenerateBody, dict): + if issubclass(Body14, dict): for key, value in self.items(): result[key] = value @@ -100,11 +110,14 @@ class TokenGenerateBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, TokenGenerateBody): + if not isinstance(other, Body14): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body14): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body15.py b/sdk/python/sdk/zrok/zrok_api/models/body15.py new file mode 100644 index 00000000..665896c3 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body15.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body15(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str' + } + + attribute_map = { + 'description': 'description' + } + + def __init__(self, description=None, _configuration=None): # noqa: E501 + """Body15 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._description = None + self.discriminator = None + + if description is not None: + self.description = description + + @property + def description(self): + """Gets the description of this Body15. # noqa: E501 + + + :return: The description of this Body15. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Body15. + + + :param description: The description of this Body15. # noqa: E501 + :type: str + """ + + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body15, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body15): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body15): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2012.py b/sdk/python/sdk/zrok/zrok_api/models/body16.py similarity index 76% rename from sdk/python/sdk/zrok/zrok_api/models/inline_response2012.py rename to sdk/python/sdk/zrok/zrok_api/models/body16.py index dee97a61..bddb54cf 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2012.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body16.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class InlineResponse2012(object): +from zrok_api.configuration import Configuration + + +class Body16(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,29 +40,34 @@ class InlineResponse2012(object): 'organization_token': 'organizationToken' } - def __init__(self, organization_token=None): # noqa: E501 - """InlineResponse2012 - a model defined in Swagger""" # noqa: E501 + def __init__(self, organization_token=None, _configuration=None): # noqa: E501 + """Body16 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._organization_token = None self.discriminator = None + if organization_token is not None: self.organization_token = organization_token @property def organization_token(self): - """Gets the organization_token of this InlineResponse2012. # noqa: E501 + """Gets the organization_token of this Body16. # noqa: E501 - :return: The organization_token of this InlineResponse2012. # noqa: E501 + :return: The organization_token of this Body16. # noqa: E501 :rtype: str """ return self._organization_token @organization_token.setter def organization_token(self, organization_token): - """Sets the organization_token of this InlineResponse2012. + """Sets the organization_token of this Body16. - :param organization_token: The organization_token of this InlineResponse2012. # noqa: E501 + :param organization_token: The organization_token of this Body16. # noqa: E501 :type: str """ @@ -84,7 +94,7 @@ class InlineResponse2012(object): )) else: result[attr] = value - if issubclass(InlineResponse2012, dict): + if issubclass(Body16, dict): for key, value in self.items(): result[key] = value @@ -100,11 +110,14 @@ class InlineResponse2012(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2012): + if not isinstance(other, Body16): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body16): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body17.py b/sdk/python/sdk/zrok/zrok_api/models/body17.py new file mode 100644 index 00000000..c3f6a8c8 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body17.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body17(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_token': 'str', + 'email': 'str', + 'admin': 'bool' + } + + attribute_map = { + 'organization_token': 'organizationToken', + 'email': 'email', + 'admin': 'admin' + } + + def __init__(self, organization_token=None, email=None, admin=None, _configuration=None): # noqa: E501 + """Body17 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._organization_token = None + self._email = None + self._admin = None + self.discriminator = None + + if organization_token is not None: + self.organization_token = organization_token + if email is not None: + self.email = email + if admin is not None: + self.admin = admin + + @property + def organization_token(self): + """Gets the organization_token of this Body17. # noqa: E501 + + + :return: The organization_token of this Body17. # noqa: E501 + :rtype: str + """ + return self._organization_token + + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this Body17. + + + :param organization_token: The organization_token of this Body17. # noqa: E501 + :type: str + """ + + self._organization_token = organization_token + + @property + def email(self): + """Gets the email of this Body17. # noqa: E501 + + + :return: The email of this Body17. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Body17. + + + :param email: The email of this Body17. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def admin(self): + """Gets the admin of this Body17. # noqa: E501 + + + :return: The admin of this Body17. # noqa: E501 + :rtype: bool + """ + return self._admin + + @admin.setter + def admin(self, admin): + """Sets the admin of this Body17. + + + :param admin: The admin of this Body17. # noqa: E501 + :type: bool + """ + + self._admin = admin + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body17, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body17): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body17): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body18.py b/sdk/python/sdk/zrok/zrok_api/models/body18.py new file mode 100644 index 00000000..24264efd --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body18.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body18(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_token': 'str' + } + + attribute_map = { + 'organization_token': 'organizationToken' + } + + def __init__(self, organization_token=None, _configuration=None): # noqa: E501 + """Body18 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._organization_token = None + self.discriminator = None + + if organization_token is not None: + self.organization_token = organization_token + + @property + def organization_token(self): + """Gets the organization_token of this Body18. # noqa: E501 + + + :return: The organization_token of this Body18. # noqa: E501 + :rtype: str + """ + return self._organization_token + + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this Body18. + + + :param organization_token: The organization_token of this Body18. # noqa: E501 + :type: str + """ + + self._organization_token = organization_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body18, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body18): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body18): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body19.py b/sdk/python/sdk/zrok/zrok_api/models/body19.py new file mode 100644 index 00000000..1ca823ed --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body19.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body19(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_token': 'str', + 'email': 'str' + } + + attribute_map = { + 'organization_token': 'organizationToken', + 'email': 'email' + } + + def __init__(self, organization_token=None, email=None, _configuration=None): # noqa: E501 + """Body19 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._organization_token = None + self._email = None + self.discriminator = None + + if organization_token is not None: + self.organization_token = organization_token + if email is not None: + self.email = email + + @property + def organization_token(self): + """Gets the organization_token of this Body19. # noqa: E501 + + + :return: The organization_token of this Body19. # noqa: E501 + :rtype: str + """ + return self._organization_token + + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this Body19. + + + :param organization_token: The organization_token of this Body19. # noqa: E501 + :type: str + """ + + self._organization_token = organization_token + + @property + def email(self): + """Gets the email of this Body19. # noqa: E501 + + + :return: The email of this Body19. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Body19. + + + :param email: The email of this Body19. # noqa: E501 + :type: str + """ + + self._email = email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body19, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body19): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body19): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body2.py b/sdk/python/sdk/zrok/zrok_api/models/body2.py new file mode 100644 index 00000000..65befe3f --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body2.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body2(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'password': 'str' + } + + attribute_map = { + 'email': 'email', + 'password': 'password' + } + + def __init__(self, email=None, password=None, _configuration=None): # noqa: E501 + """Body2 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._email = None + self._password = None + self.discriminator = None + + if email is not None: + self.email = email + if password is not None: + self.password = password + + @property + def email(self): + """Gets the email of this Body2. # noqa: E501 + + + :return: The email of this Body2. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Body2. + + + :param email: The email of this Body2. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def password(self): + """Gets the password of this Body2. # noqa: E501 + + + :return: The password of this Body2. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this Body2. + + + :param password: The password of this Body2. # noqa: E501 + :type: str + """ + + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body2, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body2): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body2): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body20.py b/sdk/python/sdk/zrok/zrok_api/models/body20.py new file mode 100644 index 00000000..af02cdc4 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body20.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body20(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'host': 'str' + } + + attribute_map = { + 'description': 'description', + 'host': 'host' + } + + def __init__(self, description=None, host=None, _configuration=None): # noqa: E501 + """Body20 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._description = None + self._host = None + self.discriminator = None + + if description is not None: + self.description = description + if host is not None: + self.host = host + + @property + def description(self): + """Gets the description of this Body20. # noqa: E501 + + + :return: The description of this Body20. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Body20. + + + :param description: The description of this Body20. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def host(self): + """Gets the host of this Body20. # noqa: E501 + + + :return: The host of this Body20. # noqa: E501 + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this Body20. + + + :param host: The host of this Body20. # noqa: E501 + :type: str + """ + + self._host = host + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body20, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body20): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body20): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body21.py b/sdk/python/sdk/zrok/zrok_api/models/body21.py new file mode 100644 index 00000000..4096aa16 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body21.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body21(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'identity': 'str' + } + + attribute_map = { + 'identity': 'identity' + } + + def __init__(self, identity=None, _configuration=None): # noqa: E501 + """Body21 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._identity = None + self.discriminator = None + + if identity is not None: + self.identity = identity + + @property + def identity(self): + """Gets the identity of this Body21. # noqa: E501 + + + :return: The identity of this Body21. # noqa: E501 + :rtype: str + """ + return self._identity + + @identity.setter + def identity(self, identity): + """Sets the identity of this Body21. + + + :param identity: The identity of this Body21. # noqa: E501 + :type: str + """ + + self._identity = identity + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body21, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body21): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body21): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/client_version_check_body.py b/sdk/python/sdk/zrok/zrok_api/models/body22.py similarity index 74% rename from sdk/python/sdk/zrok/zrok_api/models/client_version_check_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body22.py index 9aae0f54..f4b1e9b4 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/client_version_check_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body22.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class ClientVersionCheckBody(object): +from zrok_api.configuration import Configuration + + +class Body22(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,29 +40,34 @@ class ClientVersionCheckBody(object): 'client_version': 'clientVersion' } - def __init__(self, client_version=None): # noqa: E501 - """ClientVersionCheckBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, client_version=None, _configuration=None): # noqa: E501 + """Body22 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._client_version = None self.discriminator = None + if client_version is not None: self.client_version = client_version @property def client_version(self): - """Gets the client_version of this ClientVersionCheckBody. # noqa: E501 + """Gets the client_version of this Body22. # noqa: E501 - :return: The client_version of this ClientVersionCheckBody. # noqa: E501 + :return: The client_version of this Body22. # noqa: E501 :rtype: str """ return self._client_version @client_version.setter def client_version(self, client_version): - """Sets the client_version of this ClientVersionCheckBody. + """Sets the client_version of this Body22. - :param client_version: The client_version of this ClientVersionCheckBody. # noqa: E501 + :param client_version: The client_version of this Body22. # noqa: E501 :type: str """ @@ -84,7 +94,7 @@ class ClientVersionCheckBody(object): )) else: result[attr] = value - if issubclass(ClientVersionCheckBody, dict): + if issubclass(Body22, dict): for key, value in self.items(): result[key] = value @@ -100,11 +110,14 @@ class ClientVersionCheckBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ClientVersionCheckBody): + if not isinstance(other, Body22): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body22): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/sparklines_body.py b/sdk/python/sdk/zrok/zrok_api/models/body23.py similarity index 72% rename from sdk/python/sdk/zrok/zrok_api/models/sparklines_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body23.py index fd84ff20..03a151cf 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/sparklines_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body23.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class SparklinesBody(object): +from zrok_api.configuration import Configuration + + +class Body23(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class SparklinesBody(object): 'shares': 'shares' } - def __init__(self, account=None, environments=None, shares=None): # noqa: E501 - """SparklinesBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, account=None, environments=None, shares=None, _configuration=None): # noqa: E501 + """Body23 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._account = None self._environments = None self._shares = None self.discriminator = None + if account is not None: self.account = account if environments is not None: @@ -54,20 +64,20 @@ class SparklinesBody(object): @property def account(self): - """Gets the account of this SparklinesBody. # noqa: E501 + """Gets the account of this Body23. # noqa: E501 - :return: The account of this SparklinesBody. # noqa: E501 + :return: The account of this Body23. # noqa: E501 :rtype: bool """ return self._account @account.setter def account(self, account): - """Sets the account of this SparklinesBody. + """Sets the account of this Body23. - :param account: The account of this SparklinesBody. # noqa: E501 + :param account: The account of this Body23. # noqa: E501 :type: bool """ @@ -75,20 +85,20 @@ class SparklinesBody(object): @property def environments(self): - """Gets the environments of this SparklinesBody. # noqa: E501 + """Gets the environments of this Body23. # noqa: E501 - :return: The environments of this SparklinesBody. # noqa: E501 + :return: The environments of this Body23. # noqa: E501 :rtype: list[str] """ return self._environments @environments.setter def environments(self, environments): - """Sets the environments of this SparklinesBody. + """Sets the environments of this Body23. - :param environments: The environments of this SparklinesBody. # noqa: E501 + :param environments: The environments of this Body23. # noqa: E501 :type: list[str] """ @@ -96,20 +106,20 @@ class SparklinesBody(object): @property def shares(self): - """Gets the shares of this SparklinesBody. # noqa: E501 + """Gets the shares of this Body23. # noqa: E501 - :return: The shares of this SparklinesBody. # noqa: E501 + :return: The shares of this Body23. # noqa: E501 :rtype: list[str] """ return self._shares @shares.setter def shares(self, shares): - """Sets the shares of this SparklinesBody. + """Sets the shares of this Body23. - :param shares: The shares of this SparklinesBody. # noqa: E501 + :param shares: The shares of this Body23. # noqa: E501 :type: list[str] """ @@ -136,7 +146,7 @@ class SparklinesBody(object): )) else: result[attr] = value - if issubclass(SparklinesBody, dict): + if issubclass(Body23, dict): for key, value in self.items(): result[key] = value @@ -152,11 +162,14 @@ class SparklinesBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, SparklinesBody): + if not isinstance(other, Body23): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body23): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/access_body.py b/sdk/python/sdk/zrok/zrok_api/models/body24.py similarity index 70% rename from sdk/python/sdk/zrok/zrok_api/models/access_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body24.py index ca0ded7f..fdbb8713 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/access_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body24.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class AccessBody(object): +from zrok_api.configuration import Configuration + + +class Body24(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class AccessBody(object): 'description': 'description' } - def __init__(self, env_zid=None, share_token=None, bind_address=None, description=None): # noqa: E501 - """AccessBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, env_zid=None, share_token=None, bind_address=None, description=None, _configuration=None): # noqa: E501 + """Body24 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._env_zid = None self._share_token = None self._bind_address = None self._description = None self.discriminator = None + if env_zid is not None: self.env_zid = env_zid if share_token is not None: @@ -59,20 +69,20 @@ class AccessBody(object): @property def env_zid(self): - """Gets the env_zid of this AccessBody. # noqa: E501 + """Gets the env_zid of this Body24. # noqa: E501 - :return: The env_zid of this AccessBody. # noqa: E501 + :return: The env_zid of this Body24. # noqa: E501 :rtype: str """ return self._env_zid @env_zid.setter def env_zid(self, env_zid): - """Sets the env_zid of this AccessBody. + """Sets the env_zid of this Body24. - :param env_zid: The env_zid of this AccessBody. # noqa: E501 + :param env_zid: The env_zid of this Body24. # noqa: E501 :type: str """ @@ -80,20 +90,20 @@ class AccessBody(object): @property def share_token(self): - """Gets the share_token of this AccessBody. # noqa: E501 + """Gets the share_token of this Body24. # noqa: E501 - :return: The share_token of this AccessBody. # noqa: E501 + :return: The share_token of this Body24. # noqa: E501 :rtype: str """ return self._share_token @share_token.setter def share_token(self, share_token): - """Sets the share_token of this AccessBody. + """Sets the share_token of this Body24. - :param share_token: The share_token of this AccessBody. # noqa: E501 + :param share_token: The share_token of this Body24. # noqa: E501 :type: str """ @@ -101,20 +111,20 @@ class AccessBody(object): @property def bind_address(self): - """Gets the bind_address of this AccessBody. # noqa: E501 + """Gets the bind_address of this Body24. # noqa: E501 - :return: The bind_address of this AccessBody. # noqa: E501 + :return: The bind_address of this Body24. # noqa: E501 :rtype: str """ return self._bind_address @bind_address.setter def bind_address(self, bind_address): - """Sets the bind_address of this AccessBody. + """Sets the bind_address of this Body24. - :param bind_address: The bind_address of this AccessBody. # noqa: E501 + :param bind_address: The bind_address of this Body24. # noqa: E501 :type: str """ @@ -122,20 +132,20 @@ class AccessBody(object): @property def description(self): - """Gets the description of this AccessBody. # noqa: E501 + """Gets the description of this Body24. # noqa: E501 - :return: The description of this AccessBody. # noqa: E501 + :return: The description of this Body24. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this AccessBody. + """Sets the description of this Body24. - :param description: The description of this AccessBody. # noqa: E501 + :param description: The description of this Body24. # noqa: E501 :type: str """ @@ -162,7 +172,7 @@ class AccessBody(object): )) else: result[attr] = value - if issubclass(AccessBody, dict): + if issubclass(Body24, dict): for key, value in self.items(): result[key] = value @@ -178,11 +188,14 @@ class AccessBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AccessBody): + if not isinstance(other, Body24): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body24): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/access_body1.py b/sdk/python/sdk/zrok/zrok_api/models/body25.py similarity index 72% rename from sdk/python/sdk/zrok/zrok_api/models/access_body1.py rename to sdk/python/sdk/zrok/zrok_api/models/body25.py index 97855ec4..c325ac35 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/access_body1.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body25.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class AccessBody1(object): +from zrok_api.configuration import Configuration + + +class Body25(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class AccessBody1(object): 'description': 'description' } - def __init__(self, frontend_token=None, bind_address=None, description=None): # noqa: E501 - """AccessBody1 - a model defined in Swagger""" # noqa: E501 + def __init__(self, frontend_token=None, bind_address=None, description=None, _configuration=None): # noqa: E501 + """Body25 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._frontend_token = None self._bind_address = None self._description = None self.discriminator = None + if frontend_token is not None: self.frontend_token = frontend_token if bind_address is not None: @@ -54,20 +64,20 @@ class AccessBody1(object): @property def frontend_token(self): - """Gets the frontend_token of this AccessBody1. # noqa: E501 + """Gets the frontend_token of this Body25. # noqa: E501 - :return: The frontend_token of this AccessBody1. # noqa: E501 + :return: The frontend_token of this Body25. # noqa: E501 :rtype: str """ return self._frontend_token @frontend_token.setter def frontend_token(self, frontend_token): - """Sets the frontend_token of this AccessBody1. + """Sets the frontend_token of this Body25. - :param frontend_token: The frontend_token of this AccessBody1. # noqa: E501 + :param frontend_token: The frontend_token of this Body25. # noqa: E501 :type: str """ @@ -75,20 +85,20 @@ class AccessBody1(object): @property def bind_address(self): - """Gets the bind_address of this AccessBody1. # noqa: E501 + """Gets the bind_address of this Body25. # noqa: E501 - :return: The bind_address of this AccessBody1. # noqa: E501 + :return: The bind_address of this Body25. # noqa: E501 :rtype: str """ return self._bind_address @bind_address.setter def bind_address(self, bind_address): - """Sets the bind_address of this AccessBody1. + """Sets the bind_address of this Body25. - :param bind_address: The bind_address of this AccessBody1. # noqa: E501 + :param bind_address: The bind_address of this Body25. # noqa: E501 :type: str """ @@ -96,20 +106,20 @@ class AccessBody1(object): @property def description(self): - """Gets the description of this AccessBody1. # noqa: E501 + """Gets the description of this Body25. # noqa: E501 - :return: The description of this AccessBody1. # noqa: E501 + :return: The description of this Body25. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this AccessBody1. + """Sets the description of this Body25. - :param description: The description of this AccessBody1. # noqa: E501 + :param description: The description of this Body25. # noqa: E501 :type: str """ @@ -136,7 +146,7 @@ class AccessBody1(object): )) else: result[attr] = value - if issubclass(AccessBody1, dict): + if issubclass(Body25, dict): for key, value in self.items(): result[key] = value @@ -152,11 +162,14 @@ class AccessBody1(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AccessBody1): + if not isinstance(other, Body25): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body25): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/share_body.py b/sdk/python/sdk/zrok/zrok_api/models/body26.py similarity index 74% rename from sdk/python/sdk/zrok/zrok_api/models/share_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body26.py index f8398b70..05eb4fa1 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/share_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body26.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class ShareBody(object): +from zrok_api.configuration import Configuration + + +class Body26(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class ShareBody(object): 'remove_access_grants': 'removeAccessGrants' } - def __init__(self, share_token=None, backend_proxy_endpoint=None, add_access_grants=None, remove_access_grants=None): # noqa: E501 - """ShareBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, share_token=None, backend_proxy_endpoint=None, add_access_grants=None, remove_access_grants=None, _configuration=None): # noqa: E501 + """Body26 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._share_token = None self._backend_proxy_endpoint = None self._add_access_grants = None self._remove_access_grants = None self.discriminator = None + if share_token is not None: self.share_token = share_token if backend_proxy_endpoint is not None: @@ -59,20 +69,20 @@ class ShareBody(object): @property def share_token(self): - """Gets the share_token of this ShareBody. # noqa: E501 + """Gets the share_token of this Body26. # noqa: E501 - :return: The share_token of this ShareBody. # noqa: E501 + :return: The share_token of this Body26. # noqa: E501 :rtype: str """ return self._share_token @share_token.setter def share_token(self, share_token): - """Sets the share_token of this ShareBody. + """Sets the share_token of this Body26. - :param share_token: The share_token of this ShareBody. # noqa: E501 + :param share_token: The share_token of this Body26. # noqa: E501 :type: str """ @@ -80,20 +90,20 @@ class ShareBody(object): @property def backend_proxy_endpoint(self): - """Gets the backend_proxy_endpoint of this ShareBody. # noqa: E501 + """Gets the backend_proxy_endpoint of this Body26. # noqa: E501 - :return: The backend_proxy_endpoint of this ShareBody. # noqa: E501 + :return: The backend_proxy_endpoint of this Body26. # noqa: E501 :rtype: str """ return self._backend_proxy_endpoint @backend_proxy_endpoint.setter def backend_proxy_endpoint(self, backend_proxy_endpoint): - """Sets the backend_proxy_endpoint of this ShareBody. + """Sets the backend_proxy_endpoint of this Body26. - :param backend_proxy_endpoint: The backend_proxy_endpoint of this ShareBody. # noqa: E501 + :param backend_proxy_endpoint: The backend_proxy_endpoint of this Body26. # noqa: E501 :type: str """ @@ -101,20 +111,20 @@ class ShareBody(object): @property def add_access_grants(self): - """Gets the add_access_grants of this ShareBody. # noqa: E501 + """Gets the add_access_grants of this Body26. # noqa: E501 - :return: The add_access_grants of this ShareBody. # noqa: E501 + :return: The add_access_grants of this Body26. # noqa: E501 :rtype: list[str] """ return self._add_access_grants @add_access_grants.setter def add_access_grants(self, add_access_grants): - """Sets the add_access_grants of this ShareBody. + """Sets the add_access_grants of this Body26. - :param add_access_grants: The add_access_grants of this ShareBody. # noqa: E501 + :param add_access_grants: The add_access_grants of this Body26. # noqa: E501 :type: list[str] """ @@ -122,20 +132,20 @@ class ShareBody(object): @property def remove_access_grants(self): - """Gets the remove_access_grants of this ShareBody. # noqa: E501 + """Gets the remove_access_grants of this Body26. # noqa: E501 - :return: The remove_access_grants of this ShareBody. # noqa: E501 + :return: The remove_access_grants of this Body26. # noqa: E501 :rtype: list[str] """ return self._remove_access_grants @remove_access_grants.setter def remove_access_grants(self, remove_access_grants): - """Sets the remove_access_grants of this ShareBody. + """Sets the remove_access_grants of this Body26. - :param remove_access_grants: The remove_access_grants of this ShareBody. # noqa: E501 + :param remove_access_grants: The remove_access_grants of this Body26. # noqa: E501 :type: list[str] """ @@ -162,7 +172,7 @@ class ShareBody(object): )) else: result[attr] = value - if issubclass(ShareBody, dict): + if issubclass(Body26, dict): for key, value in self.items(): result[key] = value @@ -178,11 +188,14 @@ class ShareBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ShareBody): + if not isinstance(other, Body26): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body26): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/unaccess_body.py b/sdk/python/sdk/zrok/zrok_api/models/body27.py similarity index 72% rename from sdk/python/sdk/zrok/zrok_api/models/unaccess_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body27.py index 77321334..4c0ea84f 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/unaccess_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body27.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class UnaccessBody(object): +from zrok_api.configuration import Configuration + + +class Body27(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class UnaccessBody(object): 'share_token': 'shareToken' } - def __init__(self, frontend_token=None, env_zid=None, share_token=None): # noqa: E501 - """UnaccessBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, frontend_token=None, env_zid=None, share_token=None, _configuration=None): # noqa: E501 + """Body27 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._frontend_token = None self._env_zid = None self._share_token = None self.discriminator = None + if frontend_token is not None: self.frontend_token = frontend_token if env_zid is not None: @@ -54,20 +64,20 @@ class UnaccessBody(object): @property def frontend_token(self): - """Gets the frontend_token of this UnaccessBody. # noqa: E501 + """Gets the frontend_token of this Body27. # noqa: E501 - :return: The frontend_token of this UnaccessBody. # noqa: E501 + :return: The frontend_token of this Body27. # noqa: E501 :rtype: str """ return self._frontend_token @frontend_token.setter def frontend_token(self, frontend_token): - """Sets the frontend_token of this UnaccessBody. + """Sets the frontend_token of this Body27. - :param frontend_token: The frontend_token of this UnaccessBody. # noqa: E501 + :param frontend_token: The frontend_token of this Body27. # noqa: E501 :type: str """ @@ -75,20 +85,20 @@ class UnaccessBody(object): @property def env_zid(self): - """Gets the env_zid of this UnaccessBody. # noqa: E501 + """Gets the env_zid of this Body27. # noqa: E501 - :return: The env_zid of this UnaccessBody. # noqa: E501 + :return: The env_zid of this Body27. # noqa: E501 :rtype: str """ return self._env_zid @env_zid.setter def env_zid(self, env_zid): - """Sets the env_zid of this UnaccessBody. + """Sets the env_zid of this Body27. - :param env_zid: The env_zid of this UnaccessBody. # noqa: E501 + :param env_zid: The env_zid of this Body27. # noqa: E501 :type: str """ @@ -96,20 +106,20 @@ class UnaccessBody(object): @property def share_token(self): - """Gets the share_token of this UnaccessBody. # noqa: E501 + """Gets the share_token of this Body27. # noqa: E501 - :return: The share_token of this UnaccessBody. # noqa: E501 + :return: The share_token of this Body27. # noqa: E501 :rtype: str """ return self._share_token @share_token.setter def share_token(self, share_token): - """Sets the share_token of this UnaccessBody. + """Sets the share_token of this Body27. - :param share_token: The share_token of this UnaccessBody. # noqa: E501 + :param share_token: The share_token of this Body27. # noqa: E501 :type: str """ @@ -136,7 +146,7 @@ class UnaccessBody(object): )) else: result[attr] = value - if issubclass(UnaccessBody, dict): + if issubclass(Body27, dict): for key, value in self.items(): result[key] = value @@ -152,11 +162,14 @@ class UnaccessBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UnaccessBody): + if not isinstance(other, Body27): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body27): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/unshare_body.py b/sdk/python/sdk/zrok/zrok_api/models/body28.py similarity index 72% rename from sdk/python/sdk/zrok/zrok_api/models/unshare_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body28.py index e6463475..567c40f0 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/unshare_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body28.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class UnshareBody(object): +from zrok_api.configuration import Configuration + + +class Body28(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class UnshareBody(object): 'reserved': 'reserved' } - def __init__(self, env_zid=None, share_token=None, reserved=None): # noqa: E501 - """UnshareBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, env_zid=None, share_token=None, reserved=None, _configuration=None): # noqa: E501 + """Body28 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._env_zid = None self._share_token = None self._reserved = None self.discriminator = None + if env_zid is not None: self.env_zid = env_zid if share_token is not None: @@ -54,20 +64,20 @@ class UnshareBody(object): @property def env_zid(self): - """Gets the env_zid of this UnshareBody. # noqa: E501 + """Gets the env_zid of this Body28. # noqa: E501 - :return: The env_zid of this UnshareBody. # noqa: E501 + :return: The env_zid of this Body28. # noqa: E501 :rtype: str """ return self._env_zid @env_zid.setter def env_zid(self, env_zid): - """Sets the env_zid of this UnshareBody. + """Sets the env_zid of this Body28. - :param env_zid: The env_zid of this UnshareBody. # noqa: E501 + :param env_zid: The env_zid of this Body28. # noqa: E501 :type: str """ @@ -75,20 +85,20 @@ class UnshareBody(object): @property def share_token(self): - """Gets the share_token of this UnshareBody. # noqa: E501 + """Gets the share_token of this Body28. # noqa: E501 - :return: The share_token of this UnshareBody. # noqa: E501 + :return: The share_token of this Body28. # noqa: E501 :rtype: str """ return self._share_token @share_token.setter def share_token(self, share_token): - """Sets the share_token of this UnshareBody. + """Sets the share_token of this Body28. - :param share_token: The share_token of this UnshareBody. # noqa: E501 + :param share_token: The share_token of this Body28. # noqa: E501 :type: str """ @@ -96,20 +106,20 @@ class UnshareBody(object): @property def reserved(self): - """Gets the reserved of this UnshareBody. # noqa: E501 + """Gets the reserved of this Body28. # noqa: E501 - :return: The reserved of this UnshareBody. # noqa: E501 + :return: The reserved of this Body28. # noqa: E501 :rtype: bool """ return self._reserved @reserved.setter def reserved(self, reserved): - """Sets the reserved of this UnshareBody. + """Sets the reserved of this Body28. - :param reserved: The reserved of this UnshareBody. # noqa: E501 + :param reserved: The reserved of this Body28. # noqa: E501 :type: bool """ @@ -136,7 +146,7 @@ class UnshareBody(object): )) else: result[attr] = value - if issubclass(UnshareBody, dict): + if issubclass(Body28, dict): for key, value in self.items(): result[key] = value @@ -152,11 +162,14 @@ class UnshareBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, UnshareBody): + if not isinstance(other, Body28): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body28): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body3.py b/sdk/python/sdk/zrok/zrok_api/models/body3.py new file mode 100644 index 00000000..f878a09a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body3.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body3(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email_address': 'str' + } + + attribute_map = { + 'email_address': 'emailAddress' + } + + def __init__(self, email_address=None, _configuration=None): # noqa: E501 + """Body3 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._email_address = None + self.discriminator = None + + if email_address is not None: + self.email_address = email_address + + @property + def email_address(self): + """Gets the email_address of this Body3. # noqa: E501 + + + :return: The email_address of this Body3. # noqa: E501 + :rtype: str + """ + return self._email_address + + @email_address.setter + def email_address(self, email_address): + """Sets the email_address of this Body3. + + + :param email_address: The email_address of this Body3. # noqa: E501 + :type: str + """ + + self._email_address = email_address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body3, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body3): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body3): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/register_body.py b/sdk/python/sdk/zrok/zrok_api/models/body4.py similarity index 72% rename from sdk/python/sdk/zrok/zrok_api/models/register_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body4.py index 80549446..3e9edac8 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/register_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body4.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class RegisterBody(object): +from zrok_api.configuration import Configuration + + +class Body4(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class RegisterBody(object): 'password': 'password' } - def __init__(self, register_token=None, password=None): # noqa: E501 - """RegisterBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, register_token=None, password=None, _configuration=None): # noqa: E501 + """Body4 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._register_token = None self._password = None self.discriminator = None + if register_token is not None: self.register_token = register_token if password is not None: @@ -49,20 +59,20 @@ class RegisterBody(object): @property def register_token(self): - """Gets the register_token of this RegisterBody. # noqa: E501 + """Gets the register_token of this Body4. # noqa: E501 - :return: The register_token of this RegisterBody. # noqa: E501 + :return: The register_token of this Body4. # noqa: E501 :rtype: str """ return self._register_token @register_token.setter def register_token(self, register_token): - """Sets the register_token of this RegisterBody. + """Sets the register_token of this Body4. - :param register_token: The register_token of this RegisterBody. # noqa: E501 + :param register_token: The register_token of this Body4. # noqa: E501 :type: str """ @@ -70,20 +80,20 @@ class RegisterBody(object): @property def password(self): - """Gets the password of this RegisterBody. # noqa: E501 + """Gets the password of this Body4. # noqa: E501 - :return: The password of this RegisterBody. # noqa: E501 + :return: The password of this Body4. # noqa: E501 :rtype: str """ return self._password @password.setter def password(self, password): - """Sets the password of this RegisterBody. + """Sets the password of this Body4. - :param password: The password of this RegisterBody. # noqa: E501 + :param password: The password of this Body4. # noqa: E501 :type: str """ @@ -110,7 +120,7 @@ class RegisterBody(object): )) else: result[attr] = value - if issubclass(RegisterBody, dict): + if issubclass(Body4, dict): for key, value in self.items(): result[key] = value @@ -126,11 +136,14 @@ class RegisterBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RegisterBody): + if not isinstance(other, Body4): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body4): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/reset_password_body.py b/sdk/python/sdk/zrok/zrok_api/models/body5.py similarity index 73% rename from sdk/python/sdk/zrok/zrok_api/models/reset_password_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body5.py index 0dbc086a..49b80ca3 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/reset_password_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body5.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class ResetPasswordBody(object): +from zrok_api.configuration import Configuration + + +class Body5(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class ResetPasswordBody(object): 'password': 'password' } - def __init__(self, reset_token=None, password=None): # noqa: E501 - """ResetPasswordBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, reset_token=None, password=None, _configuration=None): # noqa: E501 + """Body5 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._reset_token = None self._password = None self.discriminator = None + if reset_token is not None: self.reset_token = reset_token if password is not None: @@ -49,20 +59,20 @@ class ResetPasswordBody(object): @property def reset_token(self): - """Gets the reset_token of this ResetPasswordBody. # noqa: E501 + """Gets the reset_token of this Body5. # noqa: E501 - :return: The reset_token of this ResetPasswordBody. # noqa: E501 + :return: The reset_token of this Body5. # noqa: E501 :rtype: str """ return self._reset_token @reset_token.setter def reset_token(self, reset_token): - """Sets the reset_token of this ResetPasswordBody. + """Sets the reset_token of this Body5. - :param reset_token: The reset_token of this ResetPasswordBody. # noqa: E501 + :param reset_token: The reset_token of this Body5. # noqa: E501 :type: str """ @@ -70,20 +80,20 @@ class ResetPasswordBody(object): @property def password(self): - """Gets the password of this ResetPasswordBody. # noqa: E501 + """Gets the password of this Body5. # noqa: E501 - :return: The password of this ResetPasswordBody. # noqa: E501 + :return: The password of this Body5. # noqa: E501 :rtype: str """ return self._password @password.setter def password(self, password): - """Sets the password of this ResetPasswordBody. + """Sets the password of this Body5. - :param password: The password of this ResetPasswordBody. # noqa: E501 + :param password: The password of this Body5. # noqa: E501 :type: str """ @@ -110,7 +120,7 @@ class ResetPasswordBody(object): )) else: result[attr] = value - if issubclass(ResetPasswordBody, dict): + if issubclass(Body5, dict): for key, value in self.items(): result[key] = value @@ -126,11 +136,14 @@ class ResetPasswordBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ResetPasswordBody): + if not isinstance(other, Body5): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body5): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body6.py b/sdk/python/sdk/zrok/zrok_api/models/body6.py new file mode 100644 index 00000000..bfbfe86a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body6.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body6(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email_address': 'str' + } + + attribute_map = { + 'email_address': 'emailAddress' + } + + def __init__(self, email_address=None, _configuration=None): # noqa: E501 + """Body6 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._email_address = None + self.discriminator = None + + if email_address is not None: + self.email_address = email_address + + @property + def email_address(self): + """Gets the email_address of this Body6. # noqa: E501 + + + :return: The email_address of this Body6. # noqa: E501 + :rtype: str + """ + return self._email_address + + @email_address.setter + def email_address(self, email_address): + """Sets the email_address of this Body6. + + + :param email_address: The email_address of this Body6. # noqa: E501 + :type: str + """ + + self._email_address = email_address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body6, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body6): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body6): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/verify_body.py b/sdk/python/sdk/zrok/zrok_api/models/body7.py similarity index 74% rename from sdk/python/sdk/zrok/zrok_api/models/verify_body.py rename to sdk/python/sdk/zrok/zrok_api/models/body7.py index 26acf208..27643139 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/verify_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/body7.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six -class VerifyBody(object): +from zrok_api.configuration import Configuration + + +class Body7(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,29 +40,34 @@ class VerifyBody(object): 'register_token': 'registerToken' } - def __init__(self, register_token=None): # noqa: E501 - """VerifyBody - a model defined in Swagger""" # noqa: E501 + def __init__(self, register_token=None, _configuration=None): # noqa: E501 + """Body7 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._register_token = None self.discriminator = None + if register_token is not None: self.register_token = register_token @property def register_token(self): - """Gets the register_token of this VerifyBody. # noqa: E501 + """Gets the register_token of this Body7. # noqa: E501 - :return: The register_token of this VerifyBody. # noqa: E501 + :return: The register_token of this Body7. # noqa: E501 :rtype: str """ return self._register_token @register_token.setter def register_token(self, register_token): - """Sets the register_token of this VerifyBody. + """Sets the register_token of this Body7. - :param register_token: The register_token of this VerifyBody. # noqa: E501 + :param register_token: The register_token of this Body7. # noqa: E501 :type: str """ @@ -84,7 +94,7 @@ class VerifyBody(object): )) else: result[attr] = value - if issubclass(VerifyBody, dict): + if issubclass(Body7, dict): for key, value in self.items(): result[key] = value @@ -100,11 +110,14 @@ class VerifyBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, VerifyBody): + if not isinstance(other, Body7): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Body7): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body8.py b/sdk/python/sdk/zrok/zrok_api/models/body8.py new file mode 100644 index 00000000..e107a0d9 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body8.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body8(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'password': 'str' + } + + attribute_map = { + 'email': 'email', + 'password': 'password' + } + + def __init__(self, email=None, password=None, _configuration=None): # noqa: E501 + """Body8 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._email = None + self._password = None + self.discriminator = None + + if email is not None: + self.email = email + if password is not None: + self.password = password + + @property + def email(self): + """Gets the email of this Body8. # noqa: E501 + + + :return: The email of this Body8. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Body8. + + + :param email: The email of this Body8. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def password(self): + """Gets the password of this Body8. # noqa: E501 + + + :return: The password of this Body8. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this Body8. + + + :param password: The password of this Body8. # noqa: E501 + :type: str + """ + + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body8, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body8): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body8): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/body9.py b/sdk/python/sdk/zrok/zrok_api/models/body9.py new file mode 100644 index 00000000..9da87bc7 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/body9.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from zrok_api.configuration import Configuration + + +class Body9(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'z_id': 'str', + 'url_template': 'str', + 'public_name': 'str', + 'permission_mode': 'str' + } + + attribute_map = { + 'z_id': 'zId', + 'url_template': 'url_template', + 'public_name': 'public_name', + 'permission_mode': 'permissionMode' + } + + def __init__(self, z_id=None, url_template=None, public_name=None, permission_mode=None, _configuration=None): # noqa: E501 + """Body9 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._z_id = None + self._url_template = None + self._public_name = None + self._permission_mode = None + self.discriminator = None + + if z_id is not None: + self.z_id = z_id + if url_template is not None: + self.url_template = url_template + if public_name is not None: + self.public_name = public_name + if permission_mode is not None: + self.permission_mode = permission_mode + + @property + def z_id(self): + """Gets the z_id of this Body9. # noqa: E501 + + + :return: The z_id of this Body9. # noqa: E501 + :rtype: str + """ + return self._z_id + + @z_id.setter + def z_id(self, z_id): + """Sets the z_id of this Body9. + + + :param z_id: The z_id of this Body9. # noqa: E501 + :type: str + """ + + self._z_id = z_id + + @property + def url_template(self): + """Gets the url_template of this Body9. # noqa: E501 + + + :return: The url_template of this Body9. # noqa: E501 + :rtype: str + """ + return self._url_template + + @url_template.setter + def url_template(self, url_template): + """Sets the url_template of this Body9. + + + :param url_template: The url_template of this Body9. # noqa: E501 + :type: str + """ + + self._url_template = url_template + + @property + def public_name(self): + """Gets the public_name of this Body9. # noqa: E501 + + + :return: The public_name of this Body9. # noqa: E501 + :rtype: str + """ + return self._public_name + + @public_name.setter + def public_name(self, public_name): + """Sets the public_name of this Body9. + + + :param public_name: The public_name of this Body9. # noqa: E501 + :type: str + """ + + self._public_name = public_name + + @property + def permission_mode(self): + """Gets the permission_mode of this Body9. # noqa: E501 + + + :return: The permission_mode of this Body9. # noqa: E501 + :rtype: str + """ + return self._permission_mode + + @permission_mode.setter + def permission_mode(self, permission_mode): + """Sets the permission_mode of this Body9. + + + :param permission_mode: The permission_mode of this Body9. # noqa: E501 + :type: str + """ + allowed_values = ["open", "closed"] # noqa: E501 + if (self._configuration.client_side_validation and + permission_mode not in allowed_values): + raise ValueError( + "Invalid value for `permission_mode` ({0}), must be one of {1}" # noqa: E501 + .format(permission_mode, allowed_values) + ) + + self._permission_mode = permission_mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body9, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body9): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, Body9): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/change_password_body.py b/sdk/python/sdk/zrok/zrok_api/models/change_password_request.py similarity index 77% rename from sdk/python/sdk/zrok/zrok_api/models/change_password_body.py rename to sdk/python/sdk/zrok/zrok_api/models/change_password_request.py index 8c12afb1..fe3f4862 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/change_password_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/change_password_request.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class ChangePasswordBody(object): +class ChangePasswordRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class ChangePasswordBody(object): } def __init__(self, email=None, old_password=None, new_password=None): # noqa: E501 - """ChangePasswordBody - a model defined in Swagger""" # noqa: E501 + """ChangePasswordRequest - a model defined in Swagger""" # noqa: E501 self._email = None self._old_password = None self._new_password = None @@ -54,20 +54,20 @@ class ChangePasswordBody(object): @property def email(self): - """Gets the email of this ChangePasswordBody. # noqa: E501 + """Gets the email of this ChangePasswordRequest. # noqa: E501 - :return: The email of this ChangePasswordBody. # noqa: E501 + :return: The email of this ChangePasswordRequest. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): - """Sets the email of this ChangePasswordBody. + """Sets the email of this ChangePasswordRequest. - :param email: The email of this ChangePasswordBody. # noqa: E501 + :param email: The email of this ChangePasswordRequest. # noqa: E501 :type: str """ @@ -75,20 +75,20 @@ class ChangePasswordBody(object): @property def old_password(self): - """Gets the old_password of this ChangePasswordBody. # noqa: E501 + """Gets the old_password of this ChangePasswordRequest. # noqa: E501 - :return: The old_password of this ChangePasswordBody. # noqa: E501 + :return: The old_password of this ChangePasswordRequest. # noqa: E501 :rtype: str """ return self._old_password @old_password.setter def old_password(self, old_password): - """Sets the old_password of this ChangePasswordBody. + """Sets the old_password of this ChangePasswordRequest. - :param old_password: The old_password of this ChangePasswordBody. # noqa: E501 + :param old_password: The old_password of this ChangePasswordRequest. # noqa: E501 :type: str """ @@ -96,20 +96,20 @@ class ChangePasswordBody(object): @property def new_password(self): - """Gets the new_password of this ChangePasswordBody. # noqa: E501 + """Gets the new_password of this ChangePasswordRequest. # noqa: E501 - :return: The new_password of this ChangePasswordBody. # noqa: E501 + :return: The new_password of this ChangePasswordRequest. # noqa: E501 :rtype: str """ return self._new_password @new_password.setter def new_password(self, new_password): - """Sets the new_password of this ChangePasswordBody. + """Sets the new_password of this ChangePasswordRequest. - :param new_password: The new_password of this ChangePasswordBody. # noqa: E501 + :param new_password: The new_password of this ChangePasswordRequest. # noqa: E501 :type: str """ @@ -136,7 +136,7 @@ class ChangePasswordBody(object): )) else: result[attr] = value - if issubclass(ChangePasswordBody, dict): + if issubclass(ChangePasswordRequest, dict): for key, value in self.items(): result[key] = value @@ -152,7 +152,7 @@ class ChangePasswordBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ChangePasswordBody): + if not isinstance(other, ChangePasswordRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/configuration.py b/sdk/python/sdk/zrok/zrok_api/models/configuration.py index 6f1f70b5..287e5e3b 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/configuration.py +++ b/sdk/python/sdk/zrok/zrok_api/models/configuration.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Configuration(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -43,14 +48,19 @@ class Configuration(object): 'invite_token_contact': 'inviteTokenContact' } - def __init__(self, version=None, tou_link=None, invites_open=None, requires_invite_token=None, invite_token_contact=None): # noqa: E501 + def __init__(self, version=None, tou_link=None, invites_open=None, requires_invite_token=None, invite_token_contact=None, _configuration=None): # noqa: E501 """Configuration - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._version = None self._tou_link = None self._invites_open = None self._requires_invite_token = None self._invite_token_contact = None self.discriminator = None + if version is not None: self.version = version if tou_link is not None: @@ -207,8 +217,11 @@ class Configuration(object): if not isinstance(other, Configuration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Configuration): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend_body.py b/sdk/python/sdk/zrok/zrok_api/models/create_frontend_request.py similarity index 74% rename from sdk/python/sdk/zrok/zrok_api/models/frontend_body.py rename to sdk/python/sdk/zrok/zrok_api/models/create_frontend_request.py index 22f06aac..f6a0cf01 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/frontend_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/create_frontend_request.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class FrontendBody(object): +class CreateFrontendRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class FrontendBody(object): } def __init__(self, z_id=None, url_template=None, public_name=None, permission_mode=None): # noqa: E501 - """FrontendBody - a model defined in Swagger""" # noqa: E501 + """CreateFrontendRequest - a model defined in Swagger""" # noqa: E501 self._z_id = None self._url_template = None self._public_name = None @@ -59,20 +59,20 @@ class FrontendBody(object): @property def z_id(self): - """Gets the z_id of this FrontendBody. # noqa: E501 + """Gets the z_id of this CreateFrontendRequest. # noqa: E501 - :return: The z_id of this FrontendBody. # noqa: E501 + :return: The z_id of this CreateFrontendRequest. # noqa: E501 :rtype: str """ return self._z_id @z_id.setter def z_id(self, z_id): - """Sets the z_id of this FrontendBody. + """Sets the z_id of this CreateFrontendRequest. - :param z_id: The z_id of this FrontendBody. # noqa: E501 + :param z_id: The z_id of this CreateFrontendRequest. # noqa: E501 :type: str """ @@ -80,20 +80,20 @@ class FrontendBody(object): @property def url_template(self): - """Gets the url_template of this FrontendBody. # noqa: E501 + """Gets the url_template of this CreateFrontendRequest. # noqa: E501 - :return: The url_template of this FrontendBody. # noqa: E501 + :return: The url_template of this CreateFrontendRequest. # noqa: E501 :rtype: str """ return self._url_template @url_template.setter def url_template(self, url_template): - """Sets the url_template of this FrontendBody. + """Sets the url_template of this CreateFrontendRequest. - :param url_template: The url_template of this FrontendBody. # noqa: E501 + :param url_template: The url_template of this CreateFrontendRequest. # noqa: E501 :type: str """ @@ -101,20 +101,20 @@ class FrontendBody(object): @property def public_name(self): - """Gets the public_name of this FrontendBody. # noqa: E501 + """Gets the public_name of this CreateFrontendRequest. # noqa: E501 - :return: The public_name of this FrontendBody. # noqa: E501 + :return: The public_name of this CreateFrontendRequest. # noqa: E501 :rtype: str """ return self._public_name @public_name.setter def public_name(self, public_name): - """Sets the public_name of this FrontendBody. + """Sets the public_name of this CreateFrontendRequest. - :param public_name: The public_name of this FrontendBody. # noqa: E501 + :param public_name: The public_name of this CreateFrontendRequest. # noqa: E501 :type: str """ @@ -122,20 +122,20 @@ class FrontendBody(object): @property def permission_mode(self): - """Gets the permission_mode of this FrontendBody. # noqa: E501 + """Gets the permission_mode of this CreateFrontendRequest. # noqa: E501 - :return: The permission_mode of this FrontendBody. # noqa: E501 + :return: The permission_mode of this CreateFrontendRequest. # noqa: E501 :rtype: str """ return self._permission_mode @permission_mode.setter def permission_mode(self, permission_mode): - """Sets the permission_mode of this FrontendBody. + """Sets the permission_mode of this CreateFrontendRequest. - :param permission_mode: The permission_mode of this FrontendBody. # noqa: E501 + :param permission_mode: The permission_mode of this CreateFrontendRequest. # noqa: E501 :type: str """ allowed_values = ["open", "closed"] # noqa: E501 @@ -168,7 +168,7 @@ class FrontendBody(object): )) else: result[attr] = value - if issubclass(FrontendBody, dict): + if issubclass(CreateFrontendRequest, dict): for key, value in self.items(): result[key] = value @@ -184,7 +184,7 @@ class FrontendBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, FrontendBody): + if not isinstance(other, CreateFrontendRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/create_frontend_response.py b/sdk/python/sdk/zrok/zrok_api/models/create_frontend_response.py new file mode 100644 index 00000000..d93e99ed --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/create_frontend_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class CreateFrontendResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'token': 'str' + } + + attribute_map = { + 'token': 'token' + } + + def __init__(self, token=None): # noqa: E501 + """CreateFrontendResponse - a model defined in Swagger""" # noqa: E501 + self._token = None + self.discriminator = None + if token is not None: + self.token = token + + @property + def token(self): + """Gets the token of this CreateFrontendResponse. # noqa: E501 + + + :return: The token of this CreateFrontendResponse. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this CreateFrontendResponse. + + + :param token: The token of this CreateFrontendResponse. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateFrontendResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFrontendResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend_body1.py b/sdk/python/sdk/zrok/zrok_api/models/delete_frontend_request.py similarity index 81% rename from sdk/python/sdk/zrok/zrok_api/models/frontend_body1.py rename to sdk/python/sdk/zrok/zrok_api/models/delete_frontend_request.py index 192f6785..c9b92bad 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/frontend_body1.py +++ b/sdk/python/sdk/zrok/zrok_api/models/delete_frontend_request.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class FrontendBody1(object): +class DeleteFrontendRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +36,7 @@ class FrontendBody1(object): } def __init__(self, frontend_token=None): # noqa: E501 - """FrontendBody1 - a model defined in Swagger""" # noqa: E501 + """DeleteFrontendRequest - a model defined in Swagger""" # noqa: E501 self._frontend_token = None self.discriminator = None if frontend_token is not None: @@ -44,20 +44,20 @@ class FrontendBody1(object): @property def frontend_token(self): - """Gets the frontend_token of this FrontendBody1. # noqa: E501 + """Gets the frontend_token of this DeleteFrontendRequest. # noqa: E501 - :return: The frontend_token of this FrontendBody1. # noqa: E501 + :return: The frontend_token of this DeleteFrontendRequest. # noqa: E501 :rtype: str """ return self._frontend_token @frontend_token.setter def frontend_token(self, frontend_token): - """Sets the frontend_token of this FrontendBody1. + """Sets the frontend_token of this DeleteFrontendRequest. - :param frontend_token: The frontend_token of this FrontendBody1. # noqa: E501 + :param frontend_token: The frontend_token of this DeleteFrontendRequest. # noqa: E501 :type: str """ @@ -84,7 +84,7 @@ class FrontendBody1(object): )) else: result[attr] = value - if issubclass(FrontendBody1, dict): + if issubclass(DeleteFrontendRequest, dict): for key, value in self.items(): result[key] = value @@ -100,7 +100,7 @@ class FrontendBody1(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, FrontendBody1): + if not isinstance(other, DeleteFrontendRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/disable_body.py b/sdk/python/sdk/zrok/zrok_api/models/disable_request.py similarity index 83% rename from sdk/python/sdk/zrok/zrok_api/models/disable_body.py rename to sdk/python/sdk/zrok/zrok_api/models/disable_request.py index bfb40a4a..c0450256 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/disable_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/disable_request.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class DisableBody(object): +class DisableRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +36,7 @@ class DisableBody(object): } def __init__(self, identity=None): # noqa: E501 - """DisableBody - a model defined in Swagger""" # noqa: E501 + """DisableRequest - a model defined in Swagger""" # noqa: E501 self._identity = None self.discriminator = None if identity is not None: @@ -44,20 +44,20 @@ class DisableBody(object): @property def identity(self): - """Gets the identity of this DisableBody. # noqa: E501 + """Gets the identity of this DisableRequest. # noqa: E501 - :return: The identity of this DisableBody. # noqa: E501 + :return: The identity of this DisableRequest. # noqa: E501 :rtype: str """ return self._identity @identity.setter def identity(self, identity): - """Sets the identity of this DisableBody. + """Sets the identity of this DisableRequest. - :param identity: The identity of this DisableBody. # noqa: E501 + :param identity: The identity of this DisableRequest. # noqa: E501 :type: str """ @@ -84,7 +84,7 @@ class DisableBody(object): )) else: result[attr] = value - if issubclass(DisableBody, dict): + if issubclass(DisableRequest, dict): for key, value in self.items(): result[key] = value @@ -100,7 +100,7 @@ class DisableBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, DisableBody): + if not isinstance(other, DisableRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/enable_body.py b/sdk/python/sdk/zrok/zrok_api/models/enable_request.py similarity index 79% rename from sdk/python/sdk/zrok/zrok_api/models/enable_body.py rename to sdk/python/sdk/zrok/zrok_api/models/enable_request.py index 49ac0279..6d35968f 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/enable_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/enable_request.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class EnableBody(object): +class EnableRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +38,7 @@ class EnableBody(object): } def __init__(self, description=None, host=None): # noqa: E501 - """EnableBody - a model defined in Swagger""" # noqa: E501 + """EnableRequest - a model defined in Swagger""" # noqa: E501 self._description = None self._host = None self.discriminator = None @@ -49,20 +49,20 @@ class EnableBody(object): @property def description(self): - """Gets the description of this EnableBody. # noqa: E501 + """Gets the description of this EnableRequest. # noqa: E501 - :return: The description of this EnableBody. # noqa: E501 + :return: The description of this EnableRequest. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this EnableBody. + """Sets the description of this EnableRequest. - :param description: The description of this EnableBody. # noqa: E501 + :param description: The description of this EnableRequest. # noqa: E501 :type: str """ @@ -70,20 +70,20 @@ class EnableBody(object): @property def host(self): - """Gets the host of this EnableBody. # noqa: E501 + """Gets the host of this EnableRequest. # noqa: E501 - :return: The host of this EnableBody. # noqa: E501 + :return: The host of this EnableRequest. # noqa: E501 :rtype: str """ return self._host @host.setter def host(self, host): - """Sets the host of this EnableBody. + """Sets the host of this EnableRequest. - :param host: The host of this EnableBody. # noqa: E501 + :param host: The host of this EnableRequest. # noqa: E501 :type: str """ @@ -110,7 +110,7 @@ class EnableBody(object): )) else: result[attr] = value - if issubclass(EnableBody, dict): + if issubclass(EnableRequest, dict): for key, value in self.items(): result[key] = value @@ -126,7 +126,7 @@ class EnableBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, EnableBody): + if not isinstance(other, EnableRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2011.py b/sdk/python/sdk/zrok/zrok_api/models/enable_response.py similarity index 79% rename from sdk/python/sdk/zrok/zrok_api/models/inline_response2011.py rename to sdk/python/sdk/zrok/zrok_api/models/enable_response.py index 9d80730a..66c8af2f 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2011.py +++ b/sdk/python/sdk/zrok/zrok_api/models/enable_response.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class InlineResponse2011(object): +class EnableResponse(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +38,7 @@ class InlineResponse2011(object): } def __init__(self, identity=None, cfg=None): # noqa: E501 - """InlineResponse2011 - a model defined in Swagger""" # noqa: E501 + """EnableResponse - a model defined in Swagger""" # noqa: E501 self._identity = None self._cfg = None self.discriminator = None @@ -49,20 +49,20 @@ class InlineResponse2011(object): @property def identity(self): - """Gets the identity of this InlineResponse2011. # noqa: E501 + """Gets the identity of this EnableResponse. # noqa: E501 - :return: The identity of this InlineResponse2011. # noqa: E501 + :return: The identity of this EnableResponse. # noqa: E501 :rtype: str """ return self._identity @identity.setter def identity(self, identity): - """Sets the identity of this InlineResponse2011. + """Sets the identity of this EnableResponse. - :param identity: The identity of this InlineResponse2011. # noqa: E501 + :param identity: The identity of this EnableResponse. # noqa: E501 :type: str """ @@ -70,20 +70,20 @@ class InlineResponse2011(object): @property def cfg(self): - """Gets the cfg of this InlineResponse2011. # noqa: E501 + """Gets the cfg of this EnableResponse. # noqa: E501 - :return: The cfg of this InlineResponse2011. # noqa: E501 + :return: The cfg of this EnableResponse. # noqa: E501 :rtype: str """ return self._cfg @cfg.setter def cfg(self, cfg): - """Sets the cfg of this InlineResponse2011. + """Sets the cfg of this EnableResponse. - :param cfg: The cfg of this InlineResponse2011. # noqa: E501 + :param cfg: The cfg of this EnableResponse. # noqa: E501 :type: str """ @@ -110,7 +110,7 @@ class InlineResponse2011(object): )) else: result[attr] = value - if issubclass(InlineResponse2011, dict): + if issubclass(EnableResponse, dict): for key, value in self.items(): result[key] = value @@ -126,7 +126,7 @@ class InlineResponse2011(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2011): + if not isinstance(other, EnableResponse): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/environment.py b/sdk/python/sdk/zrok/zrok_api/models/environment.py index 53c85559..c62eae4d 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/environment.py +++ b/sdk/python/sdk/zrok/zrok_api/models/environment.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Environment(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -49,8 +54,12 @@ class Environment(object): 'updated_at': 'updatedAt' } - def __init__(self, description=None, host=None, address=None, z_id=None, activity=None, limited=None, created_at=None, updated_at=None): # noqa: E501 + def __init__(self, description=None, host=None, address=None, z_id=None, activity=None, limited=None, created_at=None, updated_at=None, _configuration=None): # noqa: E501 """Environment - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._description = None self._host = None self._address = None @@ -60,6 +69,7 @@ class Environment(object): self._created_at = None self._updated_at = None self.discriminator = None + if description is not None: self.description = description if host is not None: @@ -285,8 +295,11 @@ class Environment(object): if not isinstance(other, Environment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Environment): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py b/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py index 12c466bb..08993437 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py +++ b/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class EnvironmentAndResources(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class EnvironmentAndResources(object): 'shares': 'shares' } - def __init__(self, environment=None, frontends=None, shares=None): # noqa: E501 + def __init__(self, environment=None, frontends=None, shares=None, _configuration=None): # noqa: E501 """EnvironmentAndResources - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._environment = None self._frontends = None self._shares = None self.discriminator = None + if environment is not None: self.environment = environment if frontends is not None: @@ -155,8 +165,11 @@ class EnvironmentAndResources(object): if not isinstance(other, EnvironmentAndResources): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, EnvironmentAndResources): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/environments.py b/sdk/python/sdk/zrok/zrok_api/models/environments.py index e6d72d56..eb9d952b 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/environments.py +++ b/sdk/python/sdk/zrok/zrok_api/models/environments.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Environments(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -33,8 +38,11 @@ class Environments(object): attribute_map = { } - def __init__(self): # noqa: E501 + def __init__(self, _configuration=None): # noqa: E501 """Environments - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -77,8 +85,11 @@ class Environments(object): if not isinstance(other, Environments): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Environments): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/error_message.py b/sdk/python/sdk/zrok/zrok_api/models/error_message.py index 19325187..2ab5490f 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/error_message.py +++ b/sdk/python/sdk/zrok/zrok_api/models/error_message.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class ErrorMessage(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -33,8 +38,11 @@ class ErrorMessage(object): attribute_map = { } - def __init__(self): # noqa: E501 + def __init__(self, _configuration=None): # noqa: E501 """ErrorMessage - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -77,8 +85,11 @@ class ErrorMessage(object): if not isinstance(other, ErrorMessage): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ErrorMessage): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend.py b/sdk/python/sdk/zrok/zrok_api/models/frontend.py index 46cf93eb..2d344c7b 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/frontend.py +++ b/sdk/python/sdk/zrok/zrok_api/models/frontend.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Frontend(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -51,8 +56,12 @@ class Frontend(object): 'updated_at': 'updatedAt' } - def __init__(self, id=None, frontend_token=None, share_token=None, backend_mode=None, bind_address=None, description=None, z_id=None, created_at=None, updated_at=None): # noqa: E501 + def __init__(self, id=None, frontend_token=None, share_token=None, backend_mode=None, bind_address=None, description=None, z_id=None, created_at=None, updated_at=None, _configuration=None): # noqa: E501 """Frontend - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._frontend_token = None self._share_token = None @@ -63,6 +72,7 @@ class Frontend(object): self._created_at = None self._updated_at = None self.discriminator = None + if id is not None: self.id = id if frontend_token is not None: @@ -311,8 +321,11 @@ class Frontend(object): if not isinstance(other, Frontend): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Frontend): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontends.py b/sdk/python/sdk/zrok/zrok_api/models/frontends.py index 3c00604a..3012e603 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/frontends.py +++ b/sdk/python/sdk/zrok/zrok_api/models/frontends.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Frontends(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -33,8 +38,11 @@ class Frontends(object): attribute_map = { } - def __init__(self): # noqa: E501 + def __init__(self, _configuration=None): # noqa: E501 """Frontends - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -77,8 +85,11 @@ class Frontends(object): if not isinstance(other, Frontends): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Frontends): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/grants_body.py b/sdk/python/sdk/zrok/zrok_api/models/grants_body.py index 78e7d53a..e61ea02d 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/grants_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/grants_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/identity_body.py b/sdk/python/sdk/zrok/zrok_api/models/identity_body.py index 4be3f8e5..8da98c33 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/identity_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/identity_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response200.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response200.py index edb95aa5..408b1d20 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response200.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response200.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class InlineResponse200(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -28,40 +33,175 @@ class InlineResponse200(object): and the value is json key in definition. """ swagger_types = { - 'account_token': 'str' + 'frontend_token': 'str', + 'z_id': 'str', + 'url_template': 'str', + 'public_name': 'str', + 'created_at': 'int', + 'updated_at': 'int' } attribute_map = { - 'account_token': 'accountToken' + 'frontend_token': 'frontendToken', + 'z_id': 'zId', + 'url_template': 'urlTemplate', + 'public_name': 'publicName', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt' } - def __init__(self, account_token=None): # noqa: E501 + def __init__(self, frontend_token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None, _configuration=None): # noqa: E501 """InlineResponse200 - a model defined in Swagger""" # noqa: E501 - self._account_token = None + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._frontend_token = None + self._z_id = None + self._url_template = None + self._public_name = None + self._created_at = None + self._updated_at = None self.discriminator = None - if account_token is not None: - self.account_token = account_token + + if frontend_token is not None: + self.frontend_token = frontend_token + if z_id is not None: + self.z_id = z_id + if url_template is not None: + self.url_template = url_template + if public_name is not None: + self.public_name = public_name + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at @property - def account_token(self): - """Gets the account_token of this InlineResponse200. # noqa: E501 + def frontend_token(self): + """Gets the frontend_token of this InlineResponse200. # noqa: E501 - :return: The account_token of this InlineResponse200. # noqa: E501 + :return: The frontend_token of this InlineResponse200. # noqa: E501 :rtype: str """ - return self._account_token + return self._frontend_token - @account_token.setter - def account_token(self, account_token): - """Sets the account_token of this InlineResponse200. + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this InlineResponse200. - :param account_token: The account_token of this InlineResponse200. # noqa: E501 + :param frontend_token: The frontend_token of this InlineResponse200. # noqa: E501 :type: str """ - self._account_token = account_token + self._frontend_token = frontend_token + + @property + def z_id(self): + """Gets the z_id of this InlineResponse200. # noqa: E501 + + + :return: The z_id of this InlineResponse200. # noqa: E501 + :rtype: str + """ + return self._z_id + + @z_id.setter + def z_id(self, z_id): + """Sets the z_id of this InlineResponse200. + + + :param z_id: The z_id of this InlineResponse200. # noqa: E501 + :type: str + """ + + self._z_id = z_id + + @property + def url_template(self): + """Gets the url_template of this InlineResponse200. # noqa: E501 + + + :return: The url_template of this InlineResponse200. # noqa: E501 + :rtype: str + """ + return self._url_template + + @url_template.setter + def url_template(self, url_template): + """Sets the url_template of this InlineResponse200. + + + :param url_template: The url_template of this InlineResponse200. # noqa: E501 + :type: str + """ + + self._url_template = url_template + + @property + def public_name(self): + """Gets the public_name of this InlineResponse200. # noqa: E501 + + + :return: The public_name of this InlineResponse200. # noqa: E501 + :rtype: str + """ + return self._public_name + + @public_name.setter + def public_name(self, public_name): + """Sets the public_name of this InlineResponse200. + + + :param public_name: The public_name of this InlineResponse200. # noqa: E501 + :type: str + """ + + self._public_name = public_name + + @property + def created_at(self): + """Gets the created_at of this InlineResponse200. # noqa: E501 + + + :return: The created_at of this InlineResponse200. # noqa: E501 + :rtype: int + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this InlineResponse200. + + + :param created_at: The created_at of this InlineResponse200. # noqa: E501 + :type: int + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this InlineResponse200. # noqa: E501 + + + :return: The updated_at of this InlineResponse200. # noqa: E501 + :rtype: int + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this InlineResponse200. + + + :param updated_at: The updated_at of this InlineResponse200. # noqa: E501 + :type: int + """ + + self._updated_at = updated_at def to_dict(self): """Returns the model properties as a dict""" @@ -103,8 +243,11 @@ class InlineResponse200(object): if not isinstance(other, InlineResponse200): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, InlineResponse200): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2001.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2001.py index 32a1818a..214eca09 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2001.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2001.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,40 @@ class InlineResponse2001(object): and the value is json key in definition. """ swagger_types = { - 'email': 'str' + 'members': 'list[InlineResponse2001Members]' } attribute_map = { - 'email': 'email' + 'members': 'members' } - def __init__(self, email=None): # noqa: E501 + def __init__(self, members=None): # noqa: E501 """InlineResponse2001 - a model defined in Swagger""" # noqa: E501 - self._email = None + self._members = None self.discriminator = None - if email is not None: - self.email = email + if members is not None: + self.members = members @property - def email(self): - """Gets the email of this InlineResponse2001. # noqa: E501 + def members(self): + """Gets the members of this InlineResponse2001. # noqa: E501 - :return: The email of this InlineResponse2001. # noqa: E501 - :rtype: str + :return: The members of this InlineResponse2001. # noqa: E501 + :rtype: list[InlineResponse2001Members] """ - return self._email + return self._members - @email.setter - def email(self, email): - """Sets the email of this InlineResponse2001. + @members.setter + def members(self, members): + """Sets the members of this InlineResponse2001. - :param email: The email of this InlineResponse2001. # noqa: E501 - :type: str + :param members: The members of this InlineResponse2001. # noqa: E501 + :type: list[InlineResponse2001Members] """ - self._email = email + self._members = members def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2003_members.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2001_members.py similarity index 79% rename from sdk/python/sdk/zrok/zrok_api/models/inline_response2003_members.py rename to sdk/python/sdk/zrok/zrok_api/models/inline_response2001_members.py index 359fb898..a5fbc3e6 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2003_members.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2001_members.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class InlineResponse2003Members(object): +class InlineResponse2001Members(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +38,7 @@ class InlineResponse2003Members(object): } def __init__(self, email=None, admin=None): # noqa: E501 - """InlineResponse2003Members - a model defined in Swagger""" # noqa: E501 + """InlineResponse2001Members - a model defined in Swagger""" # noqa: E501 self._email = None self._admin = None self.discriminator = None @@ -49,20 +49,20 @@ class InlineResponse2003Members(object): @property def email(self): - """Gets the email of this InlineResponse2003Members. # noqa: E501 + """Gets the email of this InlineResponse2001Members. # noqa: E501 - :return: The email of this InlineResponse2003Members. # noqa: E501 + :return: The email of this InlineResponse2001Members. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): - """Sets the email of this InlineResponse2003Members. + """Sets the email of this InlineResponse2001Members. - :param email: The email of this InlineResponse2003Members. # noqa: E501 + :param email: The email of this InlineResponse2001Members. # noqa: E501 :type: str """ @@ -70,20 +70,20 @@ class InlineResponse2003Members(object): @property def admin(self): - """Gets the admin of this InlineResponse2003Members. # noqa: E501 + """Gets the admin of this InlineResponse2001Members. # noqa: E501 - :return: The admin of this InlineResponse2003Members. # noqa: E501 + :return: The admin of this InlineResponse2001Members. # noqa: E501 :rtype: bool """ return self._admin @admin.setter def admin(self, admin): - """Sets the admin of this InlineResponse2003Members. + """Sets the admin of this InlineResponse2001Members. - :param admin: The admin of this InlineResponse2003Members. # noqa: E501 + :param admin: The admin of this InlineResponse2001Members. # noqa: E501 :type: bool """ @@ -110,7 +110,7 @@ class InlineResponse2003Members(object): )) else: result[attr] = value - if issubclass(InlineResponse2003Members, dict): + if issubclass(InlineResponse2001Members, dict): for key, value in self.items(): result[key] = value @@ -126,7 +126,7 @@ class InlineResponse2003Members(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2003Members): + if not isinstance(other, InlineResponse2001Members): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2002.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2002.py index a162bfdc..31aca38e 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2002.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2002.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,170 +28,40 @@ class InlineResponse2002(object): and the value is json key in definition. """ swagger_types = { - 'frontend_token': 'str', - 'z_id': 'str', - 'url_template': 'str', - 'public_name': 'str', - 'created_at': 'int', - 'updated_at': 'int' + 'organizations': 'list[InlineResponse2002Organizations]' } attribute_map = { - 'frontend_token': 'frontendToken', - 'z_id': 'zId', - 'url_template': 'urlTemplate', - 'public_name': 'publicName', - 'created_at': 'createdAt', - 'updated_at': 'updatedAt' + 'organizations': 'organizations' } - def __init__(self, frontend_token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None): # noqa: E501 + def __init__(self, organizations=None): # noqa: E501 """InlineResponse2002 - a model defined in Swagger""" # noqa: E501 - self._frontend_token = None - self._z_id = None - self._url_template = None - self._public_name = None - self._created_at = None - self._updated_at = None + self._organizations = None self.discriminator = None - if frontend_token is not None: - self.frontend_token = frontend_token - if z_id is not None: - self.z_id = z_id - if url_template is not None: - self.url_template = url_template - if public_name is not None: - self.public_name = public_name - if created_at is not None: - self.created_at = created_at - if updated_at is not None: - self.updated_at = updated_at + if organizations is not None: + self.organizations = organizations @property - def frontend_token(self): - """Gets the frontend_token of this InlineResponse2002. # noqa: E501 + def organizations(self): + """Gets the organizations of this InlineResponse2002. # noqa: E501 - :return: The frontend_token of this InlineResponse2002. # noqa: E501 - :rtype: str + :return: The organizations of this InlineResponse2002. # noqa: E501 + :rtype: list[InlineResponse2002Organizations] """ - return self._frontend_token + return self._organizations - @frontend_token.setter - def frontend_token(self, frontend_token): - """Sets the frontend_token of this InlineResponse2002. + @organizations.setter + def organizations(self, organizations): + """Sets the organizations of this InlineResponse2002. - :param frontend_token: The frontend_token of this InlineResponse2002. # noqa: E501 - :type: str + :param organizations: The organizations of this InlineResponse2002. # noqa: E501 + :type: list[InlineResponse2002Organizations] """ - self._frontend_token = frontend_token - - @property - def z_id(self): - """Gets the z_id of this InlineResponse2002. # noqa: E501 - - - :return: The z_id of this InlineResponse2002. # noqa: E501 - :rtype: str - """ - return self._z_id - - @z_id.setter - def z_id(self, z_id): - """Sets the z_id of this InlineResponse2002. - - - :param z_id: The z_id of this InlineResponse2002. # noqa: E501 - :type: str - """ - - self._z_id = z_id - - @property - def url_template(self): - """Gets the url_template of this InlineResponse2002. # noqa: E501 - - - :return: The url_template of this InlineResponse2002. # noqa: E501 - :rtype: str - """ - return self._url_template - - @url_template.setter - def url_template(self, url_template): - """Sets the url_template of this InlineResponse2002. - - - :param url_template: The url_template of this InlineResponse2002. # noqa: E501 - :type: str - """ - - self._url_template = url_template - - @property - def public_name(self): - """Gets the public_name of this InlineResponse2002. # noqa: E501 - - - :return: The public_name of this InlineResponse2002. # noqa: E501 - :rtype: str - """ - return self._public_name - - @public_name.setter - def public_name(self, public_name): - """Sets the public_name of this InlineResponse2002. - - - :param public_name: The public_name of this InlineResponse2002. # noqa: E501 - :type: str - """ - - self._public_name = public_name - - @property - def created_at(self): - """Gets the created_at of this InlineResponse2002. # noqa: E501 - - - :return: The created_at of this InlineResponse2002. # noqa: E501 - :rtype: int - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this InlineResponse2002. - - - :param created_at: The created_at of this InlineResponse2002. # noqa: E501 - :type: int - """ - - self._created_at = created_at - - @property - def updated_at(self): - """Gets the updated_at of this InlineResponse2002. # noqa: E501 - - - :return: The updated_at of this InlineResponse2002. # noqa: E501 - :rtype: int - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this InlineResponse2002. - - - :param updated_at: The updated_at of this InlineResponse2002. # noqa: E501 - :type: int - """ - - self._updated_at = updated_at + self._organizations = organizations def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2004_organizations.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2002_organizations.py similarity index 66% rename from sdk/python/sdk/zrok/zrok_api/models/inline_response2004_organizations.py rename to sdk/python/sdk/zrok/zrok_api/models/inline_response2002_organizations.py index 1996b554..b80da9bb 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2004_organizations.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2002_organizations.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class InlineResponse2004Organizations(object): +class InlineResponse2002Organizations(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -28,62 +28,62 @@ class InlineResponse2004Organizations(object): and the value is json key in definition. """ swagger_types = { - 'organization_token': 'str', + 'token': 'str', 'description': 'str' } attribute_map = { - 'organization_token': 'organizationToken', + 'token': 'token', 'description': 'description' } - def __init__(self, organization_token=None, description=None): # noqa: E501 - """InlineResponse2004Organizations - a model defined in Swagger""" # noqa: E501 - self._organization_token = None + def __init__(self, token=None, description=None): # noqa: E501 + """InlineResponse2002Organizations - a model defined in Swagger""" # noqa: E501 + self._token = None self._description = None self.discriminator = None - if organization_token is not None: - self.organization_token = organization_token + if token is not None: + self.token = token if description is not None: self.description = description @property - def organization_token(self): - """Gets the organization_token of this InlineResponse2004Organizations. # noqa: E501 + def token(self): + """Gets the token of this InlineResponse2002Organizations. # noqa: E501 - :return: The organization_token of this InlineResponse2004Organizations. # noqa: E501 + :return: The token of this InlineResponse2002Organizations. # noqa: E501 :rtype: str """ - return self._organization_token + return self._token - @organization_token.setter - def organization_token(self, organization_token): - """Sets the organization_token of this InlineResponse2004Organizations. + @token.setter + def token(self, token): + """Sets the token of this InlineResponse2002Organizations. - :param organization_token: The organization_token of this InlineResponse2004Organizations. # noqa: E501 + :param token: The token of this InlineResponse2002Organizations. # noqa: E501 :type: str """ - self._organization_token = organization_token + self._token = token @property def description(self): - """Gets the description of this InlineResponse2004Organizations. # noqa: E501 + """Gets the description of this InlineResponse2002Organizations. # noqa: E501 - :return: The description of this InlineResponse2004Organizations. # noqa: E501 + :return: The description of this InlineResponse2002Organizations. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this InlineResponse2004Organizations. + """Sets the description of this InlineResponse2002Organizations. - :param description: The description of this InlineResponse2004Organizations. # noqa: E501 + :param description: The description of this InlineResponse2002Organizations. # noqa: E501 :type: str """ @@ -110,7 +110,7 @@ class InlineResponse2004Organizations(object): )) else: result[attr] = value - if issubclass(InlineResponse2004Organizations, dict): + if issubclass(InlineResponse2002Organizations, dict): for key, value in self.items(): result[key] = value @@ -126,7 +126,7 @@ class InlineResponse2004Organizations(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2004Organizations): + if not isinstance(other, InlineResponse2002Organizations): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2003.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2003.py index 93926054..b92d8287 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2003.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2003.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,40 @@ class InlineResponse2003(object): and the value is json key in definition. """ swagger_types = { - 'members': 'list[InlineResponse2003Members]' + 'memberships': 'list[InlineResponse2003Memberships]' } attribute_map = { - 'members': 'members' + 'memberships': 'memberships' } - def __init__(self, members=None): # noqa: E501 + def __init__(self, memberships=None): # noqa: E501 """InlineResponse2003 - a model defined in Swagger""" # noqa: E501 - self._members = None + self._memberships = None self.discriminator = None - if members is not None: - self.members = members + if memberships is not None: + self.memberships = memberships @property - def members(self): - """Gets the members of this InlineResponse2003. # noqa: E501 + def memberships(self): + """Gets the memberships of this InlineResponse2003. # noqa: E501 - :return: The members of this InlineResponse2003. # noqa: E501 - :rtype: list[InlineResponse2003Members] + :return: The memberships of this InlineResponse2003. # noqa: E501 + :rtype: list[InlineResponse2003Memberships] """ - return self._members + return self._memberships - @members.setter - def members(self, members): - """Sets the members of this InlineResponse2003. + @memberships.setter + def memberships(self, memberships): + """Sets the memberships of this InlineResponse2003. - :param members: The members of this InlineResponse2003. # noqa: E501 - :type: list[InlineResponse2003Members] + :param memberships: The memberships of this InlineResponse2003. # noqa: E501 + :type: list[InlineResponse2003Memberships] """ - self._members = members + self._memberships = memberships def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2005_memberships.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2003_memberships.py similarity index 65% rename from sdk/python/sdk/zrok/zrok_api/models/inline_response2005_memberships.py rename to sdk/python/sdk/zrok/zrok_api/models/inline_response2003_memberships.py index 915fa44e..e7d293af 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2005_memberships.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2003_memberships.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class InlineResponse2005Memberships(object): +class InlineResponse2003Memberships(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -28,67 +28,67 @@ class InlineResponse2005Memberships(object): and the value is json key in definition. """ swagger_types = { - 'organization_token': 'str', + 'token': 'str', 'description': 'str', 'admin': 'bool' } attribute_map = { - 'organization_token': 'organizationToken', + 'token': 'token', 'description': 'description', 'admin': 'admin' } - def __init__(self, organization_token=None, description=None, admin=None): # noqa: E501 - """InlineResponse2005Memberships - a model defined in Swagger""" # noqa: E501 - self._organization_token = None + def __init__(self, token=None, description=None, admin=None): # noqa: E501 + """InlineResponse2003Memberships - a model defined in Swagger""" # noqa: E501 + self._token = None self._description = None self._admin = None self.discriminator = None - if organization_token is not None: - self.organization_token = organization_token + if token is not None: + self.token = token if description is not None: self.description = description if admin is not None: self.admin = admin @property - def organization_token(self): - """Gets the organization_token of this InlineResponse2005Memberships. # noqa: E501 + def token(self): + """Gets the token of this InlineResponse2003Memberships. # noqa: E501 - :return: The organization_token of this InlineResponse2005Memberships. # noqa: E501 + :return: The token of this InlineResponse2003Memberships. # noqa: E501 :rtype: str """ - return self._organization_token + return self._token - @organization_token.setter - def organization_token(self, organization_token): - """Sets the organization_token of this InlineResponse2005Memberships. + @token.setter + def token(self, token): + """Sets the token of this InlineResponse2003Memberships. - :param organization_token: The organization_token of this InlineResponse2005Memberships. # noqa: E501 + :param token: The token of this InlineResponse2003Memberships. # noqa: E501 :type: str """ - self._organization_token = organization_token + self._token = token @property def description(self): - """Gets the description of this InlineResponse2005Memberships. # noqa: E501 + """Gets the description of this InlineResponse2003Memberships. # noqa: E501 - :return: The description of this InlineResponse2005Memberships. # noqa: E501 + :return: The description of this InlineResponse2003Memberships. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """Sets the description of this InlineResponse2005Memberships. + """Sets the description of this InlineResponse2003Memberships. - :param description: The description of this InlineResponse2005Memberships. # noqa: E501 + :param description: The description of this InlineResponse2003Memberships. # noqa: E501 :type: str """ @@ -96,20 +96,20 @@ class InlineResponse2005Memberships(object): @property def admin(self): - """Gets the admin of this InlineResponse2005Memberships. # noqa: E501 + """Gets the admin of this InlineResponse2003Memberships. # noqa: E501 - :return: The admin of this InlineResponse2005Memberships. # noqa: E501 + :return: The admin of this InlineResponse2003Memberships. # noqa: E501 :rtype: bool """ return self._admin @admin.setter def admin(self, admin): - """Sets the admin of this InlineResponse2005Memberships. + """Sets the admin of this InlineResponse2003Memberships. - :param admin: The admin of this InlineResponse2005Memberships. # noqa: E501 + :param admin: The admin of this InlineResponse2003Memberships. # noqa: E501 :type: bool """ @@ -136,7 +136,7 @@ class InlineResponse2005Memberships(object): )) else: result[attr] = value - if issubclass(InlineResponse2005Memberships, dict): + if issubclass(InlineResponse2003Memberships, dict): for key, value in self.items(): result[key] = value @@ -152,7 +152,7 @@ class InlineResponse2005Memberships(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2005Memberships): + if not isinstance(other, InlineResponse2003Memberships): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2004.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2004.py deleted file mode 100644 index d0a55eb0..00000000 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2004.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class InlineResponse2004(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'organizations': 'list[InlineResponse2004Organizations]' - } - - attribute_map = { - 'organizations': 'organizations' - } - - def __init__(self, organizations=None): # noqa: E501 - """InlineResponse2004 - a model defined in Swagger""" # noqa: E501 - self._organizations = None - self.discriminator = None - if organizations is not None: - self.organizations = organizations - - @property - def organizations(self): - """Gets the organizations of this InlineResponse2004. # noqa: E501 - - - :return: The organizations of this InlineResponse2004. # noqa: E501 - :rtype: list[InlineResponse2004Organizations] - """ - return self._organizations - - @organizations.setter - def organizations(self, organizations): - """Sets the organizations of this InlineResponse2004. - - - :param organizations: The organizations of this InlineResponse2004. # noqa: E501 - :type: list[InlineResponse2004Organizations] - """ - - self._organizations = organizations - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(InlineResponse2004, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2004): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2005.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2005.py deleted file mode 100644 index 3fa22e9d..00000000 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2005.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - zrok - - zrok client access # noqa: E501 - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class InlineResponse2005(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'memberships': 'list[InlineResponse2005Memberships]' - } - - attribute_map = { - 'memberships': 'memberships' - } - - def __init__(self, memberships=None): # noqa: E501 - """InlineResponse2005 - a model defined in Swagger""" # noqa: E501 - self._memberships = None - self.discriminator = None - if memberships is not None: - self.memberships = memberships - - @property - def memberships(self): - """Gets the memberships of this InlineResponse2005. # noqa: E501 - - - :return: The memberships of this InlineResponse2005. # noqa: E501 - :rtype: list[InlineResponse2005Memberships] - """ - return self._memberships - - @memberships.setter - def memberships(self, memberships): - """Sets the memberships of this InlineResponse2005. - - - :param memberships: The memberships of this InlineResponse2005. # noqa: E501 - :type: list[InlineResponse2005Memberships] - """ - - self._memberships = memberships - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(InlineResponse2005, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2005): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response201.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response201.py index 2cc96e64..4b493cb3 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response201.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response201.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class InlineResponse201(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -35,10 +40,15 @@ class InlineResponse201(object): 'frontend_token': 'frontendToken' } - def __init__(self, frontend_token=None): # noqa: E501 + def __init__(self, frontend_token=None, _configuration=None): # noqa: E501 """InlineResponse201 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._frontend_token = None self.discriminator = None + if frontend_token is not None: self.frontend_token = frontend_token @@ -103,8 +113,11 @@ class InlineResponse201(object): if not isinstance(other, InlineResponse201): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, InlineResponse201): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/invite_request.py b/sdk/python/sdk/zrok/zrok_api/models/invite_request.py new file mode 100644 index 00000000..cd4a2d92 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/invite_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InviteRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str', + 'token': 'str' + } + + attribute_map = { + 'email': 'email', + 'token': 'token' + } + + def __init__(self, email=None, token=None): # noqa: E501 + """InviteRequest - a model defined in Swagger""" # noqa: E501 + self._email = None + self._token = None + self.discriminator = None + if email is not None: + self.email = email + if token is not None: + self.token = token + + @property + def email(self): + """Gets the email of this InviteRequest. # noqa: E501 + + + :return: The email of this InviteRequest. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this InviteRequest. + + + :param email: The email of this InviteRequest. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def token(self): + """Gets the token of this InviteRequest. # noqa: E501 + + + :return: The token of this InviteRequest. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this InviteRequest. + + + :param token: The token of this InviteRequest. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InviteRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InviteRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/invite_token_generate_request.py b/sdk/python/sdk/zrok/zrok_api/models/invite_token_generate_request.py new file mode 100644 index 00000000..6cc198d9 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/invite_token_generate_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InviteTokenGenerateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tokens': 'list[str]' + } + + attribute_map = { + 'tokens': 'tokens' + } + + def __init__(self, tokens=None): # noqa: E501 + """InviteTokenGenerateRequest - a model defined in Swagger""" # noqa: E501 + self._tokens = None + self.discriminator = None + if tokens is not None: + self.tokens = tokens + + @property + def tokens(self): + """Gets the tokens of this InviteTokenGenerateRequest. # noqa: E501 + + + :return: The tokens of this InviteTokenGenerateRequest. # noqa: E501 + :rtype: list[str] + """ + return self._tokens + + @tokens.setter + def tokens(self, tokens): + """Sets the tokens of this InviteTokenGenerateRequest. + + + :param tokens: The tokens of this InviteTokenGenerateRequest. # noqa: E501 + :type: list[str] + """ + + self._tokens = tokens + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InviteTokenGenerateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InviteTokenGenerateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/login_body.py b/sdk/python/sdk/zrok/zrok_api/models/login_request.py similarity index 80% rename from sdk/python/sdk/zrok/zrok_api/models/login_body.py rename to sdk/python/sdk/zrok/zrok_api/models/login_request.py index 127672ca..c91bcc2b 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/login_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/login_request.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class LoginBody(object): +class LoginRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +38,7 @@ class LoginBody(object): } def __init__(self, email=None, password=None): # noqa: E501 - """LoginBody - a model defined in Swagger""" # noqa: E501 + """LoginRequest - a model defined in Swagger""" # noqa: E501 self._email = None self._password = None self.discriminator = None @@ -49,20 +49,20 @@ class LoginBody(object): @property def email(self): - """Gets the email of this LoginBody. # noqa: E501 + """Gets the email of this LoginRequest. # noqa: E501 - :return: The email of this LoginBody. # noqa: E501 + :return: The email of this LoginRequest. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): - """Sets the email of this LoginBody. + """Sets the email of this LoginRequest. - :param email: The email of this LoginBody. # noqa: E501 + :param email: The email of this LoginRequest. # noqa: E501 :type: str """ @@ -70,20 +70,20 @@ class LoginBody(object): @property def password(self): - """Gets the password of this LoginBody. # noqa: E501 + """Gets the password of this LoginRequest. # noqa: E501 - :return: The password of this LoginBody. # noqa: E501 + :return: The password of this LoginRequest. # noqa: E501 :rtype: str """ return self._password @password.setter def password(self, password): - """Sets the password of this LoginBody. + """Sets the password of this LoginRequest. - :param password: The password of this LoginBody. # noqa: E501 + :param password: The password of this LoginRequest. # noqa: E501 :type: str """ @@ -110,7 +110,7 @@ class LoginBody(object): )) else: result[attr] = value - if issubclass(LoginBody, dict): + if issubclass(LoginRequest, dict): for key, value in self.items(): result[key] = value @@ -126,7 +126,7 @@ class LoginBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, LoginBody): + if not isinstance(other, LoginRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/login_response.py b/sdk/python/sdk/zrok/zrok_api/models/login_response.py new file mode 100644 index 00000000..65178a79 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/login_response.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class LoginResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """LoginResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(LoginResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LoginResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/metrics.py b/sdk/python/sdk/zrok/zrok_api/models/metrics.py index d7dd52f8..ee839634 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/metrics.py +++ b/sdk/python/sdk/zrok/zrok_api/models/metrics.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Metrics(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -41,13 +46,18 @@ class Metrics(object): 'samples': 'samples' } - def __init__(self, scope=None, id=None, period=None, samples=None): # noqa: E501 + def __init__(self, scope=None, id=None, period=None, samples=None, _configuration=None): # noqa: E501 """Metrics - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._scope = None self._id = None self._period = None self._samples = None self.discriminator = None + if scope is not None: self.scope = scope if id is not None: @@ -181,8 +191,11 @@ class Metrics(object): if not isinstance(other, Metrics): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Metrics): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py b/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py index 8e297c43..312c2bc0 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py +++ b/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class MetricsSample(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -39,12 +44,17 @@ class MetricsSample(object): 'timestamp': 'timestamp' } - def __init__(self, rx=None, tx=None, timestamp=None): # noqa: E501 + def __init__(self, rx=None, tx=None, timestamp=None, _configuration=None): # noqa: E501 """MetricsSample - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._rx = None self._tx = None self._timestamp = None self.discriminator = None + if rx is not None: self.rx = rx if tx is not None: @@ -155,8 +165,11 @@ class MetricsSample(object): if not isinstance(other, MetricsSample): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, MetricsSample): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_add_body.py b/sdk/python/sdk/zrok/zrok_api/models/organization_add_body.py index 48fd06da..918758ab 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_add_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_add_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,50 +28,50 @@ class OrganizationAddBody(object): and the value is json key in definition. """ swagger_types = { - 'organization_token': 'str', + 'token': 'str', 'email': 'str', 'admin': 'bool' } attribute_map = { - 'organization_token': 'organizationToken', + 'token': 'token', 'email': 'email', 'admin': 'admin' } - def __init__(self, organization_token=None, email=None, admin=None): # noqa: E501 + def __init__(self, token=None, email=None, admin=None): # noqa: E501 """OrganizationAddBody - a model defined in Swagger""" # noqa: E501 - self._organization_token = None + self._token = None self._email = None self._admin = None self.discriminator = None - if organization_token is not None: - self.organization_token = organization_token + if token is not None: + self.token = token if email is not None: self.email = email if admin is not None: self.admin = admin @property - def organization_token(self): - """Gets the organization_token of this OrganizationAddBody. # noqa: E501 + def token(self): + """Gets the token of this OrganizationAddBody. # noqa: E501 - :return: The organization_token of this OrganizationAddBody. # noqa: E501 + :return: The token of this OrganizationAddBody. # noqa: E501 :rtype: str """ - return self._organization_token + return self._token - @organization_token.setter - def organization_token(self, organization_token): - """Sets the organization_token of this OrganizationAddBody. + @token.setter + def token(self, token): + """Sets the token of this OrganizationAddBody. - :param organization_token: The organization_token of this OrganizationAddBody. # noqa: E501 + :param token: The token of this OrganizationAddBody. # noqa: E501 :type: str """ - self._organization_token = organization_token + self._token = token @property def email(self): diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_body.py b/sdk/python/sdk/zrok/zrok_api/models/organization_body.py index 8133f0ff..0875eadb 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_body1.py b/sdk/python/sdk/zrok/zrok_api/models/organization_body1.py index 45a5afde..a605af16 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_body1.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_body1.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,40 @@ class OrganizationBody1(object): and the value is json key in definition. """ swagger_types = { - 'organization_token': 'str' + 'token': 'str' } attribute_map = { - 'organization_token': 'organizationToken' + 'token': 'token' } - def __init__(self, organization_token=None): # noqa: E501 + def __init__(self, token=None): # noqa: E501 """OrganizationBody1 - a model defined in Swagger""" # noqa: E501 - self._organization_token = None + self._token = None self.discriminator = None - if organization_token is not None: - self.organization_token = organization_token + if token is not None: + self.token = token @property - def organization_token(self): - """Gets the organization_token of this OrganizationBody1. # noqa: E501 + def token(self): + """Gets the token of this OrganizationBody1. # noqa: E501 - :return: The organization_token of this OrganizationBody1. # noqa: E501 + :return: The token of this OrganizationBody1. # noqa: E501 :rtype: str """ - return self._organization_token + return self._token - @organization_token.setter - def organization_token(self, organization_token): - """Sets the organization_token of this OrganizationBody1. + @token.setter + def token(self, token): + """Sets the token of this OrganizationBody1. - :param organization_token: The organization_token of this OrganizationBody1. # noqa: E501 + :param token: The token of this OrganizationBody1. # noqa: E501 :type: str """ - self._organization_token = organization_token + self._token = token def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_list_body.py b/sdk/python/sdk/zrok/zrok_api/models/organization_list_body.py index 167a9fe9..4b783851 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_list_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_list_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,40 @@ class OrganizationListBody(object): and the value is json key in definition. """ swagger_types = { - 'organization_token': 'str' + 'token': 'str' } attribute_map = { - 'organization_token': 'organizationToken' + 'token': 'token' } - def __init__(self, organization_token=None): # noqa: E501 + def __init__(self, token=None): # noqa: E501 """OrganizationListBody - a model defined in Swagger""" # noqa: E501 - self._organization_token = None + self._token = None self.discriminator = None - if organization_token is not None: - self.organization_token = organization_token + if token is not None: + self.token = token @property - def organization_token(self): - """Gets the organization_token of this OrganizationListBody. # noqa: E501 + def token(self): + """Gets the token of this OrganizationListBody. # noqa: E501 - :return: The organization_token of this OrganizationListBody. # noqa: E501 + :return: The token of this OrganizationListBody. # noqa: E501 :rtype: str """ - return self._organization_token + return self._token - @organization_token.setter - def organization_token(self, organization_token): - """Sets the organization_token of this OrganizationListBody. + @token.setter + def token(self, token): + """Sets the token of this OrganizationListBody. - :param organization_token: The organization_token of this OrganizationListBody. # noqa: E501 + :param token: The token of this OrganizationListBody. # noqa: E501 :type: str """ - self._organization_token = organization_token + self._token = token def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2006.py b/sdk/python/sdk/zrok/zrok_api/models/organization_members_body.py similarity index 69% rename from sdk/python/sdk/zrok/zrok_api/models/inline_response2006.py rename to sdk/python/sdk/zrok/zrok_api/models/organization_members_body.py index 5757905a..354d3f46 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2006.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_members_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class InlineResponse2006(object): +class OrganizationMembersBody(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -28,40 +28,40 @@ class InlineResponse2006(object): and the value is json key in definition. """ swagger_types = { - 'sparklines': 'list[Metrics]' + 'token': 'str' } attribute_map = { - 'sparklines': 'sparklines' + 'token': 'token' } - def __init__(self, sparklines=None): # noqa: E501 - """InlineResponse2006 - a model defined in Swagger""" # noqa: E501 - self._sparklines = None + def __init__(self, token=None): # noqa: E501 + """OrganizationMembersBody - a model defined in Swagger""" # noqa: E501 + self._token = None self.discriminator = None - if sparklines is not None: - self.sparklines = sparklines + if token is not None: + self.token = token @property - def sparklines(self): - """Gets the sparklines of this InlineResponse2006. # noqa: E501 + def token(self): + """Gets the token of this OrganizationMembersBody. # noqa: E501 - :return: The sparklines of this InlineResponse2006. # noqa: E501 - :rtype: list[Metrics] + :return: The token of this OrganizationMembersBody. # noqa: E501 + :rtype: str """ - return self._sparklines + return self._token - @sparklines.setter - def sparklines(self, sparklines): - """Sets the sparklines of this InlineResponse2006. + @token.setter + def token(self, token): + """Sets the token of this OrganizationMembersBody. - :param sparklines: The sparklines of this InlineResponse2006. # noqa: E501 - :type: list[Metrics] + :param token: The token of this OrganizationMembersBody. # noqa: E501 + :type: str """ - self._sparklines = sparklines + self._token = token def to_dict(self): """Returns the model properties as a dict""" @@ -84,7 +84,7 @@ class InlineResponse2006(object): )) else: result[attr] = value - if issubclass(InlineResponse2006, dict): + if issubclass(OrganizationMembersBody, dict): for key, value in self.items(): result[key] = value @@ -100,7 +100,7 @@ class InlineResponse2006(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, InlineResponse2006): + if not isinstance(other, OrganizationMembersBody): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_remove_body.py b/sdk/python/sdk/zrok/zrok_api/models/organization_remove_body.py index c4a9374d..4600d47f 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_remove_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_remove_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,45 +28,45 @@ class OrganizationRemoveBody(object): and the value is json key in definition. """ swagger_types = { - 'organization_token': 'str', + 'token': 'str', 'email': 'str' } attribute_map = { - 'organization_token': 'organizationToken', + 'token': 'token', 'email': 'email' } - def __init__(self, organization_token=None, email=None): # noqa: E501 + def __init__(self, token=None, email=None): # noqa: E501 """OrganizationRemoveBody - a model defined in Swagger""" # noqa: E501 - self._organization_token = None + self._token = None self._email = None self.discriminator = None - if organization_token is not None: - self.organization_token = organization_token + if token is not None: + self.token = token if email is not None: self.email = email @property - def organization_token(self): - """Gets the organization_token of this OrganizationRemoveBody. # noqa: E501 + def token(self): + """Gets the token of this OrganizationRemoveBody. # noqa: E501 - :return: The organization_token of this OrganizationRemoveBody. # noqa: E501 + :return: The token of this OrganizationRemoveBody. # noqa: E501 :rtype: str """ - return self._organization_token + return self._token - @organization_token.setter - def organization_token(self, organization_token): - """Sets the organization_token of this OrganizationRemoveBody. + @token.setter + def token(self, token): + """Sets the token of this OrganizationRemoveBody. - :param organization_token: The organization_token of this OrganizationRemoveBody. # noqa: E501 + :param token: The token of this OrganizationRemoveBody. # noqa: E501 :type: str """ - self._organization_token = organization_token + self._token = token @property def email(self): diff --git a/sdk/python/sdk/zrok/zrok_api/models/organizationremove_organizations.py b/sdk/python/sdk/zrok/zrok_api/models/organizationremove_organizations.py new file mode 100644 index 00000000..017ed6bb --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/organizationremove_organizations.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class OrganizationremoveOrganizations(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'token': 'str', + 'email': 'str' + } + + attribute_map = { + 'token': 'token', + 'email': 'email' + } + + def __init__(self, token=None, email=None): # noqa: E501 + """OrganizationremoveOrganizations - a model defined in Swagger""" # noqa: E501 + self._token = None + self._email = None + self.discriminator = None + if token is not None: + self.token = token + if email is not None: + self.email = email + + @property + def token(self): + """Gets the token of this OrganizationremoveOrganizations. # noqa: E501 + + + :return: The token of this OrganizationremoveOrganizations. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this OrganizationremoveOrganizations. + + + :param token: The token of this OrganizationremoveOrganizations. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def email(self): + """Gets the email of this OrganizationremoveOrganizations. # noqa: E501 + + + :return: The email of this OrganizationremoveOrganizations. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this OrganizationremoveOrganizations. + + + :param email: The email of this OrganizationremoveOrganizations. # noqa: E501 + :type: str + """ + + self._email = email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(OrganizationremoveOrganizations, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrganizationremoveOrganizations): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/overview.py b/sdk/python/sdk/zrok/zrok_api/models/overview.py index 7ef8aac4..7c944cb4 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/overview.py +++ b/sdk/python/sdk/zrok/zrok_api/models/overview.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Overview(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class Overview(object): 'environments': 'environments' } - def __init__(self, account_limited=None, environments=None): # noqa: E501 + def __init__(self, account_limited=None, environments=None, _configuration=None): # noqa: E501 """Overview - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._account_limited = None self._environments = None self.discriminator = None + if account_limited is not None: self.account_limited = account_limited if environments is not None: @@ -129,8 +139,11 @@ class Overview(object): if not isinstance(other, Overview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Overview): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/password_requirements.py b/sdk/python/sdk/zrok/zrok_api/models/password_requirements.py new file mode 100644 index 00000000..8589a8b8 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/password_requirements.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class PasswordRequirements(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'length': 'int', + 'require_capital': 'bool', + 'require_numeric': 'bool', + 'require_special': 'bool', + 'valid_special_characters': 'str' + } + + attribute_map = { + 'length': 'length', + 'require_capital': 'requireCapital', + 'require_numeric': 'requireNumeric', + 'require_special': 'requireSpecial', + 'valid_special_characters': 'validSpecialCharacters' + } + + def __init__(self, length=None, require_capital=None, require_numeric=None, require_special=None, valid_special_characters=None): # noqa: E501 + """PasswordRequirements - a model defined in Swagger""" # noqa: E501 + self._length = None + self._require_capital = None + self._require_numeric = None + self._require_special = None + self._valid_special_characters = None + self.discriminator = None + if length is not None: + self.length = length + if require_capital is not None: + self.require_capital = require_capital + if require_numeric is not None: + self.require_numeric = require_numeric + if require_special is not None: + self.require_special = require_special + if valid_special_characters is not None: + self.valid_special_characters = valid_special_characters + + @property + def length(self): + """Gets the length of this PasswordRequirements. # noqa: E501 + + + :return: The length of this PasswordRequirements. # noqa: E501 + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this PasswordRequirements. + + + :param length: The length of this PasswordRequirements. # noqa: E501 + :type: int + """ + + self._length = length + + @property + def require_capital(self): + """Gets the require_capital of this PasswordRequirements. # noqa: E501 + + + :return: The require_capital of this PasswordRequirements. # noqa: E501 + :rtype: bool + """ + return self._require_capital + + @require_capital.setter + def require_capital(self, require_capital): + """Sets the require_capital of this PasswordRequirements. + + + :param require_capital: The require_capital of this PasswordRequirements. # noqa: E501 + :type: bool + """ + + self._require_capital = require_capital + + @property + def require_numeric(self): + """Gets the require_numeric of this PasswordRequirements. # noqa: E501 + + + :return: The require_numeric of this PasswordRequirements. # noqa: E501 + :rtype: bool + """ + return self._require_numeric + + @require_numeric.setter + def require_numeric(self, require_numeric): + """Sets the require_numeric of this PasswordRequirements. + + + :param require_numeric: The require_numeric of this PasswordRequirements. # noqa: E501 + :type: bool + """ + + self._require_numeric = require_numeric + + @property + def require_special(self): + """Gets the require_special of this PasswordRequirements. # noqa: E501 + + + :return: The require_special of this PasswordRequirements. # noqa: E501 + :rtype: bool + """ + return self._require_special + + @require_special.setter + def require_special(self, require_special): + """Sets the require_special of this PasswordRequirements. + + + :param require_special: The require_special of this PasswordRequirements. # noqa: E501 + :type: bool + """ + + self._require_special = require_special + + @property + def valid_special_characters(self): + """Gets the valid_special_characters of this PasswordRequirements. # noqa: E501 + + + :return: The valid_special_characters of this PasswordRequirements. # noqa: E501 + :rtype: str + """ + return self._valid_special_characters + + @valid_special_characters.setter + def valid_special_characters(self, valid_special_characters): + """Sets the valid_special_characters of this PasswordRequirements. + + + :param valid_special_characters: The valid_special_characters of this PasswordRequirements. # noqa: E501 + :type: str + """ + + self._valid_special_characters = valid_special_characters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PasswordRequirements, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PasswordRequirements): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/principal.py b/sdk/python/sdk/zrok/zrok_api/models/principal.py index 0f1c6ff4..24392610 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/principal.py +++ b/sdk/python/sdk/zrok/zrok_api/models/principal.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Principal(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -43,14 +48,19 @@ class Principal(object): 'admin': 'admin' } - def __init__(self, id=None, email=None, token=None, limitless=None, admin=None): # noqa: E501 + def __init__(self, id=None, email=None, token=None, limitless=None, admin=None, _configuration=None): # noqa: E501 """Principal - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._id = None self._email = None self._token = None self._limitless = None self._admin = None self.discriminator = None + if id is not None: self.id = id if email is not None: @@ -207,8 +217,11 @@ class Principal(object): if not isinstance(other, Principal): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Principal): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/public_frontend.py b/sdk/python/sdk/zrok/zrok_api/models/public_frontend.py new file mode 100644 index 00000000..d2873403 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/public_frontend.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class PublicFrontend(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'token': 'str', + 'z_id': 'str', + 'url_template': 'str', + 'public_name': 'str', + 'created_at': 'int', + 'updated_at': 'int' + } + + attribute_map = { + 'token': 'token', + 'z_id': 'zId', + 'url_template': 'urlTemplate', + 'public_name': 'publicName', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt' + } + + def __init__(self, token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None): # noqa: E501 + """PublicFrontend - a model defined in Swagger""" # noqa: E501 + self._token = None + self._z_id = None + self._url_template = None + self._public_name = None + self._created_at = None + self._updated_at = None + self.discriminator = None + if token is not None: + self.token = token + if z_id is not None: + self.z_id = z_id + if url_template is not None: + self.url_template = url_template + if public_name is not None: + self.public_name = public_name + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + + @property + def token(self): + """Gets the token of this PublicFrontend. # noqa: E501 + + + :return: The token of this PublicFrontend. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this PublicFrontend. + + + :param token: The token of this PublicFrontend. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def z_id(self): + """Gets the z_id of this PublicFrontend. # noqa: E501 + + + :return: The z_id of this PublicFrontend. # noqa: E501 + :rtype: str + """ + return self._z_id + + @z_id.setter + def z_id(self, z_id): + """Sets the z_id of this PublicFrontend. + + + :param z_id: The z_id of this PublicFrontend. # noqa: E501 + :type: str + """ + + self._z_id = z_id + + @property + def url_template(self): + """Gets the url_template of this PublicFrontend. # noqa: E501 + + + :return: The url_template of this PublicFrontend. # noqa: E501 + :rtype: str + """ + return self._url_template + + @url_template.setter + def url_template(self, url_template): + """Sets the url_template of this PublicFrontend. + + + :param url_template: The url_template of this PublicFrontend. # noqa: E501 + :type: str + """ + + self._url_template = url_template + + @property + def public_name(self): + """Gets the public_name of this PublicFrontend. # noqa: E501 + + + :return: The public_name of this PublicFrontend. # noqa: E501 + :rtype: str + """ + return self._public_name + + @public_name.setter + def public_name(self, public_name): + """Sets the public_name of this PublicFrontend. + + + :param public_name: The public_name of this PublicFrontend. # noqa: E501 + :type: str + """ + + self._public_name = public_name + + @property + def created_at(self): + """Gets the created_at of this PublicFrontend. # noqa: E501 + + + :return: The created_at of this PublicFrontend. # noqa: E501 + :rtype: int + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this PublicFrontend. + + + :param created_at: The created_at of this PublicFrontend. # noqa: E501 + :type: int + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this PublicFrontend. # noqa: E501 + + + :return: The updated_at of this PublicFrontend. # noqa: E501 + :rtype: int + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this PublicFrontend. + + + :param updated_at: The updated_at of this PublicFrontend. # noqa: E501 + :type: int + """ + + self._updated_at = updated_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PublicFrontend, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublicFrontend): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/public_frontend_list.py b/sdk/python/sdk/zrok/zrok_api/models/public_frontend_list.py new file mode 100644 index 00000000..abbe9bd3 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/public_frontend_list.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class PublicFrontendList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """PublicFrontendList - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PublicFrontendList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublicFrontendList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_body.py b/sdk/python/sdk/zrok/zrok_api/models/regenerate_token_body.py similarity index 82% rename from sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_body.py rename to sdk/python/sdk/zrok/zrok_api/models/regenerate_token_body.py index 61513276..0b1e532c 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/regenerate_token_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class RegenerateAccountTokenBody(object): +class RegenerateTokenBody(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +36,7 @@ class RegenerateAccountTokenBody(object): } def __init__(self, email_address=None): # noqa: E501 - """RegenerateAccountTokenBody - a model defined in Swagger""" # noqa: E501 + """RegenerateTokenBody - a model defined in Swagger""" # noqa: E501 self._email_address = None self.discriminator = None if email_address is not None: @@ -44,20 +44,20 @@ class RegenerateAccountTokenBody(object): @property def email_address(self): - """Gets the email_address of this RegenerateAccountTokenBody. # noqa: E501 + """Gets the email_address of this RegenerateTokenBody. # noqa: E501 - :return: The email_address of this RegenerateAccountTokenBody. # noqa: E501 + :return: The email_address of this RegenerateTokenBody. # noqa: E501 :rtype: str """ return self._email_address @email_address.setter def email_address(self, email_address): - """Sets the email_address of this RegenerateAccountTokenBody. + """Sets the email_address of this RegenerateTokenBody. - :param email_address: The email_address of this RegenerateAccountTokenBody. # noqa: E501 + :param email_address: The email_address of this RegenerateTokenBody. # noqa: E501 :type: str """ @@ -84,7 +84,7 @@ class RegenerateAccountTokenBody(object): )) else: result[attr] = value - if issubclass(RegenerateAccountTokenBody, dict): + if issubclass(RegenerateTokenBody, dict): for key, value in self.items(): result[key] = value @@ -100,7 +100,7 @@ class RegenerateAccountTokenBody(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, RegenerateAccountTokenBody): + if not isinstance(other, RegenerateTokenBody): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/register_request.py b/sdk/python/sdk/zrok/zrok_api/models/register_request.py new file mode 100644 index 00000000..cfb274a8 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/register_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class RegisterRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'token': 'str', + 'password': 'str' + } + + attribute_map = { + 'token': 'token', + 'password': 'password' + } + + def __init__(self, token=None, password=None): # noqa: E501 + """RegisterRequest - a model defined in Swagger""" # noqa: E501 + self._token = None + self._password = None + self.discriminator = None + if token is not None: + self.token = token + if password is not None: + self.password = password + + @property + def token(self): + """Gets the token of this RegisterRequest. # noqa: E501 + + + :return: The token of this RegisterRequest. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this RegisterRequest. + + + :param token: The token of this RegisterRequest. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def password(self): + """Gets the password of this RegisterRequest. # noqa: E501 + + + :return: The password of this RegisterRequest. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this RegisterRequest. + + + :param password: The password of this RegisterRequest. # noqa: E501 + :type: str + """ + + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RegisterRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RegisterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/register_response.py b/sdk/python/sdk/zrok/zrok_api/models/register_response.py new file mode 100644 index 00000000..a0b7ac03 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/register_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class RegisterResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'token': 'str' + } + + attribute_map = { + 'token': 'token' + } + + def __init__(self, token=None): # noqa: E501 + """RegisterResponse - a model defined in Swagger""" # noqa: E501 + self._token = None + self.discriminator = None + if token is not None: + self.token = token + + @property + def token(self): + """Gets the token of this RegisterResponse. # noqa: E501 + + + :return: The token of this RegisterResponse. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this RegisterResponse. + + + :param token: The token of this RegisterResponse. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RegisterResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RegisterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/reset_password_request.py b/sdk/python/sdk/zrok/zrok_api/models/reset_password_request.py new file mode 100644 index 00000000..cf52cc88 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/reset_password_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class ResetPasswordRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'token': 'str', + 'password': 'str' + } + + attribute_map = { + 'token': 'token', + 'password': 'password' + } + + def __init__(self, token=None, password=None): # noqa: E501 + """ResetPasswordRequest - a model defined in Swagger""" # noqa: E501 + self._token = None + self._password = None + self.discriminator = None + if token is not None: + self.token = token + if password is not None: + self.password = password + + @property + def token(self): + """Gets the token of this ResetPasswordRequest. # noqa: E501 + + + :return: The token of this ResetPasswordRequest. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this ResetPasswordRequest. + + + :param token: The token of this ResetPasswordRequest. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def password(self): + """Gets the password of this ResetPasswordRequest. # noqa: E501 + + + :return: The password of this ResetPasswordRequest. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this ResetPasswordRequest. + + + :param password: The password of this ResetPasswordRequest. # noqa: E501 + :type: str + """ + + self._password = password + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResetPasswordRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResetPasswordRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/reset_password_request_body.py b/sdk/python/sdk/zrok/zrok_api/models/reset_password_request_body.py index 2d0bd614..44e975ec 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/reset_password_request_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/reset_password_request_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/share.py b/sdk/python/sdk/zrok/zrok_api/models/share.py index abdb66af..478deb76 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/share.py +++ b/sdk/python/sdk/zrok/zrok_api/models/share.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Share(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -57,8 +62,12 @@ class Share(object): 'updated_at': 'updatedAt' } - def __init__(self, share_token=None, z_id=None, share_mode=None, backend_mode=None, frontend_selection=None, frontend_endpoint=None, backend_proxy_endpoint=None, reserved=None, activity=None, limited=None, created_at=None, updated_at=None): # noqa: E501 + def __init__(self, share_token=None, z_id=None, share_mode=None, backend_mode=None, frontend_selection=None, frontend_endpoint=None, backend_proxy_endpoint=None, reserved=None, activity=None, limited=None, created_at=None, updated_at=None, _configuration=None): # noqa: E501 """Share - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._share_token = None self._z_id = None self._share_mode = None @@ -72,6 +81,7 @@ class Share(object): self._created_at = None self._updated_at = None self.discriminator = None + if share_token is not None: self.share_token = share_token if z_id is not None: @@ -389,8 +399,11 @@ class Share(object): if not isinstance(other, Share): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Share): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/share_request.py b/sdk/python/sdk/zrok/zrok_api/models/share_request.py index ee9a08b1..99849586 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/share_request.py +++ b/sdk/python/sdk/zrok/zrok_api/models/share_request.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class ShareRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -61,8 +66,12 @@ class ShareRequest(object): 'unique_name': 'uniqueName' } - def __init__(self, env_zid=None, share_mode=None, frontend_selection=None, backend_mode=None, backend_proxy_endpoint=None, auth_scheme=None, auth_users=None, oauth_provider=None, oauth_email_domains=None, oauth_authorization_check_interval=None, reserved=None, permission_mode=None, access_grants=None, unique_name=None): # noqa: E501 + def __init__(self, env_zid=None, share_mode=None, frontend_selection=None, backend_mode=None, backend_proxy_endpoint=None, auth_scheme=None, auth_users=None, oauth_provider=None, oauth_email_domains=None, oauth_authorization_check_interval=None, reserved=None, permission_mode=None, access_grants=None, unique_name=None, _configuration=None): # noqa: E501 """ShareRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._env_zid = None self._share_mode = None self._frontend_selection = None @@ -78,6 +87,7 @@ class ShareRequest(object): self._access_grants = None self._unique_name = None self.discriminator = None + if env_zid is not None: self.env_zid = env_zid if share_mode is not None: @@ -147,7 +157,8 @@ class ShareRequest(object): :type: str """ allowed_values = ["public", "private"] # noqa: E501 - if share_mode not in allowed_values: + if (self._configuration.client_side_validation and + share_mode not in allowed_values): raise ValueError( "Invalid value for `share_mode` ({0}), must be one of {1}" # noqa: E501 .format(share_mode, allowed_values) @@ -195,7 +206,8 @@ class ShareRequest(object): :type: str """ allowed_values = ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy", "drive", "socks", "vpn"] # noqa: E501 - if backend_mode not in allowed_values: + if (self._configuration.client_side_validation and + backend_mode not in allowed_values): raise ValueError( "Invalid value for `backend_mode` ({0}), must be one of {1}" # noqa: E501 .format(backend_mode, allowed_values) @@ -285,7 +297,8 @@ class ShareRequest(object): :type: str """ allowed_values = ["github", "google"] # noqa: E501 - if oauth_provider not in allowed_values: + if (self._configuration.client_side_validation and + oauth_provider not in allowed_values): raise ValueError( "Invalid value for `oauth_provider` ({0}), must be one of {1}" # noqa: E501 .format(oauth_provider, allowed_values) @@ -375,7 +388,8 @@ class ShareRequest(object): :type: str """ allowed_values = ["open", "closed"] # noqa: E501 - if permission_mode not in allowed_values: + if (self._configuration.client_side_validation and + permission_mode not in allowed_values): raise ValueError( "Invalid value for `permission_mode` ({0}), must be one of {1}" # noqa: E501 .format(permission_mode, allowed_values) @@ -465,8 +479,11 @@ class ShareRequest(object): if not isinstance(other, ShareRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ShareRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/share_response.py b/sdk/python/sdk/zrok/zrok_api/models/share_response.py index dcb30e38..f6fbdc81 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/share_response.py +++ b/sdk/python/sdk/zrok/zrok_api/models/share_response.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class ShareResponse(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class ShareResponse(object): 'share_token': 'shareToken' } - def __init__(self, frontend_proxy_endpoints=None, share_token=None): # noqa: E501 + def __init__(self, frontend_proxy_endpoints=None, share_token=None, _configuration=None): # noqa: E501 """ShareResponse - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._frontend_proxy_endpoints = None self._share_token = None self.discriminator = None + if frontend_proxy_endpoints is not None: self.frontend_proxy_endpoints = frontend_proxy_endpoints if share_token is not None: @@ -129,8 +139,11 @@ class ShareResponse(object): if not isinstance(other, ShareResponse): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ShareResponse): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/shares.py b/sdk/python/sdk/zrok/zrok_api/models/shares.py index c1ce3f4d..4944ac1e 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/shares.py +++ b/sdk/python/sdk/zrok/zrok_api/models/shares.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Shares(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -33,8 +38,11 @@ class Shares(object): attribute_map = { } - def __init__(self): # noqa: E501 + def __init__(self, _configuration=None): # noqa: E501 """Shares - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -77,8 +85,11 @@ class Shares(object): if not isinstance(other, Shares): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Shares): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/spark_data.py b/sdk/python/sdk/zrok/zrok_api/models/spark_data.py index 9ed04dfe..00ecc378 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/spark_data.py +++ b/sdk/python/sdk/zrok/zrok_api/models/spark_data.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class SparkData(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -33,8 +38,11 @@ class SparkData(object): attribute_map = { } - def __init__(self): # noqa: E501 + def __init__(self, _configuration=None): # noqa: E501 """SparkData - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -77,8 +85,11 @@ class SparkData(object): if not isinstance(other, SparkData): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SparkData): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py b/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py index 52a1c1fd..14997b8e 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py +++ b/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class SparkDataSample(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -37,11 +42,16 @@ class SparkDataSample(object): 'tx': 'tx' } - def __init__(self, rx=None, tx=None): # noqa: E501 + def __init__(self, rx=None, tx=None, _configuration=None): # noqa: E501 """SparkDataSample - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + self._rx = None self._tx = None self.discriminator = None + if rx is not None: self.rx = rx if tx is not None: @@ -129,8 +139,11 @@ class SparkDataSample(object): if not isinstance(other, SparkDataSample): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, SparkDataSample): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/models/unaccess_request.py b/sdk/python/sdk/zrok/zrok_api/models/unaccess_request.py new file mode 100644 index 00000000..75158673 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/unaccess_request.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class UnaccessRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'frontend_token': 'str', + 'env_zid': 'str', + 'shr_token': 'str' + } + + attribute_map = { + 'frontend_token': 'frontendToken', + 'env_zid': 'envZId', + 'shr_token': 'shrToken' + } + + def __init__(self, frontend_token=None, env_zid=None, shr_token=None): # noqa: E501 + """UnaccessRequest - a model defined in Swagger""" # noqa: E501 + self._frontend_token = None + self._env_zid = None + self._shr_token = None + self.discriminator = None + if frontend_token is not None: + self.frontend_token = frontend_token + if env_zid is not None: + self.env_zid = env_zid + if shr_token is not None: + self.shr_token = shr_token + + @property + def frontend_token(self): + """Gets the frontend_token of this UnaccessRequest. # noqa: E501 + + + :return: The frontend_token of this UnaccessRequest. # noqa: E501 + :rtype: str + """ + return self._frontend_token + + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this UnaccessRequest. + + + :param frontend_token: The frontend_token of this UnaccessRequest. # noqa: E501 + :type: str + """ + + self._frontend_token = frontend_token + + @property + def env_zid(self): + """Gets the env_zid of this UnaccessRequest. # noqa: E501 + + + :return: The env_zid of this UnaccessRequest. # noqa: E501 + :rtype: str + """ + return self._env_zid + + @env_zid.setter + def env_zid(self, env_zid): + """Sets the env_zid of this UnaccessRequest. + + + :param env_zid: The env_zid of this UnaccessRequest. # noqa: E501 + :type: str + """ + + self._env_zid = env_zid + + @property + def shr_token(self): + """Gets the shr_token of this UnaccessRequest. # noqa: E501 + + + :return: The shr_token of this UnaccessRequest. # noqa: E501 + :rtype: str + """ + return self._shr_token + + @shr_token.setter + def shr_token(self, shr_token): + """Sets the shr_token of this UnaccessRequest. + + + :param shr_token: The shr_token of this UnaccessRequest. # noqa: E501 + :type: str + """ + + self._shr_token = shr_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UnaccessRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnaccessRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/unshare_request.py b/sdk/python/sdk/zrok/zrok_api/models/unshare_request.py new file mode 100644 index 00000000..ecfc9e3c --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/unshare_request.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class UnshareRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'env_zid': 'str', + 'shr_token': 'str', + 'reserved': 'bool' + } + + attribute_map = { + 'env_zid': 'envZId', + 'shr_token': 'shrToken', + 'reserved': 'reserved' + } + + def __init__(self, env_zid=None, shr_token=None, reserved=None): # noqa: E501 + """UnshareRequest - a model defined in Swagger""" # noqa: E501 + self._env_zid = None + self._shr_token = None + self._reserved = None + self.discriminator = None + if env_zid is not None: + self.env_zid = env_zid + if shr_token is not None: + self.shr_token = shr_token + if reserved is not None: + self.reserved = reserved + + @property + def env_zid(self): + """Gets the env_zid of this UnshareRequest. # noqa: E501 + + + :return: The env_zid of this UnshareRequest. # noqa: E501 + :rtype: str + """ + return self._env_zid + + @env_zid.setter + def env_zid(self, env_zid): + """Sets the env_zid of this UnshareRequest. + + + :param env_zid: The env_zid of this UnshareRequest. # noqa: E501 + :type: str + """ + + self._env_zid = env_zid + + @property + def shr_token(self): + """Gets the shr_token of this UnshareRequest. # noqa: E501 + + + :return: The shr_token of this UnshareRequest. # noqa: E501 + :rtype: str + """ + return self._shr_token + + @shr_token.setter + def shr_token(self, shr_token): + """Sets the shr_token of this UnshareRequest. + + + :param shr_token: The shr_token of this UnshareRequest. # noqa: E501 + :type: str + """ + + self._shr_token = shr_token + + @property + def reserved(self): + """Gets the reserved of this UnshareRequest. # noqa: E501 + + + :return: The reserved of this UnshareRequest. # noqa: E501 + :rtype: bool + """ + return self._reserved + + @reserved.setter + def reserved(self, reserved): + """Sets the reserved of this UnshareRequest. + + + :param reserved: The reserved of this UnshareRequest. # noqa: E501 + :type: bool + """ + + self._reserved = reserved + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UnshareRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnshareRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend_body2.py b/sdk/python/sdk/zrok/zrok_api/models/update_frontend_request.py similarity index 74% rename from sdk/python/sdk/zrok/zrok_api/models/frontend_body2.py rename to sdk/python/sdk/zrok/zrok_api/models/update_frontend_request.py index aed451e3..41554390 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/frontend_body2.py +++ b/sdk/python/sdk/zrok/zrok_api/models/update_frontend_request.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 0.3.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -15,7 +15,7 @@ import re # noqa: F401 import six -class FrontendBody2(object): +class UpdateFrontendRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class FrontendBody2(object): } def __init__(self, frontend_token=None, public_name=None, url_template=None): # noqa: E501 - """FrontendBody2 - a model defined in Swagger""" # noqa: E501 + """UpdateFrontendRequest - a model defined in Swagger""" # noqa: E501 self._frontend_token = None self._public_name = None self._url_template = None @@ -54,20 +54,20 @@ class FrontendBody2(object): @property def frontend_token(self): - """Gets the frontend_token of this FrontendBody2. # noqa: E501 + """Gets the frontend_token of this UpdateFrontendRequest. # noqa: E501 - :return: The frontend_token of this FrontendBody2. # noqa: E501 + :return: The frontend_token of this UpdateFrontendRequest. # noqa: E501 :rtype: str """ return self._frontend_token @frontend_token.setter def frontend_token(self, frontend_token): - """Sets the frontend_token of this FrontendBody2. + """Sets the frontend_token of this UpdateFrontendRequest. - :param frontend_token: The frontend_token of this FrontendBody2. # noqa: E501 + :param frontend_token: The frontend_token of this UpdateFrontendRequest. # noqa: E501 :type: str """ @@ -75,20 +75,20 @@ class FrontendBody2(object): @property def public_name(self): - """Gets the public_name of this FrontendBody2. # noqa: E501 + """Gets the public_name of this UpdateFrontendRequest. # noqa: E501 - :return: The public_name of this FrontendBody2. # noqa: E501 + :return: The public_name of this UpdateFrontendRequest. # noqa: E501 :rtype: str """ return self._public_name @public_name.setter def public_name(self, public_name): - """Sets the public_name of this FrontendBody2. + """Sets the public_name of this UpdateFrontendRequest. - :param public_name: The public_name of this FrontendBody2. # noqa: E501 + :param public_name: The public_name of this UpdateFrontendRequest. # noqa: E501 :type: str """ @@ -96,20 +96,20 @@ class FrontendBody2(object): @property def url_template(self): - """Gets the url_template of this FrontendBody2. # noqa: E501 + """Gets the url_template of this UpdateFrontendRequest. # noqa: E501 - :return: The url_template of this FrontendBody2. # noqa: E501 + :return: The url_template of this UpdateFrontendRequest. # noqa: E501 :rtype: str """ return self._url_template @url_template.setter def url_template(self, url_template): - """Sets the url_template of this FrontendBody2. + """Sets the url_template of this UpdateFrontendRequest. - :param url_template: The url_template of this FrontendBody2. # noqa: E501 + :param url_template: The url_template of this UpdateFrontendRequest. # noqa: E501 :type: str """ @@ -136,7 +136,7 @@ class FrontendBody2(object): )) else: result[attr] = value - if issubclass(FrontendBody2, dict): + if issubclass(UpdateFrontendRequest, dict): for key, value in self.items(): result[key] = value @@ -152,7 +152,7 @@ class FrontendBody2(object): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, FrontendBody2): + if not isinstance(other, UpdateFrontendRequest): return False return self.__dict__ == other.__dict__ diff --git a/sdk/python/sdk/zrok/zrok_api/models/update_share_request.py b/sdk/python/sdk/zrok/zrok_api/models/update_share_request.py new file mode 100644 index 00000000..3548c101 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/update_share_request.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class UpdateShareRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'shr_token': 'str', + 'backend_proxy_endpoint': 'str', + 'add_access_grants': 'list[str]', + 'remove_access_grants': 'list[str]' + } + + attribute_map = { + 'shr_token': 'shrToken', + 'backend_proxy_endpoint': 'backendProxyEndpoint', + 'add_access_grants': 'addAccessGrants', + 'remove_access_grants': 'removeAccessGrants' + } + + def __init__(self, shr_token=None, backend_proxy_endpoint=None, add_access_grants=None, remove_access_grants=None): # noqa: E501 + """UpdateShareRequest - a model defined in Swagger""" # noqa: E501 + self._shr_token = None + self._backend_proxy_endpoint = None + self._add_access_grants = None + self._remove_access_grants = None + self.discriminator = None + if shr_token is not None: + self.shr_token = shr_token + if backend_proxy_endpoint is not None: + self.backend_proxy_endpoint = backend_proxy_endpoint + if add_access_grants is not None: + self.add_access_grants = add_access_grants + if remove_access_grants is not None: + self.remove_access_grants = remove_access_grants + + @property + def shr_token(self): + """Gets the shr_token of this UpdateShareRequest. # noqa: E501 + + + :return: The shr_token of this UpdateShareRequest. # noqa: E501 + :rtype: str + """ + return self._shr_token + + @shr_token.setter + def shr_token(self, shr_token): + """Sets the shr_token of this UpdateShareRequest. + + + :param shr_token: The shr_token of this UpdateShareRequest. # noqa: E501 + :type: str + """ + + self._shr_token = shr_token + + @property + def backend_proxy_endpoint(self): + """Gets the backend_proxy_endpoint of this UpdateShareRequest. # noqa: E501 + + + :return: The backend_proxy_endpoint of this UpdateShareRequest. # noqa: E501 + :rtype: str + """ + return self._backend_proxy_endpoint + + @backend_proxy_endpoint.setter + def backend_proxy_endpoint(self, backend_proxy_endpoint): + """Sets the backend_proxy_endpoint of this UpdateShareRequest. + + + :param backend_proxy_endpoint: The backend_proxy_endpoint of this UpdateShareRequest. # noqa: E501 + :type: str + """ + + self._backend_proxy_endpoint = backend_proxy_endpoint + + @property + def add_access_grants(self): + """Gets the add_access_grants of this UpdateShareRequest. # noqa: E501 + + + :return: The add_access_grants of this UpdateShareRequest. # noqa: E501 + :rtype: list[str] + """ + return self._add_access_grants + + @add_access_grants.setter + def add_access_grants(self, add_access_grants): + """Sets the add_access_grants of this UpdateShareRequest. + + + :param add_access_grants: The add_access_grants of this UpdateShareRequest. # noqa: E501 + :type: list[str] + """ + + self._add_access_grants = add_access_grants + + @property + def remove_access_grants(self): + """Gets the remove_access_grants of this UpdateShareRequest. # noqa: E501 + + + :return: The remove_access_grants of this UpdateShareRequest. # noqa: E501 + :rtype: list[str] + """ + return self._remove_access_grants + + @remove_access_grants.setter + def remove_access_grants(self, remove_access_grants): + """Sets the remove_access_grants of this UpdateShareRequest. + + + :param remove_access_grants: The remove_access_grants of this UpdateShareRequest. # noqa: E501 + :type: list[str] + """ + + self._remove_access_grants = remove_access_grants + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UpdateShareRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateShareRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/verify_request.py b/sdk/python/sdk/zrok/zrok_api/models/verify_request.py new file mode 100644 index 00000000..8089bc9b --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/verify_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class VerifyRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'token': 'str' + } + + attribute_map = { + 'token': 'token' + } + + def __init__(self, token=None): # noqa: E501 + """VerifyRequest - a model defined in Swagger""" # noqa: E501 + self._token = None + self.discriminator = None + if token is not None: + self.token = token + + @property + def token(self): + """Gets the token of this VerifyRequest. # noqa: E501 + + + :return: The token of this VerifyRequest. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this VerifyRequest. + + + :param token: The token of this VerifyRequest. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VerifyRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VerifyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/verify_response.py b/sdk/python/sdk/zrok/zrok_api/models/verify_response.py new file mode 100644 index 00000000..d6b9a617 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/verify_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 0.3.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class VerifyResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'email': 'str' + } + + attribute_map = { + 'email': 'email' + } + + def __init__(self, email=None): # noqa: E501 + """VerifyResponse - a model defined in Swagger""" # noqa: E501 + self._email = None + self.discriminator = None + if email is not None: + self.email = email + + @property + def email(self): + """Gets the email of this VerifyResponse. # noqa: E501 + + + :return: The email of this VerifyResponse. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this VerifyResponse. + + + :param email: The email of this VerifyResponse. # noqa: E501 + :type: str + """ + + self._email = email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VerifyResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VerifyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/version.py b/sdk/python/sdk/zrok/zrok_api/models/version.py index 98e90760..bdf42e3f 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/version.py +++ b/sdk/python/sdk/zrok/zrok_api/models/version.py @@ -10,16 +10,21 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + import pprint import re # noqa: F401 import six +from zrok_api.configuration import Configuration + + class Version(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ + """ Attributes: swagger_types (dict): The key is attribute name @@ -33,8 +38,11 @@ class Version(object): attribute_map = { } - def __init__(self): # noqa: E501 + def __init__(self, _configuration=None): # noqa: E501 """Version - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -77,8 +85,11 @@ class Version(object): if not isinstance(other, Version): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, Version): + return True + + return self.to_dict() != other.to_dict() diff --git a/sdk/python/sdk/zrok/zrok_api/rest.py b/sdk/python/sdk/zrok/zrok_api/rest.py index a2c54065..da85f5cf 100644 --- a/sdk/python/sdk/zrok/zrok_api/rest.py +++ b/sdk/python/sdk/zrok/zrok_api/rest.py @@ -10,6 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ + from __future__ import absolute_import import io @@ -42,11 +43,11 @@ class RESTResponse(io.IOBase): def getheaders(self): """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() + return self.urllib3_response.headers def getheader(self, name, default=None): """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) + return self.urllib3_response.headers.get(name, default) class RESTClientObject(object): @@ -215,6 +216,11 @@ class RESTClientObject(object): if _preload_content: r = RESTResponse(r) + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if six.PY3: + r.data = r.data.decode('utf8') + # log response body logger.debug("response body: %s", r.data)