Skip to main content

vantage_sdk.vantage_rest_api_client

Vantage REST API Client for License Management and related resources.

Classes

VantageRestApiClient(*, settings: vantage_sdk.config.Settings, profile: str, persona: vantage_sdk.schemas.Persona | None = None, timeout: int = 30, base_path: str = '')

REST API client for Vantage platform services.

Methods

  • aclose(self) -> None: Alias for close to match httpx.AsyncClient semantics.
  • close(self): Close the HTTP client connection.
  • delete(self, path: str) -> Any: Send DELETE request to the API.
  • get(self, path: str, params: Dict[str, Any] | None = None) -> Any: Send GET request to the API.
  • post(self, path: str, json: Dict[str, Any] | None = None) -> Any: Send POST request to the API.
  • put(self, path: str, json: Dict[str, Any] | None = None) -> Any: Send PUT request to the API.
  • request(self, method: str, path: str, **kwargs) -> Any: Make an authenticated HTTP request to the Vantage API.

Functions

create_vantage_rest_client(*, settings: vantage_sdk.config.Settings, profile: str, persona: vantage_sdk.schemas.Persona | None = None, base_path: str = '', timeout: int = 30) -> vantage_sdk.vantage_rest_api_client.VantageRestApiClient

Create a REST API client from explicit SDK inputs.