package migrationAPI import ( "net/http" migrationMongo "github.rackspace.com/DCM/migration/pkg/collection/mongo" ) // NotMovingGroupCreate creates a not-moving group using metadata from an existing move group func (c *Client) NotMovingGroupCreate(payload migrationMongo.CreateNMGroupPayload, options ...*Options) (*BasicResponse, error) { opts := processOptions(options...) req, err := c.newRequest(c.URL+"/not_moving/create", http.MethodPost, payload, opts) if err != nil { return nil, err } resp := new(BasicResponse) return resp, c.do(req, resp, opts) } // NotMovingGroupUpdate updates a device's move group to use the referenced not-moving group func (c *Client) NotMovingGroupUpdate(payload migrationMongo.UpdateNMGroupPayload, options ...*Options) (*BasicResponse, error) { opts := processOptions(options...) req, err := c.newRequest(c.URL+"/not_moving/update", http.MethodPost, payload, opts) if err != nil { return nil, err } resp := new(BasicResponse) return resp, c.do(req, resp, opts) }