Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- `mongodbflex`: [v1.2.2](services/mongodbflex/CHANGELOG.md#v122)
- **Docs:** Extend description of `Roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model

Expand Down
3 changes: 3 additions & 0 deletions services/sqlserverflex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion services/sqlserverflex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-sqlserverflex"

[tool.poetry]
name = "stackit-sqlserverflex"
version = "v1.1.0"
version = "v1.1.1"
authors = [
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand All @@ -4803,6 +4815,7 @@ def _list_metrics_serialize(
self,
project_id,
instance_id,
region,
metric,
granularity,
period,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down