Skip to content

Commit 268a75a

Browse files
Generate stackitmarketplace
1 parent fab2c83 commit 268a75a

File tree

6 files changed

+71
-16
lines changed

6 files changed

+71
-16
lines changed

services/stackitmarketplace/src/stackit/stackitmarketplace/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"RegisterTesting",
6868
"RequestPrivatePlan",
6969
"ResolveCustomerPayload",
70+
"Scope",
7071
"ServiceCertificate",
7172
"SubscriptionLifecycleState",
7273
"SubscriptionProduct",
@@ -191,6 +192,7 @@
191192
from stackit.stackitmarketplace.models.resolve_customer_payload import (
192193
ResolveCustomerPayload as ResolveCustomerPayload,
193194
)
195+
from stackit.stackitmarketplace.models.scope import Scope as Scope
194196
from stackit.stackitmarketplace.models.service_certificate import (
195197
ServiceCertificate as ServiceCertificate,
196198
)

services/stackitmarketplace/src/stackit/stackitmarketplace/api/default_api.py

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Do not edit the class manually.
1313
""" # noqa: E501
1414

15+
import warnings
1516
from typing import Any, Dict, List, Optional, Tuple, Union
1617

1718
from pydantic import (
@@ -358,7 +359,7 @@ def get_catalog_product(
358359
_headers: Optional[Dict[StrictStr, Any]] = None,
359360
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
360361
) -> CatalogProductDetail:
361-
"""Get a product
362+
"""(Deprecated) Get a product
362363
363364
Get a product.
364365
@@ -387,6 +388,7 @@ def get_catalog_product(
387388
:type _host_index: int, optional
388389
:return: Returns the result object.
389390
""" # noqa: E501
391+
warnings.warn("GET /v1/catalog/products/{productId} is deprecated.", DeprecationWarning)
390392

