Skip to content

baselinehq/pricingapi-client-python

Repository files navigation

pricing-api-client

Provides API level access to the Costgraph Services.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.0.0
  • Generator version: 7.18.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://costgraph.baselinehq.cloud/support

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/baselinehq/pricingapi-client-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/baselinehq/pricingapi-client-python.git)

Then import the package:

import pricing_api_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import pricing_api_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import pricing_api_client
from pricing_api_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://pricing.baselinehq.cloud
# See configuration.py for a list of all supported configuration parameters.
configuration = pricing_api_client.Configuration(
    host = "https://pricing.baselinehq.cloud"
)



# Enter a context with an instance of the API client
with pricing_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pricing_api_client.DefaultApi(api_client)

    try:
        # Health check endpoint
        api_response = api_instance.healthz_get()
        print("The response of DefaultApi->healthz_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->healthz_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://pricing.baselinehq.cloud

Class Method HTTP request Description
DefaultApi healthz_get GET /healthz Health check endpoint
DefaultApi marketplace_providers_compute_delete DELETE /marketplace/providers/compute Delete a custom provider instance
DefaultApi marketplace_providers_compute_get GET /marketplace/providers/compute Get your custom pricing entries
DefaultApi marketplace_providers_compute_post POST /marketplace/providers/compute Register a custom provider
DefaultApi pricing_compute_post POST /pricing/compute Get pricing for an instance
DefaultApi pricing_disks_post POST /pricing/disks Get pricing for a disk
DefaultApi providers_get GET /providers Get details for the providers
DefaultApi recommendations_compute_post POST /recommendations/compute Get recommendations for compute instances
DefaultApi recommendations_disks_post POST /recommendations/disks Get recommendations for disks

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

contact@baselinehq.cloud

About

Python package for the pricing api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors