@@ -29,30 +29,36 @@ class ACLReplicationStatus extends AbstractType
2929 public bool $ Enabled ;
3030 public bool $ Running ;
3131 public string $ SourceDatacenter ;
32+ public string $ ReplicationType ;
3233 public int $ ReplicatedIndex ;
3334 public int $ ReplicatedRoleIndex ;
3435 public int $ ReplicatedTokenIndex ;
3536 public Time \Time $ LastSuccess ;
3637 public Time \Time $ LastError ;
38+ public string $ LastErrorMessage ;
3739
3840 public function __construct (
3941 bool $ Enabled = false ,
4042 bool $ Running = false ,
4143 string $ SourceDatacenter = '' ,
44+ string $ ReplicationType = '' ,
4245 int $ ReplicatedIndex = 0 ,
4346 int $ ReplicatedRoleIndex = 0 ,
4447 int $ ReplicatedTokenIndex = 0 ,
4548 null |Time \Time $ LastSuccess = null ,
4649 null |Time \Time $ LastError = null ,
50+ string $ LastErrorMessage = '' ,
4751 ) {
4852 $ this ->Enabled = $ Enabled ;
4953 $ this ->Running = $ Running ;
5054 $ this ->SourceDatacenter = $ SourceDatacenter ;
55+ $ this ->ReplicationType = $ ReplicationType ;
5156 $ this ->ReplicatedIndex = $ ReplicatedIndex ;
5257 $ this ->ReplicatedRoleIndex = $ ReplicatedRoleIndex ;
5358 $ this ->ReplicatedTokenIndex = $ ReplicatedTokenIndex ;
5459 $ this ->LastSuccess = $ LastSuccess ?? Time::New ();
5560 $ this ->LastError = $ LastError ?? Time::New ();
61+ $ this ->LastErrorMessage = $ LastErrorMessage ;
5662}
5763
5864 public function isEnabled (): bool
@@ -88,6 +94,17 @@ public function setSourceDatacenter(string $SourceDatacenter): self
8894 return $ this ;
8995 }
9096
97+ public function getReplicationType (): string
98+ {
99+ return $ this ->ReplicationType ;
100+ }
101+
102+ public function setReplicationType (string $ ReplicationType ): self
103+ {
104+ $ this ->ReplicationType = $ ReplicationType ;
105+ return $ this ;
106+ }
107+
91108 public function getReplicatedIndex (): int
92109 {
93110 return $ this ->ReplicatedIndex ;
@@ -143,6 +160,17 @@ public function setLastError(Time\Time $LastError): self
143160 return $ this ;
144161 }
145162
163+ public function getLastErrorMessage (): string
164+ {
165+ return $ this ->LastErrorMessage ;
166+ }
167+
168+ public function setLastErrorMessage (string $ LastErrorMessage ): self
169+ {
170+ $ this ->LastErrorMessage = $ LastErrorMessage ;
171+ return $ this ;
172+ }
173+
146174 public static function jsonUnserialize (\stdClass $ decoded ): self
147175 {
148176 $ n = new self ();
@@ -164,11 +192,13 @@ public function jsonSerialize(): \stdClass
164192 $ out ->Enabled = $ this ->Enabled ;
165193 $ out ->Running = $ this ->Running ;
166194 $ out ->SourceDatacenter = $ this ->SourceDatacenter ;
195+ $ out ->ReplicationType = $ this ->ReplicationType ;
167196 $ out ->ReplicatedIndex = $ this ->ReplicatedIndex ;
168197 $ out ->ReplicatedRoleIndex = $ this ->ReplicatedRoleIndex ;
169198 $ out ->ReplicatedTokenIndex = $ this ->ReplicatedTokenIndex ;
170199 $ out ->LastSuccess = $ this ->LastSuccess ->format (DATE_RFC3339 );
171200 $ out ->LastError = $ this ->LastError ->format (DATE_RFC3339 );
201+ $ out ->LastErrorMessage = $ this ->LastErrorMessage ;
172202 return $ out ;
173203 }
174204}
0 commit comments