391393
_param = self._get_catalog_product_serialize(
392394
product_id=product_id,
@@ -426,7 +428,7 @@ def get_catalog_product_with_http_info(
426428
_headers: Optional[Dict[StrictStr, Any]] = None,
427429
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
428430
) -> ApiResponse[CatalogProductDetail]:
429-
"""Get a product
431+
"""(Deprecated) Get a product
430432
431433
Get a product.
432434
@@ -455,6 +457,7 @@ def get_catalog_product_with_http_info(
455457
:type _host_index: int, optional
456458
:return: Returns the result object.
457459
""" # noqa: E501
460+
warnings.warn("GET /v1/catalog/products/{productId} is deprecated.", DeprecationWarning)
458461

459462
_param = self._get_catalog_product_serialize(
460463
product_id=product_id,
@@ -494,7 +497,7 @@ def get_catalog_product_without_preload_content(
494497
_headers: Optional[Dict[StrictStr, Any]] = None,
495498
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
496499
) -> RESTResponseType:
497-
"""Get a product
500+
"""(Deprecated) Get a product
498501
499502
Get a product.
500503
@@ -523,6 +526,7 @@ def get_catalog_product_without_preload_content(
523526
:type _host_index: int, optional
524527
:return: Returns the result object.
525528
""" # noqa: E501
529+
warnings.warn("GET /v1/catalog/products/{productId} is deprecated.", DeprecationWarning)
526530

527531
_param = self._get_catalog_product_serialize(
528532
product_id=product_id,
@@ -871,7 +875,7 @@ def inquiries_create_inquiry(
871875
_headers: Optional[Dict[StrictStr, Any]] = None,
872876
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
873877
) -> None:
874-
"""Create inquiry
878+
"""(Deprecated) Create inquiry
875879
876880
Create an inquiry to contact sales, become a vendor, request a private plan, register for testing, or suggest a product. Requests are limited to 10 per 5 minutes.
877881
@@ -898,6 +902,7 @@ def inquiries_create_inquiry(
898902
:type _host_index: int, optional
899903
:return: Returns the result object.
900904
""" # noqa: E501
905+
warnings.warn("POST /v1/inquiries is deprecated.", DeprecationWarning)
901906

902907
_param = self._inquiries_create_inquiry_serialize(
903908
inquiries_create_inquiry_payload=inquiries_create_inquiry_payload,
@@ -935,7 +940,7 @@ def inquiries_create_inquiry_with_http_info(
935940
_headers: Optional[Dict[StrictStr, Any]] = None,
936941
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
937942
) -> ApiResponse[None]:
938-
"""Create inquiry
943+
"""(Deprecated) Create inquiry
939944
940945
Create an inquiry to contact sales, become a vendor, request a private plan, register for testing, or suggest a product. Requests are limited to 10 per 5 minutes.
941946
@@ -962,6 +967,7 @@ def inquiries_create_inquiry_with_http_info(
962967
:type _host_index: int, optional
963968
:return: Returns the result object.
964969
""" # noqa: E501
970+
warnings.warn("POST /v1/inquiries is deprecated.", DeprecationWarning)
965971

966972
_param = self._inquiries_create_inquiry_serialize(
967973
inquiries_create_inquiry_payload=inquiries_create_inquiry_payload,
@@ -999,7 +1005,7 @@ def inquiries_create_inquiry_without_preload_content(
9991005
_headers: Optional[Dict[StrictStr, Any]] = None,
10001006
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
10011007
) -> RESTResponseType:
1002-
"""Create inquiry
1008+
"""(Deprecated) Create inquiry
10031009
10041010
Create an inquiry to contact sales, become a vendor, request a private plan, register for testing, or suggest a product. Requests are limited to 10 per 5 minutes.
10051011
@@ -1026,6 +1032,7 @@ def inquiries_create_inquiry_without_preload_content(
10261032
:type _host_index: int, optional
10271033
:return: Returns the result object.
10281034
""" # noqa: E501
1035+
warnings.warn("POST /v1/inquiries is deprecated.", DeprecationWarning)
10291036

10301037
_param = self._inquiries_create_inquiry_serialize(
10311038
inquiries_create_inquiry_payload=inquiries_create_inquiry_payload,
@@ -1126,7 +1133,7 @@ def list_catalog_products(
11261133
filter: Annotated[
11271134
Optional[StrictStr],
11281135
Field(
1129-
description='Filter the products based on attributes, e.g., `deliveryMethod eq "SAAS"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co "searching"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator. '
1136+
description='Filter the products based on attributes, e.g., `deliveryMethod eq "SAAS"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co "searching"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator. '
11301137
),
11311138
] = None,
11321139
sort: Annotated[
@@ -1145,7 +1152,7 @@ def list_catalog_products(
11451152
_headers: Optional[Dict[StrictStr, Any]] = None,
11461153
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
11471154
) -> ListCatalogProductsResponse:
1148-
"""List all products
1155+
"""(Deprecated) List all products
11491156
11501157
List all products.
11511158
@@ -1155,7 +1162,7 @@ def list_catalog_products(
11551162
:type limit: float
11561163
:param locale: The language of the response.
11571164
:type locale: str
1158-
:param filter: Filter the products based on attributes, e.g., `deliveryMethod eq \"SAAS\"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co \"searching\"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator.
1165+
:param filter: Filter the products based on attributes, e.g., `deliveryMethod eq \"SAAS\"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co \"searching\"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator.
11591166
:type filter: str
11601167
:param sort: Sort the products based on attributes and order e.g. `name:asc`. Attributes with scalar types (`createdAt`, `isProductListing`) or keywords (`name`, `deliveryMethod`, `lifecycleState`, `vendor.name`) can be used as sort criteria. To set the sort order, append `asc` (ascending) or `desc` (descending) to the attribute, e.g. `name:asc`. To sort by multiple attributes, separate them with a comma. E.g `name:asc,price:desc`.
11611168
:type sort: str
@@ -1180,6 +1187,7 @@ def list_catalog_products(
11801187
:type _host_index: int, optional
11811188
:return: Returns the result object.
11821189
""" # noqa: E501
1190+
warnings.warn("GET /v1/catalog/products is deprecated.", DeprecationWarning)
11831191

11841192
_param = self._list_catalog_products_serialize(
11851193
cursor=cursor,
@@ -1229,7 +1237,7 @@ def list_catalog_products_with_http_info(
12291237
filter: Annotated[
12301238
Optional[StrictStr],
12311239
Field(
1232-
description='Filter the products based on attributes, e.g., `deliveryMethod eq "SAAS"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co "searching"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator. '
1240+
description='Filter the products based on attributes, e.g., `deliveryMethod eq "SAAS"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co "searching"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator. '
12331241
),
12341242
] = None,
12351243
sort: Annotated[
@@ -1248,7 +1256,7 @@ def list_catalog_products_with_http_info(
12481256
_headers: Optional[Dict[StrictStr, Any]] = None,
12491257
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
12501258
) -> ApiResponse[ListCatalogProductsResponse]:
1251-
"""List all products
1259+
"""(Deprecated) List all products
12521260
12531261
List all products.
12541262
@@ -1258,7 +1266,7 @@ def list_catalog_products_with_http_info(
12581266
:type limit: float
12591267
:param locale: The language of the response.
12601268
:type locale: str
1261-
:param filter: Filter the products based on attributes, e.g., `deliveryMethod eq \"SAAS\"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co \"searching\"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator.
1269+
:param filter: Filter the products based on attributes, e.g., `deliveryMethod eq \"SAAS\"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co \"searching\"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator.
12621270
:type filter: str
12631271
:param sort: Sort the products based on attributes and order e.g. `name:asc`. Attributes with scalar types (`createdAt`, `isProductListing`) or keywords (`name`, `deliveryMethod`, `lifecycleState`, `vendor.name`) can be used as sort criteria. To set the sort order, append `asc` (ascending) or `desc` (descending) to the attribute, e.g. `name:asc`. To sort by multiple attributes, separate them with a comma. E.g `name:asc,price:desc`.
12641272
:type sort: str
@@ -1283,6 +1291,7 @@ def list_catalog_products_with_http_info(
12831291
:type _host_index: int, optional
12841292
:return: Returns the result object.
12851293
""" # noqa: E501
1294+
warnings.warn("GET /v1/catalog/products is deprecated.", DeprecationWarning)
12861295

12871296
_param = self._list_catalog_products_serialize(
12881297
cursor=cursor,
@@ -1332,7 +1341,7 @@ def list_catalog_products_without_preload_content(
13321341
filter: Annotated[
13331342
Optional[StrictStr],
13341343
Field(
1335-
description='Filter the products based on attributes, e.g., `deliveryMethod eq "SAAS"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co "searching"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator. '
1344+
description='Filter the products based on attributes, e.g., `deliveryMethod eq "SAAS"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co "searching"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator. '
13361345
),
13371346
] = None,
13381347
sort: Annotated[
@@ -1351,7 +1360,7 @@ def list_catalog_products_without_preload_content(
13511360
_headers: Optional[Dict[StrictStr, Any]] = None,
13521361
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
13531362
) -> RESTResponseType:
1354-
"""List all products
1363+
"""(Deprecated) List all products
13551364
13561365
List all products.
13571366
@@ -1361,7 +1370,7 @@ def list_catalog_products_without_preload_content(
13611370
:type limit: float
13621371
:param locale: The language of the response.
13631372
:type locale: str
1364-
:param filter: Filter the products based on attributes, e.g., `deliveryMethod eq \"SAAS\"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co \"searching\"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator.
1373+
:param filter: Filter the products based on attributes, e.g., `deliveryMethod eq \"SAAS\"`. The supported operators are: - `PR` (present; `name pr`) - `EQ` (equal) - `NE` (not equal) - `CO` (contains; `text co \"searching\"`) - `SW` (starts with) - `EW` (ends with) - `GT` (greater than) - `LT` (less than) - `GE` (greater than or equal) - `LE` (less than or equal). These expressions can be logically linked with `AND` and `OR`. All attributes (and the special `text` attribute) can be used as filters, if the attribute type allows the operator.
13651374
:type filter: str
13661375
:param sort: Sort the products based on attributes and order e.g. `name:asc`. Attributes with scalar types (`createdAt`, `isProductListing`) or keywords (`name`, `deliveryMethod`, `lifecycleState`, `vendor.name`) can be used as sort criteria. To set the sort order, append `asc` (ascending) or `desc` (descending) to the attribute, e.g. `name:asc`. To sort by multiple attributes, separate them with a comma. E.g `name:asc,price:desc`.
13671376
:type sort: str
@@ -1386,6 +1395,7 @@ def list_catalog_products_without_preload_content(
13861395
:type _host_index: int, optional
13871396
:return: Returns the result object.
13881397
""" # noqa: E501
1398+
warnings.warn("GET /v1/catalog/products is deprecated.", DeprecationWarning)
13891399

13901400
_param = self._list_catalog_products_serialize(
13911401
cursor=cursor,

services/stackitmarketplace/src/stackit/stackitmarketplace/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
from stackit.stackitmarketplace.models.resolve_customer_payload import (
9898
ResolveCustomerPayload,
9999
)
100+
from stackit.stackitmarketplace.models.scope import Scope
100101
from stackit.stackitmarketplace.models.service_certificate import ServiceCertificate
101102
from stackit.stackitmarketplace.models.subscription_lifecycle_state import (
102103
SubscriptionLifecycleState,

services/stackitmarketplace/src/stackit/stackitmarketplace/models/catalog_product_detail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class CatalogProductDetail(BaseModel):
8282
)
8383
is_product_listing: Optional[StrictBool] = Field(
8484
default=None,
85-
description="If true, the product is not fully integrated but only listed. Product listings may not have prices and support information. Deprecated: Will be removed after 16.12.2025. Please use `offerType` as replacement.",
85+
description="If true, the product is not fully integrated but only listed. Product listings may not have prices and support information. Deprecated: Will be removed after 16.12.2025. Please use `offerType` as replacement.",
8686
alias="isProductListing",
8787
)
8888
lifecycle_state: ProductLifecycleState = Field(alias="lifecycleState")

services/stackitmarketplace/src/stackit/stackitmarketplace/models/catalog_product_pricing_option.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from stackit.stackitmarketplace.models.notice_period import NoticePeriod
2929
from stackit.stackitmarketplace.models.price_type import PriceType
3030
from stackit.stackitmarketplace.models.pricing_option_unit import PricingOptionUnit
31+
from stackit.stackitmarketplace.models.scope import Scope
3132

3233

3334
class CatalogProductPricingOption(BaseModel):
@@ -47,6 +48,7 @@ class CatalogProductPricingOption(BaseModel):
4748
default=None, description="Additional price type information.", alias="pricingPlan"
4849
)
4950
rate: Optional[StrictStr] = Field(default=None, description="The price of the product (per unit).")
51+
scope: Scope
5052
sku: StrictStr = Field(description="The concrete variant of the product.")
5153
sku_info: StrictStr = Field(description="Short description of this offering.", alias="skuInfo")
5254
sku_info_details: StrictStr = Field(
@@ -62,6 +64,7 @@ class CatalogProductPricingOption(BaseModel):
6264
"priceType",
6365
"pricingPlan",
6466
"rate",
67+
"scope",
6568
"sku",
6669
"skuInfo",
6770
"skuInfoDetails",
@@ -149,6 +152,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
149152
"priceType": obj.get("priceType"),
150153
"pricingPlan": obj.get("pricingPlan"),
151154
"rate": obj.get("rate"),
155+
"scope": obj.get("scope"),
152156
"sku": obj.get("sku"),
153157
"skuInfo": obj.get("skuInfo"),
154158
"skuInfoDetails": obj.get("skuInfoDetails"),
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# coding: utf-8
2+
3+
"""
4+
STACKIT Marketplace API
5+
6+
API to manage STACKIT Marketplace.
7+
8+
The version of the OpenAPI document: 1
9+
10+
Generated by OpenAPI Generator (https://openapi-generator.tech)
11+
12+
Do not edit the class manually.
13+
""" # noqa: E501
14+
15+
from __future__ import annotations
16+
17+
import json
18+
from enum import Enum
19+
20+
from typing_extensions import Self
21+
22+
23+
class Scope(str, Enum):
24+
"""
25+
The (visibility) scope.
26+
"""
27+
28+
"""
29+
allowed enum values
30+
"""
31+
PUBLIC = "PUBLIC"
32+
AUTHENTICATED = "AUTHENTICATED"
33+
PRIVATE_PROJECT = "PRIVATE_PROJECT"
34+
35+
@classmethod
36+
def from_json(cls, json_str: str) -> Self:
37+
"""Create an instance of Scope from a JSON string"""
38+
return cls(json.loads(json_str))

0 commit comments

Comments
 (0)