Skip to main content

Aptible Client API

Project description

aptible-client

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The aptible_client package is automatically generated by the OpenAPI Generator project:

  • API version: 0.1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python >=3.6

Installation & Usage

This python library package is generated without supporting files like setup.py or requirements files

To be able to use it, you will need these dependencies in your own package that uses this library:

  • urllib3 >= 1.25.3
  • python-dateutil

Getting Started

In your own code, to use this library to connect and interact with aptible-client, you can run the following:

import time
import aptible_client
from pprint import pprint
from aptible_client.api import actions_api
from aptible_client.model.action_request import ActionRequest
from aptible_client.model.action_response import ActionResponse
from aptible_client.model.http_validation_error import HTTPValidationError
# 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: HTTPBearer
configuration = aptible_client.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)


# Enter a context with an instance of the API client
with aptible_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_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 Create
        api_response = api_instance.action_create(asset_id, environment_id, organization_id, action_request)
        pprint(api_response)
    except aptible_client.ApiException as e:
        print("Exception when calling ActionsApi->action_create: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
ActionsApi action_create POST /api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/action Action Create
ActionsApi action_get GET /api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/action/{action_id} Action Get
AssetsApi asset_create POST /api/v1/organizations/{organization_id}/environments/{environment_id}/assets Asset Create
AssetsApi asset_delete DELETE /api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id} Asset Delete
AssetsApi asset_get GET /api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id} Asset Get
AssetsApi asset_update PUT /api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id} Asset Update
ConnectionsApi connection_create POST /api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/connections/ Connection Create
ConnectionsApi connection_delete DELETE /api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/connections/{connection_id} Connection Delete
ConnectionsApi connection_get GET /api/v1/organizations/{organization_id}/environments/{environment_id}/assets/{asset_id}/connections/{connection_id} Connection Get
DefaultApi get_healthcheck GET /api/v1/system/health_check Get Healthcheck
EnvironmentsApi environment_create POST /api/v1/organizations/{organization_id}/environments Environment Create
EnvironmentsApi environment_delete DELETE /api/v1/organizations/{organization_id}/environments/{environment_id} Environment Delete
EnvironmentsApi environment_get GET /api/v1/organizations/{organization_id}/environments/{environment_id} Environment Get
EnvironmentsApi environment_get_allowed_asset_bundles GET /api/v1/organizations/{organization_id}/environments/{environment_id}/asset_bundles Environment Get Allowed Asset Bundles
EnvironmentsApi environment_get_assets GET /api/v1/organizations/{organization_id}/environments/{environment_id}/assets Environment Get Assets
EnvironmentsApi environment_get_connections GET /api/v1/organizations/{organization_id}/environments/{environment_id}/connections Environment Get Connections
EnvironmentsApi environment_update PUT /api/v1/organizations/{organization_id}/environments/{environment_id} Environment Update
OperationsApi operation_get GET /api/v1/organizations/{organization_id}/operations/{operation_id} Operation Get
OperationsApi operation_update PUT /api/v1/operations/{operation_id} Operation Update
OrganizationsApi organization_delete DELETE /api/v1/organizations/{organization_id} Organization Delete
OrganizationsApi organization_get GET /api/v1/organizations/{organization_id} Organization Get
OrganizationsApi organization_get_environments GET /api/v1/organizations/{organization_id}/environments Organization Get Environments
OrganizationsApi organization_get_operations GET /api/v1/organizations/{organization_id}/operations/ Organization Get Operations
OrganizationsApi organization_list GET /api/v1/organizations/ Organization List
OrganizationsApi organization_update PUT /api/v1/organizations/{organization_id} Organization Update
UtilitiesApi get_user GET /api/v1/debug/user_auth Get User
UtilitiesApi get_user_role GET /api/v1/debug/user_role_middleware_check Get User Role
WorkerApi worker_health_check POST /api/v1/worker/health-check Worker Health Check

Documentation For Models

Documentation For Authorization

HTTPBearer

  • Type: Bearer authentication

Author

Notes for Large OpenAPI documents

If 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 DefaultApi
  • from aptible_client.model.pet import Pet

Solution 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 *

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aptible_client-1.3.1.tar.gz (65.5 kB view details)

Uploaded Source

Built Distribution

aptible_client-1.3.1-py3-none-any.whl (146.4 kB view details)

Uploaded Python 3

File details

Details for the file aptible_client-1.3.1.tar.gz.

File metadata

  • Download URL: aptible_client-1.3.1.tar.gz
  • Upload date:
  • Size: 65.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for aptible_client-1.3.1.tar.gz
Algorithm Hash digest
SHA256 0fadf5d3500c5445f0a7ace8c4557f8d8c64b05e34a5a3e1a34c1945183cf177
MD5 c214bcbbaab477bed981c5cae263c225
BLAKE2b-256 bf0f7415623a289d7536577ed91affe96f536019bb2e18e0e8e07ea5a9aeb756

See more details on using hashes here.

File details

Details for the file aptible_client-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aptible_client-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abd6a4d41a4674394fdbe97b95c0ace613ae9f24ce6282ac7e0306fb2c06eff2
MD5 336cb9b676322ba4fc1b68f63809ec0e
BLAKE2b-256 10de27ce5d6087bf3f8c37ca76b5e78eea601498645b32b18afea55e08ee614f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page