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.0.tar.gz (65.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: aptible_client-1.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 cc6eb4b0beee24a61f15554d8c8dbf4159b8c8575f505e88576d374afdaf2e42
MD5 0cc83a2d899446a9928ed813ce085ccf
BLAKE2b-256 cd075929e9643844426b74e28727494fe0a824cc2a5575335a4483d16575b81b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aptible_client-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d734bc24c60781c55df16fc6b75a79196acde2a88b506dd02f4cf4538368ea50
MD5 14fa31bcd1253ddf15f422d0c0750f08
BLAKE2b-256 b6e8ae4c16809f1da66dcc4678979ce77838946574c2f8d544b88977a2814708

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