superwise_api.superwise_client
class
SuperwiseClient(superwise_api.client.api_client.ApiClient):
This class provides methods to interact with the Superwise API.
Attributes:
- settings (Settings): An instance of the Settings class to manage API settings.
- configuration (Configuration): An instance of the Configuration class to manage API configuration.
SuperwiseClient( client_id: Optional[str] = None, client_secret: Optional[str] = None, auth_host: Optional[str] = None, api_host: Optional[str] = None, use_hosted_auth: Optional[bool] = None, *args, **kwargs)
def
call_api(self, *args, **kwargs):
Calls the API.
Arguments:
- *args: Arbitrary positional arguments.
- **kwargs: Arbitrary keyword arguments.
Returns:
The API response.
Raises:
- UnauthorizedException: If the API call is unauthorized.
def
request(self, *args, **kwargs):
Sends a request to the API.
Arguments:
- *args: Arbitrary positional arguments.
- **kwargs: Arbitrary keyword arguments.
Returns:
The API response. (Handling 204 where no content as an empty dict)
Inherited Members
- superwise_api.client.api_client.ApiClient
- PRIMITIVE_TYPES
- NATIVE_TYPES_MAPPING
- configuration
- pool_threads
- rest_client
- default_headers
- client_side_validation
- close
- pool
- user_agent
- set_default_header
- get_default
- set_default
- sanitize_for_serialization
- deserialize
- parameters_to_tuples
- parameters_to_url_query
- files_parameters
- select_header_accept
- select_header_content_type
- update_params_for_auth
- replace
- put
- create
- post
- delete
- update
- get_by_id
- get