stackit-stackitmarketplace 1.5.0__tar.gz → 1.5.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.
Files changed (53) hide show
  1. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/PKG-INFO +1 -1
  2. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/pyproject.toml +1 -1
  3. stackit_stackitmarketplace-1.5.1/src/stackit/stackitmarketplace/__init__.py +186 -0
  4. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/api/default_api.py +33 -33
  5. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/api_client.py +18 -5
  6. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/configuration.py +33 -11
  7. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/exceptions.py +20 -1
  8. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/__init__.py +1 -1
  9. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/approve_subscription_payload.py +3 -3
  10. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/assets.py +2 -2
  11. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/become_vendor.py +2 -2
  12. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_pricing_option_highlight.py +2 -2
  13. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_detail.py +3 -3
  14. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_details_vendor.py +3 -3
  15. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_facets_value_inner.py +2 -2
  16. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_highlight.py +2 -2
  17. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_overview.py +3 -3
  18. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_overview_vendor.py +3 -3
  19. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_pricing_option.py +2 -2
  20. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_support_resource.py +3 -3
  21. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/catalog_product_vendor_terms.py +3 -3
  22. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/contact_sales.py +2 -2
  23. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/delivery_method.py +1 -1
  24. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/error_response.py +2 -2
  25. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/inquiries_create_inquiry_payload.py +1 -1
  26. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/inquiry_become_vendor.py +3 -3
  27. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/inquiry_contact_sales.py +3 -3
  28. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/inquiry_form_type.py +1 -1
  29. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/inquiry_register_testing.py +3 -3
  30. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/inquiry_suggest_product.py +3 -3
  31. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/list_catalog_products_response.py +2 -2
  32. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/list_vendor_subscriptions_response.py +2 -2
  33. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/localized_version.py +3 -3
  34. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/notice_period.py +2 -2
  35. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/offer_type.py +1 -1
  36. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/price_type.py +1 -1
  37. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/pricing_option_unit.py +1 -1
  38. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/product_lifecycle_state.py +1 -1
  39. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/register_testing.py +2 -2
  40. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/resolve_customer_payload.py +2 -2
  41. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/service_certificate.py +2 -2
  42. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/subscription_lifecycle_state.py +1 -1
  43. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/subscription_product.py +3 -3
  44. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/suggest_product.py +2 -2
  45. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/models/vendor_subscription.py +3 -3
  46. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/rest.py +2 -2
  47. stackit_stackitmarketplace-1.5.0/src/stackit/stackitmarketplace/__init__.py +0 -111
  48. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/LICENSE.md +0 -0
  49. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/NOTICE.txt +0 -0
  50. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/README.md +0 -0
  51. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/api/__init__.py +0 -0
  52. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/api_response.py +0 -0
  53. {stackit_stackitmarketplace-1.5.0 → stackit_stackitmarketplace-1.5.1}/src/stackit/stackitmarketplace/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stackit-stackitmarketplace
3
- Version: 1.5.0
3
+ Version: 1.5.1
4
4
  Summary: STACKIT Marketplace API
5
5
  Author: STACKIT Developer Tools
6
6
  Author-email: developer-tools@stackit.cloud
@@ -3,7 +3,7 @@ name = "stackit-stackitmarketplace"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "stackit-stackitmarketplace"
6
- version = "v1.5.0"
6
+ version = "v1.5.1"
7
7
  authors = [
8
8
  "STACKIT Developer Tools <developer-tools@stackit.cloud>",
9
9
  ]
