func (client *Client) UpdateStreamContext(
	ctx context.Context, stream *graylog.Stream,
) (*ErrorInfo, error) {
	if stream == nil {
		return nil, fmt.Errorf("stream is nil")
	}
	if stream.ID == "" {
		return nil, errors.New("id is empty")
	}
	u, err := client.Endpoints().Stream(stream.ID)
	if err != nil {
		return nil, err
	}
	body := *stream
	body.ID = ""
	return client.callPut(ctx, u.String(), &body, stream)
}
// UpdateStreamContext updates a stream with a context.
UpdateStreamContext updates a stream with a context.
// UpdateStreamContext updates a stream with a context .
func (client *Client) UpdateStreamContext(
	ctx context.Context, stream *graylog.Stream,
) (*ErrorInfo, error) {
	if stream == nil {
		return nil, fmt.Errorf("stream is nil")
	}
	if stream.ID == "" {
		return nil, errors.New("id is empty")
	}
	u, err := client.Endpoints().Stream(stream.ID)
	if err != nil {
		return nil, err
	}
	body := *stream
	body.ID = ""
	return client.callPut(ctx, u.String(), &body, stream)
}
func ( client * Client ) UpdateStreamContext ( ctx context . Context , stream * graylog . Stream , ) ( * ErrorInfo , error ) { if stream == nil { return nil , fmt . Errorf ( " " ) } if stream . ID == " " { return nil , errors . New ( " " ) } u , err := client . Endpoints ( ) . Stream ( stream . ID ) if err != nil { return nil , err } body := * stream body . ID = " " return client . callPut ( ctx , u . String ( ) , & body , stream ) }
UpdateStreamContext updates a stream with a context.
UpdateStreamContext updates a stream with a context .