Skip to content

Commit e334bc9

Browse files
Generator: Update SDK /services/stackitmarketplace (#2526)
1 parent fab2c83 commit e334bc9

File tree

9 files changed

+79
-17
lines changed

9 files changed

+79
-17
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
- Other new model classes: `BucketCredentials`
2525
- `alb` [v0.6.1](services/alb/CHANGELOG.md#v061)
2626
- **Docs:** Update description of field `WafConfigName` in `Listener` model
27+
- `stackitmarketplace`: [v1.16.0](services/stackitmarketplace/CHANGELOG.md#v1160)
28+
- **Feature:** Add new field `Scope` in `CatalogProductPricingOption` model
29+
- **Deprecation:** Deprecated API methods `GetCatalogProduct`, `ListCatalogProducts` and `InquiriesCreateInquiry`
2730

2831
## Release (2025-10-29)
2932
- `stackitmarketplace`: [v1.15.0](services/stackitmarketplace/CHANGELOG.md#v1150)

services/stackitmarketplace/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.16.0
2+
- **Feature:** Add new field `Scope` in `CatalogProductPricingOption` model
3+
- **Deprecation:** Deprecated API methods `GetCatalogProduct`, `ListCatalogProducts` and `InquiriesCreateInquiry`
4+
15
## v1.15.0
26
- **Feature:** Add `EndUserLicenseAgreement`, `ProductDescription` and `ServiceLevelAgreement` attributes and add them to `Assets` struct
37

services/stackitmarketplace/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-stackitmarketplace"
33

44
[tool.poetry]
55
name = "stackit-stackitmarketplace"
6-
version = "v1.15.0"
6+
version = "v1.16.0"
77
authors = [
88
"STACKIT Developer Tools <[email protected]>",
99
]

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
Large diffs are not rendered by default.

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)