Skip to content

Commit

Permalink
Generator: Update SDK /services/logme (#629)
Browse files Browse the repository at this point in the history
* Generate logme

* Add changelog

Signed-off-by: Alexander Dahmen <[email protected]>

---------

Signed-off-by: Alexander Dahmen <[email protected]>
Co-authored-by: Alexander Dahmen <[email protected]>
  • Loading branch information
stackit-pipeline and Fyusel authored Feb 6, 2025
1 parent 34c0a9f commit 46227ba
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 20 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Release (2025-XX-XX)

- `logme`: [v0.3.0](services/logme/CHANGELOG.md#v030-2025-02-05)
- **Breaking Change:** Remove mistakenly implemented `syslog-use-udp`. Does not exist.
- `serverupdate`: [v0.3.0](services/serverupdate/CHANGELOG.md#v030-2025-02-06)
- **Breaking Change:**: Remove field `BackupProperties` from `CreateUpdatePayload` model
- **Fix**: Remove field `Id` from `CreateUpdateSchedulePayload` model
Expand Down
4 changes: 4 additions & 0 deletions services/logme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.3.0 (2025-02-05)

- **Breaking Change:** Remove mistakenly implemented `syslog-use-udp`. Does not exist.

## v0.2.1 (2025-01-14)

- **Bugfix**: `configuration.py` region adjustment was missing
Expand Down
2 changes: 1 addition & 1 deletion services/logme/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-logme"

[tool.poetry]
name = "stackit-logme"
version = "v0.2.1"
version = "v0.3.0"
authors = [
"STACKIT Developer Tools <[email protected]>",
]
Expand Down
12 changes: 6 additions & 6 deletions services/logme/src/stackit/logme/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3039,7 +3039,7 @@ def _list_instances_serialize(
@validate_call
def list_offerings(
self,
project_id: StrictStr,
project_id: Annotated[StrictStr, Field(description="Project id on which user has permissions")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -3054,7 +3054,7 @@ def list_offerings(
Get the service offerings that the service broker offers.
:param project_id: (required)
:param project_id: Project id on which user has permissions (required)
:type project_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -3099,7 +3099,7 @@ def list_offerings(
@validate_call
def list_offerings_with_http_info(
self,
project_id: StrictStr,
project_id: Annotated[StrictStr, Field(description="Project id on which user has permissions")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -3114,7 +3114,7 @@ def list_offerings_with_http_info(
Get the service offerings that the service broker offers.
:param project_id: (required)
:param project_id: Project id on which user has permissions (required)
:type project_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -3159,7 +3159,7 @@ def list_offerings_with_http_info(
@validate_call
def list_offerings_without_preload_content(
self,
project_id: StrictStr,
project_id: Annotated[StrictStr, Field(description="Project id on which user has permissions")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -3174,7 +3174,7 @@ def list_offerings_without_preload_content(
Get the service offerings that the service broker offers.
:param project_id: (required)
:param project_id: Project id on which user has permissions (required)
:type project_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down
13 changes: 0 additions & 13 deletions services/logme/src/stackit/logme/models/instance_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class InstanceParameters(BaseModel):
description="Comma separated list of IP networks in CIDR notation which are allowed to access this instance.",
)
syslog: Optional[List[StrictStr]] = None
syslog_use_udp: Optional[StrictStr] = Field(default=None, alias="syslog-use-udp")
__properties: ClassVar[List[str]] = [
"enable_monitoring",
"fluentd-tcp",
Expand All @@ -109,7 +108,6 @@ class InstanceParameters(BaseModel):
"opensearch-tls-protocols",
"sgw_acl",
"syslog",
"syslog-use-udp",
]

@field_validator("opensearch_tls_ciphers")
Expand All @@ -123,16 +121,6 @@ def opensearch_tls_ciphers_validate_enum(cls, value):
raise ValueError("each list item must be one of ('TLSv1.2', 'TLSv1.3')")
return value

@field_validator("syslog_use_udp")
def syslog_use_udp_validate_enum(cls, value):
"""Validates the enum"""
if value is None:
return value

if value not in set(["yes", "no"]):
raise ValueError("must be one of enum values ('yes', 'no')")
return value

model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
Expand Down Expand Up @@ -223,7 +211,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"opensearch-tls-protocols": obj.get("opensearch-tls-protocols"),
"sgw_acl": obj.get("sgw_acl"),
"syslog": obj.get("syslog"),
"syslog-use-udp": obj.get("syslog-use-udp"),
}
)
return _obj

0 comments on commit 46227ba

Please sign in to comment.