(c *stdapi.Context)
| 1504 | } |
| 1505 | |
| 1506 | func (s *Server) SetDBDeletionProtectionAndCreateSnapShot(c *stdapi.Context) error { |
| 1507 | app := c.Var("app") |
| 1508 | resource := c.Var("resource") |
| 1509 | snapshot := c.Var("snapshot") |
| 1510 | |
| 1511 | v, err := s.provider(c).WithContext(c.Context()).SetDBDeletionProtectionAndCreateSnapShot(app, resource, snapshot) |
| 1512 | if err != nil { |
| 1513 | return err |
| 1514 | } |
| 1515 | |
| 1516 | return c.RenderJSON(v) |
| 1517 | } |
| 1518 | |
| 1519 | func (s *Server) DeleteDB(c *stdapi.Context) error { |
| 1520 | resource := c.Var("resource") |
nothing calls this directly
no test coverage detected