Skip to content

Repository files navigation

platform-api-python-client

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

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

  • API version: 0.1.0
  • Package version: 4.26.1
  • Generator version: 7.9.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

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

pip install git+https://github.com/centml/platform/client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/centml/platform/client.git)

Then import the package:

importplatform_api_python_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:

importplatform_api_python_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

importplatform_api_python_clientfromplatform_api_python_client.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to http://localhost# See configuration.py for a list of all supported configuration parameters.configuration=platform_api_python_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=platform_api_python_client.Configuration(
access_token=os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API clientwithplatform_api_python_client.ApiClient(configuration) asapi_client:
# Create an instance of the API classapi_instance=platform_api_python_client.EXTERNALApi(api_client)
cluster_registration_request=platform_api_python_client.ClusterRegistrationRequest() # ClusterRegistrationRequest | try:
# Create Clusterapi_response=api_instance.create_cluster_clusters_post(cluster_registration_request)
print("The response of EXTERNALApi->create_cluster_clusters_post:\n")
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling EXTERNALApi->create_cluster_clusters_post: %s\n"%e)

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
EXTERNALApicreate_cluster_clusters_postPOST /clustersCreate Cluster
EXTERNALApicreate_compute_deployment_deployments_compute_postPOST /deployments/computeCreate Compute Deployment
EXTERNALApicreate_cserve_v2_deployment_deployments_cserve_v2_postPOST /deployments/cserve_v2Create Cserve V2 Deployment
EXTERNALApicreate_cserve_v3_deployment_deployments_cserve_v3_postPOST /deployments/cserve_v3Create Cserve V3 Deployment
EXTERNALApicreate_dynamo_deployment_deployments_dynamo_postPOST /deployments/dynamoCreate Dynamo Deployment
EXTERNALApicreate_hardware_instance_hardware_instances_postPOST /hardware-instancesCreate Hardware Instance
EXTERNALApicreate_inference_deployment_deployments_inference_postPOST /deployments/inferenceCreate Inference Deployment
EXTERNALApicreate_inference_v3_deployment_deployments_inference_v3_postPOST /deployments/inference_v3Create Inference V3 Deployment
EXTERNALApicreate_job_deployment_deployments_job_postPOST /deployments/jobCreate Job Deployment
EXTERNALApicreate_new_organization_organizations_postPOST /organizationsCreate New Organization
EXTERNALApicreate_service_account_service_accounts_postPOST /service-accountsCreate Service Account
EXTERNALApicreate_volume_endpoint_volumes_postPOST /volumesCreate Volume Endpoint
EXTERNALApidelete_cluster_clusters_cluster_id_deleteDELETE /clusters/{cluster_id}Delete Cluster
EXTERNALApidelete_hardware_instance_hardware_instances_hardware_instance_id_deleteDELETE /hardware-instances/{hardware_instance_id}Delete Hardware Instance
EXTERNALApidelete_service_account_service_accounts_workos_id_deleteDELETE /service-accounts/{workos_id}Delete Service Account
EXTERNALApidelete_user_vault_item_by_id_endpoint_user_vault_secret_id_deleteDELETE /user_vault/{secret_id}Delete User Vault Item By Id Endpoint
EXTERNALApidelete_user_vault_item_endpoint_user_vault_deleteDELETE /user_vaultDelete User Vault Item Endpoint
EXTERNALApidelete_volume_endpoint_volumes_volume_id_deleteDELETE /volumes/{volume_id}Delete Volume Endpoint
EXTERNALApigenerate_service_account_secret_service_accounts_workos_id_secrets_postPOST /service-accounts/{workos_id}/secretsGenerate Service Account Secret
EXTERNALApiget_all_user_vault_items_endpoint_user_vault_getGET /user_vaultGet All User Vault Items Endpoint
EXTERNALApiget_all_volumes_endpoint_volumes_getGET /volumesGet All Volumes Endpoint
EXTERNALApiget_clusters_clusters_getGET /clustersGet Clusters
EXTERNALApiget_compute_deployment_deployments_compute_deployment_id_getGET /deployments/compute/{deployment_id}Get Compute Deployment
EXTERNALApiget_credits_credits_getGET /creditsGet Credits
EXTERNALApiget_cserve_recipe_deployments_cserve_recipes_getGET /deployments/cserve/recipesGet Cserve Recipe
EXTERNALApiget_cserve_v2_deployment_deployments_cserve_v2_deployment_id_getGET /deployments/cserve_v2/{deployment_id}Get Cserve V2 Deployment
EXTERNALApiget_cserve_v3_deployment_deployments_cserve_v3_deployment_id_getGET /deployments/cserve_v3/{deployment_id}Get Cserve V3 Deployment
EXTERNALApiget_deployment_logs_deployments_logs_deployment_id_getGET /deployments/logs/{deployment_id}Get Deployment Logs
EXTERNALApiget_deployment_logs_v3_deployments_logs_v3_deployment_id_revision_number_getGET /deployments/logs_v3/{deployment_id}/{revision_number}Get Deployment Logs V3
EXTERNALApiget_deployment_logs_v4_logs_deployment_id_revision_number_getGET /logs/{deployment_id}/{revision_number}Get Deployment Logs V4
EXTERNALApiget_deployment_pods_deployments_pods_deployment_id_revision_number_getGET /deployments/pods/{deployment_id}/{revision_number}Get Deployment Pods
EXTERNALApiget_deployment_revision_deployments_revisions_deployment_id_revision_number_getGET /deployments/revisions/{deployment_id}/{revision_number}Get Deployment Revision
EXTERNALApiget_deployment_revisions_deployments_revisions_deployment_id_getGET /deployments/revisions/{deployment_id}Get Deployment Revisions
EXTERNALApiget_deployment_status_deployments_status_deployment_id_getGET /deployments/status/{deployment_id}Get Deployment Status
EXTERNALApiget_deployment_status_v3_deployments_status_v3_deployment_id_getGET /deployments/status_v3/{deployment_id}Get Deployment Status V3
EXTERNALApiget_deployments_deployments_getGET /deploymentsGet Deployments
EXTERNALApiget_dynamo_deployment_deployments_dynamo_deployment_id_getGET /deployments/dynamo/{deployment_id}Get Dynamo Deployment
EXTERNALApiget_hardware_instances_hardware_instances_getGET /hardware-instancesGet Hardware Instances
EXTERNALApiget_hardware_presets_hardware_presets_getGET /hardware-presetsGet Hardware Presets
EXTERNALApiget_inference_deployment_deployments_inference_deployment_id_getGET /deployments/inference/{deployment_id}Get Inference Deployment
EXTERNALApiget_inference_v3_deployment_deployments_inference_v3_deployment_id_getGET /deployments/inference_v3/{deployment_id}Get Inference V3 Deployment
EXTERNALApiget_job_deployment_deployments_job_deployment_id_getGET /deployments/job/{deployment_id}Get Job Deployment
EXTERNALApiget_prebuilt_images_prebuilt_images_getGET /prebuilt-imagesGet Prebuilt Images
EXTERNALApiget_usage_daily_bills_getGET /daily_billsGet Usage
EXTERNALApiget_usage_deployments_usage_deployment_id_getGET /deployments/usage/{deployment_id}Get Usage
EXTERNALApiget_user_vault_item_by_id_endpoint_user_vault_secret_id_getGET /user_vault/{secret_id}Get User Vault Item By Id Endpoint
EXTERNALApiget_volume_endpoint_volumes_volume_id_getGET /volumes/{volume_id}Get Volume Endpoint
EXTERNALApiget_volume_status_endpoint_volumes_status_volume_id_getGET /volumes/status/{volume_id}Get Volume Status Endpoint
EXTERNALApiinvite_user_organizations_invite_postPOST /organizations/inviteInvite User
EXTERNALApilist_cluster_capacity_capacity_getGET /capacityList Cluster Capacity
EXTERNALApilist_service_accounts_service_accounts_getGET /service-accountsList Service Accounts
EXTERNALApirollout_existing_revision_deployments_revisions_deployment_id_revision_number_putPUT /deployments/revisions/{deployment_id}/{revision_number}Rollout Existing Revision
EXTERNALApisetup_stripe_customer_payments_setup_postPOST /payments/setupSetup Stripe Customer
EXTERNALApiupdate_cluster_clusters_cluster_id_putPUT /clusters/{cluster_id}Update Cluster
EXTERNALApiupdate_cluster_metadata_clusters_cluster_id_metadata_putPUT /clusters/{cluster_id}/metadataUpdate Cluster Metadata
EXTERNALApiupdate_compute_deployment_deployments_compute_putPUT /deployments/computeUpdate Compute Deployment
EXTERNALApiupdate_cserve_v2_deployment_deployments_cserve_v2_putPUT /deployments/cserve_v2Update Cserve V2 Deployment
EXTERNALApiupdate_cserve_v3_deployment_deployments_cserve_v3_putPUT /deployments/cserve_v3Update Cserve V3 Deployment
EXTERNALApiupdate_deployment_status_deployments_status_deployment_id_putPUT /deployments/status/{deployment_id}Update Deployment Status
EXTERNALApiupdate_deployment_status_v3_deployments_status_v3_deployment_id_putPUT /deployments/status_v3/{deployment_id}Update Deployment Status V3
EXTERNALApiupdate_dynamo_deployment_deployments_dynamo_putPUT /deployments/dynamoUpdate Dynamo Deployment
EXTERNALApiupdate_inference_deployment_deployments_inference_putPUT /deployments/inferenceUpdate Inference Deployment
EXTERNALApiupdate_inference_v3_deployment_deployments_inference_v3_putPUT /deployments/inference_v3Update Inference V3 Deployment
EXTERNALApiupdate_service_account_service_accounts_workos_id_putPUT /service-accounts/{workos_id}Update Service Account
EXTERNALApiupdate_user_vault_item_endpoint_user_vault_putPUT /user_vaultUpdate User Vault Item Endpoint

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

HTTPBearer

  • Type: Bearer authentication

Author

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages