From 2e747b4b60ddcd066d678f36d8a7c41e01cc1d7f Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 20 Oct 2025 09:07:10 +0000 Subject: [PATCH 1/7] Generate observability --- .../src/stackit/observability/__init__.py | 8 ++ .../stackit/observability/api/default_api.py | 38 +++--- .../stackit/observability/models/__init__.py | 6 + .../models/create_alertgroups_payload.py | 2 +- .../models/create_logs_alertgroups_payload.py | 10 +- ...te_logs_alertgroups_payload_rules_inner.py | 114 ++++++++++++++++++ ...partial_update_alertrules_request_inner.py | 108 +++++++++++++++++ .../models/update_alertgroup_payload.py | 2 +- .../update_alertgroups_request_inner.py | 2 +- ...e_alertgroups_request_inner_rules_inner.py | 22 ++-- .../models/update_logs_alertgroup_payload.py | 10 +- 11 files changed, 282 insertions(+), 40 deletions(-) create mode 100644 services/observability/src/stackit/observability/models/create_logs_alertgroups_payload_rules_inner.py create mode 100644 services/observability/src/stackit/observability/models/partial_update_alertrules_request_inner.py diff --git a/services/observability/src/stackit/observability/__init__.py b/services/observability/src/stackit/observability/__init__.py index c1d2ea087..35c90b063 100644 --- a/services/observability/src/stackit/observability/__init__.py +++ b/services/observability/src/stackit/observability/__init__.py @@ -56,6 +56,7 @@ "CreateInstancePayload", "CreateInstanceResponse", "CreateLogsAlertgroupsPayload", + "CreateLogsAlertgroupsPayloadRulesInner", "CreateScrapeConfigPayload", "CreateScrapeConfigPayloadBasicAuth", "CreateScrapeConfigPayloadHttpSdConfigsInner", @@ -95,6 +96,7 @@ "ModelGlobal", "OAuth2", "OpsgenieConfig", + "PartialUpdateAlertrulesRequestInner", "PermissionDenied", "Plan", "PlanModel", @@ -224,6 +226,9 @@ from stackit.observability.models.create_logs_alertgroups_payload import ( CreateLogsAlertgroupsPayload as CreateLogsAlertgroupsPayload, ) +from stackit.observability.models.create_logs_alertgroups_payload_rules_inner import ( + CreateLogsAlertgroupsPayloadRulesInner as CreateLogsAlertgroupsPayloadRulesInner, +) from stackit.observability.models.create_scrape_config_payload import ( CreateScrapeConfigPayload as CreateScrapeConfigPayload, ) @@ -317,6 +322,9 @@ from stackit.observability.models.opsgenie_config import ( OpsgenieConfig as OpsgenieConfig, ) +from stackit.observability.models.partial_update_alertrules_request_inner import ( + PartialUpdateAlertrulesRequestInner as PartialUpdateAlertrulesRequestInner, +) from stackit.observability.models.permission_denied import ( PermissionDenied as PermissionDenied, ) diff --git a/services/observability/src/stackit/observability/api/default_api.py b/services/observability/src/stackit/observability/api/default_api.py index 05ea694c1..dba73fd3c 100644 --- a/services/observability/src/stackit/observability/api/default_api.py +++ b/services/observability/src/stackit/observability/api/default_api.py @@ -95,6 +95,9 @@ ) from stackit.observability.models.logs_config_response import LogsConfigResponse from stackit.observability.models.message import Message +from stackit.observability.models.partial_update_alertrules_request_inner import ( + PartialUpdateAlertrulesRequestInner, +) from stackit.observability.models.plans_response import PlansResponse from stackit.observability.models.receiver import Receiver from stackit.observability.models.scrape_configs_response import ScrapeConfigsResponse @@ -118,9 +121,6 @@ from stackit.observability.models.update_alertgroups_request_inner import ( UpdateAlertgroupsRequestInner, ) -from stackit.observability.models.update_alertgroups_request_inner_rules_inner import ( - UpdateAlertgroupsRequestInnerRulesInner, -) from stackit.observability.models.update_credentials_remote_write_config_payload import ( UpdateCredentialsRemoteWriteConfigPayload, ) @@ -12509,7 +12509,7 @@ def partial_update_alertrules( group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], + partial_update_alertrules_request_inner: List[PartialUpdateAlertrulesRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12530,8 +12530,8 @@ def partial_update_alertrules( :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner_rules_inner: (required) - :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] + :param partial_update_alertrules_request_inner: (required) + :type partial_update_alertrules_request_inner: List[PartialUpdateAlertrulesRequestInner] :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 @@ -12558,7 +12558,7 @@ def partial_update_alertrules( group_name=group_name, instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, + partial_update_alertrules_request_inner=partial_update_alertrules_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12583,7 +12583,7 @@ def partial_update_alertrules_with_http_info( group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], + partial_update_alertrules_request_inner: List[PartialUpdateAlertrulesRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12604,8 +12604,8 @@ def partial_update_alertrules_with_http_info( :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner_rules_inner: (required) - :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] + :param partial_update_alertrules_request_inner: (required) + :type partial_update_alertrules_request_inner: List[PartialUpdateAlertrulesRequestInner] :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 @@ -12632,7 +12632,7 @@ def partial_update_alertrules_with_http_info( group_name=group_name, instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, + partial_update_alertrules_request_inner=partial_update_alertrules_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12657,7 +12657,7 @@ def partial_update_alertrules_without_preload_content( group_name: StrictStr, instance_id: StrictStr, project_id: StrictStr, - update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner], + partial_update_alertrules_request_inner: List[PartialUpdateAlertrulesRequestInner], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12678,8 +12678,8 @@ def partial_update_alertrules_without_preload_content( :type instance_id: str :param project_id: (required) :type project_id: str - :param update_alertgroups_request_inner_rules_inner: (required) - :type update_alertgroups_request_inner_rules_inner: List[UpdateAlertgroupsRequestInnerRulesInner] + :param partial_update_alertrules_request_inner: (required) + :type partial_update_alertrules_request_inner: List[PartialUpdateAlertrulesRequestInner] :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 @@ -12706,7 +12706,7 @@ def partial_update_alertrules_without_preload_content( group_name=group_name, instance_id=instance_id, project_id=project_id, - update_alertgroups_request_inner_rules_inner=update_alertgroups_request_inner_rules_inner, + partial_update_alertrules_request_inner=partial_update_alertrules_request_inner, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12726,7 +12726,7 @@ def _partial_update_alertrules_serialize( group_name, instance_id, project_id, - update_alertgroups_request_inner_rules_inner, + partial_update_alertrules_request_inner, _request_auth, _content_type, _headers, @@ -12736,7 +12736,7 @@ def _partial_update_alertrules_serialize( _host = None _collection_formats: Dict[str, str] = { - "UpdateAlertgroupsRequestInnerRulesInner": "", + "PartialUpdateAlertrulesRequestInner": "", } _path_params: Dict[str, str] = {} @@ -12757,8 +12757,8 @@ def _partial_update_alertrules_serialize( # process the header parameters # process the form parameters # process the body parameter - if update_alertgroups_request_inner_rules_inner is not None: - _body_params = update_alertgroups_request_inner_rules_inner + if partial_update_alertrules_request_inner is not None: + _body_params = partial_update_alertrules_request_inner # set the HTTP header `Accept` if "Accept" not in _header_params: diff --git a/services/observability/src/stackit/observability/models/__init__.py b/services/observability/src/stackit/observability/models/__init__.py index 726b7070f..cebd21b14 100644 --- a/services/observability/src/stackit/observability/models/__init__.py +++ b/services/observability/src/stackit/observability/models/__init__.py @@ -74,6 +74,9 @@ from stackit.observability.models.create_logs_alertgroups_payload import ( CreateLogsAlertgroupsPayload, ) +from stackit.observability.models.create_logs_alertgroups_payload_rules_inner import ( + CreateLogsAlertgroupsPayloadRulesInner, +) from stackit.observability.models.create_scrape_config_payload import ( CreateScrapeConfigPayload, ) @@ -145,6 +148,9 @@ from stackit.observability.models.model_global import ModelGlobal from stackit.observability.models.o_auth2 import OAuth2 from stackit.observability.models.opsgenie_config import OpsgenieConfig +from stackit.observability.models.partial_update_alertrules_request_inner import ( + PartialUpdateAlertrulesRequestInner, +) from stackit.observability.models.permission_denied import PermissionDenied from stackit.observability.models.plan import Plan from stackit.observability.models.plan_model import PlanModel diff --git a/services/observability/src/stackit/observability/models/create_alertgroups_payload.py b/services/observability/src/stackit/observability/models/create_alertgroups_payload.py index a6ffa1a4a..688e87cbd 100644 --- a/services/observability/src/stackit/observability/models/create_alertgroups_payload.py +++ b/services/observability/src/stackit/observability/models/create_alertgroups_payload.py @@ -28,7 +28,7 @@ class CreateAlertgroupsPayload(BaseModel): """ - Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. + Alert group that should be created or updated. `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( diff --git a/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload.py b/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload.py index d620dc339..fdaf0631f 100644 --- a/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload.py +++ b/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload.py @@ -21,14 +21,14 @@ from pydantic import BaseModel, ConfigDict, Field from typing_extensions import Annotated, Self -from stackit.observability.models.update_alertgroups_request_inner_rules_inner import ( - UpdateAlertgroupsRequestInnerRulesInner, +from stackit.observability.models.create_logs_alertgroups_payload_rules_inner import ( + CreateLogsAlertgroupsPayloadRulesInner, ) class CreateLogsAlertgroupsPayload(BaseModel): """ - Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. + Alert group that should be created or updated. `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( @@ -38,7 +38,7 @@ class CreateLogsAlertgroupsPayload(BaseModel): name: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field( description="The name of the group. Must be unique. `Additional Validators:` * is the identifier and so unique * should only include the characters: a-zA-Z0-9-" ) - rules: List[UpdateAlertgroupsRequestInnerRulesInner] = Field(description="rules for the alert group") + rules: List[CreateLogsAlertgroupsPayloadRulesInner] = Field(description="rules for the alert group") __properties: ClassVar[List[str]] = ["interval", "name", "rules"] model_config = ConfigDict( @@ -101,7 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "interval": obj.get("interval") if obj.get("interval") is not None else "60s", "name": obj.get("name"), "rules": ( - [UpdateAlertgroupsRequestInnerRulesInner.from_dict(_item) for _item in obj["rules"]] + [CreateLogsAlertgroupsPayloadRulesInner.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None ), diff --git a/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload_rules_inner.py b/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload_rules_inner.py new file mode 100644 index 000000000..285dc0374 --- /dev/null +++ b/services/observability/src/stackit/observability/models/create_logs_alertgroups_payload_rules_inner.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + STACKIT Observability API + + API endpoints for Observability on STACKIT + + The version of the OpenAPI document: 1.1.1 + Contact: stackit-argus@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Annotated, Self + + +class CreateLogsAlertgroupsPayloadRulesInner(BaseModel): + """ + Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. + """ # noqa: E501 + + alert: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( + default=None, + description="The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed", + ) + annotations: Optional[Dict[str, Any]] = Field( + default=None, + description="Map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * is not allowed to use when 'record' is used in this rule", + ) + expr: Annotated[str, Field(min_length=1, strict=True, max_length=600)] = Field( + description="The LogQL expression to evaluate to create alerts when using the 'alert' attribute in this rule, or to create a metric when using the 'record' attribute." + ) + var_for: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( + default="0s", + description="Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string * is not allowed to use when 'record' is used in this rule", + alias="for", + ) + labels: Optional[Dict[str, Any]] = Field( + default=None, + description="Map of key:value. Labels to add or overwrite for each alert or metric. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters", + ) + record: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=300)]] = Field( + default=None, + description="The name of the metric. When this attribute is used, an Recording Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9:_ * required when 'alert' is not used in this rule, otherwise not allowed", + ) + __properties: ClassVar[List[str]] = ["alert", "annotations", "expr", "for", "labels", "record"] + + 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 CreateLogsAlertgroupsPayloadRulesInner 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 CreateLogsAlertgroupsPayloadRulesInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "alert": obj.get("alert"), + "annotations": obj.get("annotations"), + "expr": obj.get("expr"), + "for": obj.get("for") if obj.get("for") is not None else "0s", + "labels": obj.get("labels"), + "record": obj.get("record"), + } + ) + return _obj diff --git a/services/observability/src/stackit/observability/models/partial_update_alertrules_request_inner.py b/services/observability/src/stackit/observability/models/partial_update_alertrules_request_inner.py new file mode 100644 index 000000000..2863d7f72 --- /dev/null +++ b/services/observability/src/stackit/observability/models/partial_update_alertrules_request_inner.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + STACKIT Observability API + + API endpoints for Observability on STACKIT + + The version of the OpenAPI document: 1.1.1 + Contact: stackit-argus@mail.schwarz + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field +from typing_extensions import Annotated, Self + + +class PartialUpdateAlertrulesRequestInner(BaseModel): + """ + Alert rule. `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. + """ # noqa: E501 + + alert: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field( + description="The name of the alert. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9-" + ) + annotations: Optional[Dict[str, Any]] = Field( + default=None, + description="map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters", + ) + expr: Annotated[str, Field(min_length=1, strict=True, max_length=600)] = Field( + description="The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts." + ) + var_for: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( + default="0s", + description="Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string", + alias="for", + ) + labels: Optional[Dict[str, Any]] = Field( + default=None, + description="map of key:value. Labels to add or overwrite for each alert. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters", + ) + __properties: ClassVar[List[str]] = ["alert", "annotations", "expr", "for", "labels"] + + 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 PartialUpdateAlertrulesRequestInner 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 PartialUpdateAlertrulesRequestInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "alert": obj.get("alert"), + "annotations": obj.get("annotations"), + "expr": obj.get("expr"), + "for": obj.get("for") if obj.get("for") is not None else "0s", + "labels": obj.get("labels"), + } + ) + return _obj diff --git a/services/observability/src/stackit/observability/models/update_alertgroup_payload.py b/services/observability/src/stackit/observability/models/update_alertgroup_payload.py index 8a74a297c..c642f559f 100644 --- a/services/observability/src/stackit/observability/models/update_alertgroup_payload.py +++ b/services/observability/src/stackit/observability/models/update_alertgroup_payload.py @@ -28,7 +28,7 @@ class UpdateAlertgroupPayload(BaseModel): """ - Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. + Alert group that should be created or updated. `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( diff --git a/services/observability/src/stackit/observability/models/update_alertgroups_request_inner.py b/services/observability/src/stackit/observability/models/update_alertgroups_request_inner.py index 0fd8000bc..8551c8e46 100644 --- a/services/observability/src/stackit/observability/models/update_alertgroups_request_inner.py +++ b/services/observability/src/stackit/observability/models/update_alertgroups_request_inner.py @@ -28,7 +28,7 @@ class UpdateAlertgroupsRequestInner(BaseModel): """ - Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. + Alert group that should be created or updated. `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( diff --git a/services/observability/src/stackit/observability/models/update_alertgroups_request_inner_rules_inner.py b/services/observability/src/stackit/observability/models/update_alertgroups_request_inner_rules_inner.py index 97c6ad3a6..64ed7f275 100644 --- a/services/observability/src/stackit/observability/models/update_alertgroups_request_inner_rules_inner.py +++ b/services/observability/src/stackit/observability/models/update_alertgroups_request_inner_rules_inner.py @@ -24,29 +24,34 @@ class UpdateAlertgroupsRequestInnerRulesInner(BaseModel): """ - Alert rule. `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. + Rule definition. Must be either an Alerting Rule (using 'alert') or a Recording Rule (using 'record'). `Additional Validators:` * total config (all alert groups/rules) should not be bigger than 500000 characters as string since this the limitation of prometheus. """ # noqa: E501 - alert: Annotated[str, Field(min_length=1, strict=True, max_length=200)] = Field( - description="The name of the alert. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9-" + alert: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field( + default=None, + description="The name of the alert. When this attribute is used, an Alerting Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9- * required when 'record' is not used in this rule, otherwise not allowed", ) annotations: Optional[Dict[str, Any]] = Field( default=None, - description="map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters", + description="Map of key:value. Annotations to add to each alert. `Additional Validators:` * should not contain more than 5 keys * each key and value should not be longer than 200 characters * is not allowed to use when 'record' is used in this rule", ) expr: Annotated[str, Field(min_length=1, strict=True, max_length=600)] = Field( - description="The PromQL expression to evaluate. Every evaluation cycle this is evaluated at the current time, and all resultant time series become pending/firing alerts." + description="The PromQL expression to evaluate to create alerts when using the 'alert' attribute in this rule, or to create a metric when using the 'record' attribute." ) var_for: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( default="0s", - description="Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string", + description="Alerts are considered firing once they have been returned for this long. Alerts which have not yet fired for long enough are considered pending. `Additional Validators:` * must be a valid time string * is not allowed to use when 'record' is used in this rule", alias="for", ) labels: Optional[Dict[str, Any]] = Field( default=None, - description="map of key:value. Labels to add or overwrite for each alert. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters", + description="Map of key:value. Labels to add or overwrite for each alert or metric. `Additional Validators:` * should not contain more than 10 keys * each key and value should not be longer than 200 characters", + ) + record: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=300)]] = Field( + default=None, + description="The name of the metric. When this attribute is used, an Recording Rule will be created. `Additional Validators:` * is the identifier and so unique in the group * should only include the characters: a-zA-Z0-9:_ * required when 'alert' is not used in this rule, otherwise not allowed", ) - __properties: ClassVar[List[str]] = ["alert", "annotations", "expr", "for", "labels"] + __properties: ClassVar[List[str]] = ["alert", "annotations", "expr", "for", "labels", "record"] model_config = ConfigDict( populate_by_name=True, @@ -103,6 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "expr": obj.get("expr"), "for": obj.get("for") if obj.get("for") is not None else "0s", "labels": obj.get("labels"), + "record": obj.get("record"), } ) return _obj diff --git a/services/observability/src/stackit/observability/models/update_logs_alertgroup_payload.py b/services/observability/src/stackit/observability/models/update_logs_alertgroup_payload.py index 5971c7e5c..de7769576 100644 --- a/services/observability/src/stackit/observability/models/update_logs_alertgroup_payload.py +++ b/services/observability/src/stackit/observability/models/update_logs_alertgroup_payload.py @@ -21,21 +21,21 @@ from pydantic import BaseModel, ConfigDict, Field from typing_extensions import Annotated, Self -from stackit.observability.models.update_alertgroups_request_inner_rules_inner import ( - UpdateAlertgroupsRequestInnerRulesInner, +from stackit.observability.models.create_logs_alertgroups_payload_rules_inner import ( + CreateLogsAlertgroupsPayloadRulesInner, ) class UpdateLogsAlertgroupPayload(BaseModel): """ - Alert group that should be created or updated `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. + Alert group that should be created or updated. `Additional Validators:` * total config should not be bigger than 500000 characters as string since this the limitation of prometheus. """ # noqa: E501 interval: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=8)]] = Field( default="60s", description="How often rules in the group are evaluated. `Additional Validators:` * must be a valid time string * should be >=60s", ) - rules: List[UpdateAlertgroupsRequestInnerRulesInner] = Field(description="rules for the alert group") + rules: List[CreateLogsAlertgroupsPayloadRulesInner] = Field(description="rules for the alert group") __properties: ClassVar[List[str]] = ["interval", "rules"] model_config = ConfigDict( @@ -97,7 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: { "interval": obj.get("interval") if obj.get("interval") is not None else "60s", "rules": ( - [UpdateAlertgroupsRequestInnerRulesInner.from_dict(_item) for _item in obj["rules"]] + [CreateLogsAlertgroupsPayloadRulesInner.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None ), From 22481e9c97523e2846098a3dc7414d1e2d600f6f Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 20 Oct 2025 09:07:13 +0000 Subject: [PATCH 2/7] Generate resourcemanager --- .../src/stackit/resourcemanager/__init__.py | 4 + .../resourcemanager/models/__init__.py | 1 + .../models/container_search_result.py | 113 ++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 services/resourcemanager/src/stackit/resourcemanager/models/container_search_result.py diff --git a/services/resourcemanager/src/stackit/resourcemanager/__init__.py b/services/resourcemanager/src/stackit/resourcemanager/__init__.py index 93907345e..4db93aab6 100644 --- a/services/resourcemanager/src/stackit/resourcemanager/__init__.py +++ b/services/resourcemanager/src/stackit/resourcemanager/__init__.py @@ -28,6 +28,7 @@ "ApiKeyError", "ApiAttributeError", "ApiException", + "ContainerSearchResult", "CreateFolderPayload", "CreateProjectPayload", "ErrorResponse", @@ -65,6 +66,9 @@ from stackit.resourcemanager.exceptions import OpenApiException as OpenApiException # import models into sdk package +from stackit.resourcemanager.models.container_search_result import ( + ContainerSearchResult as ContainerSearchResult, +) from stackit.resourcemanager.models.create_folder_payload import ( CreateFolderPayload as CreateFolderPayload, ) diff --git a/services/resourcemanager/src/stackit/resourcemanager/models/__init__.py b/services/resourcemanager/src/stackit/resourcemanager/models/__init__.py index 2fcfe0a06..5bf4eb3ec 100644 --- a/services/resourcemanager/src/stackit/resourcemanager/models/__init__.py +++ b/services/resourcemanager/src/stackit/resourcemanager/models/__init__.py @@ -14,6 +14,7 @@ # import models into model package +from stackit.resourcemanager.models.container_search_result import ContainerSearchResult from stackit.resourcemanager.models.create_folder_payload import CreateFolderPayload from stackit.resourcemanager.models.create_project_payload import CreateProjectPayload from stackit.resourcemanager.models.error_response import ErrorResponse diff --git a/services/resourcemanager/src/stackit/resourcemanager/models/container_search_result.py b/services/resourcemanager/src/stackit/resourcemanager/models/container_search_result.py new file mode 100644 index 000000000..e3adbf5bc --- /dev/null +++ b/services/resourcemanager/src/stackit/resourcemanager/models/container_search_result.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Resource Manager API + + API v2 to manage resource containers - organizations, folders, projects incl. labels ### Resource Management STACKIT resource management handles the terms _Organization_, _Folder_, _Project_, _Label_, and the hierarchical structure between them. Technically, organizations, folders, and projects are _Resource Containers_ to which a _Label_ can be attached to. The STACKIT _Resource Manager_ provides CRUD endpoints to query and to modify the state. ### Organizations STACKIT organizations are the base element to create and to use cloud-resources. An organization is bound to one customer account. Organizations have a lifecycle. - Organizations are always the root node in resource hierarchy and do not have a parent ### Projects STACKIT projects are needed to use cloud-resources. Projects serve as wrapper for underlying technical structures and processes. Projects have a lifecycle. Projects compared to folders may have different policies. - Projects are optional, but mandatory for cloud-resource usage - A project can be created having either an organization, or a folder as parent - A project must not have a project as parent - Project names under the same parent must not be unique - Root organization cannot be changed ### Label STACKIT labels are key-value pairs including a resource container reference. Labels can be defined and attached freely to resource containers by which resources can be organized and queried. - Policy-based, immutable labels may exists + + The version of the OpenAPI document: 2.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations + +import json +import pprint +from typing import Any, ClassVar, Dict, List, Optional, Set + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing_extensions import Self + +from stackit.resourcemanager.models.lifecycle_state import LifecycleState + + +class ContainerSearchResult(BaseModel): + """ + ContainerSearchResult + """ # noqa: E501 + + container_id: StrictStr = Field(description="Globally unique user-friendly identifier.", alias="containerId") + container_type: StrictStr = Field(description="Resource container type.", alias="containerType") + id: StrictStr = Field(description="Globally unique identifier.") + lifecycle_state: Optional[LifecycleState] = Field(default=None, alias="lifecycleState") + name: StrictStr = Field(description="Resource container name.") + organization_id: Optional[StrictStr] = Field( + default=None, description="Id of the organization the container is in.", alias="organizationId" + ) + __properties: ClassVar[List[str]] = [ + "containerId", + "containerType", + "id", + "lifecycleState", + "name", + "organizationId", + ] + + @field_validator("container_type") + def container_type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(["PROJECT", "FOLDER"]): + raise ValueError("must be one of enum values ('PROJECT', 'FOLDER')") + return 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 ContainerSearchResult 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 ContainerSearchResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "containerId": obj.get("containerId"), + "containerType": obj.get("containerType"), + "id": obj.get("id"), + "lifecycleState": obj.get("lifecycleState"), + "name": obj.get("name"), + "organizationId": obj.get("organizationId"), + } + ) + return _obj From e5a111d710ee7989ed4f10ec9a6d3b35f4d97eb4 Mon Sep 17 00:00:00 2001 From: Benjosh95 Date: Tue, 21 Oct 2025 10:29:10 +0200 Subject: [PATCH 3/7] update changelogs and version --- CHANGELOG.md | 31 ++++++++++++++++----------- services/observability/CHANGELOG.md | 6 ++++++ services/observability/pyproject.toml | 2 +- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b106a961..dfc701cb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ ## Release (2025-xx-xx) +- `observability`: [v0.12.0](services/observability/CHANGELOG.md#v0120) + - **Breaking Change:** `partial_update_alertrules()` method parameter renamed from `update_alertgroups_request_inner_rules_inner` to `partial_update_alertrules_request_inner` and type changed from `UpdateAlertgroupsRequestInnerRulesInner` to `PartialUpdateAlertrulesRequestInner` + - **Feature:** Field `alert` of `UpdateAlertgroupsRequestInnerRulesInner` is now optional + - **Feature:** Add `record` field to `UpdateAlertgroupsRequestInnerRulesInner` + - **Feature:** Add new models `CreateLogsAlertgroupsPayloadRulesInner` and `PartialUpdateAlertrulesRequestInner` - `stackitmarketplace`: [v1.15.0](services/stackitmarketplace/CHANGELOG.md#v1150) - **Feature:** Add `EndUserLicenseAgreement`, `ProductDescription` and `ServiceLevelAgreement` attributes and add them to `Assets` struct - `postgresflex`: [v1.2.0](services/postgresflex/CHANGELOG.md#v120) @@ -231,7 +236,7 @@ - [v0.4.0](services/alb/CHANGELOG.md#v040) - **Feature:** Add new field `load_balancer_security_group` in `LoadBalancer`, `CreateLoadBalancerPayload` and `UpdateLoadBalancerPayload` Models - [v0.3.1](services/alb/CHANGELOG.md#v031) - - **Internal:** Improve deserializing and error types + - **Internal:** Improve deserializing and error types - `authorization`: [v0.2.5](services/authorization/CHANGELOG.md#v025) - **Internal:** Improve deserializing and error types - `certificates`: [v1.0.2](services/certificates/CHANGELOG.md#v102) @@ -242,7 +247,7 @@ - [v0.5.0](services/loadbalancer/CHANGELOG.md#v050) - **Feature:** Add new field `load_balancer_security_group` in `LoadBalancer`, `CreateLoadBalancerPayload` and `UpdateLoadBalancerPayload` Models - [v0.4.1](services/loadbalancer/CHANGELOG.md#v041) - - **Internal:** Improve deserializing and error types + - **Internal:** Improve deserializing and error types - `logme`: [v0.3.2](services/logme/CHANGELOG.md#v032) - **Internal:** Improve deserializing and error types - `mariadb`: [v0.2.3](services/mariadb/CHANGELOG.md#v023) @@ -261,7 +266,7 @@ - **Feature:** Add new methods `get_logs_configs()`, `update_logs_configs()`, `get_traces_configs()`, `update_traces_configs()`, `get_metrics_storage_retention()`, `update_metrics_storage_retention()`, `get_scrape_config()`, `update_scrape_config()`, `list_acl()`, `update_acl()`, `list_alert_config_receivers()`, `list_alert_config_routes()`, `update_alert_config_receiver()`, `update_alert_config_route()`, `list_alertgroups()`, `list_alertrules()`, `list_credentials()`, `list_instances()` - **Feature:** Add new models `LogsConfig`, `LogsConfigResponse`, `TraceConfig`, `TracesConfigResponse`, `UpdateLogsConfigsPayload`, `UpdateTracesConfigsPayload` - [v0.5.1](services/observability/CHANGELOG.md#v051) - - **Internal:** Improve deserializing and error types + - **Internal:** Improve deserializing and error types - `postgresflex`: [v1.0.2](services/postgresflex/CHANGELOG.md#v102) - **Internal:** Improve deserializing and error types - `rabbitmq`: [v0.2.2](services/rabbitmq/CHANGELOG.md#v022) @@ -344,16 +349,16 @@ - **Improvement:** Add proper noqa comments for docstrings - **Improvement:** Update type annotations for better type safety - [v0.5.4](services/iaas/CHANGELOG.md#v054) - - **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods - - **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models: - - `AffinityGroup`, `Backup`, `BootVolume`, `CreateAffinityGroupPayload`, `CreateBackupPayload` - `CreateImagePayload`, `CreateNetworkAreaPayload`, `CreateNetworkPayload`, `CreateNicPayload` - `CreateSecurityGroupPayload`, `CreateServerPayload`, `CreateSnapshotPayload`, `CreateVolumePayload` - `Image`, `MachineType`, `Nic`, `PartialUpdateNetworkAreaPayload`, `PartialUpdateNetworkPayload` - `ResizeServerPayload`, `SecurityGroup`, `Server`, `ServerNetwork`, `Snapshot` - `UpdateBackupPayload`, `UpdateImagePayload`, `UpdateNicPayload`, `UpdateSecurityGroupPayload` - `UpdateServerPayload`, `UpdateSnapshotPayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass` - - **Improvement:** Update regular expression pattern for name validation to allow more flexible naming conventions + - **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods + - **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models: + - `AffinityGroup`, `Backup`, `BootVolume`, `CreateAffinityGroupPayload`, `CreateBackupPayload` + `CreateImagePayload`, `CreateNetworkAreaPayload`, `CreateNetworkPayload`, `CreateNicPayload` + `CreateSecurityGroupPayload`, `CreateServerPayload`, `CreateSnapshotPayload`, `CreateVolumePayload` + `Image`, `MachineType`, `Nic`, `PartialUpdateNetworkAreaPayload`, `PartialUpdateNetworkPayload` + `ResizeServerPayload`, `SecurityGroup`, `Server`, `ServerNetwork`, `Snapshot` + `UpdateBackupPayload`, `UpdateImagePayload`, `UpdateNicPayload`, `UpdateSecurityGroupPayload` + `UpdateServerPayload`, `UpdateSnapshotPayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass` + - **Improvement:** Update regular expression pattern for name validation to allow more flexible naming conventions ## Release (2025-06-16) - `core`: [v0.2.0](core/CHANGELOG.md#v020-2025-06-12) diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index 6e8457bfa..a91324397 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,3 +1,9 @@ +# v0.12.0 +- **Breaking Change:** `partial_update_alertrules()` method parameter renamed from `update_alertgroups_request_inner_rules_inner` to `partial_update_alertrules_request_inner` and type changed from `UpdateAlertgroupsRequestInnerRulesInner` to `PartialUpdateAlertrulesRequestInner` +- **Feature:** Field `alert` of `UpdateAlertgroupsRequestInnerRulesInner` is now optional +- **Feature:** Add `record` field to `UpdateAlertgroupsRequestInnerRulesInner` +- **Feature:** Add new models `CreateLogsAlertgroupsPayloadRulesInner` and `PartialUpdateAlertrulesRequestInner` + # v0.11.0 - **Deprecation:** The `JaegerHttpTracesUrl` field is now deprecated in all relevant models and will be removed after 9th April 2026. Use the new `JaegerHttpUrl` field instead. diff --git a/services/observability/pyproject.toml b/services/observability/pyproject.toml index 7217ec6f2..e990dad59 100644 --- a/services/observability/pyproject.toml +++ b/services/observability/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-observability" [tool.poetry] name = "stackit-observability" -version = "v0.11.0" +version = "v0.12.0" authors = [ "STACKIT Developer Tools ", ] From 818fdf07bbe448437fd7c75133dc47bd74118b49 Mon Sep 17 00:00:00 2001 From: Benjosh95 Date: Tue, 21 Oct 2025 10:33:29 +0200 Subject: [PATCH 4/7] update changelogs and version --- CHANGELOG.md | 4 ++-- services/resourcemanager/CHANGELOG.md | 3 +++ services/resourcemanager/pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b106a961..6c93b63e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,8 +20,8 @@ - **Bugfix:** Prevent year 0 timestamp issue - `objectstorage`: [v1.2.1](services/objectstorage/CHANGELOG.md#v121) - **Bugfix:** Prevent year 0 timestamp issue -- `resourcemanager`: [v0.6.1](services/resourcemanager/CHANGELOG.md#v061) - - **Bugfix:** Prevent year 0 timestamp issue +- `resourcemanager`: [v0.7.0](services/resourcemanager/CHANGELOG.md#v070) + - **Feature:** Add `ContainerSearchResult` model for container search functionality - `scf`: [v0.2.1](services/scf/CHANGELOG.md#v021) - **Bugfix:** Prevent year 0 timestamp issue - `serviceaccount`: [v0.4.2](services/serviceaccount/CHANGELOG.md#v042) diff --git a/services/resourcemanager/CHANGELOG.md b/services/resourcemanager/CHANGELOG.md index 1616cb0a9..44be44183 100644 --- a/services/resourcemanager/CHANGELOG.md +++ b/services/resourcemanager/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.7.0 +- **Feature:** Add `ContainerSearchResult` model for container search functionality + ## v0.6.1 - **Bugfix:** Prevent year 0 timestamp issue diff --git a/services/resourcemanager/pyproject.toml b/services/resourcemanager/pyproject.toml index a3b76a45f..999d85f8c 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.6.1" +version = "v0.7.0" authors = [ "STACKIT Developer Tools ", ] From fb37618eca00b551b85f1af9187009bb5c7ac349 Mon Sep 17 00:00:00 2001 From: Benjosh95 Date: Tue, 21 Oct 2025 10:41:30 +0200 Subject: [PATCH 5/7] fix changelogs --- CHANGELOG.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1178f6926..1de2d73a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,8 +25,11 @@ - **Bugfix:** Prevent year 0 timestamp issue - `objectstorage`: [v1.2.1](services/objectstorage/CHANGELOG.md#v121) - **Bugfix:** Prevent year 0 timestamp issue -- `resourcemanager`: [v0.7.0](services/resourcemanager/CHANGELOG.md#v070) - - **Feature:** Add `ContainerSearchResult` model for container search functionality +- `resourcemanager`: + - [v0.6.1](services/resourcemanager/CHANGELOG.md#v061) + - **Bugfix:** Prevent year 0 timestamp issue + - [v0.7.0](services/resourcemanager/CHANGELOG.md#v070) + - **Feature:** Add `ContainerSearchResult` model for container search functionality - `scf`: [v0.2.1](services/scf/CHANGELOG.md#v021) - **Bugfix:** Prevent year 0 timestamp issue - `serviceaccount`: [v0.4.2](services/serviceaccount/CHANGELOG.md#v042) From e5e32701d3e0581b1be51f62ce6cb81cef23dbf5 Mon Sep 17 00:00:00 2001 From: Benjosh95 Date: Tue, 21 Oct 2025 10:51:49 +0200 Subject: [PATCH 6/7] fix indentations --- CHANGELOG.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1de2d73a5..caf47b931 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -239,7 +239,7 @@ - [v0.4.0](services/alb/CHANGELOG.md#v040) - **Feature:** Add new field `load_balancer_security_group` in `LoadBalancer`, `CreateLoadBalancerPayload` and `UpdateLoadBalancerPayload` Models - [v0.3.1](services/alb/CHANGELOG.md#v031) - - **Internal:** Improve deserializing and error types + - **Internal:** Improve deserializing and error types - `authorization`: [v0.2.5](services/authorization/CHANGELOG.md#v025) - **Internal:** Improve deserializing and error types - `certificates`: [v1.0.2](services/certificates/CHANGELOG.md#v102) @@ -250,7 +250,7 @@ - [v0.5.0](services/loadbalancer/CHANGELOG.md#v050) - **Feature:** Add new field `load_balancer_security_group` in `LoadBalancer`, `CreateLoadBalancerPayload` and `UpdateLoadBalancerPayload` Models - [v0.4.1](services/loadbalancer/CHANGELOG.md#v041) - - **Internal:** Improve deserializing and error types + - **Internal:** Improve deserializing and error types - `logme`: [v0.3.2](services/logme/CHANGELOG.md#v032) - **Internal:** Improve deserializing and error types - `mariadb`: [v0.2.3](services/mariadb/CHANGELOG.md#v023) @@ -269,7 +269,7 @@ - **Feature:** Add new methods `get_logs_configs()`, `update_logs_configs()`, `get_traces_configs()`, `update_traces_configs()`, `get_metrics_storage_retention()`, `update_metrics_storage_retention()`, `get_scrape_config()`, `update_scrape_config()`, `list_acl()`, `update_acl()`, `list_alert_config_receivers()`, `list_alert_config_routes()`, `update_alert_config_receiver()`, `update_alert_config_route()`, `list_alertgroups()`, `list_alertrules()`, `list_credentials()`, `list_instances()` - **Feature:** Add new models `LogsConfig`, `LogsConfigResponse`, `TraceConfig`, `TracesConfigResponse`, `UpdateLogsConfigsPayload`, `UpdateTracesConfigsPayload` - [v0.5.1](services/observability/CHANGELOG.md#v051) - - **Internal:** Improve deserializing and error types + - **Internal:** Improve deserializing and error types - `postgresflex`: [v1.0.2](services/postgresflex/CHANGELOG.md#v102) - **Internal:** Improve deserializing and error types - `rabbitmq`: [v0.2.2](services/rabbitmq/CHANGELOG.md#v022) @@ -352,16 +352,16 @@ - **Improvement:** Add proper noqa comments for docstrings - **Improvement:** Update type annotations for better type safety - [v0.5.4](services/iaas/CHANGELOG.md#v054) - - **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods - - **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models: - - `AffinityGroup`, `Backup`, `BootVolume`, `CreateAffinityGroupPayload`, `CreateBackupPayload` - `CreateImagePayload`, `CreateNetworkAreaPayload`, `CreateNetworkPayload`, `CreateNicPayload` - `CreateSecurityGroupPayload`, `CreateServerPayload`, `CreateSnapshotPayload`, `CreateVolumePayload` - `Image`, `MachineType`, `Nic`, `PartialUpdateNetworkAreaPayload`, `PartialUpdateNetworkPayload` - `ResizeServerPayload`, `SecurityGroup`, `Server`, `ServerNetwork`, `Snapshot` - `UpdateBackupPayload`, `UpdateImagePayload`, `UpdateNicPayload`, `UpdateSecurityGroupPayload` - `UpdateServerPayload`, `UpdateSnapshotPayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass` - - **Improvement:** Update regular expression pattern for name validation to allow more flexible naming conventions + - **Improvement:** Increase max length of `machine_type` and `volume_performance_class` fields from 63 to 127 characters in API methods + - **Improvement:** Increase max length of `name` fields from 63 to 127 characters for various models: + - `AffinityGroup`, `Backup`, `BootVolume`, `CreateAffinityGroupPayload`, `CreateBackupPayload` + `CreateImagePayload`, `CreateNetworkAreaPayload`, `CreateNetworkPayload`, `CreateNicPayload` + `CreateSecurityGroupPayload`, `CreateServerPayload`, `CreateSnapshotPayload`, `CreateVolumePayload` + `Image`, `MachineType`, `Nic`, `PartialUpdateNetworkAreaPayload`, `PartialUpdateNetworkPayload` + `ResizeServerPayload`, `SecurityGroup`, `Server`, `ServerNetwork`, `Snapshot` + `UpdateBackupPayload`, `UpdateImagePayload`, `UpdateNicPayload`, `UpdateSecurityGroupPayload` + `UpdateServerPayload`, `UpdateSnapshotPayload`, `UpdateVolumePayload`, `Volume`, `VolumePerformanceClass` + - **Improvement:** Update regular expression pattern for name validation to allow more flexible naming conventions ## Release (2025-06-16) - `core`: [v0.2.0](core/CHANGELOG.md#v020-2025-06-12) From 532a079b6d9a6f3cf8f184bf0ed51d759b03441e Mon Sep 17 00:00:00 2001 From: Benjosh95 Date: Tue, 21 Oct 2025 11:30:11 +0200 Subject: [PATCH 7/7] update changelogs --- CHANGELOG.md | 2 ++ services/observability/CHANGELOG.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index caf47b931..4fbc1c276 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## Release (2025-xx-xx) - `observability`: [v0.12.0](services/observability/CHANGELOG.md#v0120) - **Breaking Change:** `partial_update_alertrules()` method parameter renamed from `update_alertgroups_request_inner_rules_inner` to `partial_update_alertrules_request_inner` and type changed from `UpdateAlertgroupsRequestInnerRulesInner` to `PartialUpdateAlertrulesRequestInner` + - **Breaking Change:** `CreateLogsAlertgroupsPayload` now uses `CreateLogsAlertgroupsPayloadRulesInner` instead of `UpdateAlertgroupsRequestInnerRulesInner` + - **Breaking Change:** `UpdateLogsAlertgroupPayload` now uses `CreateLogsAlertgroupsPayloadRulesInner` instead of `UpdateAlertgroupsRequestInnerRulesInner` - **Feature:** Field `alert` of `UpdateAlertgroupsRequestInnerRulesInner` is now optional - **Feature:** Add `record` field to `UpdateAlertgroupsRequestInnerRulesInner` - **Feature:** Add new models `CreateLogsAlertgroupsPayloadRulesInner` and `PartialUpdateAlertrulesRequestInner` diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index a91324397..53577c829 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,5 +1,7 @@ # v0.12.0 - **Breaking Change:** `partial_update_alertrules()` method parameter renamed from `update_alertgroups_request_inner_rules_inner` to `partial_update_alertrules_request_inner` and type changed from `UpdateAlertgroupsRequestInnerRulesInner` to `PartialUpdateAlertrulesRequestInner` +- **Breaking Change:** `CreateLogsAlertgroupsPayload` now uses `CreateLogsAlertgroupsPayloadRulesInner` instead of `UpdateAlertgroupsRequestInnerRulesInner` +- **Breaking Change:** `UpdateLogsAlertgroupPayload` now uses `CreateLogsAlertgroupsPayloadRulesInner` instead of `UpdateAlertgroupsRequestInnerRulesInner` - **Feature:** Field `alert` of `UpdateAlertgroupsRequestInnerRulesInner` is now optional - **Feature:** Add `record` field to `UpdateAlertgroupsRequestInnerRulesInner` - **Feature:** Add new models `CreateLogsAlertgroupsPayloadRulesInner` and `PartialUpdateAlertrulesRequestInner`