@@ -0,0 +1,186 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ STACKIT Marketplace API
7
+
8
+ API to manage STACKIT Marketplace.
9
+
10
+ The version of the OpenAPI document: 1
11
+ Contact: marketplace@stackit.cloud
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
+
14
+ Do not edit the class manually.
15
+ """ # noqa: E501
16
+
17
+
18
+ __version__ = "1.0.0"
19
+
20
+ # Define package exports
21
+ __all__ = [
22
+ "DefaultApi",
23
+ "ApiResponse",
24
+ "ApiClient",
25
+ "HostConfiguration",
26
+ "OpenApiException",
27
+ "ApiTypeError",
28
+ "ApiValueError",
29
+ "ApiKeyError",
30
+ "ApiAttributeError",
31
+ "ApiException",
32
+ "ApproveSubscriptionPayload",
33
+ "Assets",
34
+ "BecomeVendor",
35
+ "CatalogPricingOptionHighlight",
36
+ "CatalogProductDetail",
37
+ "CatalogProductDetailsVendor",
38
+ "CatalogProductFacetsValueInner",
39
+ "CatalogProductHighlight",
40
+ "CatalogProductOverview",
41
+ "CatalogProductOverviewVendor",
42
+ "CatalogProductPricingOption",
43
+ "CatalogProductSupportResource",
44
+ "CatalogProductVendorTerms",
45
+ "ContactSales",
46
+ "DeliveryMethod",
47
+ "ErrorResponse",
48
+ "InquiriesCreateInquiryPayload",
49
+ "InquiryBecomeVendor",
50
+ "InquiryContactSales",
51
+ "InquiryFormType",
52
+ "InquiryRegisterTesting",
53
+ "InquirySuggestProduct",
54
+ "ListCatalogProductsResponse",
55
+ "ListVendorSubscriptionsResponse",
56
+ "LocalizedVersion",
57
+ "NoticePeriod",
58
+ "OfferType",
59
+ "PriceType",
60
+ "PricingOptionUnit",
61
+ "ProductLifecycleState",
62
+ "RegisterTesting",
63
+ "ResolveCustomerPayload",
64
+ "ServiceCertificate",
65
+ "SubscriptionLifecycleState",
66
+ "SubscriptionProduct",
67
+ "SuggestProduct",
68
+ "VendorSubscription",
69
+ ]
70
+
71
+ # import apis into sdk package
72
+ from stackit.stackitmarketplace.api.default_api import DefaultApi as DefaultApi
73
+ from stackit.stackitmarketplace.api_client import ApiClient as ApiClient
74
+
75
+ # import ApiClient
76
+ from stackit.stackitmarketplace.api_response import ApiResponse as ApiResponse
77
+ from stackit.stackitmarketplace.configuration import (
78
+ HostConfiguration as HostConfiguration,
79
+ )
80
+ from stackit.stackitmarketplace.exceptions import ApiAttributeError as ApiAttributeError
81
+ from stackit.stackitmarketplace.exceptions import ApiException as ApiException
82
+ from stackit.stackitmarketplace.exceptions import ApiKeyError as ApiKeyError
83
+ from stackit.stackitmarketplace.exceptions import ApiTypeError as ApiTypeError
84
+ from stackit.stackitmarketplace.exceptions import ApiValueError as ApiValueError
85
+ from stackit.stackitmarketplace.exceptions import OpenApiException as OpenApiException
86
+
87
+ # import models into sdk package
88
+ from stackit.stackitmarketplace.models.approve_subscription_payload import (
89
+ ApproveSubscriptionPayload as ApproveSubscriptionPayload,
90
+ )
91
+ from stackit.stackitmarketplace.models.assets import Assets as Assets
92
+ from stackit.stackitmarketplace.models.become_vendor import BecomeVendor as BecomeVendor
93
+ from stackit.stackitmarketplace.models.catalog_pricing_option_highlight import (
94
+ CatalogPricingOptionHighlight as CatalogPricingOptionHighlight,
95
+ )
96
+ from stackit.stackitmarketplace.models.catalog_product_detail import (
97
+ CatalogProductDetail as CatalogProductDetail,
98
+ )
99
+ from stackit.stackitmarketplace.models.catalog_product_details_vendor import (
100
+ CatalogProductDetailsVendor as CatalogProductDetailsVendor,
101
+ )
102
+ from stackit.stackitmarketplace.models.catalog_product_facets_value_inner import (
103
+ CatalogProductFacetsValueInner as CatalogProductFacetsValueInner,
104
+ )
105
+ from stackit.stackitmarketplace.models.catalog_product_highlight import (
106
+ CatalogProductHighlight as CatalogProductHighlight,
107
+ )
108
+ from stackit.stackitmarketplace.models.catalog_product_overview import (
109
+ CatalogProductOverview as CatalogProductOverview,
110
+ )
111
+ from stackit.stackitmarketplace.models.catalog_product_overview_vendor import (
112
+ CatalogProductOverviewVendor as CatalogProductOverviewVendor,
113
+ )
114
+ from stackit.stackitmarketplace.models.catalog_product_pricing_option import (
115
+ CatalogProductPricingOption as CatalogProductPricingOption,
116
+ )
117
+ from stackit.stackitmarketplace.models.catalog_product_support_resource import (
118
+ CatalogProductSupportResource as CatalogProductSupportResource,
119
+ )
120
+ from stackit.stackitmarketplace.models.catalog_product_vendor_terms import (
121
+ CatalogProductVendorTerms as CatalogProductVendorTerms,
122
+ )
123
+ from stackit.stackitmarketplace.models.contact_sales import ContactSales as ContactSales
124
+ from stackit.stackitmarketplace.models.delivery_method import (
125
+ DeliveryMethod as DeliveryMethod,
126
+ )
127
+ from stackit.stackitmarketplace.models.error_response import (
128
+ ErrorResponse as ErrorResponse,
129
+ )
130
+ from stackit.stackitmarketplace.models.inquiries_create_inquiry_payload import (
131
+ InquiriesCreateInquiryPayload as InquiriesCreateInquiryPayload,
132
+ )
133
+ from stackit.stackitmarketplace.models.inquiry_become_vendor import (
134
+ InquiryBecomeVendor as InquiryBecomeVendor,
135
+ )
136
+ from stackit.stackitmarketplace.models.inquiry_contact_sales import (
137
+ InquiryContactSales as InquiryContactSales,
138
+ )
139
+ from stackit.stackitmarketplace.models.inquiry_form_type import (
140
+ InquiryFormType as InquiryFormType,
141
+ )
142
+ from stackit.stackitmarketplace.models.inquiry_register_testing import (
143
+ InquiryRegisterTesting as InquiryRegisterTesting,
144
+ )
145
+ from stackit.stackitmarketplace.models.inquiry_suggest_product import (
146
+ InquirySuggestProduct as InquirySuggestProduct,
147
+ )
148
+ from stackit.stackitmarketplace.models.list_catalog_products_response import (
149
+ ListCatalogProductsResponse as ListCatalogProductsResponse,
150
+ )
151
+ from stackit.stackitmarketplace.models.list_vendor_subscriptions_response import (
152
+ ListVendorSubscriptionsResponse as ListVendorSubscriptionsResponse,
153
+ )
154
+ from stackit.stackitmarketplace.models.localized_version import (
155
+ LocalizedVersion as LocalizedVersion,
156
+ )
157
+ from stackit.stackitmarketplace.models.notice_period import NoticePeriod as NoticePeriod
158
+ from stackit.stackitmarketplace.models.offer_type import OfferType as OfferType
159
+ from stackit.stackitmarketplace.models.price_type import PriceType as PriceType
160
+ from stackit.stackitmarketplace.models.pricing_option_unit import (
161
+ PricingOptionUnit as PricingOptionUnit,
162
+ )
163
+ from stackit.stackitmarketplace.models.product_lifecycle_state import (
164
+ ProductLifecycleState as ProductLifecycleState,
165
+ )
166
+ from stackit.stackitmarketplace.models.register_testing import (
167
+ RegisterTesting as RegisterTesting,
168
+ )
169
+ from stackit.stackitmarketplace.models.resolve_customer_payload import (
170
+ ResolveCustomerPayload as ResolveCustomerPayload,
171
+ )
172
+ from stackit.stackitmarketplace.models.service_certificate import (
173
+ ServiceCertificate as ServiceCertificate,
174
+ )
175
+ from stackit.stackitmarketplace.models.subscription_lifecycle_state import (
176
+ SubscriptionLifecycleState as SubscriptionLifecycleState,
177
+ )
178
+ from stackit.stackitmarketplace.models.subscription_product import (
179
+ SubscriptionProduct as SubscriptionProduct,
180
+ )
181
+ from stackit.stackitmarketplace.models.suggest_product import (
182
+ SuggestProduct as SuggestProduct,
183
+ )
184
+ from stackit.stackitmarketplace.models.vendor_subscription import (
185
+ VendorSubscription as VendorSubscription,
186
+ )
@@ -10,7 +10,7 @@
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from typing import Any, Dict, List, Optional, Tuple, Union
16
16
 
@@ -109,7 +109,7 @@ class DefaultApi:
109
109
  in the spec for a single request.
110
110
  :type _host_index: int, optional
111
111
  :return: Returns the result object.
112
- """ # noqa: E501 docstring might be too long
112
+ """ # noqa: E501
113
113
 
114
114
  _param = self._approve_subscription_serialize(
115
115
  project_id=project_id,
@@ -183,7 +183,7 @@ class DefaultApi:
183
183
  in the spec for a single request.
184
184
  :type _host_index: int, optional
185
185
  :return: Returns the result object.
186
- """ # noqa: E501 docstring might be too long
186
+ """ # noqa: E501
187
187
 
188
188
  _param = self._approve_subscription_serialize(
189
189
  project_id=project_id,
@@ -257,7 +257,7 @@ class DefaultApi:
257
257
  in the spec for a single request.
258
258
  :type _host_index: int, optional
259
259
  :return: Returns the result object.
260
- """ # noqa: E501 docstring might be too long
260
+ """ # noqa: E501
261
261
 
262
262
  _param = self._approve_subscription_serialize(
263
263
  project_id=project_id,
@@ -298,7 +298,7 @@ class DefaultApi:
298
298
  _query_params: List[Tuple[str, str]] = []
299
299
  _header_params: Dict[str, Optional[str]] = _headers or {}
300
300
  _form_params: List[Tuple[str, str]] = []
301
- _files: Dict[str, Union[str, bytes]] = {}
301
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
302
302
  _body_params: Optional[bytes] = None
303
303
 
304
304
  # process the path parameters
@@ -386,7 +386,7 @@ class DefaultApi:
386
386
  in the spec for a single request.
387
387
  :type _host_index: int, optional
388
388
  :return: Returns the result object.
389
- """ # noqa: E501 docstring might be too long
389
+ """ # noqa: E501
390
390
 
391
391
  _param = self._get_catalog_product_serialize(
392
392
  product_id=product_id,
@@ -454,7 +454,7 @@ class DefaultApi:
454
454
  in the spec for a single request.
455
455
  :type _host_index: int, optional
456
456
  :return: Returns the result object.
457
- """ # noqa: E501 docstring might be too long
457
+ """ # noqa: E501
458
458
 
459
459
  _param = self._get_catalog_product_serialize(
460
460
  product_id=product_id,
@@ -522,7 +522,7 @@ class DefaultApi:
522
522
  in the spec for a single request.
523
523
  :type _host_index: int, optional
524
524
  :return: Returns the result object.
525
- """ # noqa: E501 docstring might be too long
525
+ """ # noqa: E501
526
526
 
527
527
  _param = self._get_catalog_product_serialize(
528
528
  product_id=product_id,
@@ -561,7 +561,7 @@ class DefaultApi:
561
561
  _query_params: List[Tuple[str, str]] = []
562
562
  _header_params: Dict[str, Optional[str]] = _headers or {}
563
563
  _form_params: List[Tuple[str, str]] = []
564
- _files: Dict[str, Union[str, bytes]] = {}
564
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
565
565
  _body_params: Optional[bytes] = None
566
566
 
567
567
  # process the path parameters
@@ -643,7 +643,7 @@ class DefaultApi:
643
643
  in the spec for a single request.
644
644
  :type _host_index: int, optional
645
645
  :return: Returns the result object.
646
- """ # noqa: E501 docstring might be too long
646
+ """ # noqa: E501
647
647
 
648
648
  _param = self._get_vendor_subscription_serialize(
649
649
  project_id=project_id,
@@ -713,7 +713,7 @@ class DefaultApi:
713
713
  in the spec for a single request.
714
714
  :type _host_index: int, optional
715
715
  :return: Returns the result object.
716
- """ # noqa: E501 docstring might be too long
716
+ """ # noqa: E501
717
717
 
718
718
  _param = self._get_vendor_subscription_serialize(
719
719
  project_id=project_id,
@@ -783,7 +783,7 @@ class DefaultApi:
783
783
  in the spec for a single request.
784
784
  :type _host_index: int, optional
785
785
  :return: Returns the result object.
786
- """ # noqa: E501 docstring might be too long
786
+ """ # noqa: E501
787
787
 
788
788
  _param = self._get_vendor_subscription_serialize(
789
789
  project_id=project_id,
@@ -822,7 +822,7 @@ class DefaultApi:
822
822
  _query_params: List[Tuple[str, str]] = []
823
823
  _header_params: Dict[str, Optional[str]] = _headers or {}
824
824
  _form_params: List[Tuple[str, str]] = []
825
- _files: Dict[str, Union[str, bytes]] = {}
825
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
826
826
  _body_params: Optional[bytes] = None
827
827
 
828
828
  # process the path parameters
@@ -897,7 +897,7 @@ class DefaultApi:
897
897
  in the spec for a single request.
898
898
  :type _host_index: int, optional
899
899
  :return: Returns the result object.
900
- """ # noqa: E501 docstring might be too long
900
+ """ # noqa: E501
901
901
 
902
902
  _param = self._inquiries_create_inquiry_serialize(
903
903
  inquiries_create_inquiry_payload=inquiries_create_inquiry_payload,
@@ -961,7 +961,7 @@ class DefaultApi:
961
961
  in the spec for a single request.
962
962
  :type _host_index: int, optional
963
963
  :return: Returns the result object.
964
- """ # noqa: E501 docstring might be too long
964
+ """ # noqa: E501
965
965
 
966
966
  _param = self._inquiries_create_inquiry_serialize(
967
967
  inquiries_create_inquiry_payload=inquiries_create_inquiry_payload,
@@ -1025,7 +1025,7 @@ class DefaultApi:
1025
1025
  in the spec for a single request.
1026
1026
  :type _host_index: int, optional
1027
1027
  :return: Returns the result object.
1028
- """ # noqa: E501 docstring might be too long
1028
+ """ # noqa: E501
1029
1029
 
1030
1030
  _param = self._inquiries_create_inquiry_serialize(
1031
1031
  inquiries_create_inquiry_payload=inquiries_create_inquiry_payload,
@@ -1062,7 +1062,7 @@ class DefaultApi:
1062
1062
  _query_params: List[Tuple[str, str]] = []
1063
1063
  _header_params: Dict[str, Optional[str]] = _headers or {}
1064
1064
  _form_params: List[Tuple[str, str]] = []
1065
- _files: Dict[str, Union[str, bytes]] = {}
1065
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1066
1066
  _body_params: Optional[bytes] = None
1067
1067
 
1068
1068
  # process the path parameters
@@ -1179,7 +1179,7 @@ class DefaultApi:
1179
1179
  in the spec for a single request.
1180
1180
  :type _host_index: int, optional
1181
1181
  :return: Returns the result object.
1182
- """ # noqa: E501 docstring might be too long
1182
+ """ # noqa: E501
1183
1183
 
1184
1184
  _param = self._list_catalog_products_serialize(
1185
1185
  cursor=cursor,
@@ -1282,7 +1282,7 @@ class DefaultApi:
1282
1282
  in the spec for a single request.
1283
1283
  :type _host_index: int, optional
1284
1284
  :return: Returns the result object.
1285
- """ # noqa: E501 docstring might be too long
1285
+ """ # noqa: E501
1286
1286
 
1287
1287
  _param = self._list_catalog_products_serialize(
1288
1288
  cursor=cursor,
@@ -1385,7 +1385,7 @@ class DefaultApi:
1385
1385
  in the spec for a single request.
1386
1386
  :type _host_index: int, optional
1387
1387
  :return: Returns the result object.
1388
- """ # noqa: E501 docstring might be too long
1388
+ """ # noqa: E501
1389
1389
 
1390
1390
  _param = self._list_catalog_products_serialize(
1391
1391
  cursor=cursor,
@@ -1429,7 +1429,7 @@ class DefaultApi:
1429
1429
  _query_params: List[Tuple[str, str]] = []
1430
1430
  _header_params: Dict[str, Optional[str]] = _headers or {}
1431
1431
  _form_params: List[Tuple[str, str]] = []
1432
- _files: Dict[str, Union[str, bytes]] = {}
1432
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1433
1433
  _body_params: Optional[bytes] = None
1434
1434
 
1435
1435
  # process the path parameters
@@ -1546,7 +1546,7 @@ class DefaultApi:
1546
1546
  in the spec for a single request.
1547
1547
  :type _host_index: int, optional
1548
1548
  :return: Returns the result object.
1549
- """ # noqa: E501 docstring might be too long
1549
+ """ # noqa: E501
1550
1550
 
1551
1551
  _param = self._list_vendor_subscriptions_serialize(
1552
1552
  project_id=project_id,
@@ -1638,7 +1638,7 @@ class DefaultApi:
1638
1638
  in the spec for a single request.
1639
1639
  :type _host_index: int, optional
1640
1640
  :return: Returns the result object.
1641
- """ # noqa: E501 docstring might be too long
1641
+ """ # noqa: E501
1642
1642
 
1643
1643
  _param = self._list_vendor_subscriptions_serialize(
1644
1644
  project_id=project_id,
@@ -1730,7 +1730,7 @@ class DefaultApi:
1730
1730
  in the spec for a single request.
1731
1731
  :type _host_index: int, optional
1732
1732
  :return: Returns the result object.
1733
- """ # noqa: E501 docstring might be too long
1733
+ """ # noqa: E501
1734
1734
 
1735
1735
  _param = self._list_vendor_subscriptions_serialize(
1736
1736
  project_id=project_id,
@@ -1772,7 +1772,7 @@ class DefaultApi:
1772
1772
  _query_params: List[Tuple[str, str]] = []
1773
1773
  _header_params: Dict[str, Optional[str]] = _headers or {}
1774
1774
  _form_params: List[Tuple[str, str]] = []
1775
- _files: Dict[str, Union[str, bytes]] = {}
1775
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
1776
1776
  _body_params: Optional[bytes] = None
1777
1777
 
1778
1778
  # process the path parameters
@@ -1860,7 +1860,7 @@ class DefaultApi:
1860
1860
  in the spec for a single request.
1861
1861
  :type _host_index: int, optional
1862
1862
  :return: Returns the result object.
1863
- """ # noqa: E501 docstring might be too long
1863
+ """ # noqa: E501
1864
1864
 
1865
1865
  _param = self._resolve_customer_serialize(
1866
1866
  project_id=project_id,
@@ -1928,7 +1928,7 @@ class DefaultApi:
1928
1928
  in the spec for a single request.
1929
1929
  :type _host_index: int, optional
1930
1930
  :return: Returns the result object.
1931
- """ # noqa: E501 docstring might be too long
1931
+ """ # noqa: E501
1932
1932
 
1933
1933
  _param = self._resolve_customer_serialize(
1934
1934
  project_id=project_id,
@@ -1996,7 +1996,7 @@ class DefaultApi:
1996
1996
  in the spec for a single request.
1997
1997
  :type _host_index: int, optional
1998
1998
  :return: Returns the result object.
1999
- """ # noqa: E501 docstring might be too long
1999
+ """ # noqa: E501
2000
2000
 
2001
2001
  _param = self._resolve_customer_serialize(
2002
2002
  project_id=project_id,
@@ -2035,7 +2035,7 @@ class DefaultApi:
2035
2035
  _query_params: List[Tuple[str, str]] = []
2036
2036
  _header_params: Dict[str, Optional[str]] = _headers or {}
2037
2037
  _form_params: List[Tuple[str, str]] = []
2038
- _files: Dict[str, Union[str, bytes]] = {}
2038
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2039
2039
  _body_params: Optional[bytes] = None
2040
2040
 
2041
2041
  # process the path parameters
@@ -2123,7 +2123,7 @@ class DefaultApi:
2123
2123
  in the spec for a single request.
2124
2124
  :type _host_index: int, optional
2125
2125
  :return: Returns the result object.
2126
- """ # noqa: E501 docstring might be too long
2126
+ """ # noqa: E501
2127
2127
 
2128
2128
  _param = self._vendors_subscriptions_reject_serialize(
2129
2129
  project_id=project_id,
@@ -2193,7 +2193,7 @@ class DefaultApi:
2193
2193
  in the spec for a single request.
2194
2194
  :type _host_index: int, optional
2195
2195
  :return: Returns the result object.
2196
- """ # noqa: E501 docstring might be too long
2196
+ """ # noqa: E501
2197
2197
 
2198
2198
  _param = self._vendors_subscriptions_reject_serialize(
2199
2199
  project_id=project_id,
@@ -2263,7 +2263,7 @@ class DefaultApi:
2263
2263
  in the spec for a single request.
2264
2264
  :type _host_index: int, optional
2265
2265
  :return: Returns the result object.
2266
- """ # noqa: E501 docstring might be too long
2266
+ """ # noqa: E501
2267
2267
 
2268
2268
  _param = self._vendors_subscriptions_reject_serialize(
2269
2269
  project_id=project_id,
@@ -2302,7 +2302,7 @@ class DefaultApi:
2302
2302
  _query_params: List[Tuple[str, str]] = []
2303
2303
  _header_params: Dict[str, Optional[str]] = _headers or {}
2304
2304
  _form_params: List[Tuple[str, str]] = []
2305
- _files: Dict[str, Union[str, bytes]] = {}
2305
+ _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {}
2306
2306
  _body_params: Optional[bytes] = None
2307
2307
 
2308
2308
  # process the path parameters
@@ -10,7 +10,7 @@
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  import datetime
16
16
  import json
@@ -332,6 +332,10 @@ class ApiClient:
332
332
  else:
333
333
  obj_dict = obj.__dict__
334
334
 
335
+ if isinstance(obj_dict, list):
336
+ # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() # noqa: E501
337
+ return self.sanitize_for_serialization(obj_dict)
338
+
335
339
  return {key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()}
336
340
 
337
341
  def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
@@ -351,12 +355,12 @@ class ApiClient:
351
355
  data = json.loads(response_text)
352
356
  except ValueError:
353
357
  data = response_text
354
- elif content_type.startswith("application/json"):
358
+ elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE):
355
359
  if response_text == "":
356
360
  data = ""
357
361
  else:
358
362
  data = json.loads(response_text)
359
- elif content_type.startswith("text/plain"):
363
+ elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE):
360
364
  data = response_text
361
365
  else:
362
366
  raise ApiException(status=0, reason="Unsupported content type: {0}".format(content_type))
@@ -458,7 +462,7 @@ class ApiClient:
458
462
  if k in collection_formats:
459
463
  collection_format = collection_formats[k]
460
464
  if collection_format == "multi":
461
- new_params.extend((k, str(value)) for value in v)
465
+ new_params.extend((k, quote(str(value))) for value in v)
462
466
  else:
463
467
  if collection_format == "ssv":
464
468
  delimiter = " "
@@ -474,7 +478,10 @@ class ApiClient:
474
478
 
475
479
  return "&".join(["=".join(map(str, item)) for item in new_params])
476
480
 
477
- def files_parameters(self, files: Dict[str, Union[str, bytes]]):
481
+ def files_parameters(
482
+ self,
483
+ files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
484
+ ):
478
485
  """Builds form parameters.
