Skip to content

Commit

Permalink
fix: availabilities has freeSize
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Aug 25, 2024
1 parent 0ccb33a commit 4e6e4e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion codex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ paths:
schema:
type: array
items:
$ref: "#/components/schemas/SalesAvailability"
$ref: "#/components/schemas/SalesAvailabilityREAD"
"500":
description: Error getting unused availabilities
"503":
Expand Down
10 changes: 5 additions & 5 deletions codex_client/api/marketplace_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ def get_availabilities(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> List[SalesAvailability]:
) -> List[SalesAvailabilityREAD]:
"""Returns storage that is for sale
Expand Down Expand Up @@ -894,7 +894,7 @@ def get_availabilities(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "List[SalesAvailability]",
'200': "List[SalesAvailabilityREAD]",
'500': None,
'503': None,
}
Expand Down Expand Up @@ -924,7 +924,7 @@ def get_availabilities_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[List[SalesAvailability]]:
) -> ApiResponse[List[SalesAvailabilityREAD]]:
"""Returns storage that is for sale
Expand Down Expand Up @@ -958,7 +958,7 @@ def get_availabilities_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "List[SalesAvailability]",
'200': "List[SalesAvailabilityREAD]",
'500': None,
'503': None,
}
Expand Down Expand Up @@ -1022,7 +1022,7 @@ def get_availabilities_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "List[SalesAvailability]",
'200': "List[SalesAvailabilityREAD]",
'500': None,
'503': None,
}
Expand Down
6 changes: 3 additions & 3 deletions docs/MarketplaceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ No authorization required
[[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)

# **get_availabilities**
> List[SalesAvailability] get_availabilities()
> List[SalesAvailabilityREAD] get_availabilities()
Returns storage that is for sale

Expand All @@ -228,7 +228,7 @@ Returns storage that is for sale

```python
import codex_client
from codex_client.models.sales_availability import SalesAvailability
from codex_client.models.sales_availability_read import SalesAvailabilityREAD
from codex_client.rest import ApiException
from pprint import pprint

Expand Down Expand Up @@ -261,7 +261,7 @@ This endpoint does not need any parameter.

### Return type

[**List[SalesAvailability]**](SalesAvailability.md)
[**List[SalesAvailabilityREAD]**](SalesAvailabilityREAD.md)

### Authorization

Expand Down

0 comments on commit 4e6e4e0

Please sign in to comment.