Skip to content
Merged
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
- Other new model classes: `BucketCredentials`
- `alb` [v0.6.1](services/alb/CHANGELOG.md#v061)
- **Docs:** Update description of field `WafConfigName` in `Listener` model
- `stackitmarketplace`: [v1.16.0](services/stackitmarketplace/CHANGELOG.md#v1160)
- **Feature:** Add new field `Scope` in `CatalogProductPricingOption` model
- **Deprecation:** Deprecated API methods `GetCatalogProduct`, `ListCatalogProducts` and `InquiriesCreateInquiry`

## Release (2025-10-29)
- `stackitmarketplace`: [v1.15.0](services/stackitmarketplace/CHANGELOG.md#v1150)
Expand Down
4 changes: 4 additions & 0 deletions services/stackitmarketplace/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.16.0
- **Feature:** Add new field `Scope` in `CatalogProductPricingOption` model
- **Deprecation:** Deprecated API methods `GetCatalogProduct`, `ListCatalogProducts` and `InquiriesCreateInquiry`

## v1.15.0
- **Feature:** Add `EndUserLicenseAgreement`, `ProductDescription` and `ServiceLevelAgreement` attributes and add them to `Assets` struct

Expand Down
2 changes: 1 addition & 1 deletion services/stackitmarketplace/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-stackitmarketplace"

[tool.poetry]
name = "stackit-stackitmarketplace"
version = "v1.15.0"
version = "v1.16.0"
authors = [
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"RegisterTesting",
"RequestPrivatePlan",
"ResolveCustomerPayload",
"Scope",
"ServiceCertificate",
"SubscriptionLifecycleState",
"SubscriptionProduct",
Expand Down Expand Up @@ -191,6 +192,7 @@
from stackit.stackitmarketplace.models.resolve_customer_payload import (
ResolveCustomerPayload as ResolveCustomerPayload,
)
from stackit.stackitmarketplace.models.scope import Scope as Scope
from stackit.stackitmarketplace.models.service_certificate import (
ServiceCertificate as ServiceCertificate,
)
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
from stackit.stackitmarketplace.models.resolve_customer_payload import (
ResolveCustomerPayload,
)
from stackit.stackitmarketplace.models.scope import Scope
from stackit.stackitmarketplace.models.service_certificate import ServiceCertificate
from stackit.stackitmarketplace.models.subscription_lifecycle_state import (
SubscriptionLifecycleState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CatalogProductDetail(BaseModel):
)
is_product_listing: Optional[StrictBool] = Field(
default=None,
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.",
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.",
alias="isProductListing",
)
lifecycle_state: ProductLifecycleState = Field(alias="lifecycleState")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from stackit.stackitmarketplace.models.notice_period import NoticePeriod
from stackit.stackitmarketplace.models.price_type import PriceType
from stackit.stackitmarketplace.models.pricing_option_unit import PricingOptionUnit
from stackit.stackitmarketplace.models.scope import Scope


class CatalogProductPricingOption(BaseModel):
Expand All @@ -47,6 +48,7 @@ class CatalogProductPricingOption(BaseModel):
default=None, description="Additional price type information.", alias="pricingPlan"
)
rate: Optional[StrictStr] = Field(default=None, description="The price of the product (per unit).")
scope: Scope
sku: StrictStr = Field(description="The concrete variant of the product.")
sku_info: StrictStr = Field(description="Short description of this offering.", alias="skuInfo")
sku_info_details: StrictStr = Field(
Expand All @@ -62,6 +64,7 @@ class CatalogProductPricingOption(BaseModel):
"priceType",
"pricingPlan",
"rate",
"scope",
"sku",
"skuInfo",
"skuInfoDetails",
Expand Down Expand Up @@ -149,6 +152,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"priceType": obj.get("priceType"),
"pricingPlan": obj.get("pricingPlan"),
"rate": obj.get("rate"),
"scope": obj.get("scope"),
"sku": obj.get("sku"),
"skuInfo": obj.get("skuInfo"),
"skuInfoDetails": obj.get("skuInfoDetails"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# coding: utf-8

"""
STACKIT Marketplace API

API to manage STACKIT Marketplace.

The version of the OpenAPI document: 1
Contact: marketplace@stackit.cloud
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501

from __future__ import annotations

import json
from enum import Enum

from typing_extensions import Self


class Scope(str, Enum):
"""
The (visibility) scope.
"""

"""
allowed enum values
"""
PUBLIC = "PUBLIC"
AUTHENTICATED = "AUTHENTICATED"
PRIVATE_PROJECT = "PRIVATE_PROJECT"

@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of Scope from a JSON string"""
return cls(json.loads(json_str))