479
486
 
480
487
  :param files: File parameters.
@@ -489,6 +496,12 @@ class ApiClient:
489
496
  elif isinstance(v, bytes):
490
497
  filename = k
491
498
  filedata = v
499
+ elif isinstance(v, tuple):
500
+ filename, filedata = v
501
+ elif isinstance(v, list):
502
+ for file_param in v:
503
+ params.extend(self.files_parameters({k: file_param}))
504
+ continue
492
505
  else:
493
506
  raise ValueError("Unsupported file value")
494
507
  mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream"
@@ -1,10 +1,5 @@
1
1
  # coding: utf-8
2
2
 
3
- import sys
4
-
5
- import os
6
-
7
-
8
3
  """
9
4
  STACKIT Marketplace API
10
5
 
@@ -15,7 +10,29 @@ import os
15
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
16
11
 
17
12
  Do not edit the class manually.
18
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
+
15
+ import sys
16
+ from typing import Dict, List, Optional, TypedDict
17
+
18
+ from typing_extensions import NotRequired
19
+
20
+ import os
21
+
22
+
23
+ ServerVariablesT = Dict[str, str]
24
+
25
+
26
+ class HostSettingVariable(TypedDict):
27
+ description: str
28
+ default_value: str
29
+ enum_values: List[str]
30
+
31
+
32
+ class HostSetting(TypedDict):
33
+ url: str
34
+ description: str
35
+ variables: NotRequired[Dict[str, HostSettingVariable]]
19
36
 
20
37
 
21
38
  class HostConfiguration:
@@ -54,7 +71,7 @@ class HostConfiguration:
54
71
  """Ignore operation servers
