File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
services/opensearch/src/stackit/opensearch/models Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class InstanceParameters(BaseModel):
71
71
tls_ciphers : Optional [List [StrictStr ]] = Field (
72
72
default = None , description = "Only Java format is supported." , alias = "tls-ciphers"
73
73
)
74
- tls_protocols : Optional [StrictStr ] = Field (default = None , alias = "tls-protocols" )
74
+ tls_protocols : Optional [List [ StrictStr ] ] = Field (default = None , alias = "tls-protocols" )
75
75
__properties : ClassVar [List [str ]] = [
76
76
"enable_monitoring" ,
77
77
"graphite" ,
@@ -120,8 +120,9 @@ def tls_protocols_validate_enum(cls, value):
120
120
if value is None :
121
121
return value
122
122
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')" )
125
126
return value
126
127
127
128
model_config = ConfigDict (
You can’t perform that action at this time.
0 commit comments