Skip to content

Commit 0d7a1a3

Browse files
Merge branch 'main' into generator-bot-23059610336/opensearch
2 parents 24bbd8a + 9b5d3b7 commit 0d7a1a3

File tree

214 files changed

+1990
-1075
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+1990
-1075
lines changed

CHANGELOG.md

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
## Release (2026-xx-xx)
22

3-
- `serviceaccount`: [v0.6.0](services/kms/CHANGELOG.md#v060)
4-
- **Breaking Change:** rename `CreateFederatedIdentityProviderResponse` to `FederatedIdentityProvider` and update file path accordingly
5-
- **Breaking Change:** rename `CreateFederatedIdentityProviderResponseAssertionsInner` to `FederatedIdentityProviderAssertionsInner` and update file path accordingly
6-
- **Feature:** add `id` for `FederatedIdentityProvider`
3+
- `serviceaccount`:
4+
- [v0.6.1](services/serviceaccount/CHANGELOG.md#v061)
5+
- **Feature:** client now supports UUID and decimal types
6+
- **Bugfix:** timeouts now passed to requests library
7+
- [v0.6.0](services/kms/CHANGELOG.md#v060)
8+
- **Breaking Change:** rename `CreateFederatedIdentityProviderResponse` to `FederatedIdentityProvider` and update file path accordingly
9+
- **Breaking Change:** rename `CreateFederatedIdentityProviderResponseAssertionsInner` to `FederatedIdentityProviderAssertionsInner` and update file path accordingly
10+
- **Feature:** add `id` for `FederatedIdentityProvider`
11+
- `ske`: [v1.7.0](services/ske/CHANGELOG.md#v170)
12+
- **Feature:** New model `Access`
13+
- **Feature:** New model `IDPKubeconfig`
14+
- **Feature:** Add attribute `access` of type `Access` to model `Cluster`
15+
- **Feature:** New API client methods: `get_idp_kubeconfig`, `get_idp_kubeconfig_with_http_info`, `get_idp_kubeconfig_without_preload_content`, `_get_idp_kubeconfig_serialize`
716
- `kms`: [v0.8.0](services/kms/CHANGELOG.md#v080)
817
- **Breaking Change:** Switch from regional to global API server URL (region can't be set via `Configuration` / env-variable anymore).
918
- `intake`: [v0.5.0](services/intake/CHANGELOG.md#v050)
@@ -20,12 +29,45 @@
2029
- **Breaking change:** Renamed `TargetPoolTlsConfig` to `TlsConfig`
2130
- `loadbalancer`: [v0.9.0](services/loadbalancer/CHANGELOG.md#v090)
2231
- **Feature:** Add new fields `AltPort` and `HttpHealthCheck` to `ActiveHealthCheck`
32+
- `postresflex`: [v1.2.1](services/postgresflex/CHANGELOG.md#v121)
33+
- **Feature:** client now supports UUID and decimal types
34+
- **Bugfix:** timeouts now passed to requests library
35+
- `rabbitmq`: [v0.4.1](services/rabbitmq/CHANGELOG.md#v041)
36+
- **Feature:** client now supports UUID and decimal types
37+
- **Bugfix:** timeouts now passed to requests library
38+
- `redis`: [v0.3.1](services/redis/CHANGELOG.md#v031)
39+
- **Feature:** client now supports UUID and decimal types
40+
- **Bugfix:** timeouts now passed to requests library
41+
- `resourcemanager`: [v0.7.1](services/resourcemanager/CHANGELOG.md#v071)
42+
- **Feature:** client now supports UUID and decimal types
43+
- **Bugfix:** timeouts now passed to requests library
44+
- `runcommand`: [v1.1.2](services/runcommand/CHANGELOG.md#v112)
45+
- **Feature:** client now supports UUID and decimal types
46+
- **Bugfix:** timeouts now passed to requests library
47+
- `scf`: [v0.4.1](services/scf/CHANGELOG.md#v041)
48+
- **Feature:** client now supports UUID and decimal types
49+
- **Bugfix:** timeouts now passed to requests library
2350
- `sfs`: [v0.3.0](services/sfs/CHANGELOG.md#v030)
2451
- **Breaking change:** The `name` and `spaceHardLimitGigabytes` fields are now marked as required for `ShareExportPayload`, `SharePayload`.
52+
- `secretsmanager`: [v0.4.1](services/secretsmanager/CHANGELOG.md#v041)
53+
- **Feature:** client now supports UUID and decimal types
54+
- **Bugfix:** timeouts now passed to requests library
2555
- `serviceaccount`: [v0.5.0](services/serviceaccount/CHANGELOG.md#v050)
2656
- **Feature:** add support for Federated Identity Providers
2757
- new operations: `CreateFederatedIdentityProvider`, `DeleteServiceFederatedIdentityProvider`, `ListFederatedIdentityProviders`,`PartialUpdateServiceAccountFederatedIdentityProvider`
2858
- new models: `CreateFederatedIdentityProviderPayload`, `CreateFederatedIdentityProviderPayloadAssertionsInner`, `CreateFederatedIdentityProviderResponse`, `CreateFederatedIdentityProviderResponseAssertionsInner`, `FederatedListFederatedIdentityProvidersResponse`, `PartialUpdateServiceAccountFederatedIdentityProviderPayload`
59+
- `serviceenablement`: [v1.1.2](services/serviceenablement/CHANGELOG.md#v112)
60+
- **Feature:** client now supports UUID and decimal types
61+
- **Bugfix:** timeouts now passed to requests library
62+
- `serverbackup`: [v1.1.2](services/serverbackup/CHANGELOG.md#v112)
63+
- **Feature:** client now supports UUID and decimal types
64+
- **Bugfix:** timeouts now passed to requests library
65+
- `serverupdate`: [v1.1.1](services/serverupdate/CHANGELOG.md#v111)
66+
- **Feature:** client now supports UUID and decimal types
67+
- **Bugfix:** timeouts now passed to requests library
68+
- `sqlserverflex`: [v1.1.2](services/sqlserverflex/CHANGELOG.md#v112)
69+
- **Feature:** client now supports UUID and decimal types
70+
- **Bugfix:** timeouts now passed to requests library
2971
- `observability`: [v0.13.0](services/observability/CHANGELOG.md#v0130)
3072
- **Feature:** manage alert records
3173
- New API client methods: `create_alert_record`, `delete_alert_record`, `delete_alert_records`, `get_alert_record`, `list_alert_records`, `update_alert_record`, `partial_update_alert_records`

services/postgresflex/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.2.1
2+
- **Feature:** client now supports UUID and decimal types
3+
- **Bugfix:** timeouts now passed to requests library
4+
15
## v1.2.0
26
- **Breaking Change:** The attribute type for `PartialUpdateInstancePayload` and `UpdateInstancePayload` changed from `Storage` to `StorageUpdate`.
37
- **Deprecation:** `StorageUpdate`: updating the performance class field is not possible.

services/postgresflex/oas_commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0e64886dd0847341800d7191ed193b75413be998

services/postgresflex/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stackit-postgresflex"
3-
version = "v1.2.0"
3+
version = "v1.2.1"
44
description = "STACKIT PostgreSQL Flex API"
55
authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
66
requires-python = ">=3.9,<4.0"

services/postgresflex/src/stackit/postgresflex/api_client.py

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
""" # noqa: E501
1414

1515
import datetime
16+
import decimal
1617
import json
1718
import mimetypes
1819
import os
1920
import re
2021
import tempfile
22+
import uuid
2123
from enum import Enum
2224
from typing import Dict, List, Optional, Tuple, Union
2325
from urllib.parse import quote
@@ -64,8 +66,10 @@ class ApiClient:
6466
"bool": bool,
6567
"date": datetime.date,
6668
"datetime": datetime.datetime,
69+
"decimal": decimal.Decimal,
6770
"object": object,
6871
}
72+
_pool = None
6973

7074
def __init__(self, configuration, header_name=None, header_value=None, cookie=None) -> None:
7175
self.config: Configuration = configuration
@@ -268,7 +272,7 @@ def response_deserialize(
268272
return_data = self.__deserialize_file(response_data)
269273
elif response_type is not None:
270274
match = None
271-
content_type = response_data.getheader("content-type")
275+
content_type = response_data.headers.get("content-type")
272276
if content_type is not None:
273277
match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
274278
encoding = match.group(1) if match else "utf-8"
@@ -285,7 +289,7 @@ def response_deserialize(
285289
return ApiResponse(
286290
status_code=response_data.status,
287291
data=return_data,
288-
headers=response_data.getheaders(),
292+
headers=response_data.headers,
289293
raw_data=response_data.data,
290294
)
291295

@@ -297,6 +301,7 @@ def sanitize_for_serialization(self, obj):
297301
If obj is str, int, long, float, bool, return directly.
298302
If obj is datetime.datetime, datetime.date
299303
convert to string in iso8601 format.
304+
If obj is decimal.Decimal return string representation.
300305
If obj is list, sanitize each element in the list.
301306
If obj is dict, return the dict.
302307
If obj is OpenAPI model, return the properties dict.
@@ -312,12 +317,16 @@ def sanitize_for_serialization(self, obj):
312317
return obj.get_secret_value()
313318
elif isinstance(obj, self.PRIMITIVE_TYPES):
314319
return obj
320+
elif isinstance(obj, uuid.UUID):
321+
return str(obj)
315322
elif isinstance(obj, list):
316323
return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj]
317324
elif isinstance(obj, tuple):
318325
return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj)
319326
elif isinstance(obj, (datetime.datetime, datetime.date)):
320327
return obj.isoformat()
328+
elif isinstance(obj, decimal.Decimal):
329+
return str(obj)
321330

322331
elif isinstance(obj, dict):
323332
obj_dict = obj
@@ -327,7 +336,7 @@ def sanitize_for_serialization(self, obj):
327336
# and attributes which value is not None.
328337
# Convert attribute name to json key in
329338
# model definition for request.
330-
if hasattr(obj, "to_dict") and callable(obj.to_dict):
339+
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
331340
obj_dict = obj.to_dict()
332341
else:
333342
obj_dict = obj.__dict__
@@ -355,7 +364,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti
355364
data = json.loads(response_text)
356365
except ValueError:
357366
data = response_text
358-
elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE):
367+
elif re.match(r"^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE):
359368
if response_text == "":
360369
data = ""
361370
else:
@@ -401,12 +410,14 @@ def __deserialize(self, data, klass):
401410

402411
if klass in self.PRIMITIVE_TYPES:
403412
return self.__deserialize_primitive(data, klass)
404-
elif klass == object:
413+
elif klass is object:
405414
return self.__deserialize_object(data)
406-
elif klass == datetime.date:
415+
elif klass is datetime.date:
407416
return self.__deserialize_date(data)
408-
elif klass == datetime.datetime:
417+
elif klass is datetime.datetime:
409418
return self.__deserialize_datetime(data)
419+
elif klass is decimal.Decimal:
420+
return decimal.Decimal(data)
410421
elif issubclass(klass, Enum):
411422
return self.__deserialize_enum(data, klass)
412423
else:
@@ -554,12 +565,14 @@ def __deserialize_file(self, response):
554565
os.close(fd)
555566
os.remove(path)
556567

557-
content_disposition = response.getheader("Content-Disposition")
568+
content_disposition = response.headers.get("Content-Disposition")
558569
if content_disposition:
559570
m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition)
560571
if m is None:
561572
raise ValueError("Unexpected 'content-disposition' header value")
562-
filename = m.group(1)
573+
filename = os.path.basename(m.group(1)) # Strip any directory traversal
574+
if filename in ("", ".", ".."): # fall back to tmp filename
575+
filename = os.path.basename(path)
563576
path = os.path.join(os.path.dirname(path), filename)
564577

565578
with open(path, "wb") as f:

services/postgresflex/src/stackit/postgresflex/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __init__(
130130
self.body = http_resp.data.decode("utf-8")
131131
except Exception: # noqa: S110
132132
pass
133-
self.headers = http_resp.getheaders()
133+
self.headers = http_resp.headers
134134

135135
@classmethod
136136
def from_response(

services/postgresflex/src/stackit/postgresflex/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

16-
1716
# import models into model package
1817
from stackit.postgresflex.models.acl import ACL
1918
from stackit.postgresflex.models.api_configuration import ApiConfiguration

services/postgresflex/src/stackit/postgresflex/models/api_extension_config_load_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]:
7474
# override the default output from pydantic by calling `to_dict()` of each item in configuration (list)
7575
_items = []
7676
if self.configuration:
77-
for _item in self.configuration:
78-
if _item:
79-
_items.append(_item.to_dict())
77+
for _item_configuration in self.configuration:
78+
if _item_configuration:
79+
_items.append(_item_configuration.to_dict())
8080
_dict["configuration"] = _items
8181
return _dict
8282

services/postgresflex/src/stackit/postgresflex/models/api_extension_configure_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]:
7474
# override the default output from pydantic by calling `to_dict()` of each item in configuration (list)
7575
_items = []
7676
if self.configuration:
77-
for _item in self.configuration:
78-
if _item:
79-
_items.append(_item.to_dict())
77+
for _item_configuration in self.configuration:
78+
if _item_configuration:
79+
_items.append(_item_configuration.to_dict())
8080
_dict["configuration"] = _items
8181
return _dict
8282

services/postgresflex/src/stackit/postgresflex/models/api_installed_list_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ def to_dict(self) -> Dict[str, Any]:
7272
# override the default output from pydantic by calling `to_dict()` of each item in installed (list)
7373
_items = []
7474
if self.installed:
75-
for _item in self.installed:
76-
if _item:
77-
_items.append(_item.to_dict())
75+
for _item_installed in self.installed:
76+
if _item_installed:
77+
_items.append(_item_installed.to_dict())
7878
_dict["installed"] = _items
7979
return _dict
8080

0 commit comments

Comments
 (0)