func (client *Client) UpdateIndexSetContext(
	ctx context.Context, prms *graylog.IndexSetUpdateParams,
) (*graylog.IndexSet, *ErrorInfo, error) {
	if prms == nil {
		return nil, nil, fmt.Errorf("index set is nil")
	}
	if prms.ID == "" {
		return nil, nil, errors.New("id is empty")
	}
	u, err := client.Endpoints().IndexSet(prms.ID)
	if err != nil {
		return nil, nil, err
	}
	a := *prms
	a.ID = ""
	is := &graylog.IndexSet{}
	ei, err := client.callPut(ctx, u.String(), &a, is)
	return is, ei, err
}
// UpdateIndexSetContext updates a given Index Set with a context.
UpdateIndexSetContext updates a given Index Set with a context.
// UpdateIndexSetContext updates a given Index Set with a context .
func (client *Client) UpdateIndexSetContext(
	ctx context.Context, prms *graylog.IndexSetUpdateParams,
) (*graylog.IndexSet, *ErrorInfo, error) {
	if prms == nil {
		return nil, nil, fmt.Errorf("index set is nil")
	}
	if prms.ID == "" {
		return nil, nil, errors.New("id is empty")
	}
	u, err := client.Endpoints().IndexSet(prms.ID)
	if err != nil {
		return nil, nil, err
	}
	a := *prms
	a.ID = ""
	is := &graylog.IndexSet{}
	ei, err := client.callPut(ctx, u.String(), &a, is)
	return is, ei, err
}
func ( client * Client ) UpdateIndexSetContext ( ctx context . Context , prms * graylog . IndexSetUpdateParams , ) ( * graylog . IndexSet , * ErrorInfo , error ) { if prms == nil { return nil , nil , fmt . Errorf ( " " ) } if prms . ID == " " { return nil , nil , errors . New ( " " ) } u , err := client . Endpoints ( ) . IndexSet ( prms . ID ) if err != nil { return nil , nil , err } a := * prms a . ID = " " is := & graylog . IndexSet { } ei , err := client . callPut ( ctx , u . String ( ) , & a , is ) return is , ei , err }
UpdateIndexSetContext updates a given Index Set with a context.
UpdateIndexSetContext updates a given Index Set with a context .