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):
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 (
You can’t perform that action at this time.
0 commit comments