func (client *HeaderClient) paramByteCreateRequest(ctx context.Context, scenario string, value []byte, options *HeaderParamByteOptions) (*policy.Request, error) {
	urlPath := "/header/param/prim/byte"
	req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("scenario", scenario)
	req.Raw().Header.Set("value", base64.StdEncoding.EncodeToString(value))
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
paramByteCreateRequest creates the ParamByte request.
package headergroup
import (
	"context"
	"encoding/base64"
	"fmt"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
	"net/http"
	"strconv"
	"time"
)
type HeaderClient struct {
	con *Connection
}
func NewHeaderClient(con *Connection) *HeaderClient {
	return &HeaderClient{con: con}
}
func (client *HeaderClient) CustomRequestID(ctx context.Context, options *HeaderCustomRequestIDOptions) (HeaderCustomRequestIDResponse, error) {
	req, err := client.customRequestIDCreateRequest(ctx, options)
	if err != nil {
		return HeaderCustomRequestIDResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return HeaderCustomRequestIDResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return HeaderCustomRequestIDResponse{}, client.customRequestIDHandleError(resp)
	}
	return HeaderCustomRequestIDResponse{RawResponse: resp}, nil
}
func (client *HeaderClient) customRequestIDCreateRequest(ctx context.Context, options *HeaderCustomRequestIDOptions) (*policy.Request, error) {
	urlPath := "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0"
	req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *HeaderClient) customRequestIDHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *HeaderClient) ParamBool(ctx context.Context, scenario string, value bool, options *HeaderParamBoolOptions) (HeaderParamBoolResponse, error) {
	req, err := client.paramBoolCreateRequest(ctx, scenario, value, options)
	if err != nil {
		return HeaderParamBoolResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return HeaderParamBoolResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return HeaderParamBoolResponse{}, client.paramBoolHandleError(resp)
	}
	return HeaderParamBoolResponse{RawResponse: resp}, nil
}
func (client *HeaderClient) paramBoolCreateRequest(ctx context.Context, scenario string, value bool, options *HeaderParamBoolOptions) (*policy.Request, error) {
	urlPath := "/header/param/prim/bool"
	req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("scenario", scenario)
	req.Raw().Header.Set("value", strconv.FormatBool(value))
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *HeaderClient) paramBoolHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	errType := Error{raw: string(body)}
	if err := runtime.UnmarshalAsJSON(resp, &errType); err != nil {
		return runtime.NewResponseError(fmt.Errorf("%s\n%s", string(body), err), resp)
	}
	return runtime.NewResponseError(&errType, resp)
}
func (client *HeaderClient) ParamByte(ctx context.Context, scenario string, value []byte, options *HeaderParamByteOptions) (HeaderParamByteResponse, error) {
	req, err := client.paramByteCreateRequest(ctx, scenario, value, options)
	if err != nil {
		return HeaderParamByteResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return HeaderParamByteResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return HeaderParamByteResponse{}, client.paramByteHandleError(resp)
	}
	return HeaderParamByteResponse{RawResponse: resp}, nil
}