|
| 1 | +# groundlight_openapi_client.EdgeApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.groundlight.ai/device-api* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**get_model_urls**](EdgeApi.md#get_model_urls) | **GET** /v1/edge/fetch-model-urls/{detector_id}/ | |
| 8 | + |
| 9 | + |
| 10 | +# **get_model_urls** |
| 11 | +> EdgeModelInfo get_model_urls(detector_id) |
| 12 | +
|
| 13 | + |
| 14 | + |
| 15 | +Gets time limited pre-authenticated URLs to download a detector's edge model and oodd model. |
| 16 | + |
| 17 | +### Example |
| 18 | + |
| 19 | +* Api Key Authentication (ApiToken): |
| 20 | + |
| 21 | +```python |
| 22 | +import time |
| 23 | +import groundlight_openapi_client |
| 24 | +from groundlight_openapi_client.api import edge_api |
| 25 | +from groundlight_openapi_client.model.edge_model_info import EdgeModelInfo |
| 26 | +from pprint import pprint |
| 27 | +# Defining the host is optional and defaults to https://api.groundlight.ai/device-api |
| 28 | +# See configuration.py for a list of all supported configuration parameters. |
| 29 | +configuration = groundlight_openapi_client.Configuration( |
| 30 | + host = "https://api.groundlight.ai/device-api" |
| 31 | +) |
| 32 | + |
| 33 | +# The client must configure the authentication and authorization parameters |
| 34 | +# in accordance with the API server security policy. |
| 35 | +# Examples for each auth method are provided below, use the example that |
| 36 | +# satisfies your auth use case. |
| 37 | + |
| 38 | +# Configure API key authorization: ApiToken |
| 39 | +configuration.api_key['ApiToken'] = 'YOUR_API_KEY' |
| 40 | + |
| 41 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 42 | +# configuration.api_key_prefix['ApiToken'] = 'Bearer' |
| 43 | + |
| 44 | +# Enter a context with an instance of the API client |
| 45 | +with groundlight_openapi_client.ApiClient(configuration) as api_client: |
| 46 | + # Create an instance of the API class |
| 47 | + api_instance = edge_api.EdgeApi(api_client) |
| 48 | + detector_id = "detector_id_example" # str | |
| 49 | + |
| 50 | + # example passing only required values which don't have defaults set |
| 51 | + try: |
| 52 | + api_response = api_instance.get_model_urls(detector_id) |
| 53 | + pprint(api_response) |
| 54 | + except groundlight_openapi_client.ApiException as e: |
| 55 | + print("Exception when calling EdgeApi->get_model_urls: %s\n" % e) |
| 56 | +``` |
| 57 | + |
| 58 | + |
| 59 | +### Parameters |
| 60 | + |
| 61 | +Name | Type | Description | Notes |
| 62 | +------------- | ------------- | ------------- | ------------- |
| 63 | + **detector_id** | **str**| | |
| 64 | + |
| 65 | +### Return type |
| 66 | + |
| 67 | +[**EdgeModelInfo**](EdgeModelInfo.md) |
| 68 | + |
| 69 | +### Authorization |
| 70 | + |
| 71 | +[ApiToken](../README.md#ApiToken) |
| 72 | + |
| 73 | +### HTTP request headers |
| 74 | + |
| 75 | + - **Content-Type**: Not defined |
| 76 | + - **Accept**: application/json |
| 77 | + |
| 78 | + |
| 79 | +### HTTP response details |
| 80 | + |
| 81 | +| Status code | Description | Response headers | |
| 82 | +|-------------|-------------|------------------| |
| 83 | +**200** | | - | |
| 84 | + |
| 85 | +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) |
| 86 | + |
0 commit comments