From ecf2a5088772b9c3bbf047c96fb361bd1ba9028a Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 18 Dec 2025 17:12:33 +0000 Subject: [PATCH 1/2] Generate sqlserverflex --- .../stackit/sqlserverflex/api/default_api.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py b/services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py index 5e4ba6f8c..a3e57adee 100644 --- a/services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py +++ b/services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py @@ -4487,6 +4487,7 @@ 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.")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], metric: Annotated[ StrictStr, Field( @@ -4530,6 +4531,8 @@ def list_metrics( :type project_id: str :param instance_id: The UUID of the instance. (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: 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) @@ -4565,6 +4568,7 @@ def list_metrics( _param = self._list_metrics_serialize( project_id=project_id, instance_id=instance_id, + region=region, metric=metric, granularity=granularity, period=period, @@ -4594,6 +4598,7 @@ 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.")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], metric: Annotated[ StrictStr, Field( @@ -4637,6 +4642,8 @@ def list_metrics_with_http_info( :type project_id: str :param instance_id: The UUID of the instance. (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: 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) @@ -4672,6 +4679,7 @@ def list_metrics_with_http_info( _param = self._list_metrics_serialize( project_id=project_id, instance_id=instance_id, + region=region, metric=metric, granularity=granularity, period=period, @@ -4701,6 +4709,7 @@ 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.")], + region: Annotated[StrictStr, Field(description="The region which should be addressed")], metric: Annotated[ StrictStr, Field( @@ -4744,6 +4753,8 @@ def list_metrics_without_preload_content( :type project_id: str :param instance_id: The UUID of the instance. (required) :type instance_id: str + :param region: The region which should be addressed (required) + :type region: 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) @@ -4779,6 +4790,7 @@ def list_metrics_without_preload_content( _param = self._list_metrics_serialize( project_id=project_id, instance_id=instance_id, + region=region, metric=metric, granularity=granularity, period=period, @@ -4803,6 +4815,7 @@ def _list_metrics_serialize( self, project_id, instance_id, + region, metric, granularity, period, @@ -4830,6 +4843,8 @@ def _list_metrics_serialize( _path_params["projectId"] = project_id if instance_id is not None: _path_params["instanceId"] = instance_id + if region is not None: + _path_params["region"] = region if metric is not None: _path_params["metric"] = metric # process the query parameters @@ -4862,7 +4877,7 @@ def _list_metrics_serialize( return self.api_client.param_serialize( method="GET", - resource_path="/v2/projects/{projectId}/instances/{instanceId}/metrics/{metric}", + resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}", path_params=_path_params, query_params=_query_params, header_params=_header_params, From dd68e0d1b388124459fde33ff344ecec4192f342 Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Fri, 19 Dec 2025 14:19:05 +0100 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 2 ++ services/sqlserverflex/CHANGELOG.md | 3 +++ services/sqlserverflex/pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f3069ecb..95280d600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ - **Feature:** Add `SystemRoutes` to `UpdateRoutingTableOfAreaPayload` - `kms`: [v0.5.0](services/kms/CHANGELOG.md#v050) - **Feature:** Add regex field validator for `display_name` attribute in model classes `CreateKeyPayload`, `CreateKeyRingPayload`, `CreateWrappingKeyPayload` +- `sqlserverflex`: [v1.1.1](services/sqlserverflex/CHANGELOG.md#v111) + - **Breaking change:** Add region parameter in `ListMetrics` method. Previously the method failed, because the region parameter was missing ## Release (2025-12-08) - `scf`: [v0.3.0](services/scf/CHANGELOG.md#v030) diff --git a/services/sqlserverflex/CHANGELOG.md b/services/sqlserverflex/CHANGELOG.md index 5c0ca7442..e0dbea77a 100644 --- a/services/sqlserverflex/CHANGELOG.md +++ b/services/sqlserverflex/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.1.1 +- **Breaking change:** Add region parameter in `ListMetrics` method. Previously the method failed, because the region parameter was missing + ## v1.1.0 - **Version**: Minimal version is now python 3.9 diff --git a/services/sqlserverflex/pyproject.toml b/services/sqlserverflex/pyproject.toml index 7cb1b670e..c6c4c3f8e 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.1.0" +version = "v1.1.1" authors = [ "STACKIT Developer Tools ", ]