Skip to content

Commit 8b18a2d

Browse files
Generator: Update SDK /services/sqlserverflex (#2704)
1 parent 3ec99c6 commit 8b18a2d

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- **Feature:** Add `SystemRoutes` to `UpdateRoutingTableOfAreaPayload`
88
- `kms`: [v0.5.0](services/kms/CHANGELOG.md#v050)
99
- **Feature:** Add regex field validator for `display_name` attribute in model classes `CreateKeyPayload`, `CreateKeyRingPayload`, `CreateWrappingKeyPayload`
10+
- `sqlserverflex`: [v1.1.1](services/sqlserverflex/CHANGELOG.md#v111)
11+
- **Breaking change:** Add region parameter in `ListMetrics` method. Previously the method failed, because the region parameter was missing
1012
- `mongodbflex`: [v1.2.2](services/mongodbflex/CHANGELOG.md#v122)
1113
- **Docs:** Extend description of `Roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model
1214

services/sqlserverflex/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.1.1
2+
- **Breaking change:** Add region parameter in `ListMetrics` method. Previously the method failed, because the region parameter was missing
3+
14
## v1.1.0
25
- **Version**: Minimal version is now python 3.9
36

services/sqlserverflex/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-sqlserverflex"
33

44
[tool.poetry]
55
name = "stackit-sqlserverflex"
6-
version = "v1.1.0"
6+
version = "v1.1.1"
77
authors = [
88
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
99
]

services/sqlserverflex/src/stackit/sqlserverflex/api/default_api.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4487,6 +4487,7 @@ def list_metrics(
44874487
self,
44884488
project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
44894489
instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4490+
region: Annotated[StrictStr, Field(description="The region which should be addressed")],
44904491
metric: Annotated[
44914492
StrictStr,
44924493
Field(
@@ -4530,6 +4531,8 @@ def list_metrics(
45304531
:type project_id: str
45314532
:param instance_id: The UUID of the instance. (required)
45324533
:type instance_id: str
4534+
:param region: The region which should be addressed (required)
4535+
:type region: str
45334536
: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)
45344537
:type metric: str
45354538
:param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
@@ -4565,6 +4568,7 @@ def list_metrics(
45654568
_param = self._list_metrics_serialize(
45664569
project_id=project_id,
45674570
instance_id=instance_id,
4571+
region=region,
45684572
metric=metric,
45694573
granularity=granularity,
45704574
period=period,
@@ -4594,6 +4598,7 @@ def list_metrics_with_http_info(
45944598
self,
45954599
project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
45964600
instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4601+
region: Annotated[StrictStr, Field(description="The region which should be addressed")],
45974602
metric: Annotated[
45984603
StrictStr,
45994604
Field(
@@ -4637,6 +4642,8 @@ def list_metrics_with_http_info(
46374642
:type project_id: str
46384643
:param instance_id: The UUID of the instance. (required)
46394644
:type instance_id: str
4645+
:param region: The region which should be addressed (required)
4646+
:type region: str
46404647
: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)
46414648
:type metric: str
46424649
:param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
@@ -4672,6 +4679,7 @@ def list_metrics_with_http_info(
46724679
_param = self._list_metrics_serialize(
46734680
project_id=project_id,
46744681
instance_id=instance_id,
4682+
region=region,
46754683
metric=metric,
46764684
granularity=granularity,
46774685
period=period,
@@ -4701,6 +4709,7 @@ def list_metrics_without_preload_content(
47014709
self,
47024710
project_id: Annotated[StrictStr, Field(description="The UUID of the project.")],
47034711
instance_id: Annotated[StrictStr, Field(description="The UUID of the instance.")],
4712+
region: Annotated[StrictStr, Field(description="The region which should be addressed")],
47044713
metric: Annotated[
47054714
StrictStr,
47064715
Field(
@@ -4744,6 +4753,8 @@ def list_metrics_without_preload_content(
47444753
:type project_id: str
47454754
:param instance_id: The UUID of the instance. (required)
47464755
:type instance_id: str
4756+
:param region: The region which should be addressed (required)
4757+
:type region: str
47474758
: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)
47484759
:type metric: str
47494760
:param granularity: The granularity in ISO8601 e.g. 5 minutes are 'PT5M'. (required)
@@ -4779,6 +4790,7 @@ def list_metrics_without_preload_content(
47794790
_param = self._list_metrics_serialize(
47804791
project_id=project_id,
47814792
instance_id=instance_id,
4793+
region=region,
47824794
metric=metric,
47834795
granularity=granularity,
47844796
period=period,
@@ -4803,6 +4815,7 @@ def _list_metrics_serialize(
48034815
self,
48044816
project_id,
48054817
instance_id,
4818+
region,
48064819
metric,
48074820
granularity,
48084821
period,
@@ -4830,6 +4843,8 @@ def _list_metrics_serialize(
48304843
_path_params["projectId"] = project_id
48314844
if instance_id is not None:
48324845
_path_params["instanceId"] = instance_id
4846+
if region is not None:
4847+
_path_params["region"] = region
48334848
if metric is not None:
48344849
_path_params["metric"] = metric
48354850
# process the query parameters
@@ -4862,7 +4877,7 @@ def _list_metrics_serialize(
48624877

48634878
return self.api_client.param_serialize(
48644879
method="GET",
4865-
resource_path="/v2/projects/{projectId}/instances/{instanceId}/metrics/{metric}",
4880+
resource_path="/v2/projects/{projectId}/regions/{region}/instances/{instanceId}/metrics/{metric}",
48664881
path_params=_path_params,
48674882
query_params=_query_params,
48684883
header_params=_header_params,

0 commit comments

Comments
 (0)