func (client *Client) DeleteStreamRuleContext(
	ctx context.Context, streamID, ruleID string,
) (*ErrorInfo, error) {
	// DELETE /streams/{streamid}/rules/{streamRuleID} Delete a stream rule
	if streamID == "" {
		return nil, errors.New("stream id is required")
	}
	if ruleID == "" {
		return nil, errors.New("stream rule id is required")
	}
	u, err := client.Endpoints().StreamRule(streamID, ruleID)
	if err != nil {
		return nil, err
	}
	return client.callDelete(ctx, u.String(), nil, nil)
}
// DeleteStreamRuleContext deletes a stream rule with a context
DeleteStreamRuleContext deletes a stream rule with a context
// DeleteStreamRuleContext deletes a stream rule with a context
func (client *Client) DeleteStreamRuleContext(
	ctx context.Context, streamID, ruleID string,
) (*ErrorInfo, error) {
	if streamID == "" {
		return nil, errors.New("stream id is required")
	}
	if ruleID == "" {
		return nil, errors.New("stream rule id is required")
	}
	u, err := client.Endpoints().StreamRule(streamID, ruleID)
	if err != nil {
		return nil, err
	}
	return client.callDelete(ctx, u.String(), nil, nil)
}
func ( client * Client ) DeleteStreamRuleContext ( ctx context . Context , streamID , ruleID string , ) ( * ErrorInfo , error ) { if streamID == " " { return nil , errors . New ( " " ) } if ruleID == " " { return nil , errors . New ( " " ) } u , err := client . Endpoints ( ) . StreamRule ( streamID , ruleID ) if err != nil { return nil , err } return client . callDelete ( ctx , u . String ( ) , nil , nil ) }
DeleteStreamRuleContext deletes a stream rule with a context
DeleteStreamRuleContext deletes a stream rule with a context
// DELETE /streams/{streamid}/rules/{streamRuleID} Delete a stream rule