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
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_ping GET /api/v1/debug/ping Get Ping
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-0.1.1.tar.gz (61.9 kB view details)

Uploaded Source

Built Distribution

aptible_client-0.1.1-py3-none-any.whl (140.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aptible_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8fdf87bdac888c0559e898d89a1550c8c6e1a020c46597b2f6279d5f3480b033
MD5 2a28fbe04bf43780994e5828b4beb38e
BLAKE2b-256 8000003df66d430f58d89da64c4eea5fb4820608e08cc2c0a7322c549ecdd3b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aptible_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3c67ab47153bbc222c347bb250c4db16f6309348ac058b890108a9c89873fde
MD5 da094e9bba8c6a4b137320ba09507e1f
BLAKE2b-256 e1170a825f8a96907bf207ea3ea932c4752e0b8750815b2443a79066b8284dce

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