# enterprise-server-python **Repository Path**: rainbond/enterprise-server-python ## Basic Information - **Project Name**: enterprise-server-python - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-03 - **Last Updated**: 2024-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # enterprise-server-client the purpose of this application is to provide an application that is using plain go code to define an API This should demonstrate all the possible comment annotations that are available to turn go code into a fully compliant swagger 2.0 spec 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.languages.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 entsrv_client ``` ### 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 entsrv_client ``` ## Getting Started Please follow the [installation procedure](#installation--usage) and then run the following: ```python from __future__ import print_function import time import entsrv_client from entsrv_client.rest import ApiException from pprint import pprint # Configure API key authorization: token configuration = entsrv_client.Configuration() configuration.api_key['Authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['Authorization'] = 'Bearer' # create an instance of the API class api_instance = entsrv_client.AuthApi(entsrv_client.ApiClient(configuration)) try: # returns the information of user based on the given bearer token. api_response = api_instance.oauth_user() pprint(api_response) except ApiException as e: print("Exception when calling AuthApi->oauth_user: %s\n" % e) ``` ## Documentation for API Endpoints All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AuthApi* | [**oauth_user**](docs/AuthApi.md#oauth_user) | **GET** /enterprise-server/api/v1/oauth/user | returns the information of user based on the given bearer token. *CloudApi* | [**init**](docs/CloudApi.md#init) | **POST** /enterprise-server/api/v1/enterprises/{eid}/init-cluster | *CloudApi* | [**init_0**](docs/CloudApi.md#init_0) | **GET** /enterprise-server/api/v1/enterprises/{eid}/init-task/{clusterID} | *CloudApi* | [**init_1**](docs/CloudApi.md#init_1) | **PUT** /enterprise-server/api/v1/enterprises/{eid}/init-tasks/{taskID}/status | *CloudApi* | [**kcluster**](docs/CloudApi.md#kcluster) | **GET** /enterprise-server/api/v1/enterprises/{eid}/ck-task/{taskID} | *CloudApi* | [**kcluster_0**](docs/CloudApi.md#kcluster_0) | **GET** /enterprise-server/api/v1/enterprises/{eid}/ck-task/{taskID}/events | *CloudApi* | [**kcluster_1**](docs/CloudApi.md#kcluster_1) | **GET** /enterprise-server/api/v1/enterprises/{eid}/kclusters | *CloudApi* | [**kcluster_2**](docs/CloudApi.md#kcluster_2) | **GET** /enterprise-server/api/v1/enterprises/{eid}/kclusters/{clusterID}/regionconfig | *CloudApi* | [**kcluster_3**](docs/CloudApi.md#kcluster_3) | **GET** /enterprise-server/api/v1/enterprises/{eid}/last-ck-task | *EnterpriseApi* | [**check_memory**](docs/EnterpriseApi.md#check_memory) | **POST** /enterprise-server/api/v1/enterprises/{eid}/checkmemory | *EnterpriseApi* | [**create_user**](docs/EnterpriseApi.md#create_user) | **POST** /enterprise-server/api/v1/enterprises/{eid}/users | CreateUser. *EnterpriseApi* | [**delete_user**](docs/EnterpriseApi.md#delete_user) | **DELETE** /enterprise-server/api/v1/enterprises/{eid}/users/{uid} | *EnterpriseApi* | [**get_enterprise**](docs/EnterpriseApi.md#get_enterprise) | **GET** /enterprise-server/api/v1/enterprises/{eid} | returns the information of enterprise based on enterprise id. *EnterpriseApi* | [**get_user**](docs/EnterpriseApi.md#get_user) | **GET** /enterprise-server/api/v1/enterprises/{eid}/users/{uid} | returns the information of user based on user id. *EnterpriseApi* | [**list_user**](docs/EnterpriseApi.md#list_user) | **GET** /enterprise-server/api/v1/enterprises/{eid}/users | returns a list of user based on enterprise id. *EnterpriseApi* | [**update_user**](docs/EnterpriseApi.md#update_user) | **PUT** /enterprise-server/api/v1/enterprises/{eid}/users/{uid} | *OrderApi* | [**create_order**](docs/OrderApi.md#create_order) | **POST** /enterprise-server/api/v1/enterprises/{eid}/orders | *OrderApi* | [**get_order**](docs/OrderApi.md#get_order) | **GET** /enterprise-server/api/v1/enterprises/{eid}/orders/{oid} | *OrderApi* | [**list_orders**](docs/OrderApi.md#list_orders) | **GET** /enterprise-server/api/v1/enterprises/{eid}/orders | *PayApi* | [**bankinfo**](docs/PayApi.md#bankinfo) | **GET** /enterprise-server/api/v1/bankinfo | ## Documentation For Models - [AccessKeyResponse](docs/AccessKeyResponse.md) - [AddAccessKey](docs/AddAccessKey.md) - [Body](docs/Body.md) - [Body1](docs/Body1.md) - [Body2](docs/Body2.md) - [Body3](docs/Body3.md) - [CalculatePriceResp](docs/CalculatePriceResp.md) - [CheckMemoryResp](docs/CheckMemoryResp.md) - [CloudAccessKey](docs/CloudAccessKey.md) - [Cluster](docs/Cluster.md) - [CreateKubernetesReq](docs/CreateKubernetesReq.md) - [CreateKubernetesRes](docs/CreateKubernetesRes.md) - [CreateKubernetesTask](docs/CreateKubernetesTask.md) - [CreateOrderResp](docs/CreateOrderResp.md) - [GetAccessKeyReq](docs/GetAccessKeyReq.md) - [GetBankInfoResp](docs/GetBankInfoResp.md) - [GetCreateKubernetesClusterTaskRes](docs/GetCreateKubernetesClusterTaskRes.md) - [GetEntResp](docs/GetEntResp.md) - [GetInitRainbondTaskReq](docs/GetInitRainbondTaskReq.md) - [GetLastCreateKubernetesClusterTaskReq](docs/GetLastCreateKubernetesClusterTaskReq.md) - [GetOrderResp](docs/GetOrderResp.md) - [GetRegionConfigReq](docs/GetRegionConfigReq.md) - [GetRegionConfigRes](docs/GetRegionConfigRes.md) - [GetTaskEventListReq](docs/GetTaskEventListReq.md) - [InitRainbondRegionReq](docs/InitRainbondRegionReq.md) - [InitRainbondTask](docs/InitRainbondTask.md) - [InitRainbondTaskListRes](docs/InitRainbondTaskListRes.md) - [InitRainbondTaskRes](docs/InitRainbondTaskRes.md) - [KubernetesClustersResponse](docs/KubernetesClustersResponse.md) - [ListKubernetesCluster](docs/ListKubernetesCluster.md) - [ListOrdersResp](docs/ListOrdersResp.md) - [MasterURL](docs/MasterURL.md) - [Model](docs/Model.md) - [OAuthUser](docs/OAuthUser.md) - [OAuthUserEnterprise](docs/OAuthUserEnterprise.md) - [Order](docs/Order.md) - [Reponse](docs/Reponse.md) - [TaskEvent](docs/TaskEvent.md) - [TaskEventListRes](docs/TaskEventListRes.md) - [Time](docs/Time.md) - [UpdateInitRainbondTaskStatusReq](docs/UpdateInitRainbondTaskStatusReq.md) - [User](docs/User.md) - [UserResp](docs/UserResp.md) ## Documentation For Authorization ## token - **Type**: API key - **API key parameter name**: Authorization - **Location**: HTTP header ## Author