// NewRemovePaperDocUser returns a new RemovePaperDocUser instance
490817
func NewRemovePaperDocUser(DocId string, Member *sharing.MemberSelector) *RemovePaperDocUser {
	s := new(RemovePaperDocUser)
	s.DocId = DocId
	s.Member = Member
	return s
}
143462
func NewPaperDocTeamInviteDetails(EventUuid string) *PaperDocTeamInviteDetails {
	s := new(PaperDocTeamInviteDetails)
	s.EventUuid = EventUuid
	return s
}
31537
func NewLoginWithPaperKey(g *libkb.GlobalContext) *LoginWithPaperKey {
	return &LoginWithPaperKey{
		Contextified: libkb.NewContextified(g),
	}
}
106599
func NewPaperDocExport(DocId string, ExportFormat *ExportFormat) *PaperDocExport {
	s := new(PaperDocExport)
	s.DocId = DocId
	s.ExportFormat = ExportFormat
	return s
}
4523
func NewPaperDevice(passphrasePrefix string) (*Device, error) {
	did, err := NewDeviceID()
	if err != nil {
		return nil, err
	}
	s := DeviceStatusActive
	desc := passphrasePrefix

	d := &Device{
		ID:          did,
		Type:        DeviceTypePaper,
		Status:      &s,
		Description: &desc,
	}
	return d, nil
}
650087
func (s *globalTaskService) taskRemoveAfter(t *task) {
	go func() {
		logTimeoutDur, err := time.ParseDuration(
			s.config.GetString(types.ConfigServerTasksLogTimeout))
		if err != nil {
			logTimeoutDur = time.Duration(time.Second * 60)
		}

		// wait to remove the task
		time.Sleep(logTimeoutDur)

		// sync access to the task map for querying its size before and after
		// executing the delete operation on it
		s.Lock()
		defer s.Unlock()

		t.ctx.WithFields(log.Fields{
			"removedAfter": logTimeoutDur,
			"tasksLen":     len(s.tasks),
		}).Debug("removing task")

		// delete the task
		delete(s.tasks, t.ID)

		t.ctx.WithField("tasksLen", len(s.tasks)).Debug("removed task")
	}()
}
158424
func NewDeleteIPAMIP(ctx *middleware.Context, handler DeleteIPAMIPHandler) *DeleteIPAMIP {
	return &DeleteIPAMIP{Context: ctx, Handler: handler}
}
1264555
func NewPaperDocViewType(Description string) *PaperDocViewType {
	s := new(PaperDocViewType)
	s.Description = Description
	return s
}
816527
func NewRemoveDOMStorageItemArgs(storageID StorageID, key string) *RemoveDOMStorageItemArgs {
	args := new(RemoveDOMStorageItemArgs)
	args.StorageID = storageID
	args.Key = key
	return args
}
868715
func (r *Store) RemoveRecipient(ctx context.Context, store, rec string) error {
	ctx, sub, _ := r.getStore(ctx, store)
	return sub.RemoveRecipient(ctx, rec)
}
711928
func (s *NicService) NewRemoveIpFromNicParams(id string) *RemoveIpFromNicParams {
	p := &RemoveIpFromNicParams{}
	p.p = make(map[string]interface{})
	p.p["id"] = id
	return p
}
513617
func NewPaperDocTrashedDetails(EventUuid string) *PaperDocTrashedDetails {
	s := new(PaperDocTrashedDetails)
	s.EventUuid = EventUuid
	return s
}
511440
func NewRemoveTemplateArg(TemplateId string) *RemoveTemplateArg {
	s := new(RemoveTemplateArg)
	s.TemplateId = TemplateId
	return s
}
794252
func (s *ServerRPC) ImageRemove(ctx context.Context, req *types.ImageRemoveRequest) (*types.ImageRemoveResponse, error) {
	resp, err := s.daemon.CmdImageDelete(req.Image, req.Force, req.Prune)
	if err != nil {
		return nil, err
	}

	return &types.ImageRemoveResponse{
		Images: resp,
	}, nil
}
185982
func NewRemoveInstrumentationBreakpointArgs(eventName string) *RemoveInstrumentationBreakpointArgs {
	args := new(RemoveInstrumentationBreakpointArgs)
	args.EventName = eventName
	return args
}
242679
func NewCleanupWorker(w worker.Worker, cleanup func()) worker.Worker {
	return &CleanupWorker{
		Worker:  w,
		cleanup: cleanup,
	}
}
602872
func NewPaperDocUntrashedType(Description string) *PaperDocUntrashedType {
	s := new(PaperDocUntrashedType)
	s.Description = Description
	return s
}