diff --git a/CHANGELOG.md b/CHANGELOG.md index 68b306be..58c23b2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,24 @@ ## Release (2025-XX-XX) +- `alb`: [v0.2.0](services/alb/CHANGELOG.md#v020-2025-05-14) + - **Feature:** New field `Path` for `Rule` - `authorization`: [v0.2.4](services/authorization/CHANGELOG.md#v024-2025-05-13) - **Bugfix:** Updated regex validator -- `stackitmarketplace`: [v1.1.0](services/stackitmarketplace/CHANGELOG.md#v110-2025-05-13) - - **Breaking Change:** Added organization id to `VendorSubscription` -- `ske`: [v0.4.2](services/ske/CHANGELOG.md#v042-2025-05-13) - - **Feature:** Added `ClusterError` +- `lbapplication`: [v0.3.2](services/lbapplication/CHANGELOG.md#v032-2025-05-14) + - **Deprecated:** `lbapplication` service is deprecated and no longer maintained. Use the `alb` service instead +- `resourcemanager` [v0.4.0](services/resourcemanager/CHANGELOG.md#v040-2025-05-14) + - **Breaking change:** Fields `ContainerParentId` and `ParentId` are no longer required in `ParentListInner` +- `stackitmarketplace`: + - [v1.1.1](services/stackitmarketplace/CHANGELOG.md#v111-2025-05-14) + - **Feature**: Added new method `vendors_subscriptions_reject` + - [v1.1.0](services/stackitmarketplace/CHANGELOG.md#v110-2025-05-13) + - **Breaking Change:** Added organization id to `VendorSubscription` +- `ske`: + - [v0.4.3](services/ske/CHANGELOG.md#v043-2025-05-14) + - **Feature:** Added enum `SKE_NODE_MACHINE_TYPE_NOT_FOUND` to `ClusterError` + - [v0.4.2](services/ske/CHANGELOG.md#v042-2025-05-13) + - **Feature:** Added `ClusterError` +- `sqlserverflex`: [v1.0.2](services/sqlserverflex/CHANGELOG.md#v102-2025-05-14) + - **Feature:** Added new method `list_metrics` ## Release (2025-05-09) - `stackitmarketplace`: diff --git a/services/alb/CHANGELOG.md b/services/alb/CHANGELOG.md index 91e077b1..a03d0f53 100644 --- a/services/alb/CHANGELOG.md +++ b/services/alb/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.2.0 (2025-05-14) +- **Feature:** New field `Path` for `Rule` + ## v0.1.2 (2025-05-09) - **Feature:** Update user-agent header diff --git a/services/alb/pyproject.toml b/services/alb/pyproject.toml index 7f139dee..859831ca 100644 --- a/services/alb/pyproject.toml +++ b/services/alb/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-alb" [tool.poetry] name = "stackit-alb" -version = "v0.1.2" +version = "v0.2.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/alb/src/stackit/alb/__init__.py b/services/alb/src/stackit/alb/__init__.py index 38e7ff75..71e37e80 100644 --- a/services/alb/src/stackit/alb/__init__.py +++ b/services/alb/src/stackit/alb/__init__.py @@ -62,6 +62,7 @@ LoadbalancerOptionObservability, ) from stackit.alb.models.network import Network +from stackit.alb.models.path import Path from stackit.alb.models.plan_details import PlanDetails from stackit.alb.models.protocol_options_http import ProtocolOptionsHTTP from stackit.alb.models.protocol_options_https import ProtocolOptionsHTTPS diff --git a/services/alb/src/stackit/alb/models/__init__.py b/services/alb/src/stackit/alb/models/__init__.py index e4dba07e..55bedd8d 100644 --- a/services/alb/src/stackit/alb/models/__init__.py +++ b/services/alb/src/stackit/alb/models/__init__.py @@ -43,6 +43,7 @@ LoadbalancerOptionObservability, ) from stackit.alb.models.network import Network +from stackit.alb.models.path import Path from stackit.alb.models.plan_details import PlanDetails from stackit.alb.models.protocol_options_http import ProtocolOptionsHTTP from stackit.alb.models.protocol_options_https import ProtocolOptionsHTTPS diff --git a/services/alb/src/stackit/alb/models/path.py b/services/alb/src/stackit/alb/models/path.py new file mode 100644 index 00000000..c3f28f86 --- /dev/null +++ b/services/alb/src/stackit/alb/models/path.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Application Load Balancer API + + This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + + The version of the OpenAPI document: 2beta2.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 docstring might be too long + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + + +class Path(BaseModel): + """ + Path + """ + + exact: Optional[StrictStr] = Field( + default=None, + description="Exact path match. Only a request path exactly equal to the value will match, e.g. '/foo' matches only '/foo', not '/foo/bar' or '/foobar'.", + ) + prefix: Optional[StrictStr] = Field( + default=None, + description="Prefix path match. Only matches on full segment boundaries, e.g. '/foo' matches '/foo' and '/foo/bar' but NOT '/foobar'.", + ) + __properties: ClassVar[List[str]] = ["exact", "prefix"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Path from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Path from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"exact": obj.get("exact"), "prefix": obj.get("prefix")}) + return _obj diff --git a/services/alb/src/stackit/alb/models/rule.py b/services/alb/src/stackit/alb/models/rule.py index ca7dd2de..9b4cc2e4 100644 --- a/services/alb/src/stackit/alb/models/rule.py +++ b/services/alb/src/stackit/alb/models/rule.py @@ -22,6 +22,7 @@ from stackit.alb.models.cookie_persistence import CookiePersistence from stackit.alb.models.http_header import HttpHeader +from stackit.alb.models.path import Path from stackit.alb.models.query_parameter import QueryParameter @@ -32,9 +33,10 @@ class Rule(BaseModel): cookie_persistence: Optional[CookiePersistence] = Field(default=None, alias="cookiePersistence") headers: Optional[List[HttpHeader]] = Field(default=None, description="Headers for the rule.") + path: Optional[Path] = None path_prefix: Optional[StrictStr] = Field( default=None, - description="Path prefix for the rule. If empty or '/', it matches the root path.", + description="Legacy path prefix match. Optional. If not set, defaults to root path '/'. Cannot be set if 'path' is used. Prefer using 'path.prefix' instead. Only matches on full segment boundaries, e.g. '/foo' matches '/foo' and '/foo/bar' but NOT '/foobar'.", alias="pathPrefix", ) query_parameters: Optional[List[QueryParameter]] = Field( @@ -51,6 +53,7 @@ class Rule(BaseModel): __properties: ClassVar[List[str]] = [ "cookiePersistence", "headers", + "path", "pathPrefix", "queryParameters", "targetPool", @@ -104,6 +107,9 @@ def to_dict(self) -> Dict[str, Any]: if _item: _items.append(_item.to_dict()) _dict["headers"] = _items + # override the default output from pydantic by calling `to_dict()` of path + if self.path: + _dict["path"] = self.path.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in query_parameters (list) _items = [] if self.query_parameters: @@ -134,6 +140,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if obj.get("headers") is not None else None ), + "path": Path.from_dict(obj["path"]) if obj.get("path") is not None else None, "pathPrefix": obj.get("pathPrefix"), "queryParameters": ( [QueryParameter.from_dict(_item) for _item in obj["queryParameters"]] diff --git a/services/authorization/pyproject.toml b/services/authorization/pyproject.toml index b72ee8e7..d879e30c 100644 --- a/services/authorization/pyproject.toml +++ b/services/authorization/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-authorization" [tool.poetry] name = "stackit-authorization" -version = "v0.2.3" +version = "v0.2.4" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/lbapplication/CHANGELOG.md b/services/lbapplication/CHANGELOG.md index 8e7a181f..778011ad 100644 --- a/services/lbapplication/CHANGELOG.md +++ b/services/lbapplication/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.3.2 (2025-05-14) +- **Deprecated:** `lbapplication` service is deprecated and no longer maintained. Use the `alb` service instead + ## v0.3.1 (2025-03-18) - Adapted to minor API changes diff --git a/services/lbapplication/pyproject.toml b/services/lbapplication/pyproject.toml index aaa8c191..48ae815f 100644 --- a/services/lbapplication/pyproject.toml +++ b/services/lbapplication/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-lbapplication" [tool.poetry] name = "stackit-lbapplication" -version = "v0.3.1" +version = "v0.3.2" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/lbapplication/src/stackit/lbapplication/__init__.py b/services/lbapplication/src/stackit/lbapplication/__init__.py index 07fc2d3a..9a7963cd 100644 --- a/services/lbapplication/src/stackit/lbapplication/__init__.py +++ b/services/lbapplication/src/stackit/lbapplication/__init__.py @@ -5,7 +5,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/api/default_api.py b/services/lbapplication/src/stackit/lbapplication/api/default_api.py index 2e623551..6a99242f 100644 --- a/services/lbapplication/src/stackit/lbapplication/api/default_api.py +++ b/services/lbapplication/src/stackit/lbapplication/api/default_api.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -87,7 +87,7 @@ def create_credentials( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> CreateCredentialsResponse: - """Create credentials for observability of the application load balancer + """(Deprecated) Create credentials for observability of the application load balancer Creates and stores credentials for use with Application Load Balancer Observability. For example, when using ARGUS, credentials must first be created via the ARGUS API and then stored with this endpoint to be used by the Application Load Balancer. @@ -118,6 +118,7 @@ def create_credentials( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("POST /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._create_credentials_serialize( project_id=project_id, @@ -159,7 +160,7 @@ def create_credentials_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[CreateCredentialsResponse]: - """Create credentials for observability of the application load balancer + """(Deprecated) Create credentials for observability of the application load balancer Creates and stores credentials for use with Application Load Balancer Observability. For example, when using ARGUS, credentials must first be created via the ARGUS API and then stored with this endpoint to be used by the Application Load Balancer. @@ -190,6 +191,7 @@ def create_credentials_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("POST /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._create_credentials_serialize( project_id=project_id, @@ -231,7 +233,7 @@ def create_credentials_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create credentials for observability of the application load balancer + """(Deprecated) Create credentials for observability of the application load balancer Creates and stores credentials for use with Application Load Balancer Observability. For example, when using ARGUS, credentials must first be created via the ARGUS API and then stored with this endpoint to be used by the Application Load Balancer. @@ -262,6 +264,7 @@ def create_credentials_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("POST /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._create_credentials_serialize( project_id=project_id, @@ -363,7 +366,7 @@ def create_load_balancer( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> LoadBalancer: - """Create an application load balancer in a project + """(Deprecated) Create an application load balancer in a project Creates an Application Load Balancer. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. @@ -394,6 +397,7 @@ def create_load_balancer( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("POST /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._create_load_balancer_serialize( project_id=project_id, @@ -436,7 +440,7 @@ def create_load_balancer_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[LoadBalancer]: - """Create an application load balancer in a project + """(Deprecated) Create an application load balancer in a project Creates an Application Load Balancer. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. @@ -467,6 +471,7 @@ def create_load_balancer_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("POST /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._create_load_balancer_serialize( project_id=project_id, @@ -509,7 +514,7 @@ def create_load_balancer_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create an application load balancer in a project + """(Deprecated) Create an application load balancer in a project Creates an Application Load Balancer. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. @@ -540,6 +545,7 @@ def create_load_balancer_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("POST /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._create_load_balancer_serialize( project_id=project_id, @@ -641,7 +647,7 @@ def delete_credentials( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Delete a single credential in a project. + """(Deprecated) Delete a single credential in a project. Deletes the stored Observability credentials. @@ -670,6 +676,9 @@ def delete_credentials( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "DELETE /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._delete_credentials_serialize( project_id=project_id, @@ -709,7 +718,7 @@ def delete_credentials_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Delete a single credential in a project. + """(Deprecated) Delete a single credential in a project. Deletes the stored Observability credentials. @@ -738,6 +747,9 @@ def delete_credentials_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "DELETE /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._delete_credentials_serialize( project_id=project_id, @@ -777,7 +789,7 @@ def delete_credentials_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete a single credential in a project. + """(Deprecated) Delete a single credential in a project. Deletes the stored Observability credentials. @@ -806,6 +818,9 @@ def delete_credentials_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "DELETE /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._delete_credentials_serialize( project_id=project_id, @@ -894,7 +909,7 @@ def delete_load_balancer( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Delete a given load balancer in a project. + """(Deprecated) Delete a given load balancer in a project. Deletes the specified Application Load Balancer. @@ -923,6 +938,7 @@ def delete_load_balancer( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("DELETE /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._delete_load_balancer_serialize( project_id=project_id, @@ -962,7 +978,7 @@ def delete_load_balancer_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Delete a given load balancer in a project. + """(Deprecated) Delete a given load balancer in a project. Deletes the specified Application Load Balancer. @@ -991,6 +1007,7 @@ def delete_load_balancer_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("DELETE /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._delete_load_balancer_serialize( project_id=project_id, @@ -1030,7 +1047,7 @@ def delete_load_balancer_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete a given load balancer in a project. + """(Deprecated) Delete a given load balancer in a project. Deletes the specified Application Load Balancer. @@ -1059,6 +1076,7 @@ def delete_load_balancer_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("DELETE /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._delete_load_balancer_serialize( project_id=project_id, @@ -1644,7 +1662,7 @@ def get_credentials( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetCredentialsResponse: - """Get a single credential reference in a project. + """(Deprecated) Get a single credential reference in a project. Gets the stored Observability credentials. @@ -1673,6 +1691,9 @@ def get_credentials( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "GET /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._get_credentials_serialize( project_id=project_id, @@ -1713,7 +1734,7 @@ def get_credentials_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetCredentialsResponse]: - """Get a single credential reference in a project. + """(Deprecated) Get a single credential reference in a project. Gets the stored Observability credentials. @@ -1742,6 +1763,9 @@ def get_credentials_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "GET /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._get_credentials_serialize( project_id=project_id, @@ -1782,7 +1806,7 @@ def get_credentials_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get a single credential reference in a project. + """(Deprecated) Get a single credential reference in a project. Gets the stored Observability credentials. @@ -1811,6 +1835,9 @@ def get_credentials_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "GET /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._get_credentials_serialize( project_id=project_id, @@ -1900,7 +1927,7 @@ def get_load_balancer( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> LoadBalancer: - """Get a single application load balancer in a project. + """(Deprecated) Get a single application load balancer in a project. Retrieves details of a specific Application Load Balancer in a project. Includes creation and update information, current status, and any error descriptions. @@ -1929,6 +1956,7 @@ def get_load_balancer( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._get_load_balancer_serialize( project_id=project_id, @@ -1969,7 +1997,7 @@ def get_load_balancer_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[LoadBalancer]: - """Get a single application load balancer in a project. + """(Deprecated) Get a single application load balancer in a project. Retrieves details of a specific Application Load Balancer in a project. Includes creation and update information, current status, and any error descriptions. @@ -1998,6 +2026,7 @@ def get_load_balancer_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._get_load_balancer_serialize( project_id=project_id, @@ -2038,7 +2067,7 @@ def get_load_balancer_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get a single application load balancer in a project. + """(Deprecated) Get a single application load balancer in a project. Retrieves details of a specific Application Load Balancer in a project. Includes creation and update information, current status, and any error descriptions. @@ -2067,6 +2096,7 @@ def get_load_balancer_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._get_load_balancer_serialize( project_id=project_id, @@ -2155,7 +2185,7 @@ def get_quota( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GetQuotaResponse: - """Get the quota of application load balancers and target pools in a project. + """(Deprecated) Get the quota of application load balancers and target pools in a project. Retrieves the configured Application Load Balancer quota for the project. The default quota is 3. @@ -2182,6 +2212,7 @@ def get_quota( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/quota is deprecated.", DeprecationWarning) _param = self._get_quota_serialize( project_id=project_id, @@ -2219,7 +2250,7 @@ def get_quota_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GetQuotaResponse]: - """Get the quota of application load balancers and target pools in a project. + """(Deprecated) Get the quota of application load balancers and target pools in a project. Retrieves the configured Application Load Balancer quota for the project. The default quota is 3. @@ -2246,6 +2277,7 @@ def get_quota_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/quota is deprecated.", DeprecationWarning) _param = self._get_quota_serialize( project_id=project_id, @@ -2283,7 +2315,7 @@ def get_quota_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get the quota of application load balancers and target pools in a project. + """(Deprecated) Get the quota of application load balancers and target pools in a project. Retrieves the configured Application Load Balancer quota for the project. The default quota is 3. @@ -2310,6 +2342,7 @@ def get_quota_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/quota is deprecated.", DeprecationWarning) _param = self._get_quota_serialize( project_id=project_id, @@ -2634,7 +2667,7 @@ def list_credentials( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ListCredentialsResponse: - """List all credentials in a project. + """(Deprecated) List all credentials in a project. Lists the stored Observability credentials. @@ -2661,6 +2694,7 @@ def list_credentials( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._list_credentials_serialize( project_id=project_id, @@ -2698,7 +2732,7 @@ def list_credentials_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ListCredentialsResponse]: - """List all credentials in a project. + """(Deprecated) List all credentials in a project. Lists the stored Observability credentials. @@ -2725,6 +2759,7 @@ def list_credentials_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._list_credentials_serialize( project_id=project_id, @@ -2762,7 +2797,7 @@ def list_credentials_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """List all credentials in a project. + """(Deprecated) List all credentials in a project. Lists the stored Observability credentials. @@ -2789,6 +2824,7 @@ def list_credentials_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._list_credentials_serialize( project_id=project_id, @@ -2884,7 +2920,7 @@ def list_load_balancers( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ListLoadBalancersResponse: - """List load balancers in a project. + """(Deprecated) List load balancers in a project. Lists all Application Load Balancers in a project. Includes details from creation or updates, along with their status and any error descriptions. @@ -2915,6 +2951,7 @@ def list_load_balancers( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._list_load_balancers_serialize( project_id=project_id, @@ -2966,7 +3003,7 @@ def list_load_balancers_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ListLoadBalancersResponse]: - """List load balancers in a project. + """(Deprecated) List load balancers in a project. Lists all Application Load Balancers in a project. Includes details from creation or updates, along with their status and any error descriptions. @@ -2997,6 +3034,7 @@ def list_load_balancers_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._list_load_balancers_serialize( project_id=project_id, @@ -3048,7 +3086,7 @@ def list_load_balancers_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """List load balancers in a project. + """(Deprecated) List load balancers in a project. Lists all Application Load Balancers in a project. Includes details from creation or updates, along with their status and any error descriptions. @@ -3079,6 +3117,7 @@ def list_load_balancers_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._list_load_balancers_serialize( project_id=project_id, @@ -3173,7 +3212,7 @@ def list_plans( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ListPlansResponse: - """List available service plans. + """(Deprecated) List available service plans. Lists the configured service plans for a project. @@ -3198,6 +3237,7 @@ def list_plans( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/plans is deprecated.", DeprecationWarning) _param = self._list_plans_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -3230,7 +3270,7 @@ def list_plans_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[ListPlansResponse]: - """List available service plans. + """(Deprecated) List available service plans. Lists the configured service plans for a project. @@ -3255,6 +3295,7 @@ def list_plans_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/plans is deprecated.", DeprecationWarning) _param = self._list_plans_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -3287,7 +3328,7 @@ def list_plans_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """List available service plans. + """(Deprecated) List available service plans. Lists the configured service plans for a project. @@ -3312,6 +3353,7 @@ def list_plans_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("GET /v1beta/plans is deprecated.", DeprecationWarning) _param = self._list_plans_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, _host_index=_host_index @@ -3390,7 +3432,7 @@ def update_credentials( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UpdateCredentialsResponse: - """Update credentials for observability in a project. + """(Deprecated) Update credentials for observability in a project. Updates the stored Observability credentials. @@ -3421,6 +3463,9 @@ def update_credentials( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "PUT /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._update_credentials_serialize( project_id=project_id, @@ -3463,7 +3508,7 @@ def update_credentials_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[UpdateCredentialsResponse]: - """Update credentials for observability in a project. + """(Deprecated) Update credentials for observability in a project. Updates the stored Observability credentials. @@ -3494,6 +3539,9 @@ def update_credentials_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "PUT /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._update_credentials_serialize( project_id=project_id, @@ -3536,7 +3584,7 @@ def update_credentials_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update credentials for observability in a project. + """(Deprecated) Update credentials for observability in a project. Updates the stored Observability credentials. @@ -3567,6 +3615,9 @@ def update_credentials_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "PUT /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning + ) _param = self._update_credentials_serialize( project_id=project_id, @@ -3669,7 +3720,7 @@ def update_load_balancer( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> LoadBalancer: - """Update a load balancer in a project. + """(Deprecated) Update a load balancer in a project. Updates an existing Application Load Balancer by modifying its listeners and target pools. Ensure the resource version is current to maintain concurrency safety. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. @@ -3700,6 +3751,7 @@ def update_load_balancer( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("PUT /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._update_load_balancer_serialize( project_id=project_id, @@ -3742,7 +3794,7 @@ def update_load_balancer_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[LoadBalancer]: - """Update a load balancer in a project. + """(Deprecated) Update a load balancer in a project. Updates an existing Application Load Balancer by modifying its listeners and target pools. Ensure the resource version is current to maintain concurrency safety. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. @@ -3773,6 +3825,7 @@ def update_load_balancer_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("PUT /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._update_load_balancer_serialize( project_id=project_id, @@ -3815,7 +3868,7 @@ def update_load_balancer_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update a load balancer in a project. + """(Deprecated) Update a load balancer in a project. Updates an existing Application Load Balancer by modifying its listeners and target pools. Ensure the resource version is current to maintain concurrency safety. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. @@ -3846,6 +3899,7 @@ def update_load_balancer_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn("PUT /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._update_load_balancer_serialize( project_id=project_id, @@ -3949,7 +4003,7 @@ def update_target_pool( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> TargetPool: - """Update a single target pool of a load balancer in a project. + """(Deprecated) Update a single target pool of a load balancer in a project. Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). Only updates the specified target pool, leaving others unchanged. Cannot be used to create or rename target pools. @@ -3982,6 +4036,10 @@ def update_target_pool( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "PUT /v1beta/projects/{projectId}/load-balancers/{name}/target-pools/{targetPoolName} is deprecated.", + DeprecationWarning, + ) _param = self._update_target_pool_serialize( project_id=project_id, @@ -4025,7 +4083,7 @@ def update_target_pool_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[TargetPool]: - """Update a single target pool of a load balancer in a project. + """(Deprecated) Update a single target pool of a load balancer in a project. Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). Only updates the specified target pool, leaving others unchanged. Cannot be used to create or rename target pools. @@ -4058,6 +4116,10 @@ def update_target_pool_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "PUT /v1beta/projects/{projectId}/load-balancers/{name}/target-pools/{targetPoolName} is deprecated.", + DeprecationWarning, + ) _param = self._update_target_pool_serialize( project_id=project_id, @@ -4101,7 +4163,7 @@ def update_target_pool_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update a single target pool of a load balancer in a project. + """(Deprecated) Update a single target pool of a load balancer in a project. Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). Only updates the specified target pool, leaving others unchanged. Cannot be used to create or rename target pools. @@ -4134,6 +4196,10 @@ def update_target_pool_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 docstring might be too long + warnings.warn( + "PUT /v1beta/projects/{projectId}/load-balancers/{name}/target-pools/{targetPoolName} is deprecated.", + DeprecationWarning, + ) _param = self._update_target_pool_serialize( project_id=project_id, diff --git a/services/lbapplication/src/stackit/lbapplication/api_client.py b/services/lbapplication/src/stackit/lbapplication/api_client.py index 9f2de1fc..29cb6b3c 100644 --- a/services/lbapplication/src/stackit/lbapplication/api_client.py +++ b/services/lbapplication/src/stackit/lbapplication/api_client.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -81,7 +81,7 @@ def __init__(self, configuration, header_name=None, header_value=None, cookie=No self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = "OpenAPI-Generator/1.0.0/python" + self.user_agent = "stackit-sdk-python/lbapplication" def __enter__(self): return self diff --git a/services/lbapplication/src/stackit/lbapplication/configuration.py b/services/lbapplication/src/stackit/lbapplication/configuration.py index c9499db0..f7604511 100644 --- a/services/lbapplication/src/stackit/lbapplication/configuration.py +++ b/services/lbapplication/src/stackit/lbapplication/configuration.py @@ -1,9 +1,14 @@ # coding: utf-8 +import sys + +import os + + """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -11,8 +16,6 @@ Do not edit the class manually. """ # noqa: E501 docstring might be too long -import os - class HostConfiguration: def __init__( @@ -29,6 +32,7 @@ def __init__( "as a function argument instead of being set in the client configuration.\n" "Once all services have migrated, the methods to specify the region in the client configuration " "will be removed.", + file=sys.stderr, ) """Constructor """ diff --git a/services/lbapplication/src/stackit/lbapplication/exceptions.py b/services/lbapplication/src/stackit/lbapplication/exceptions.py index 92f7acf2..d86df571 100644 --- a/services/lbapplication/src/stackit/lbapplication/exceptions.py +++ b/services/lbapplication/src/stackit/lbapplication/exceptions.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/__init__.py b/services/lbapplication/src/stackit/lbapplication/models/__init__.py index 4df2fda5..57a51ed8 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/__init__.py +++ b/services/lbapplication/src/stackit/lbapplication/models/__init__.py @@ -4,7 +4,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/active_health_check.py b/services/lbapplication/src/stackit/lbapplication/models/active_health_check.py index 6b0931b4..e503a4bd 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/active_health_check.py +++ b/services/lbapplication/src/stackit/lbapplication/models/active_health_check.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/certificate_config.py b/services/lbapplication/src/stackit/lbapplication/models/certificate_config.py index b110f881..09c9108e 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/certificate_config.py +++ b/services/lbapplication/src/stackit/lbapplication/models/certificate_config.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/cookie_persistence.py b/services/lbapplication/src/stackit/lbapplication/models/cookie_persistence.py index c25c41bf..486846d2 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/cookie_persistence.py +++ b/services/lbapplication/src/stackit/lbapplication/models/cookie_persistence.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/create_credentials_payload.py b/services/lbapplication/src/stackit/lbapplication/models/create_credentials_payload.py index fa4fbc77..2958f8dc 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/create_credentials_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/create_credentials_payload.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/create_credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/create_credentials_response.py index 7c2162ba..112145c9 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/create_credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/create_credentials_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/create_load_balancer_payload.py b/services/lbapplication/src/stackit/lbapplication/models/create_load_balancer_payload.py index 06b5e79f..796fb74d 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/create_load_balancer_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/create_load_balancer_payload.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/credentials_response.py index caa1c0a4..f520edcb 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/credentials_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/get_credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/get_credentials_response.py index 5ac95a11..4a1e88ee 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/get_credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/get_credentials_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/get_quota_response.py b/services/lbapplication/src/stackit/lbapplication/models/get_quota_response.py index 091e3f9c..b753ddac 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/get_quota_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/get_quota_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/get_service_status_response.py b/services/lbapplication/src/stackit/lbapplication/models/get_service_status_response.py index 263ea1be..b0f5b8df 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/get_service_status_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/get_service_status_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/google_protobuf_any.py b/services/lbapplication/src/stackit/lbapplication/models/google_protobuf_any.py index d79e20a8..fa2b1873 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/google_protobuf_any.py +++ b/services/lbapplication/src/stackit/lbapplication/models/google_protobuf_any.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/header.py b/services/lbapplication/src/stackit/lbapplication/models/header.py index 66c963d7..614c8dff 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/header.py +++ b/services/lbapplication/src/stackit/lbapplication/models/header.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/http_config.py b/services/lbapplication/src/stackit/lbapplication/models/http_config.py index 8640a72f..e7603d99 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/http_config.py +++ b/services/lbapplication/src/stackit/lbapplication/models/http_config.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/http_health_checks.py b/services/lbapplication/src/stackit/lbapplication/models/http_health_checks.py index 70b8b5b6..54ca15f4 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/http_health_checks.py +++ b/services/lbapplication/src/stackit/lbapplication/models/http_health_checks.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/list_credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/list_credentials_response.py index 744b1c35..4b0a5385 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/list_credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/list_credentials_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/list_load_balancers_response.py b/services/lbapplication/src/stackit/lbapplication/models/list_load_balancers_response.py index 0bfd7d59..83de31b7 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/list_load_balancers_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/list_load_balancers_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/list_plans_response.py b/services/lbapplication/src/stackit/lbapplication/models/list_plans_response.py index 2ba7f907..87e79119 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/list_plans_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/list_plans_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/listener.py b/services/lbapplication/src/stackit/lbapplication/models/listener.py index 71595b9d..328cbf5f 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/listener.py +++ b/services/lbapplication/src/stackit/lbapplication/models/listener.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/load_balancer.py b/services/lbapplication/src/stackit/lbapplication/models/load_balancer.py index 117f5b8b..56e59800 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/load_balancer.py +++ b/services/lbapplication/src/stackit/lbapplication/models/load_balancer.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/load_balancer_error.py b/services/lbapplication/src/stackit/lbapplication/models/load_balancer_error.py index 9f48abbc..c9909e0d 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/load_balancer_error.py +++ b/services/lbapplication/src/stackit/lbapplication/models/load_balancer_error.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/load_balancer_options.py b/services/lbapplication/src/stackit/lbapplication/models/load_balancer_options.py index 718cc880..03a70caf 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/load_balancer_options.py +++ b/services/lbapplication/src/stackit/lbapplication/models/load_balancer_options.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_access_control.py b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_access_control.py index 45c12ac4..60249b8f 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_access_control.py +++ b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_access_control.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_logs.py b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_logs.py index d598037a..730832bd 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_logs.py +++ b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_logs.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_metrics.py b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_metrics.py index 11d738b7..d83d012a 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_metrics.py +++ b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_metrics.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_observability.py b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_observability.py index c7f5c10e..48edf897 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_observability.py +++ b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_observability.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/matcher.py b/services/lbapplication/src/stackit/lbapplication/models/matcher.py index 29c5425a..2da6eea4 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/matcher.py +++ b/services/lbapplication/src/stackit/lbapplication/models/matcher.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/network.py b/services/lbapplication/src/stackit/lbapplication/models/network.py index 75329dfd..aebf464b 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/network.py +++ b/services/lbapplication/src/stackit/lbapplication/models/network.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/plan_details.py b/services/lbapplication/src/stackit/lbapplication/models/plan_details.py index ab77d7e1..c79c3974 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/plan_details.py +++ b/services/lbapplication/src/stackit/lbapplication/models/plan_details.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/protocol_options_https.py b/services/lbapplication/src/stackit/lbapplication/models/protocol_options_https.py index ebe4ec36..baa17210 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/protocol_options_https.py +++ b/services/lbapplication/src/stackit/lbapplication/models/protocol_options_https.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/query_parameters.py b/services/lbapplication/src/stackit/lbapplication/models/query_parameters.py index c0f99463..139bde2b 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/query_parameters.py +++ b/services/lbapplication/src/stackit/lbapplication/models/query_parameters.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/rule.py b/services/lbapplication/src/stackit/lbapplication/models/rule.py index a867c5ac..62a0f96e 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/rule.py +++ b/services/lbapplication/src/stackit/lbapplication/models/rule.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/status.py b/services/lbapplication/src/stackit/lbapplication/models/status.py index 467c7811..6366899f 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/status.py +++ b/services/lbapplication/src/stackit/lbapplication/models/status.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/target.py b/services/lbapplication/src/stackit/lbapplication/models/target.py index d7666943..5f93e331 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/target.py +++ b/services/lbapplication/src/stackit/lbapplication/models/target.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/target_pool.py b/services/lbapplication/src/stackit/lbapplication/models/target_pool.py index f616706f..4bd4484b 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/target_pool.py +++ b/services/lbapplication/src/stackit/lbapplication/models/target_pool.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/update_credentials_payload.py b/services/lbapplication/src/stackit/lbapplication/models/update_credentials_payload.py index 5319de39..929eca73 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/update_credentials_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/update_credentials_payload.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/update_credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/update_credentials_response.py index 44f3abdc..bc8cdf02 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/update_credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/update_credentials_response.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/update_load_balancer_payload.py b/services/lbapplication/src/stackit/lbapplication/models/update_load_balancer_payload.py index 032b28d2..e86805d0 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/update_load_balancer_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/update_load_balancer_payload.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/models/update_target_pool_payload.py b/services/lbapplication/src/stackit/lbapplication/models/update_target_pool_payload.py index a742b917..456baf11 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/update_target_pool_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/update_target_pool_payload.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/lbapplication/src/stackit/lbapplication/rest.py b/services/lbapplication/src/stackit/lbapplication/rest.py index 163c7152..3bd1a7bb 100644 --- a/services/lbapplication/src/stackit/lbapplication/rest.py +++ b/services/lbapplication/src/stackit/lbapplication/rest.py @@ -3,7 +3,7 @@ """ Application Load Balancer API - This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. + ### DEPRECATED! This service, lb-application, is no longer maintained. Please use the alb service, version v2beta2 instead This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes. For each application load balancer provided, two VMs are deployed in your OpenStack project subject to a fee. The version of the OpenAPI document: 1beta.0.0 Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/services/resourcemanager/CHANGELOG.md b/services/resourcemanager/CHANGELOG.md index c956dfb5..922c0d92 100644 --- a/services/resourcemanager/CHANGELOG.md +++ b/services/resourcemanager/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.4.0 (2025-05-14) +- **Breaking change:** Fields `ContainerParentId` and `ParentId` are no longer required in `ParentListInner` + ## v0.3.2 (2025-05-09) - **Feature:** Update user-agent header diff --git a/services/resourcemanager/pyproject.toml b/services/resourcemanager/pyproject.toml index 62ac6154..6ed93bcf 100644 --- a/services/resourcemanager/pyproject.toml +++ b/services/resourcemanager/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-resourcemanager" [tool.poetry] name = "stackit-resourcemanager" -version = "v0.3.2" +version = "v0.4.0" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/resourcemanager/src/stackit/resourcemanager/models/parent_list_inner.py b/services/resourcemanager/src/stackit/resourcemanager/models/parent_list_inner.py index 04584d7f..6c9d1457 100644 --- a/services/resourcemanager/src/stackit/resourcemanager/models/parent_list_inner.py +++ b/services/resourcemanager/src/stackit/resourcemanager/models/parent_list_inner.py @@ -29,13 +29,16 @@ class ParentListInner(BaseModel): container_id: StrictStr = Field( description="User-friendly identifier of either organization or folder (will replace id).", alias="containerId" ) - container_parent_id: StrictStr = Field( + container_parent_id: Optional[StrictStr] = Field( + default=None, description="User-friendly parent identifier of either organization or folder (will replace parentId).", alias="containerParentId", ) id: StrictStr = Field(description="Identifier.") name: StrictStr = Field(description="Parent container name.") - parent_id: StrictStr = Field(description="Identifier of the parent resource container.", alias="parentId") + parent_id: Optional[StrictStr] = Field( + default=None, description="Identifier of the parent resource container.", alias="parentId" + ) type: StrictStr = Field(description="Parent container type.") __properties: ClassVar[List[str]] = ["containerId", "containerParentId", "id", "name", "parentId", "type"] diff --git a/services/ske/CHANGELOG.md b/services/ske/CHANGELOG.md index e5000e49..78332449 100644 --- a/services/ske/CHANGELOG.md +++ b/services/ske/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.4.3 (2025-05-14) +- **Feature:** Added enum `SKE_NODE_MACHINE_TYPE_NOT_FOUND` to `ClusterError` + ## v0.4.2 (2025-05-13) - **Feature:** Added `ClusterError` diff --git a/services/ske/pyproject.toml b/services/ske/pyproject.toml index b7c4ed69..22bb148c 100644 --- a/services/ske/pyproject.toml +++ b/services/ske/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-ske" [tool.poetry] name = "stackit-ske" -version = "v0.4.2" +version = "v0.4.3" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/ske/src/stackit/ske/models/cluster_error.py b/services/ske/src/stackit/ske/models/cluster_error.py index 3afa11a7..9e0e0223 100644 --- a/services/ske/src/stackit/ske/models/cluster_error.py +++ b/services/ske/src/stackit/ske/models/cluster_error.py @@ -42,10 +42,11 @@ def code_validate_enum(cls, value): "SKE_DNS_ZONE_NOT_FOUND", "SKE_NODE_MISCONFIGURED_PDB", "SKE_NODE_NO_VALID_HOST_FOUND", + "SKE_NODE_MACHINE_TYPE_NOT_FOUND", ] ): raise ValueError( - "must be one of enum values ('SKE_OBSERVABILITY_INSTANCE_NOT_FOUND', 'SKE_DNS_ZONE_NOT_FOUND', 'SKE_NODE_MISCONFIGURED_PDB', 'SKE_NODE_NO_VALID_HOST_FOUND')" + "must be one of enum values ('SKE_OBSERVABILITY_INSTANCE_NOT_FOUND', 'SKE_DNS_ZONE_NOT_FOUND', 'SKE_NODE_MISCONFIGURED_PDB', 'SKE_NODE_NO_VALID_HOST_FOUND', 'SKE_NODE_MACHINE_TYPE_NOT_FOUND')" ) return value diff --git a/services/sqlserverflex/CHANGELOG.md b/services/sqlserverflex/CHANGELOG.md index c5c47d9c..f029a0e6 100644 --- a/services/sqlserverflex/CHANGELOG.md +++ b/services/sqlserverflex/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.0.2 (2025-05-14) +- **Feature:** Add new method `list_metrics` + ## v1.0.1 (2025-05-09) - **Feature:** Update user-agent header diff --git a/services/sqlserverflex/pyproject.toml b/services/sqlserverflex/pyproject.toml index 7e19c0a8..e9cf204f 100644 --- a/services/sqlserverflex/pyproject.toml +++ b/services/sqlserverflex/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-sqlserverflex" [tool.poetry] name = "stackit-sqlserverflex" -version = "v1.0.1" +version = "v1.0.2" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/sqlserverflex/src/stackit/sqlserverflex/__init__.py b/services/sqlserverflex/src/stackit/sqlserverflex/__init__.py index 08573c84..c088aac1 100644 --- a/services/sqlserverflex/src/stackit/sqlserverflex/__init__.py +++ b/services/sqlserverflex/src/stackit/sqlserverflex/__init__.py @@ -45,6 +45,7 @@ from stackit.sqlserverflex.models.create_instance_response import CreateInstanceResponse from stackit.sqlserverflex.models.create_user_payload import CreateUserPayload from stackit.sqlserverflex.models.create_user_response import CreateUserResponse +from stackit.sqlserverflex.models.data_point import DataPoint from stackit.sqlserverflex.models.database import Database from stackit.sqlserverflex.models.database_documentation_create_database_request_options import ( DatabaseDocumentationCreateDatabaseRequestOptions, @@ -55,6 +56,8 @@ from stackit.sqlserverflex.models.get_database_response import GetDatabaseResponse from stackit.sqlserverflex.models.get_instance_response import GetInstanceResponse from stackit.sqlserverflex.models.get_user_response import GetUserResponse +from stackit.sqlserverflex.models.host import Host +from stackit.sqlserverflex.models.host_metric import HostMetric from stackit.sqlserverflex.models.instance import Instance from stackit.sqlserverflex.models.instance_documentation_acl import ( InstanceDocumentationACL, @@ -77,6 +80,7 @@ from stackit.sqlserverflex.models.list_databases_response import ListDatabasesResponse from stackit.sqlserverflex.models.list_flavors_response import ListFlavorsResponse from stackit.sqlserverflex.models.list_instances_response import ListInstancesResponse +from stackit.sqlserverflex.models.list_metrics_response import ListMetricsResponse from stackit.sqlserverflex.models.list_restore_jobs_response import ( ListRestoreJobsResponse, ) diff --git a/services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py b/services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py index 2be2b646..88ea217a 100644 --- a/services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py +++ b/services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py @@ -44,6 +44,7 @@ from stackit.sqlserverflex.models.list_databases_response import ListDatabasesResponse from stackit.sqlserverflex.models.list_flavors_response import ListFlavorsResponse from stackit.sqlserverflex.models.list_instances_response import ListInstancesResponse +from stackit.sqlserverflex.models.list_metrics_response import ListMetricsResponse from stackit.sqlserverflex.models.list_restore_jobs_response import ( ListRestoreJobsResponse, ) @@ -4481,6 +4482,399 @@ def _list_instances_serialize( _request_auth=_request_auth, ) + @validate_call + def list_metrics( + self, + project_id: Annotated[StrictStr, Field(description="The UUID of the project.")], + instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")], + metric: Annotated[ + StrictStr, + Field( + description="The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'." + ), + ], + granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")], + period: Annotated[ + Optional[StrictStr], + Field( + description="The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used." + ), + ] = None, + start: Annotated[ + Optional[StrictStr], + Field( + description="The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used." + ), + ] = None, + end: Annotated[ + Optional[StrictStr], + Field( + description="The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListMetricsResponse: + """Get Metric + + Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa. + + :param project_id: The UUID of the project. (required) + :type project_id: str + :param instance_id: The UUID of the instance. (required) + :type instance_id: str + :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required) + :type metric: str + :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required) + :type granularity: str + :param period: The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used. + :type period: str + :param start: The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used. + :type start: str + :param end: The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. + :type end: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 docstring might be too long + + _param = self._list_metrics_serialize( + project_id=project_id, + instance_id=instance_id, + metric=metric, + granularity=granularity, + period=period, + start=start, + end=end, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListMetricsResponse", + "400": "InstanceError", + "405": "InstanceError", + "500": "InstanceError", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def list_metrics_with_http_info( + self, + project_id: Annotated[StrictStr, Field(description="The UUID of the project.")], + instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")], + metric: Annotated[ + StrictStr, + Field( + description="The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'." + ), + ], + granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")], + period: Annotated[ + Optional[StrictStr], + Field( + description="The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used." + ), + ] = None, + start: Annotated[ + Optional[StrictStr], + Field( + description="The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used." + ), + ] = None, + end: Annotated[ + Optional[StrictStr], + Field( + description="The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListMetricsResponse]: + """Get Metric + + Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa. + + :param project_id: The UUID of the project. (required) + :type project_id: str + :param instance_id: The UUID of the instance. (required) + :type instance_id: str + :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required) + :type metric: str + :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required) + :type granularity: str + :param period: The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used. + :type period: str + :param start: The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used. + :type start: str + :param end: The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. + :type end: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 docstring might be too long + + _param = self._list_metrics_serialize( + project_id=project_id, + instance_id=instance_id, + metric=metric, + granularity=granularity, + period=period, + start=start, + end=end, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListMetricsResponse", + "400": "InstanceError", + "405": "InstanceError", + "500": "InstanceError", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def list_metrics_without_preload_content( + self, + project_id: Annotated[StrictStr, Field(description="The UUID of the project.")], + instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")], + metric: Annotated[ + StrictStr, + Field( + description="The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'." + ), + ], + granularity: Annotated[StrictStr, Field(description="The granularity in ISO8601 e.g. 5 minutes are 'PT5M'.")], + period: Annotated[ + Optional[StrictStr], + Field( + description="The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used." + ), + ] = None, + start: Annotated[ + Optional[StrictStr], + Field( + description="The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used." + ), + ] = None, + end: Annotated[ + Optional[StrictStr], + Field( + description="The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'." + ), + ] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Metric + + Returns a metric for an instance. The metric will only be for the master pod if needed. Granularity parameter is always needed. If start and end time is provided, period is not considered in max-connections and disk-use. If you provide start time, you have to provide end time as well and vice versa. + + :param project_id: The UUID of the project. (required) + :type project_id: str + :param instance_id: The UUID of the instance. (required) + :type instance_id: str + :param metric: The name of the metric. Valid metrics are 'cpu', 'memory', 'data-disk-size', 'data-disk-use','log-disk-size', 'log-disk-use', 'life-expectancy' and 'connections'. (required) + :type metric: str + :param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required) + :type granularity: str + :param period: The period in ISO8601 format e.g. 5 minutes are 'PT5M'. If no period is provided, the standard value of 5 minutes is used. + :type period: str + :param start: The start of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. If no start time is provided, current server time as UTC is used. + :type start: str + :param end: The end of the timeframe as timestamp in ISO8601 (RFC3339) e.g. '2023-08-28T07:10:52.536Z'. + :type end: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 docstring might be too long + + _param = self._list_metrics_serialize( + project_id=project_id, + instance_id=instance_id, + metric=metric, + granularity=granularity, + period=period, + start=start, + end=end, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "200": "ListMetricsResponse", + "400": "InstanceError", + "405": "InstanceError", + "500": "InstanceError", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + return response_data.response + + def _list_metrics_serialize( + self, + project_id, + instance_id, + metric, + granularity, + period, + start, + end, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params["projectId"] = project_id + if instance_id is not None: + _path_params["instanceId"] = instance_id + if metric is not None: + _path_params["metric"] = metric + # process the query parameters + if granularity is not None: + + _query_params.append(("granularity", granularity)) + + if period is not None: + + _query_params.append(("period", period)) + + if start is not None: + + _query_params.append(("start", start)) + + if end is not None: + + _query_params.append(("end", end)) + + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # authentication setting + _auth_settings: List[str] = [] + + return self.api_client.param_serialize( + method="GET", + resource_path="/v2/projects/{projectId}/instances/{instanceId}/metrics/{metric}", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + ) + @validate_call def list_restore_jobs( self, diff --git a/services/sqlserverflex/src/stackit/sqlserverflex/models/__init__.py b/services/sqlserverflex/src/stackit/sqlserverflex/models/__init__.py index 57e05a5f..49e15790 100644 --- a/services/sqlserverflex/src/stackit/sqlserverflex/models/__init__.py +++ b/services/sqlserverflex/src/stackit/sqlserverflex/models/__init__.py @@ -26,6 +26,7 @@ from stackit.sqlserverflex.models.create_instance_response import CreateInstanceResponse from stackit.sqlserverflex.models.create_user_payload import CreateUserPayload from stackit.sqlserverflex.models.create_user_response import CreateUserResponse +from stackit.sqlserverflex.models.data_point import DataPoint from stackit.sqlserverflex.models.database import Database from stackit.sqlserverflex.models.database_documentation_create_database_request_options import ( DatabaseDocumentationCreateDatabaseRequestOptions, @@ -36,6 +37,8 @@ from stackit.sqlserverflex.models.get_database_response import GetDatabaseResponse from stackit.sqlserverflex.models.get_instance_response import GetInstanceResponse from stackit.sqlserverflex.models.get_user_response import GetUserResponse +from stackit.sqlserverflex.models.host import Host +from stackit.sqlserverflex.models.host_metric import HostMetric from stackit.sqlserverflex.models.instance import Instance from stackit.sqlserverflex.models.instance_documentation_acl import ( InstanceDocumentationACL, @@ -58,6 +61,7 @@ from stackit.sqlserverflex.models.list_databases_response import ListDatabasesResponse from stackit.sqlserverflex.models.list_flavors_response import ListFlavorsResponse from stackit.sqlserverflex.models.list_instances_response import ListInstancesResponse +from stackit.sqlserverflex.models.list_metrics_response import ListMetricsResponse from stackit.sqlserverflex.models.list_restore_jobs_response import ( ListRestoreJobsResponse, ) diff --git a/services/sqlserverflex/src/stackit/sqlserverflex/models/data_point.py b/services/sqlserverflex/src/stackit/sqlserverflex/models/data_point.py new file mode 100644 index 00000000..a3900542 --- /dev/null +++ b/services/sqlserverflex/src/stackit/sqlserverflex/models/data_point.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + STACKIT MSSQL Service API + + This is the documentation for the STACKIT MSSQL service + + The version of the OpenAPI document: 2.0.0 + Contact: support@stackit.cloud + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 docstring might be too long + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set, Union + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from typing_extensions import Self + + +class DataPoint(BaseModel): + """ + DataPoint + """ + + timestamp: Optional[StrictStr] = None + value: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["timestamp", "value"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DataPoint from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataPoint from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"timestamp": obj.get("timestamp"), "value": obj.get("value")}) + return _obj diff --git a/services/sqlserverflex/src/stackit/sqlserverflex/models/host.py b/services/sqlserverflex/src/stackit/sqlserverflex/models/host.py new file mode 100644 index 00000000..981fb1ef --- /dev/null +++ b/services/sqlserverflex/src/stackit/sqlserverflex/models/host.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + STACKIT MSSQL Service API + + This is the documentation for the STACKIT MSSQL service + + The version of the OpenAPI document: 2.0.0 + Contact: support@stackit.cloud + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 docstring might be too long + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing_extensions import Self + +from stackit.sqlserverflex.models.host_metric import HostMetric + + +class Host(BaseModel): + """ + Host + """ + + host_metrics: Optional[List[HostMetric]] = Field(default=None, alias="hostMetrics") + id: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["hostMetrics", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Host from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in host_metrics (list) + _items = [] + if self.host_metrics: + for _item in self.host_metrics: + if _item: + _items.append(_item.to_dict()) + _dict["hostMetrics"] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Host from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "hostMetrics": ( + [HostMetric.from_dict(_item) for _item in obj["hostMetrics"]] + if obj.get("hostMetrics") is not None + else None + ), + "id": obj.get("id"), + } + ) + return _obj diff --git a/services/sqlserverflex/src/stackit/sqlserverflex/models/host_metric.py b/services/sqlserverflex/src/stackit/sqlserverflex/models/host_metric.py new file mode 100644 index 00000000..b0678d9c --- /dev/null +++ b/services/sqlserverflex/src/stackit/sqlserverflex/models/host_metric.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + STACKIT MSSQL Service API + + This is the documentation for the STACKIT MSSQL service + + The version of the OpenAPI document: 2.0.0 + Contact: support@stackit.cloud + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 docstring might be too long + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing_extensions import Self + +from stackit.sqlserverflex.models.data_point import DataPoint + + +class HostMetric(BaseModel): + """ + HostMetric + """ + + datapoints: Optional[List[DataPoint]] = None + name: Optional[StrictStr] = None + units: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["datapoints", "name", "units"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of HostMetric from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in datapoints (list) + _items = [] + if self.datapoints: + for _item in self.datapoints: + if _item: + _items.append(_item.to_dict()) + _dict["datapoints"] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of HostMetric from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "datapoints": ( + [DataPoint.from_dict(_item) for _item in obj["datapoints"]] + if obj.get("datapoints") is not None + else None + ), + "name": obj.get("name"), + "units": obj.get("units"), + } + ) + return _obj diff --git a/services/sqlserverflex/src/stackit/sqlserverflex/models/list_metrics_response.py b/services/sqlserverflex/src/stackit/sqlserverflex/models/list_metrics_response.py new file mode 100644 index 00000000..93f82907 --- /dev/null +++ b/services/sqlserverflex/src/stackit/sqlserverflex/models/list_metrics_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + STACKIT MSSQL Service API + + This is the documentation for the STACKIT MSSQL service + + The version of the OpenAPI document: 2.0.0 + Contact: support@stackit.cloud + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 docstring might be too long + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict +from typing_extensions import Self + +from stackit.sqlserverflex.models.host import Host + + +class ListMetricsResponse(BaseModel): + """ + ListMetricsResponse + """ + + hosts: Optional[List[Host]] = None + __properties: ClassVar[List[str]] = ["hosts"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListMetricsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in hosts (list) + _items = [] + if self.hosts: + for _item in self.hosts: + if _item: + _items.append(_item.to_dict()) + _dict["hosts"] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListMetricsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + {"hosts": [Host.from_dict(_item) for _item in obj["hosts"]] if obj.get("hosts") is not None else None} + ) + return _obj diff --git a/services/stackitmarketplace/CHANGELOG.md b/services/stackitmarketplace/CHANGELOG.md index 10001b71..aa55aae6 100644 --- a/services/stackitmarketplace/CHANGELOG.md +++ b/services/stackitmarketplace/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.1.1 (2025-05-14) +- **Feature**: Added new method `vendors_subscriptions_reject` + ## v1.1.0 (2025-05-13) - **Breaking Change:** Added organization id to `VendorSubscription` diff --git a/services/stackitmarketplace/pyproject.toml b/services/stackitmarketplace/pyproject.toml index e705a1fc..7b4c4986 100644 --- a/services/stackitmarketplace/pyproject.toml +++ b/services/stackitmarketplace/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-stackitmarketplace" [tool.poetry] name = "stackit-stackitmarketplace" -version = "v1.1.0" +version = "v1.1.1" authors = [ "STACKIT Developer Tools ", ] diff --git a/services/stackitmarketplace/src/stackit/stackitmarketplace/api/default_api.py b/services/stackitmarketplace/src/stackit/stackitmarketplace/api/default_api.py index 25b78e5c..5407be60 100644 --- a/services/stackitmarketplace/src/stackit/stackitmarketplace/api/default_api.py +++ b/services/stackitmarketplace/src/stackit/stackitmarketplace/api/default_api.py @@ -2077,3 +2077,262 @@ def _resolve_customer_serialize( _host=_host, _request_auth=_request_auth, ) + + @validate_call + def vendors_subscriptions_reject( + self, + project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")], + subscription_id: Annotated[ + str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.") + ], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """Reject a subscription + + Reject a subscription (in any lifecycle state). Only available for subscriptions to products with lifecycle state `PRODUCT_PREVIEW`. + + :param project_id: The project ID. (required) + :type project_id: str + :param subscription_id: The subscription ID. (required) + :type subscription_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 docstring might be too long + + _param = self._vendors_subscriptions_reject_serialize( + project_id=project_id, + subscription_id=subscription_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "204": None, + "400": "ErrorResponse", + "401": "ErrorResponse", + "403": "ErrorResponse", + "404": "ErrorResponse", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + @validate_call + def vendors_subscriptions_reject_with_http_info( + self, + project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")], + subscription_id: Annotated[ + str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.") + ], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """Reject a subscription + + Reject a subscription (in any lifecycle state). Only available for subscriptions to products with lifecycle state `PRODUCT_PREVIEW`. + + :param project_id: The project ID. (required) + :type project_id: str + :param subscription_id: The subscription ID. (required) + :type subscription_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 docstring might be too long + + _param = self._vendors_subscriptions_reject_serialize( + project_id=project_id, + subscription_id=subscription_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "204": None, + "400": "ErrorResponse", + "401": "ErrorResponse", + "403": "ErrorResponse", + "404": "ErrorResponse", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + @validate_call + def vendors_subscriptions_reject_without_preload_content( + self, + project_id: Annotated[str, Field(min_length=36, strict=True, max_length=36, description="The project ID.")], + subscription_id: Annotated[ + str, Field(min_length=36, strict=True, max_length=36, description="The subscription ID.") + ], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)]], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Reject a subscription + + Reject a subscription (in any lifecycle state). Only available for subscriptions to products with lifecycle state `PRODUCT_PREVIEW`. + + :param project_id: The project ID. (required) + :type project_id: str + :param subscription_id: The subscription ID. (required) + :type subscription_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 docstring might be too long + + _param = self._vendors_subscriptions_reject_serialize( + project_id=project_id, + subscription_id=subscription_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index, + ) + + _response_types_map: Dict[str, Optional[str]] = { + "204": None, + "400": "ErrorResponse", + "401": "ErrorResponse", + "403": "ErrorResponse", + "404": "ErrorResponse", + } + response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout) + return response_data.response + + def _vendors_subscriptions_reject_serialize( + self, + project_id, + subscription_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = {} + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[str, Union[str, bytes]] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if project_id is not None: + _path_params["projectId"] = project_id + if subscription_id is not None: + _path_params["subscriptionId"] = subscription_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + # set the HTTP header `Accept` + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # authentication setting + _auth_settings: List[str] = [] + + return self.api_client.param_serialize( + method="POST", + resource_path="/v1/vendors/projects/{projectId}/subscriptions/{subscriptionId}/reject", + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth, + )