@@ -28,7 +28,7 @@ class ACLBindingRule extends AbstractModel
2828 public string $ Description ;
2929 public string $ AuthMethod ;
3030 public string $ Selector ;
31- public string $ BindType ;
31+ public BindingRuleBindType $ BindType ;
3232 public string $ BindName ;
3333 public int $ CreateIndex ;
3434 public int $ ModifyIndex ;
@@ -39,7 +39,7 @@ public function __construct(
3939 string $ Description = '' ,
4040 string $ AuthMethod = '' ,
4141 string $ Selector = '' ,
42- string $ BindType = '' ,
42+ string | BindingRuleBindType $ BindType = BindingRuleBindType:: UNDEFINED ,
4343 string $ BindName = '' ,
4444 int $ CreateIndex = 0 ,
4545 int $ ModifyIndex = 0 ,
@@ -49,7 +49,7 @@ public function __construct(
4949 $ this ->Description = $ Description ;
5050 $ this ->AuthMethod = $ AuthMethod ;
5151 $ this ->Selector = $ Selector ;
52- $ this ->BindType = $ BindType ;
52+ $ this ->BindType = ( $ BindType instanceof BindingRuleBindType) ? $ BindType : BindingRuleBindType:: from ( $ BindType ) ;
5353 $ this ->BindName = $ BindName ;
5454 $ this ->CreateIndex = $ CreateIndex ;
5555 $ this ->ModifyIndex = $ ModifyIndex ;
@@ -100,12 +100,12 @@ public function setSelector(string $Selector): self
100100 return $ this ;
101101 }
102102
103- public function getBindType (): string
103+ public function getBindType (): BindingRuleBindType
104104 {
105105 return $ this ->BindType ;
106106 }
107107
108- public function setBindType (string $ BindType ): self
108+ public function setBindType (BindingRuleBindType $ BindType ): self
109109 {
110110 $ this ->BindType = $ BindType ;
111111 return $ this ;
0 commit comments