Skip to content

Commit 1c52ab6

Browse files
Generate opensearch
1 parent 3a29802 commit 1c52ab6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

services/opensearch/src/stackit/opensearch/models/instance_parameters.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class InstanceParameters(BaseModel):
7171
tls_ciphers: Optional[List[StrictStr]] = Field(
7272
default=None, description="Only Java format is supported.", alias="tls-ciphers"
7373
)
74-
tls_protocols: Optional[StrictStr] = Field(default=None, alias="tls-protocols")
74+
tls_protocols: Optional[List[StrictStr]] = Field(default=None, alias="tls-protocols")
7575
__properties: ClassVar[List[str]] = [
7676
"enable_monitoring",
7777
"graphite",
@@ -120,8 +120,9 @@ def tls_protocols_validate_enum(cls, value):
120120
if value is None:
121121
return value
122122

123-
if value not in set(["TLSv1.2", "TLSv1.3"]):
124-
raise ValueError("must be one of enum values ('TLSv1.2', 'TLSv1.3')")
123+
for i in value:
124+
if i not in set(["TLSv1.2", "TLSv1.3"]):
125+
raise ValueError("each list item must be one of ('TLSv1.2', 'TLSv1.3')")
125126
return value
126127

127128
model_config = ConfigDict(

0 commit comments

Comments
 (0)