func (client *SkipURLEncodingClient) getMethodQueryValidCreateRequest(ctx context.Context, q1 string, options *SkipURLEncodingGetMethodQueryValidOptions) (*policy.Request, error) {
	urlPath := "/azurespecials/skipUrlEncoding/method/query/valid"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	unencodedParams := []string{}
	unencodedParams = append(unencodedParams, "q1="+q1)
	req.Raw().URL.RawQuery = strings.Join(unencodedParams, "&")
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
getMethodQueryValidCreateRequest creates the GetMethodQueryValid request.
package azurespecialsgroup
import (
	"context"
	"fmt"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
	"net/http"
	"strings"
)
type SkipURLEncodingClient struct {
	con *Connection
}
func NewSkipURLEncodingClient(con *Connection) *SkipURLEncodingClient {
	return &SkipURLEncodingClient{con: con}
}
func (client *SkipURLEncodingClient) GetMethodPathValid(ctx context.Context, unencodedPathParam string, options *SkipURLEncodingGetMethodPathValidOptions) (SkipURLEncodingGetMethodPathValidResponse, error) {
	req, err := client.getMethodPathValidCreateRequest(ctx, unencodedPathParam, options)
	if err != nil {
		return SkipURLEncodingGetMethodPathValidResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return SkipURLEncodingGetMethodPathValidResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return SkipURLEncodingGetMethodPathValidResponse{}, client.getMethodPathValidHandleError(resp)
	}
	return SkipURLEncodingGetMethodPathValidResponse{RawResponse: resp}, nil
}
func (client *SkipURLEncodingClient) getMethodPathValidCreateRequest(ctx context.Context, unencodedPathParam string, options *SkipURLEncodingGetMethodPathValidOptions) (*policy.Request, error) {
	urlPath := "/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}"
	urlPath = strings.ReplaceAll(urlPath, "{unencodedPathParam}", unencodedPathParam)
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *SkipURLEncodingClient) getMethodPathValidHandleError(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 *SkipURLEncodingClient) GetMethodQueryNull(ctx context.Context, options *SkipURLEncodingGetMethodQueryNullOptions) (SkipURLEncodingGetMethodQueryNullResponse, error) {
	req, err := client.getMethodQueryNullCreateRequest(ctx, options)
	if err != nil {
		return SkipURLEncodingGetMethodQueryNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return SkipURLEncodingGetMethodQueryNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return SkipURLEncodingGetMethodQueryNullResponse{}, client.getMethodQueryNullHandleError(resp)
	}
	return SkipURLEncodingGetMethodQueryNullResponse{RawResponse: resp}, nil
}
func (client *SkipURLEncodingClient) getMethodQueryNullCreateRequest(ctx context.Context, options *SkipURLEncodingGetMethodQueryNullOptions) (*policy.Request, error) {
	urlPath := "/azurespecials/skipUrlEncoding/method/query/null"
	req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	unencodedParams := []string{}
	if options != nil && options.Q1 != nil {
		unencodedParams = append(unencodedParams, "q1="+*options.Q1)
	}
	req.Raw().URL.RawQuery = strings.Join(unencodedParams, "&")
	req.Raw().Header.Set("Accept", "application/json")
	return req, nil
}
func (client *SkipURLEncodingClient) getMethodQueryNullHandleError(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 *SkipURLEncodingClient) GetMethodQueryValid(ctx context.Context, q1 string, options *SkipURLEncodingGetMethodQueryValidOptions) (SkipURLEncodingGetMethodQueryValidResponse, error) {
	req, err := client.getMethodQueryValidCreateRequest(ctx, q1, options)
	if err != nil {
		return SkipURLEncodingGetMethodQueryValidResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return SkipURLEncodingGetMethodQueryValidResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return SkipURLEncodingGetMethodQueryValidResponse{}, client.getMethodQueryValidHandleError(resp)
	}
	return SkipURLEncodingGetMethodQueryValidResponse{RawResponse: resp}, nil
}