From ed3aa61110bdae06b650d52dc12a0b8f0c6d0982 Mon Sep 17 00:00:00 2001 From: brandon Date: Fri, 13 Dec 2024 12:05:37 -0800 Subject: [PATCH] update spec with backend update --- generated/docs/ImageQueriesApi.md | 6 +++--- .../api/image_queries_api.py | 10 +++++----- generated/model.py | 2 +- spec/public-api.yaml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/generated/docs/ImageQueriesApi.md b/generated/docs/ImageQueriesApi.md index 47a65ae5..3d405374 100644 --- a/generated/docs/ImageQueriesApi.md +++ b/generated/docs/ImageQueriesApi.md @@ -203,12 +203,12 @@ with groundlight_openapi_client.ApiClient(configuration) as api_client: api_instance = image_queries_api.ImageQueriesApi(api_client) page = 1 # int | A page number within the paginated result set. (optional) page_size = 1 # int | Number of items to return per page. (optional) - predictor_id = "predictor_id_example" # str | Optionally filter image queries by detector ID. (optional) + detector_id = "detector_id_example" # str | Optionally filter image queries by detector ID. (optional) # example passing only required values which don't have defaults set # and optional values try: - api_response = api_instance.list_image_queries(page=page, page_size=page_size, predictor_id=predictor_id) + api_response = api_instance.list_image_queries(page=page, page_size=page_size, detector_id=detector_id) pprint(api_response) except groundlight_openapi_client.ApiException as e: print("Exception when calling ImageQueriesApi->list_image_queries: %s\n" % e) @@ -221,7 +221,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **int**| A page number within the paginated result set. | [optional] **page_size** | **int**| Number of items to return per page. | [optional] - **predictor_id** | **str**| Optionally filter image queries by detector ID. | [optional] + **detector_id** | **str**| Optionally filter image queries by detector ID. | [optional] ### Return type diff --git a/generated/groundlight_openapi_client/api/image_queries_api.py b/generated/groundlight_openapi_client/api/image_queries_api.py index b25ad772..906bb202 100644 --- a/generated/groundlight_openapi_client/api/image_queries_api.py +++ b/generated/groundlight_openapi_client/api/image_queries_api.py @@ -129,7 +129,7 @@ def __init__(self, api_client=None): "all": [ "page", "page_size", - "predictor_id", + "detector_id", ], "required": [], "nullable": [], @@ -142,17 +142,17 @@ def __init__(self, api_client=None): "openapi_types": { "page": (int,), "page_size": (int,), - "predictor_id": (str,), + "detector_id": (str,), }, "attribute_map": { "page": "page", "page_size": "page_size", - "predictor_id": "predictor_id", + "detector_id": "detector_id", }, "location_map": { "page": "query", "page_size": "query", - "predictor_id": "query", + "detector_id": "query", }, "collection_format_map": {}, }, @@ -379,7 +379,7 @@ def list_image_queries(self, **kwargs): Keyword Args: page (int): A page number within the paginated result set.. [optional] page_size (int): Number of items to return per page.. [optional] - predictor_id (str): Optionally filter image queries by detector ID.. [optional] + detector_id (str): Optionally filter image queries by detector ID.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/generated/model.py b/generated/model.py index 827e7ea1..12eef27d 100644 --- a/generated/model.py +++ b/generated/model.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: public-api.yaml -# timestamp: 2024-12-10T01:13:13+00:00 +# timestamp: 2024-12-13T20:04:02+00:00 from __future__ import annotations diff --git a/spec/public-api.yaml b/spec/public-api.yaml index 084cc956..10e8ecaa 100644 --- a/spec/public-api.yaml +++ b/spec/public-api.yaml @@ -324,7 +324,7 @@ paths: type: integer description: Number of items to return per page. - in: query - name: predictor_id + name: detector_id schema: type: string description: Optionally filter image queries by detector ID.