stackit-stackitmarketplace 0.2.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/PKG-INFO +1 -1
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/pyproject.toml +1 -1
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/__init__.py +17 -20
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/api/default_api.py +51 -30
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/api_client.py +1 -1
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/configuration.py +6 -2
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/__init__.py +17 -20
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/approve_subscription_payload.py +16 -3
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/become_vendor.py +7 -17
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_product_detail.py +66 -27
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_product_details_vendor.py +45 -8
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_product_overview.py +40 -22
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_product_overview_vendor.py +24 -5
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_product_pricing_option.py +5 -15
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_product_support_resource.py +16 -3
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_product_vendor_terms.py +15 -5
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/contact_sales.py +6 -16
- stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/delivery_method.py +39 -0
- stackit_stackitmarketplace-0.2.0/src/stackit/stackitmarketplace/models/become_vendor_become_vendor.py → stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/inquiry_become_vendor.py +6 -6
- stackit_stackitmarketplace-0.2.0/src/stackit/stackitmarketplace/models/contact_sales_contact_sales.py → stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/inquiry_contact_sales.py +16 -7
- stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/inquiry_form_type.py +39 -0
- stackit_stackitmarketplace-0.2.0/src/stackit/stackitmarketplace/models/register_testing_register_testing.py → stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/inquiry_register_testing.py +6 -6
- stackit_stackitmarketplace-0.2.0/src/stackit/stackitmarketplace/models/suggest_product_suggest_product.py → stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/inquiry_suggest_product.py +9 -7
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/list_catalog_products_response.py +6 -6
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/list_vendor_subscriptions_response.py +6 -6
- stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/price_type.py +40 -0
- stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/pricing_option_unit.py +36 -0
- stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/product_lifecycle_state.py +37 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/register_testing.py +7 -13
- stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/subscription_lifecycle_state.py +41 -0
- stackit_stackitmarketplace-1.0.1/src/stackit/stackitmarketplace/models/subscription_product.py +184 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/suggest_product.py +7 -13
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/vendor_subscription.py +7 -22
- stackit_stackitmarketplace-0.2.0/src/stackit/stackitmarketplace/models/current_subscription_state_response.py +0 -103
- stackit_stackitmarketplace-0.2.0/src/stackit/stackitmarketplace/models/requested_subscription_state_response.py +0 -103
- stackit_stackitmarketplace-0.2.0/src/stackit/stackitmarketplace/models/subscription_cancel_response.py +0 -109
- stackit_stackitmarketplace-0.2.0/src/stackit/stackitmarketplace/models/subscription_product.py +0 -130
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/LICENSE.md +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/NOTICE.txt +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/README.md +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/api/__init__.py +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/api_response.py +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/exceptions.py +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_pricing_option_highlight.py +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/catalog_product_highlight.py +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/error_response.py +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/inquiries_create_inquiry_payload.py +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/models/resolve_customer_payload.py +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/py.typed +0 -0
- {stackit_stackitmarketplace-0.2.0 → stackit_stackitmarketplace-1.0.1}/src/stackit/stackitmarketplace/rest.py +0 -0
|
@@ -38,9 +38,6 @@ from stackit.stackitmarketplace.models.approve_subscription_payload import (
|
|
|
38
38
|
ApproveSubscriptionPayload,
|
|
39
39
|
)
|
|
40
40
|
from stackit.stackitmarketplace.models.become_vendor import BecomeVendor
|
|
41
|
-
from stackit.stackitmarketplace.models.become_vendor_become_vendor import (
|
|
42
|
-
BecomeVendorBecomeVendor,
|
|
43
|
-
)
|
|
44
41
|
from stackit.stackitmarketplace.models.catalog_pricing_option_highlight import (
|
|
45
42
|
CatalogPricingOptionHighlight,
|
|
46
43
|
)
|
|
@@ -69,38 +66,38 @@ from stackit.stackitmarketplace.models.catalog_product_vendor_terms import (
|
|
|
69
66
|
CatalogProductVendorTerms,
|
|
70
67
|
)
|
|
71
68
|
from stackit.stackitmarketplace.models.contact_sales import ContactSales
|
|
72
|
-
from stackit.stackitmarketplace.models.
|
|
73
|
-
ContactSalesContactSales,
|
|
74
|
-
)
|
|
75
|
-
from stackit.stackitmarketplace.models.current_subscription_state_response import (
|
|
76
|
-
CurrentSubscriptionStateResponse,
|
|
77
|
-
)
|
|
69
|
+
from stackit.stackitmarketplace.models.delivery_method import DeliveryMethod
|
|
78
70
|
from stackit.stackitmarketplace.models.error_response import ErrorResponse
|
|
79
71
|
from stackit.stackitmarketplace.models.inquiries_create_inquiry_payload import (
|
|
80
72
|
InquiriesCreateInquiryPayload,
|
|
81
73
|
)
|
|
74
|
+
from stackit.stackitmarketplace.models.inquiry_become_vendor import InquiryBecomeVendor
|
|
75
|
+
from stackit.stackitmarketplace.models.inquiry_contact_sales import InquiryContactSales
|
|
76
|
+
from stackit.stackitmarketplace.models.inquiry_form_type import InquiryFormType
|
|
77
|
+
from stackit.stackitmarketplace.models.inquiry_register_testing import (
|
|
78
|
+
InquiryRegisterTesting,
|
|
79
|
+
)
|
|
80
|
+
from stackit.stackitmarketplace.models.inquiry_suggest_product import (
|
|
81
|
+
InquirySuggestProduct,
|
|
82
|
+
)
|
|
82
83
|
from stackit.stackitmarketplace.models.list_catalog_products_response import (
|
|
83
84
|
ListCatalogProductsResponse,
|
|
84
85
|
)
|
|
85
86
|
from stackit.stackitmarketplace.models.list_vendor_subscriptions_response import (
|
|
86
87
|
ListVendorSubscriptionsResponse,
|
|
87
88
|
)
|
|
88
|
-
from stackit.stackitmarketplace.models.
|
|
89
|
-
from stackit.stackitmarketplace.models.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
from stackit.stackitmarketplace.models.requested_subscription_state_response import (
|
|
93
|
-
RequestedSubscriptionStateResponse,
|
|
89
|
+
from stackit.stackitmarketplace.models.price_type import PriceType
|
|
90
|
+
from stackit.stackitmarketplace.models.pricing_option_unit import PricingOptionUnit
|
|
91
|
+
from stackit.stackitmarketplace.models.product_lifecycle_state import (
|
|
92
|
+
ProductLifecycleState,
|
|
94
93
|
)
|
|
94
|
+
from stackit.stackitmarketplace.models.register_testing import RegisterTesting
|
|
95
95
|
from stackit.stackitmarketplace.models.resolve_customer_payload import (
|
|
96
96
|
ResolveCustomerPayload,
|
|
97
97
|
)
|
|
98
|
-
from stackit.stackitmarketplace.models.
|
|
99
|
-
|
|
98
|
+
from stackit.stackitmarketplace.models.subscription_lifecycle_state import (
|
|
99
|
+
SubscriptionLifecycleState,
|
|
100
100
|
)
|
|
101
101
|
from stackit.stackitmarketplace.models.subscription_product import SubscriptionProduct
|
|
102
102
|
from stackit.stackitmarketplace.models.suggest_product import SuggestProduct
|
|
103
|
-
from stackit.stackitmarketplace.models.suggest_product_suggest_product import (
|
|
104
|
-
SuggestProductSuggestProduct,
|
|
105
|
-
)
|
|
106
103
|
from stackit.stackitmarketplace.models.vendor_subscription import VendorSubscription
|
|
@@ -64,8 +64,10 @@ class DefaultApi:
|
|
|
64
64
|
@validate_call
|
|
65
65
|
def approve_subscription(
|
|
66
66
|
self,
|
|
67
|
-
project_id: Annotated[
|
|
68
|
-
subscription_id: Annotated[
|
|
67
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
68
|
+
subscription_id: Annotated[
|
|
69
|
+
str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.")
|
|
70
|
+
],
|
|
69
71
|
approve_subscription_payload: Optional[ApproveSubscriptionPayload] = None,
|
|
70
72
|
_request_timeout: Union[
|
|
71
73
|
None,
|
|
@@ -136,8 +138,10 @@ class DefaultApi:
|
|
|
136
138
|
@validate_call
|
|
137
139
|
def approve_subscription_with_http_info(
|
|
138
140
|
self,
|
|
139
|
-
project_id: Annotated[
|
|
140
|
-
subscription_id: Annotated[
|
|
141
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
142
|
+
subscription_id: Annotated[
|
|
143
|
+
str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.")
|
|
144
|
+
],
|
|
141
145
|
approve_subscription_payload: Optional[ApproveSubscriptionPayload] = None,
|
|
142
146
|
_request_timeout: Union[
|
|
143
147
|
None,
|
|
@@ -208,8 +212,10 @@ class DefaultApi:
|
|
|
208
212
|
@validate_call
|
|
209
213
|
def approve_subscription_without_preload_content(
|
|
210
214
|
self,
|
|
211
|
-
project_id: Annotated[
|
|
212
|
-
subscription_id: Annotated[
|
|
215
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
216
|
+
subscription_id: Annotated[
|
|
217
|
+
str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.")
|
|
218
|
+
],
|
|
213
219
|
approve_subscription_payload: Optional[ApproveSubscriptionPayload] = None,
|
|
214
220
|
_request_timeout: Union[
|
|
215
221
|
None,
|
|
@@ -340,7 +346,7 @@ class DefaultApi:
|
|
|
340
346
|
@validate_call
|
|
341
347
|
def get_catalog_product(
|
|
342
348
|
self,
|
|
343
|
-
product_id: Annotated[
|
|
349
|
+
product_id: Annotated[str, Field(min_length=10, strict=True, max_length=29, description="The product ID.")],
|
|
344
350
|
locale: Annotated[Optional[StrictStr], Field(description="The language of the response.")] = None,
|
|
345
351
|
_request_timeout: Union[
|
|
346
352
|
None,
|
|
@@ -408,7 +414,7 @@ class DefaultApi:
|
|
|
408
414
|
@validate_call
|
|
409
415
|
def get_catalog_product_with_http_info(
|
|
410
416
|
self,
|
|
411
|
-
product_id: Annotated[
|
|
417
|
+
product_id: Annotated[str, Field(min_length=10, strict=True, max_length=29, description="The product ID.")],
|
|
412
418
|
locale: Annotated[Optional[StrictStr], Field(description="The language of the response.")] = None,
|
|
413
419
|
_request_timeout: Union[
|
|
414
420
|
None,
|
|
@@ -476,7 +482,7 @@ class DefaultApi:
|
|
|
476
482
|
@validate_call
|
|
477
483
|
def get_catalog_product_without_preload_content(
|
|
478
484
|
self,
|
|
479
|
-
product_id: Annotated[
|
|
485
|
+
product_id: Annotated[str, Field(min_length=10, strict=True, max_length=29, description="The product ID.")],
|
|
480
486
|
locale: Annotated[Optional[StrictStr], Field(description="The language of the response.")] = None,
|
|
481
487
|
_request_timeout: Union[
|
|
482
488
|
None,
|
|
@@ -595,8 +601,10 @@ class DefaultApi:
|
|
|
595
601
|
@validate_call
|
|
596
602
|
def get_vendor_subscription(
|
|
597
603
|
self,
|
|
598
|
-
project_id: Annotated[
|
|
599
|
-
subscription_id: Annotated[
|
|
604
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
605
|
+
subscription_id: Annotated[
|
|
606
|
+
str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.")
|
|
607
|
+
],
|
|
600
608
|
_request_timeout: Union[
|
|
601
609
|
None,
|
|
602
610
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -663,8 +671,10 @@ class DefaultApi:
|
|
|
663
671
|
@validate_call
|
|
664
672
|
def get_vendor_subscription_with_http_info(
|
|
665
673
|
self,
|
|
666
|
-
project_id: Annotated[
|
|
667
|
-
subscription_id: Annotated[
|
|
674
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
675
|
+
subscription_id: Annotated[
|
|
676
|
+
str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.")
|
|
677
|
+
],
|
|
668
678
|
_request_timeout: Union[
|
|
669
679
|
None,
|
|
670
680
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -731,8 +741,10 @@ class DefaultApi:
|
|
|
731
741
|
@validate_call
|
|
732
742
|
def get_vendor_subscription_without_preload_content(
|
|
733
743
|
self,
|
|
734
|
-
project_id: Annotated[
|
|
735
|
-
subscription_id: Annotated[
|
|
744
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
745
|
+
subscription_id: Annotated[
|
|
746
|
+
str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.")
|
|
747
|
+
],
|
|
736
748
|
_request_timeout: Union[
|
|
737
749
|
None,
|
|
738
750
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1120,7 +1132,7 @@ class DefaultApi:
|
|
|
1120
1132
|
sort: Annotated[
|
|
1121
1133
|
Optional[StrictStr],
|
|
1122
1134
|
Field(
|
|
1123
|
-
description="Sort the products based on attributes and order
|
|
1135
|
+
description="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`."
|
|
1124
1136
|
),
|
|
1125
1137
|
] = None,
|
|
1126
1138
|
_request_timeout: Union[
|
|
@@ -1145,7 +1157,7 @@ class DefaultApi:
|
|
|
1145
1157
|
:type locale: str
|
|
1146
1158
|
:param filter: Filter the products based on attributes. E.g `deliveryMethod eq \"SAAS\"`. The supported attributes are `deliveryMethod`, `priceType`, `category`, `vendorId`, `vendorName`, and `name`. The supported operators are `eq`. Filters can be joined with `and` or `or`.
|
|
1147
1159
|
:type filter: str
|
|
1148
|
-
:param sort: Sort the products based on attributes and order
|
|
1160
|
+
: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`.
|
|
1149
1161
|
:type sort: str
|
|
1150
1162
|
:param _request_timeout: timeout setting for this request. If one
|
|
1151
1163
|
number provided, it will be total request
|
|
@@ -1223,7 +1235,7 @@ class DefaultApi:
|
|
|
1223
1235
|
sort: Annotated[
|
|
1224
1236
|
Optional[StrictStr],
|
|
1225
1237
|
Field(
|
|
1226
|
-
description="Sort the products based on attributes and order
|
|
1238
|
+
description="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`."
|
|
1227
1239
|
),
|
|
1228
1240
|
] = None,
|
|
1229
1241
|
_request_timeout: Union[
|
|
@@ -1248,7 +1260,7 @@ class DefaultApi:
|
|
|
1248
1260
|
:type locale: str
|
|
1249
1261
|
:param filter: Filter the products based on attributes. E.g `deliveryMethod eq \"SAAS\"`. The supported attributes are `deliveryMethod`, `priceType`, `category`, `vendorId`, `vendorName`, and `name`. The supported operators are `eq`. Filters can be joined with `and` or `or`.
|
|
1250
1262
|
:type filter: str
|
|
1251
|
-
:param sort: Sort the products based on attributes and order
|
|
1263
|
+
: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`.
|
|
1252
1264
|
:type sort: str
|
|
1253
1265
|
:param _request_timeout: timeout setting for this request. If one
|
|
1254
1266
|
number provided, it will be total request
|
|
@@ -1326,7 +1338,7 @@ class DefaultApi:
|
|
|
1326
1338
|
sort: Annotated[
|
|
1327
1339
|
Optional[StrictStr],
|
|
1328
1340
|
Field(
|
|
1329
|
-
description="Sort the products based on attributes and order
|
|
1341
|
+
description="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`."
|
|
1330
1342
|
),
|
|
1331
1343
|
] = None,
|
|
1332
1344
|
_request_timeout: Union[
|
|
@@ -1351,7 +1363,7 @@ class DefaultApi:
|
|
|
1351
1363
|
:type locale: str
|
|
1352
1364
|
:param filter: Filter the products based on attributes. E.g `deliveryMethod eq \"SAAS\"`. The supported attributes are `deliveryMethod`, `priceType`, `category`, `vendorId`, `vendorName`, and `name`. The supported operators are `eq`. Filters can be joined with `and` or `or`.
|
|
1353
1365
|
:type filter: str
|
|
1354
|
-
:param sort: Sort the products based on attributes and order
|
|
1366
|
+
: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`.
|
|
1355
1367
|
:type sort: str
|
|
1356
1368
|
:param _request_timeout: timeout setting for this request. If one
|
|
1357
1369
|
number provided, it will be total request
|
|
@@ -1471,7 +1483,7 @@ class DefaultApi:
|
|
|
1471
1483
|
@validate_call
|
|
1472
1484
|
def list_vendor_subscriptions(
|
|
1473
1485
|
self,
|
|
1474
|
-
project_id: Annotated[
|
|
1486
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
1475
1487
|
cursor: Annotated[
|
|
1476
1488
|
Optional[StrictStr],
|
|
1477
1489
|
Field(
|
|
@@ -1488,7 +1500,10 @@ class DefaultApi:
|
|
|
1488
1500
|
description="The maximum number of items to return in the response. If maximum is exceeded, maximum is used."
|
|
1489
1501
|
),
|
|
1490
1502
|
] = None,
|
|
1491
|
-
product_id: Annotated[
|
|
1503
|
+
product_id: Annotated[
|
|
1504
|
+
Optional[Annotated[str, Field(min_length=10, strict=True, max_length=29)]],
|
|
1505
|
+
Field(description="The product ID."),
|
|
1506
|
+
] = None,
|
|
1492
1507
|
_request_timeout: Union[
|
|
1493
1508
|
None,
|
|
1494
1509
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1560,7 +1575,7 @@ class DefaultApi:
|
|
|
1560
1575
|
@validate_call
|
|
1561
1576
|
def list_vendor_subscriptions_with_http_info(
|
|
1562
1577
|
self,
|
|
1563
|
-
project_id: Annotated[
|
|
1578
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
1564
1579
|
cursor: Annotated[
|
|
1565
1580
|
Optional[StrictStr],
|
|
1566
1581
|
Field(
|
|
@@ -1577,7 +1592,10 @@ class DefaultApi:
|
|
|
1577
1592
|
description="The maximum number of items to return in the response. If maximum is exceeded, maximum is used."
|
|
1578
1593
|
),
|
|
1579
1594
|
] = None,
|
|
1580
|
-
product_id: Annotated[
|
|
1595
|
+
product_id: Annotated[
|
|
1596
|
+
Optional[Annotated[str, Field(min_length=10, strict=True, max_length=29)]],
|
|
1597
|
+
Field(description="The product ID."),
|
|
1598
|
+
] = None,
|
|
1581
1599
|
_request_timeout: Union[
|
|
1582
1600
|
None,
|
|
1583
1601
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1649,7 +1667,7 @@ class DefaultApi:
|
|
|
1649
1667
|
@validate_call
|
|
1650
1668
|
def list_vendor_subscriptions_without_preload_content(
|
|
1651
1669
|
self,
|
|
1652
|
-
project_id: Annotated[
|
|
1670
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
1653
1671
|
cursor: Annotated[
|
|
1654
1672
|
Optional[StrictStr],
|
|
1655
1673
|
Field(
|
|
@@ -1666,7 +1684,10 @@ class DefaultApi:
|
|
|
1666
1684
|
description="The maximum number of items to return in the response. If maximum is exceeded, maximum is used."
|
|
1667
1685
|
),
|
|
1668
1686
|
] = None,
|
|
1669
|
-
product_id: Annotated[
|
|
1687
|
+
product_id: Annotated[
|
|
1688
|
+
Optional[Annotated[str, Field(min_length=10, strict=True, max_length=29)]],
|
|
1689
|
+
Field(description="The product ID."),
|
|
1690
|
+
] = None,
|
|
1670
1691
|
_request_timeout: Union[
|
|
1671
1692
|
None,
|
|
1672
1693
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1799,7 +1820,7 @@ class DefaultApi:
|
|
|
1799
1820
|
@validate_call
|
|
1800
1821
|
def resolve_customer(
|
|
1801
1822
|
self,
|
|
1802
|
-
project_id: Annotated[
|
|
1823
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
1803
1824
|
resolve_customer_payload: ResolveCustomerPayload,
|
|
1804
1825
|
_request_timeout: Union[
|
|
1805
1826
|
None,
|
|
@@ -1867,7 +1888,7 @@ class DefaultApi:
|
|
|
1867
1888
|
@validate_call
|
|
1868
1889
|
def resolve_customer_with_http_info(
|
|
1869
1890
|
self,
|
|
1870
|
-
project_id: Annotated[
|
|
1891
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
1871
1892
|
resolve_customer_payload: ResolveCustomerPayload,
|
|
1872
1893
|
_request_timeout: Union[
|
|
1873
1894
|
None,
|
|
@@ -1935,7 +1956,7 @@ class DefaultApi:
|
|
|
1935
1956
|
@validate_call
|
|
1936
1957
|
def resolve_customer_without_preload_content(
|
|
1937
1958
|
self,
|
|
1938
|
-
project_id: Annotated[
|
|
1959
|
+
project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")],
|
|
1939
1960
|
resolve_customer_payload: ResolveCustomerPayload,
|
|
1940
1961
|
_request_timeout: Union[
|
|
1941
1962
|
None,
|
|
@@ -82,7 +82,7 @@ class ApiClient:
|
|
|
82
82
|
self.default_headers[header_name] = header_value
|
|
83
83
|
self.cookie = cookie
|
|
84
84
|
# Set default User-Agent.
|
|
85
|
-
self.user_agent = "
|
|
85
|
+
self.user_agent = "stackit-sdk-python/stackitmarketplace"
|
|
86
86
|
|
|
87
87
|
def __enter__(self):
|
|
88
88
|
return self
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
|
|
7
|
+
|
|
3
8
|
"""
|
|
4
9
|
STACKIT Marketplace API
|
|
5
10
|
|
|
@@ -12,8 +17,6 @@
|
|
|
12
17
|
Do not edit the class manually.
|
|
13
18
|
""" # noqa: E501 docstring might be too long
|
|
14
19
|
|
|
15
|
-
import os
|
|
16
|
-
|
|
17
20
|
|
|
18
21
|
class HostConfiguration:
|
|
19
22
|
def __init__(
|
|
@@ -30,6 +33,7 @@ class HostConfiguration:
|
|
|
30
33
|
"as a function argument instead of being set in the client configuration.\n"
|
|
31
34
|
"Once all services have migrated, the methods to specify the region in the client configuration "
|
|
32
35
|
"will be removed.",
|
|
36
|
+
file=sys.stderr,
|
|
33
37
|
)
|
|
34
38
|
"""Constructor
|
|
35
39
|
"""
|
|
@@ -19,9 +19,6 @@ from stackit.stackitmarketplace.models.approve_subscription_payload import (
|
|
|
19
19
|
ApproveSubscriptionPayload,
|
|
20
20
|
)
|
|
21
21
|
from stackit.stackitmarketplace.models.become_vendor import BecomeVendor
|
|
22
|
-
from stackit.stackitmarketplace.models.become_vendor_become_vendor import (
|
|
23
|
-
BecomeVendorBecomeVendor,
|
|
24
|
-
)
|
|
25
22
|
from stackit.stackitmarketplace.models.catalog_pricing_option_highlight import (
|
|
26
23
|
CatalogPricingOptionHighlight,
|
|
27
24
|
)
|
|
@@ -50,38 +47,38 @@ from stackit.stackitmarketplace.models.catalog_product_vendor_terms import (
|
|
|
50
47
|
CatalogProductVendorTerms,
|
|
51
48
|
)
|
|
52
49
|
from stackit.stackitmarketplace.models.contact_sales import ContactSales
|
|
53
|
-
from stackit.stackitmarketplace.models.
|
|
54
|
-
ContactSalesContactSales,
|
|
55
|
-
)
|
|
56
|
-
from stackit.stackitmarketplace.models.current_subscription_state_response import (
|
|
57
|
-
CurrentSubscriptionStateResponse,
|
|
58
|
-
)
|
|
50
|
+
from stackit.stackitmarketplace.models.delivery_method import DeliveryMethod
|
|
59
51
|
from stackit.stackitmarketplace.models.error_response import ErrorResponse
|
|
60
52
|
from stackit.stackitmarketplace.models.inquiries_create_inquiry_payload import (
|
|
61
53
|
InquiriesCreateInquiryPayload,
|
|
62
54
|
)
|
|
55
|
+
from stackit.stackitmarketplace.models.inquiry_become_vendor import InquiryBecomeVendor
|
|
56
|
+
from stackit.stackitmarketplace.models.inquiry_contact_sales import InquiryContactSales
|
|
57
|
+
from stackit.stackitmarketplace.models.inquiry_form_type import InquiryFormType
|
|
58
|
+
from stackit.stackitmarketplace.models.inquiry_register_testing import (
|
|
59
|
+
InquiryRegisterTesting,
|
|
60
|
+
)
|
|
61
|
+
from stackit.stackitmarketplace.models.inquiry_suggest_product import (
|
|
62
|
+
InquirySuggestProduct,
|
|
63
|
+
)
|
|
63
64
|
from stackit.stackitmarketplace.models.list_catalog_products_response import (
|
|
64
65
|
ListCatalogProductsResponse,
|
|
65
66
|
)
|
|
66
67
|
from stackit.stackitmarketplace.models.list_vendor_subscriptions_response import (
|
|
67
68
|
ListVendorSubscriptionsResponse,
|
|
68
69
|
)
|
|
69
|
-
from stackit.stackitmarketplace.models.
|
|
70
|
-
from stackit.stackitmarketplace.models.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
from stackit.stackitmarketplace.models.requested_subscription_state_response import (
|
|
74
|
-
RequestedSubscriptionStateResponse,
|
|
70
|
+
from stackit.stackitmarketplace.models.price_type import PriceType
|
|
71
|
+
from stackit.stackitmarketplace.models.pricing_option_unit import PricingOptionUnit
|
|
72
|
+
from stackit.stackitmarketplace.models.product_lifecycle_state import (
|
|
73
|
+
ProductLifecycleState,
|
|
75
74
|
)
|
|
75
|
+
from stackit.stackitmarketplace.models.register_testing import RegisterTesting
|
|
76
76
|
from stackit.stackitmarketplace.models.resolve_customer_payload import (
|
|
77
77
|
ResolveCustomerPayload,
|
|
78
78
|
)
|
|
79
|
-
from stackit.stackitmarketplace.models.
|
|
80
|
-
|
|
79
|
+
from stackit.stackitmarketplace.models.subscription_lifecycle_state import (
|
|
80
|
+
SubscriptionLifecycleState,
|
|
81
81
|
)
|
|
82
82
|
from stackit.stackitmarketplace.models.subscription_product import SubscriptionProduct
|
|
83
83
|
from stackit.stackitmarketplace.models.suggest_product import SuggestProduct
|
|
84
|
-
from stackit.stackitmarketplace.models.suggest_product_suggest_product import (
|
|
85
|
-
SuggestProductSuggestProduct,
|
|
86
|
-
)
|
|
87
84
|
from stackit.stackitmarketplace.models.vendor_subscription import VendorSubscription
|
|
@@ -16,10 +16,11 @@ from __future__ import annotations
|
|
|
16
16
|
|
|
17
17
|
import json
|
|
18
18
|
import pprint
|
|
19
|
+
import re
|
|
19
20
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
21
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field,
|
|
22
|
-
from typing_extensions import Self
|
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
|
23
|
+
from typing_extensions import Annotated, Self
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
class ApproveSubscriptionPayload(BaseModel):
|
|
@@ -27,13 +28,25 @@ class ApproveSubscriptionPayload(BaseModel):
|
|
|
27
28
|
ApproveSubscriptionPayload
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
|
-
instance_target: Optional[
|
|
31
|
+
instance_target: Optional[Annotated[str, Field(strict=True, max_length=512)]] = Field(
|
|
31
32
|
default=None,
|
|
32
33
|
description="The target URL of the user instance, used to redirect the user to the instance after the subscription is active.",
|
|
33
34
|
alias="instanceTarget",
|
|
34
35
|
)
|
|
35
36
|
__properties: ClassVar[List[str]] = ["instanceTarget"]
|
|
36
37
|
|
|
38
|
+
@field_validator("instance_target")
|
|
39
|
+
def instance_target_validate_regular_expression(cls, value):
|
|
40
|
+
"""Validates the regular expression"""
|
|
41
|
+
if value is None:
|
|
42
|
+
return value
|
|
43
|
+
|
|
44
|
+
if not re.match(r"^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$", value):
|
|
45
|
+
raise ValueError(
|
|
46
|
+
r"must validate the regular expression /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/"
|
|
47
|
+
)
|
|
48
|
+
return value
|
|
49
|
+
|
|
37
50
|
model_config = ConfigDict(
|
|
38
51
|
populate_by_name=True,
|
|
39
52
|
validate_assignment=True,
|
|
@@ -18,30 +18,22 @@ import json
|
|
|
18
18
|
import pprint
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
22
|
from typing_extensions import Self
|
|
23
23
|
|
|
24
|
-
from stackit.stackitmarketplace.models.
|
|
25
|
-
|
|
26
|
-
)
|
|
24
|
+
from stackit.stackitmarketplace.models.inquiry_become_vendor import InquiryBecomeVendor
|
|
25
|
+
from stackit.stackitmarketplace.models.inquiry_form_type import InquiryFormType
|
|
27
26
|
|
|
28
27
|
|
|
29
28
|
class BecomeVendor(BaseModel):
|
|
30
29
|
"""
|
|
31
|
-
Become a
|
|
30
|
+
Become a Vendor.
|
|
32
31
|
"""
|
|
33
32
|
|
|
34
|
-
become_vendor:
|
|
35
|
-
type:
|
|
33
|
+
become_vendor: InquiryBecomeVendor = Field(alias="becomeVendor")
|
|
34
|
+
type: InquiryFormType
|
|
36
35
|
__properties: ClassVar[List[str]] = ["becomeVendor", "type"]
|
|
37
36
|
|
|
38
|
-
@field_validator("type")
|
|
39
|
-
def type_validate_enum(cls, value):
|
|
40
|
-
"""Validates the enum"""
|
|
41
|
-
if value not in set(["become_vendor"]):
|
|
42
|
-
raise ValueError("must be one of enum values ('become_vendor')")
|
|
43
|
-
return value
|
|
44
|
-
|
|
45
37
|
model_config = ConfigDict(
|
|
46
38
|
populate_by_name=True,
|
|
47
39
|
validate_assignment=True,
|
|
@@ -96,9 +88,7 @@ class BecomeVendor(BaseModel):
|
|
|
96
88
|
_obj = cls.model_validate(
|
|
97
89
|
{
|
|
98
90
|
"becomeVendor": (
|
|
99
|
-
|
|
100
|
-
if obj.get("becomeVendor") is not None
|
|
101
|
-
else None
|
|
91
|
+
InquiryBecomeVendor.from_dict(obj["becomeVendor"]) if obj.get("becomeVendor") is not None else None
|
|
102
92
|
),
|
|
103
93
|
"type": obj.get("type"),
|
|
104
94
|
}
|