Skip to content

Commit

Permalink
nightly API update
Browse files Browse the repository at this point in the history
  • Loading branch information
p-fruck committed Jan 13, 2025
1 parent 5201865 commit 0c5c6ef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/ImagesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ Name | Type | Description | Notes
[[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)

# **retrieve_image_list**
> ListImageResponse retrieve_image_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, standard_image=standard_image)
> ListImageResponse retrieve_image_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, standard_image=standard_image, search=search)
List available standard and custom images

Expand Down Expand Up @@ -381,10 +381,11 @@ with pfruck_contabo.ApiClient(configuration) as api_client:
order_by = ['name:asc'] # List[str] | Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`. (optional)
name = 'Ubuntu' # str | The name of the image (optional)
standard_image = true # bool | Flag indicating that image is either a standard (true) or a custom image (false) (optional)
search = 'windows or Debian' # str | full text search on image name or image os type (optional)

try:
# List available standard and custom images
api_response = api_instance.retrieve_image_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, standard_image=standard_image)
api_response = api_instance.retrieve_image_list(x_request_id, x_trace_id=x_trace_id, page=page, size=size, order_by=order_by, name=name, standard_image=standard_image, search=search)
print("The response of ImagesApi->retrieve_image_list:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -405,6 +406,7 @@ Name | Type | Description | Notes
**order_by** | [**List[str]**](str.md)| Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`. | [optional]
**name** | **str**| The name of the image | [optional]
**standard_image** | **bool**| Flag indicating that image is either a standard (true) or a custom image (false) | [optional]
**search** | **str**| full text search on image name or image os type | [optional]

### Return type

Expand Down
17 changes: 17 additions & 0 deletions pfruck_contabo/api/images_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,7 @@ def retrieve_image_list(
order_by: Annotated[Optional[List[StrictStr]], Field(description="Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`.")] = None,
name: Annotated[Optional[StrictStr], Field(description="The name of the image")] = None,
standard_image: Annotated[Optional[StrictBool], Field(description="Flag indicating that image is either a standard (true) or a custom image (false)")] = None,
search: Annotated[Optional[StrictStr], Field(description="full text search on image name or image os type")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -1233,6 +1234,8 @@ def retrieve_image_list(
:type name: str
:param standard_image: Flag indicating that image is either a standard (true) or a custom image (false)
:type standard_image: bool
:param search: full text search on image name or image os type
:type search: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -1263,6 +1266,7 @@ def retrieve_image_list(
order_by=order_by,
name=name,
standard_image=standard_image,
search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -1293,6 +1297,7 @@ def retrieve_image_list_with_http_info(
order_by: Annotated[Optional[List[StrictStr]], Field(description="Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`.")] = None,
name: Annotated[Optional[StrictStr], Field(description="The name of the image")] = None,
standard_image: Annotated[Optional[StrictBool], Field(description="Flag indicating that image is either a standard (true) or a custom image (false)")] = None,
search: Annotated[Optional[StrictStr], Field(description="full text search on image name or image os type")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -1324,6 +1329,8 @@ def retrieve_image_list_with_http_info(
:type name: str
:param standard_image: Flag indicating that image is either a standard (true) or a custom image (false)
:type standard_image: bool
:param search: full text search on image name or image os type
:type search: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -1354,6 +1361,7 @@ def retrieve_image_list_with_http_info(
order_by=order_by,
name=name,
standard_image=standard_image,
search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -1384,6 +1392,7 @@ def retrieve_image_list_without_preload_content(
order_by: Annotated[Optional[List[StrictStr]], Field(description="Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`.")] = None,
name: Annotated[Optional[StrictStr], Field(description="The name of the image")] = None,
standard_image: Annotated[Optional[StrictBool], Field(description="Flag indicating that image is either a standard (true) or a custom image (false)")] = None,
search: Annotated[Optional[StrictStr], Field(description="full text search on image name or image os type")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand Down Expand Up @@ -1415,6 +1424,8 @@ def retrieve_image_list_without_preload_content(
:type name: str
:param standard_image: Flag indicating that image is either a standard (true) or a custom image (false)
:type standard_image: bool
:param search: full text search on image name or image os type
:type search: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand Down Expand Up @@ -1445,6 +1456,7 @@ def retrieve_image_list_without_preload_content(
order_by=order_by,
name=name,
standard_image=standard_image,
search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -1470,6 +1482,7 @@ def _retrieve_image_list_serialize(
order_by,
name,
standard_image,
search,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -1511,6 +1524,10 @@ def _retrieve_image_list_serialize(

_query_params.append(('standardImage', standard_image))

if search is not None:

_query_params.append(('search', search))

# process the header parameters
if x_request_id is not None:
_header_params['x-request-id'] = x_request_id
Expand Down

0 comments on commit 0c5c6ef

Please sign in to comment.