From e8ad0d98b7adc9a202ad2247849492bad1b2f30c Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 23 Jan 2025 13:34:37 +0000 Subject: [PATCH] Generate logme --- services/logme/src/stackit/logme/api/default_api.py | 12 ++++++------ .../src/stackit/logme/models/instance_parameters.py | 13 ------------- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/services/logme/src/stackit/logme/api/default_api.py b/services/logme/src/stackit/logme/api/default_api.py index fd4cfa4e..0394bd09 100644 --- a/services/logme/src/stackit/logme/api/default_api.py +++ b/services/logme/src/stackit/logme/api/default_api.py @@ -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)], @@ -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 @@ -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)], @@ -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 @@ -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)], @@ -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 diff --git a/services/logme/src/stackit/logme/models/instance_parameters.py b/services/logme/src/stackit/logme/models/instance_parameters.py index b4c03c15..1ce62495 100644 --- a/services/logme/src/stackit/logme/models/instance_parameters.py +++ b/services/logme/src/stackit/logme/models/instance_parameters.py @@ -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", @@ -109,7 +108,6 @@ class InstanceParameters(BaseModel): "opensearch-tls-protocols", "sgw_acl", "syslog", - "syslog-use-udp", ] @field_validator("opensearch_tls_ciphers") @@ -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, @@ -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