1717from riocli .constants import ApplyResult
1818from riocli .exceptions import ResourceNotFound
1919from riocli .model import Model
20- from riocli . v2client . error import HttpAlreadyExistsError , HttpNotFoundError
20+ from rapyuta_io_sdk_v2 . exceptions import HttpAlreadyExistsError , HttpNotFoundError
2121
2222
2323class StaticRoute (Model ):
@@ -31,10 +31,10 @@ def apply(self, *args, **kwargs) -> ApplyResult:
3131 static_route = unmunchify (self )
3232
3333 try :
34- client .create_static_route (static_route )
34+ client .create_staticroute (static_route )
3535 return ApplyResult .CREATED
3636 except HttpAlreadyExistsError :
37- client .update_static_route (self .metadata .name , static_route )
37+ client .update_staticroute (self .metadata .name , static_route )
3838 return ApplyResult .UPDATED
3939
4040 def delete (self , * args , ** kwargs ) -> None :
@@ -43,6 +43,6 @@ def delete(self, *args, **kwargs) -> None:
4343 short_id = Configuration ().organization_short_id
4444
4545 try :
46- client .delete_static_route (f"{ self .metadata .name } -{ short_id } " )
46+ client .delete_staticroute (f"{ self .metadata .name } -{ short_id } " )
4747 except HttpNotFoundError :
4848 raise ResourceNotFound
0 commit comments