55
72
  """
56
73
 
57
- def get_host_settings(self):
74
+ def get_host_settings(self) -> List[HostSetting]:
58
75
  """Gets an array of host settings
59
76
 
60
77
  :return: An array of host settings
@@ -72,7 +89,12 @@ class HostConfiguration:
72
89
  }
73
90
  ]
74
91
 
75
- def get_host_from_settings(self, index, variables=None, servers=None):
92
+ def get_host_from_settings(
93
+ self,
94
+ index: Optional[int],
95
+ variables: Optional[ServerVariablesT] = None,
96
+ servers: Optional[List[HostSetting]] = None,
97
+ ) -> str:
76
98
  """Gets host URL based on the index and variables
77
99
  :param index: array index of the host settings
78
100
  :param variables: hash of variable and the corresponding value
@@ -112,7 +134,7 @@ class HostConfiguration:
112
134
  and variables.get(variable_name) is not None
113
135
  ):
114
136
  raise ValueError(
115
- "this API does not support setting a region in the the client configuration, "
137
+ "this API does not support setting a region in the client configuration, "
116
138
  "please check if the region can be specified as a function parameter"
117
139
  )
118
140
  used_value = variables.get(variable_name, variable["default_value"])
@@ -131,12 +153,12 @@ class HostConfiguration:
131
153
  return url
132
154
 
133
155
  @property
134
- def host(self):
156
+ def host(self) -> str:
135
157
  """Return generated host."""
136
158
  return self.get_host_from_settings(self.server_index, variables=self.server_variables)
137
159
 
138
160
  @host.setter
139
- def host(self, value):
161
+ def host(self, value: str) -> None:
140
162
  """Fix base path."""
141
163
  self._base_path = value
142
164
  self.server_index = None
@@ -10,7 +10,7 @@
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
13
- """ # noqa: E501 docstring might be too long
13
+ """ # noqa: E501
14
14
 
15
15
  from typing import Any, Optional
16
16
 
@@ -152,6 +152,13 @@ class ApiException(OpenApiException):
152
152
  if http_resp.status == 404:
153
153
  raise NotFoundException(http_resp=http_resp, body=body, data=data)
154
154
 
155
+ # Added new conditions for 409 and 422
156
+ if http_resp.status == 409:
157
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
158
+
159
+ if http_resp.status == 422:
160
+ raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
161
+
155
162
  if 500 <= http_resp.status <= 599:
156
163
  raise ServiceException(http_resp=http_resp, body=body, data=data)
157
164
  raise ApiException(http_resp=http_resp, body=body, data=data)
@@ -188,6 +195,18 @@ class ServiceException(ApiException):
188
195
  pass
189
196
 
190
197
 
198
+ class ConflictException(ApiException):
199
+ """Exception for HTTP 409 Conflict."""
200
+
201
+ pass
202
+
203
+
204
+ class UnprocessableEntityException(ApiException):
205
+ """Exception for HTTP 422 Unprocessable Entity."""
206
+
207
+ pass
208
+
209
+
191
210
  def render_path(path_to_item):
192
211
  """Returns a string representation of a path"""
193
212
  result = ""