Package: aptible-client
aptible-clientNo description provided (generated by Openapi Generatorhttps://github.com/openapitools/openapi-generator)Theaptible_clientpackage is automatically generated by theOpenAPI Generatorproject:API version: 0.1.0Package version: 1.0.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >=3.6Installation & UsageThis python library package is generated without supporting files like setup.py or requirements filesTo be able to use it, you will need these dependencies in your own package that uses this library:urllib3 >= 1.25.3python-dateutilGetting StartedIn your own code, to use this library to connect and interact with aptible-client,
you can run the following:importtimeimportaptible_clientfrompprintimportpprintfromaptible_client.apiimportactions_apifromaptible_client.model.action_requestimportActionRequestfromaptible_client.model.action_responseimportActionResponsefromaptible_client.model.http_validation_errorimportHTTPValidationError# Defining the host is optional and defaults to http://localhost# See configuration.py for a list of all supported configuration parameters.configuration=aptible_client.Configuration(host="http://localhost")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure Bearer authorization: HTTPBearerconfiguration=aptible_client.Configuration(access_token='YOUR_BEARER_TOKEN')# Enter a context with an instance of the API clientwithaptible_client.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=actions_api.ActionsApi(api_client)asset_id="asset_id_example"# str |environment_id="environment_id_example"# str |organization_id="organization_id_example"# str |action_request=ActionRequest(action_name="action_name_example",parameters=None,)# ActionRequest |try:# Action Createapi_response=api_instance.action_create(asset_id,environment_id,organization_id,action_request)pprint(api_response)exceptaptible_client.ApiExceptionase:print("Exception when calling ActionsApi->action_create:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttp://localhostClassMethodHTTP requestDescriptionActionsApiaction_createPOST/api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/actionAction CreateActionsApiaction_getGET/api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/action/{action_id}Action GetAssetsApiasset_createPOST/api/v1/organizations/{organization_id}/environments/{environment_id}/assetsAsset CreateAssetsApiasset_deleteDELETE/api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}Asset DeleteAssetsApiasset_getGET/api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}Asset GetAssetsApiasset_updatePUT/api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}Asset UpdateConnectionsApiconnection_createPOST/api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/connections/Connection CreateConnectionsApiconnection_deleteDELETE/api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/connections/{connection_id}Connection DeleteConnectionsApiconnection_getGET/api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/connections/{connection_id}Connection GetDefaultApiget_healthcheckGET/api/v1/system/health_checkGet HealthcheckEnvironmentsApienvironment_createPOST/api/v1/organizations/{organization_id}/environmentsEnvironment CreateEnvironmentsApienvironment_deleteDELETE/api/v1/organizations/{organization_id}/environments/{environment_id}Environment DeleteEnvironmentsApienvironment_getGET/api/v1/organizations/{organization_id}/environments/{environment_id}Environment GetEnvironmentsApienvironment_get_allowed_asset_bundlesGET/api/v1/organizations/{organization_id}/environments/{environment_id}/asset_bundlesEnvironment Get Allowed Asset BundlesEnvironmentsApienvironment_get_assetsGET/api/v1/organizations/{organization_id}/environments/{environment_id}/assetsEnvironment Get AssetsEnvironmentsApienvironment_get_connectionsGET/api/v1/organizations/{organization_id}/environments/{environment_id}/connectionsEnvironment Get ConnectionsEnvironmentsApienvironment_updatePUT/api/v1/organizations/{organization_id}/environments/{environment_id}Environment UpdateOperationsApioperation_getGET/api/v1/organizations/{organization_id}/operations/{operation_id}Operation GetOperationsApioperation_updatePUT/api/v1/operations/{operation_id}Operation UpdateOrganizationsApiorganization_deleteDELETE/api/v1/organizations/{organization_id}Organization DeleteOrganizationsApiorganization_getGET/api/v1/organizations/{organization_id}Organization GetOrganizationsApiorganization_get_environmentsGET/api/v1/organizations/{organization_id}/environmentsOrganization Get EnvironmentsOrganizationsApiorganization_get_operationsGET/api/v1/organizations/{organization_id}/operations/Organization Get OperationsOrganizationsApiorganization_listGET/api/v1/organizations/Organization ListOrganizationsApiorganization_updatePUT/api/v1/organizations/{organization_id}Organization UpdateUtilitiesApiget_userGET/api/v1/debug/user_authGet UserUtilitiesApiget_user_roleGET/api/v1/debug/user_role_middleware_checkGet User RoleWorkerApiworker_health_checkPOST/api/v1/worker/health-checkWorker Health CheckDocumentation For ModelsActionOutputActionRequestActionResponseAssetActionAssetBundleAssetInputAssetOutputAssetParametersOutputAssetStatusAssetTerraformOutputConnectionInputConnectionOutputConnectionStatusDataEnvironmentInputEnvironmentOutputHTTPValidationErrorHealthCheckFromWorkerLocationInnerOperationActionUpdateOperationAssetUpdateOperationFailureOperationOutputOperationStatusOperationTerraformRunUpdateOperationTypeOperationUpdateOrganizationInputOrganizationOutputTextResponseValidationErrorDocumentation For AuthorizationHTTPBearerType: Bearer authenticationAuthorNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in aptible_client.apis and aptible_client.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:Solution 1:
Use specific imports for apis and models like:from aptible_client.api.default_api import DefaultApifrom aptible_client.model.pet import PetSolution 2:
Before importing the package, adjust the maximum recursion limit as shown below:import sys
sys.setrecursionlimit(1500)
import aptible_client
from aptible_client.apis import *
from aptible_client.models import *