Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file was automatically generated. DO NOT EDIT.
# If you have any remark or suggestion do not hesitate to open an issue.
from .types import ListPublicCatalogProductsRequestProductType
from .types import ListPublicCatalogProductsRequestStatus
from .types import PublicCatalogProductPropertiesHardwareCPUArch
from .types import PublicCatalogProductStatus
from .types import PublicCatalogProductUnitOfMeasureCountableUnit
Expand Down Expand Up @@ -30,6 +31,7 @@

__all__ = [
"ListPublicCatalogProductsRequestProductType",
"ListPublicCatalogProductsRequestStatus",
"PublicCatalogProductPropertiesHardwareCPUArch",
"PublicCatalogProductStatus",
"PublicCatalogProductUnitOfMeasureCountableUnit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
)
from .types import (
ListPublicCatalogProductsRequestProductType,
ListPublicCatalogProductsRequestStatus,
ListPublicCatalogProductsResponse,
PublicCatalogProduct,
)
Expand All @@ -38,6 +39,7 @@ async def list_public_catalog_products(
region: Optional[ScwRegion] = None,
zone: Optional[ScwZone] = None,
datacenter: Optional[str] = None,
status: Optional[list[ListPublicCatalogProductsRequestStatus]] = None,
) -> ListPublicCatalogProductsResponse:
"""
List all available products.
Expand All @@ -53,6 +55,7 @@ async def list_public_catalog_products(
One-Of ('locality'): at most one of 'global_', 'region', 'zone', 'datacenter' could be set.
:param datacenter: Filter products by datacenter.
One-Of ('locality'): at most one of 'global_', 'region', 'zone', 'datacenter' could be set.
:param status: The lists of filtered product status, if empty only products with status public_beta, general_availability, preview, end_of_deployment, end_of_support, end_of_sale, end_of_life or retired will be returned.
:return: :class:`ListPublicCatalogProductsResponse <ListPublicCatalogProductsResponse>`

Usage:
Expand All @@ -68,6 +71,7 @@ async def list_public_catalog_products(
"page": page,
"page_size": page_size or self.client.default_page_size,
"product_types": product_types,
"status": status,
**resolve_one_of(
[
OneOfPossibility("datacenter", datacenter),
Expand All @@ -94,6 +98,7 @@ async def list_public_catalog_products_all(
region: Optional[ScwRegion] = None,
zone: Optional[ScwZone] = None,
datacenter: Optional[str] = None,
status: Optional[list[ListPublicCatalogProductsRequestStatus]] = None,
) -> list[PublicCatalogProduct]:
"""
List all available products.
Expand All @@ -109,6 +114,7 @@ async def list_public_catalog_products_all(
One-Of ('locality'): at most one of 'global_', 'region', 'zone', 'datacenter' could be set.
:param datacenter: Filter products by datacenter.
One-Of ('locality'): at most one of 'global_', 'region', 'zone', 'datacenter' could be set.
:param status: The lists of filtered product status, if empty only products with status public_beta, general_availability, preview, end_of_deployment, end_of_support, end_of_sale, end_of_life or retired will be returned.
:return: :class:`list[PublicCatalogProduct] <list[PublicCatalogProduct]>`

Usage:
Expand All @@ -125,6 +131,7 @@ async def list_public_catalog_products_all(
"page": page,
"page_size": page_size,
"product_types": product_types,
"status": status,
"global_": global_,
"region": region,
"zone": zone,
Expand Down
24 changes: 24 additions & 0 deletions scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ def __str__(self) -> str:
return str(self.value)


class ListPublicCatalogProductsRequestStatus(str, Enum, metaclass=StrEnumMeta):
UNKNOWN_STATUS = "unknown_status"
PUBLIC_BETA = "public_beta"
PREVIEW = "preview"
GENERAL_AVAILABILITY = "general_availability"
END_OF_DEPLOYMENT = "end_of_deployment"
END_OF_SUPPORT = "end_of_support"
END_OF_SALE = "end_of_sale"
END_OF_LIFE = "end_of_life"
RETIRED = "retired"

def __str__(self) -> str:
return str(self.value)


class PublicCatalogProductPropertiesHardwareCPUArch(str, Enum, metaclass=StrEnumMeta):
UNKNOWN_ARCH = "unknown_arch"
X64 = "x64"
Expand All @@ -49,6 +64,8 @@ class PublicCatalogProductStatus(str, Enum, metaclass=StrEnumMeta):
END_OF_DEPLOYMENT = "end_of_deployment"
END_OF_SUPPORT = "end_of_support"
END_OF_SALE = "end_of_sale"
END_OF_LIFE = "end_of_life"
RETIRED = "retired"

def __str__(self) -> str:
return str(self.value)
Expand Down Expand Up @@ -481,6 +498,13 @@ class PublicCatalogApiListPublicCatalogProductsRequest:
The list of filtered product categories.
"""

status: Optional[list[ListPublicCatalogProductsRequestStatus]] = field(
default_factory=list
)
"""
The lists of filtered product status, if empty only products with status public_beta, general_availability, preview, end_of_deployment, end_of_support, end_of_sale, end_of_life or retired will be returned.
"""

global_: Optional[bool] = False

region: Optional[ScwRegion] = None
Expand Down
2 changes: 2 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file was automatically generated. DO NOT EDIT.
# If you have any remark or suggestion do not hesitate to open an issue.
from .types import ListPublicCatalogProductsRequestProductType
from .types import ListPublicCatalogProductsRequestStatus
from .types import PublicCatalogProductPropertiesHardwareCPUArch
from .types import PublicCatalogProductStatus
from .types import PublicCatalogProductUnitOfMeasureCountableUnit
Expand Down Expand Up @@ -30,6 +31,7 @@

__all__ = [
"ListPublicCatalogProductsRequestProductType",
"ListPublicCatalogProductsRequestStatus",
"PublicCatalogProductPropertiesHardwareCPUArch",
"PublicCatalogProductStatus",
"PublicCatalogProductUnitOfMeasureCountableUnit",
Expand Down
7 changes: 7 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
)
from .types import (
ListPublicCatalogProductsRequestProductType,
ListPublicCatalogProductsRequestStatus,
ListPublicCatalogProductsResponse,
PublicCatalogProduct,
)
Expand All @@ -38,6 +39,7 @@ def list_public_catalog_products(
region: Optional[ScwRegion] = None,
zone: Optional[ScwZone] = None,
datacenter: Optional[str] = None,
status: Optional[list[ListPublicCatalogProductsRequestStatus]] = None,
) -> ListPublicCatalogProductsResponse:
"""
List all available products.
Expand All @@ -53,6 +55,7 @@ def list_public_catalog_products(
One-Of ('locality'): at most one of 'global_', 'region', 'zone', 'datacenter' could be set.
:param datacenter: Filter products by datacenter.
One-Of ('locality'): at most one of 'global_', 'region', 'zone', 'datacenter' could be set.
:param status: The lists of filtered product status, if empty only products with status public_beta, general_availability, preview, end_of_deployment, end_of_support, end_of_sale, end_of_life or retired will be returned.
:return: :class:`ListPublicCatalogProductsResponse <ListPublicCatalogProductsResponse>`

Usage:
Expand All @@ -68,6 +71,7 @@ def list_public_catalog_products(
"page": page,
"page_size": page_size or self.client.default_page_size,
"product_types": product_types,
"status": status,
**resolve_one_of(
[
OneOfPossibility("datacenter", datacenter),
Expand All @@ -94,6 +98,7 @@ def list_public_catalog_products_all(
region: Optional[ScwRegion] = None,
zone: Optional[ScwZone] = None,
datacenter: Optional[str] = None,
status: Optional[list[ListPublicCatalogProductsRequestStatus]] = None,
) -> list[PublicCatalogProduct]:
"""
List all available products.
Expand All @@ -109,6 +114,7 @@ def list_public_catalog_products_all(
One-Of ('locality'): at most one of 'global_', 'region', 'zone', 'datacenter' could be set.
:param datacenter: Filter products by datacenter.
One-Of ('locality'): at most one of 'global_', 'region', 'zone', 'datacenter' could be set.
:param status: The lists of filtered product status, if empty only products with status public_beta, general_availability, preview, end_of_deployment, end_of_support, end_of_sale, end_of_life or retired will be returned.
:return: :class:`list[PublicCatalogProduct] <list[PublicCatalogProduct]>`

Usage:
Expand All @@ -125,6 +131,7 @@ def list_public_catalog_products_all(
"page": page,
"page_size": page_size,
"product_types": product_types,
"status": status,
"global_": global_,
"region": region,
"zone": zone,
Expand Down
24 changes: 24 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ def __str__(self) -> str:
return str(self.value)


class ListPublicCatalogProductsRequestStatus(str, Enum, metaclass=StrEnumMeta):
UNKNOWN_STATUS = "unknown_status"
PUBLIC_BETA = "public_beta"
PREVIEW = "preview"
GENERAL_AVAILABILITY = "general_availability"
END_OF_DEPLOYMENT = "end_of_deployment"
END_OF_SUPPORT = "end_of_support"
END_OF_SALE = "end_of_sale"
END_OF_LIFE = "end_of_life"
RETIRED = "retired"

def __str__(self) -> str:
return str(self.value)


class PublicCatalogProductPropertiesHardwareCPUArch(str, Enum, metaclass=StrEnumMeta):
UNKNOWN_ARCH = "unknown_arch"
X64 = "x64"
Expand All @@ -49,6 +64,8 @@ class PublicCatalogProductStatus(str, Enum, metaclass=StrEnumMeta):
END_OF_DEPLOYMENT = "end_of_deployment"
END_OF_SUPPORT = "end_of_support"
END_OF_SALE = "end_of_sale"
END_OF_LIFE = "end_of_life"
RETIRED = "retired"

def __str__(self) -> str:
return str(self.value)
Expand Down Expand Up @@ -481,6 +498,13 @@ class PublicCatalogApiListPublicCatalogProductsRequest:
The list of filtered product categories.
"""

status: Optional[list[ListPublicCatalogProductsRequestStatus]] = field(
default_factory=list
)
"""
The lists of filtered product status, if empty only products with status public_beta, general_availability, preview, end_of_deployment, end_of_support, end_of_sale, end_of_life or retired will be returned.
"""

global_: Optional[bool] = False

region: Optional[ScwRegion] = None
Expand Down
Loading