func (client *ArrayClient) getDateTimeInvalidCharsHandleResponse(resp *http.Response) (ArrayGetDateTimeInvalidCharsResponse, error) {
	result := ArrayGetDateTimeInvalidCharsResponse{RawResponse: resp}
	var aux []*timeRFC3339
	if err := runtime.UnmarshalAsJSON(resp, &aux); err != nil {
		return ArrayGetDateTimeInvalidCharsResponse{}, runtime.NewResponseError(err, resp)
	}
	cp := make([]*time.Time, len(aux), len(aux))
	for i := 0; i < len(aux); i++ {
		cp[i] = (*time.Time)(aux[i])
	}
	result.TimeArray = cp
	return result, nil
}
getDateTimeInvalidCharsHandleResponse handles the GetDateTimeInvalidChars response.
package arraygroup
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"
	"time"
)
type ArrayClient struct {
	con *Connection
}
func NewArrayClient(con *Connection) *ArrayClient {
	return &ArrayClient{con: con}
}
func (client *ArrayClient) GetArrayEmpty(ctx context.Context, options *ArrayGetArrayEmptyOptions) (ArrayGetArrayEmptyResponse, error) {
	req, err := client.getArrayEmptyCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetArrayEmptyResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetArrayEmptyResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetArrayEmptyResponse{}, client.getArrayEmptyHandleError(resp)
	}
	return client.getArrayEmptyHandleResponse(resp)
}
func (client *ArrayClient) getArrayEmptyCreateRequest(ctx context.Context, options *ArrayGetArrayEmptyOptions) (*policy.Request, error) {
	urlPath := "/array/array/empty"
	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 *ArrayClient) getArrayEmptyHandleResponse(resp *http.Response) (ArrayGetArrayEmptyResponse, error) {
	result := ArrayGetArrayEmptyResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.StringArrayArray); err != nil {
		return ArrayGetArrayEmptyResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getArrayEmptyHandleError(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 *ArrayClient) GetArrayItemEmpty(ctx context.Context, options *ArrayGetArrayItemEmptyOptions) (ArrayGetArrayItemEmptyResponse, error) {
	req, err := client.getArrayItemEmptyCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetArrayItemEmptyResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetArrayItemEmptyResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetArrayItemEmptyResponse{}, client.getArrayItemEmptyHandleError(resp)
	}
	return client.getArrayItemEmptyHandleResponse(resp)
}
func (client *ArrayClient) getArrayItemEmptyCreateRequest(ctx context.Context, options *ArrayGetArrayItemEmptyOptions) (*policy.Request, error) {
	urlPath := "/array/array/itemempty"
	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 *ArrayClient) getArrayItemEmptyHandleResponse(resp *http.Response) (ArrayGetArrayItemEmptyResponse, error) {
	result := ArrayGetArrayItemEmptyResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.StringArrayArray); err != nil {
		return ArrayGetArrayItemEmptyResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getArrayItemEmptyHandleError(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 *ArrayClient) GetArrayItemNull(ctx context.Context, options *ArrayGetArrayItemNullOptions) (ArrayGetArrayItemNullResponse, error) {
	req, err := client.getArrayItemNullCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetArrayItemNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetArrayItemNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetArrayItemNullResponse{}, client.getArrayItemNullHandleError(resp)
	}
	return client.getArrayItemNullHandleResponse(resp)
}
func (client *ArrayClient) getArrayItemNullCreateRequest(ctx context.Context, options *ArrayGetArrayItemNullOptions) (*policy.Request, error) {
	urlPath := "/array/array/itemnull"
	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 *ArrayClient) getArrayItemNullHandleResponse(resp *http.Response) (ArrayGetArrayItemNullResponse, error) {
	result := ArrayGetArrayItemNullResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.StringArrayArray); err != nil {
		return ArrayGetArrayItemNullResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getArrayItemNullHandleError(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 *ArrayClient) GetArrayNull(ctx context.Context, options *ArrayGetArrayNullOptions) (ArrayGetArrayNullResponse, error) {
	req, err := client.getArrayNullCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetArrayNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetArrayNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetArrayNullResponse{}, client.getArrayNullHandleError(resp)
	}
	return client.getArrayNullHandleResponse(resp)
}
func (client *ArrayClient) getArrayNullCreateRequest(ctx context.Context, options *ArrayGetArrayNullOptions) (*policy.Request, error) {
	urlPath := "/array/array/null"
	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 *ArrayClient) getArrayNullHandleResponse(resp *http.Response) (ArrayGetArrayNullResponse, error) {
	result := ArrayGetArrayNullResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.StringArrayArray); err != nil {
		return ArrayGetArrayNullResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getArrayNullHandleError(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 *ArrayClient) GetArrayValid(ctx context.Context, options *ArrayGetArrayValidOptions) (ArrayGetArrayValidResponse, error) {
	req, err := client.getArrayValidCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetArrayValidResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetArrayValidResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetArrayValidResponse{}, client.getArrayValidHandleError(resp)
	}
	return client.getArrayValidHandleResponse(resp)
}
func (client *ArrayClient) getArrayValidCreateRequest(ctx context.Context, options *ArrayGetArrayValidOptions) (*policy.Request, error) {
	urlPath := "/array/array/valid"
	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 *ArrayClient) getArrayValidHandleResponse(resp *http.Response) (ArrayGetArrayValidResponse, error) {
	result := ArrayGetArrayValidResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.StringArrayArray); err != nil {
		return ArrayGetArrayValidResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getArrayValidHandleError(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 *ArrayClient) GetBase64URL(ctx context.Context, options *ArrayGetBase64URLOptions) (ArrayGetBase64URLResponse, error) {
	req, err := client.getBase64URLCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetBase64URLResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetBase64URLResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetBase64URLResponse{}, client.getBase64URLHandleError(resp)
	}
	return client.getBase64URLHandleResponse(resp)
}
func (client *ArrayClient) getBase64URLCreateRequest(ctx context.Context, options *ArrayGetBase64URLOptions) (*policy.Request, error) {
	urlPath := "/array/prim/base64url/valid"
	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 *ArrayClient) getBase64URLHandleResponse(resp *http.Response) (ArrayGetBase64URLResponse, error) {
	result := ArrayGetBase64URLResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.ByteArrayArray); err != nil {
		return ArrayGetBase64URLResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getBase64URLHandleError(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 *ArrayClient) GetBooleanInvalidNull(ctx context.Context, options *ArrayGetBooleanInvalidNullOptions) (ArrayGetBooleanInvalidNullResponse, error) {
	req, err := client.getBooleanInvalidNullCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetBooleanInvalidNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetBooleanInvalidNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetBooleanInvalidNullResponse{}, client.getBooleanInvalidNullHandleError(resp)
	}
	return client.getBooleanInvalidNullHandleResponse(resp)
}
func (client *ArrayClient) getBooleanInvalidNullCreateRequest(ctx context.Context, options *ArrayGetBooleanInvalidNullOptions) (*policy.Request, error) {
	urlPath := "/array/prim/boolean/true.null.false"
	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 *ArrayClient) getBooleanInvalidNullHandleResponse(resp *http.Response) (ArrayGetBooleanInvalidNullResponse, error) {
	result := ArrayGetBooleanInvalidNullResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.BoolArray); err != nil {
		return ArrayGetBooleanInvalidNullResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getBooleanInvalidNullHandleError(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 *ArrayClient) GetBooleanInvalidString(ctx context.Context, options *ArrayGetBooleanInvalidStringOptions) (ArrayGetBooleanInvalidStringResponse, error) {
	req, err := client.getBooleanInvalidStringCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetBooleanInvalidStringResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetBooleanInvalidStringResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetBooleanInvalidStringResponse{}, client.getBooleanInvalidStringHandleError(resp)
	}
	return client.getBooleanInvalidStringHandleResponse(resp)
}
func (client *ArrayClient) getBooleanInvalidStringCreateRequest(ctx context.Context, options *ArrayGetBooleanInvalidStringOptions) (*policy.Request, error) {
	urlPath := "/array/prim/boolean/true.boolean.false"
	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 *ArrayClient) getBooleanInvalidStringHandleResponse(resp *http.Response) (ArrayGetBooleanInvalidStringResponse, error) {
	result := ArrayGetBooleanInvalidStringResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.BoolArray); err != nil {
		return ArrayGetBooleanInvalidStringResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getBooleanInvalidStringHandleError(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 *ArrayClient) GetBooleanTfft(ctx context.Context, options *ArrayGetBooleanTfftOptions) (ArrayGetBooleanTfftResponse, error) {
	req, err := client.getBooleanTfftCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetBooleanTfftResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetBooleanTfftResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetBooleanTfftResponse{}, client.getBooleanTfftHandleError(resp)
	}
	return client.getBooleanTfftHandleResponse(resp)
}
func (client *ArrayClient) getBooleanTfftCreateRequest(ctx context.Context, options *ArrayGetBooleanTfftOptions) (*policy.Request, error) {
	urlPath := "/array/prim/boolean/tfft"
	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 *ArrayClient) getBooleanTfftHandleResponse(resp *http.Response) (ArrayGetBooleanTfftResponse, error) {
	result := ArrayGetBooleanTfftResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.BoolArray); err != nil {
		return ArrayGetBooleanTfftResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getBooleanTfftHandleError(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 *ArrayClient) GetByteInvalidNull(ctx context.Context, options *ArrayGetByteInvalidNullOptions) (ArrayGetByteInvalidNullResponse, error) {
	req, err := client.getByteInvalidNullCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetByteInvalidNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetByteInvalidNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetByteInvalidNullResponse{}, client.getByteInvalidNullHandleError(resp)
	}
	return client.getByteInvalidNullHandleResponse(resp)
}
func (client *ArrayClient) getByteInvalidNullCreateRequest(ctx context.Context, options *ArrayGetByteInvalidNullOptions) (*policy.Request, error) {
	urlPath := "/array/prim/byte/invalidnull"
	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 *ArrayClient) getByteInvalidNullHandleResponse(resp *http.Response) (ArrayGetByteInvalidNullResponse, error) {
	result := ArrayGetByteInvalidNullResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.ByteArrayArray); err != nil {
		return ArrayGetByteInvalidNullResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getByteInvalidNullHandleError(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 *ArrayClient) GetByteValid(ctx context.Context, options *ArrayGetByteValidOptions) (ArrayGetByteValidResponse, error) {
	req, err := client.getByteValidCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetByteValidResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetByteValidResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetByteValidResponse{}, client.getByteValidHandleError(resp)
	}
	return client.getByteValidHandleResponse(resp)
}
func (client *ArrayClient) getByteValidCreateRequest(ctx context.Context, options *ArrayGetByteValidOptions) (*policy.Request, error) {
	urlPath := "/array/prim/byte/valid"
	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 *ArrayClient) getByteValidHandleResponse(resp *http.Response) (ArrayGetByteValidResponse, error) {
	result := ArrayGetByteValidResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.ByteArrayArray); err != nil {
		return ArrayGetByteValidResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getByteValidHandleError(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 *ArrayClient) GetComplexEmpty(ctx context.Context, options *ArrayGetComplexEmptyOptions) (ArrayGetComplexEmptyResponse, error) {
	req, err := client.getComplexEmptyCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetComplexEmptyResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetComplexEmptyResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetComplexEmptyResponse{}, client.getComplexEmptyHandleError(resp)
	}
	return client.getComplexEmptyHandleResponse(resp)
}
func (client *ArrayClient) getComplexEmptyCreateRequest(ctx context.Context, options *ArrayGetComplexEmptyOptions) (*policy.Request, error) {
	urlPath := "/array/complex/empty"
	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 *ArrayClient) getComplexEmptyHandleResponse(resp *http.Response) (ArrayGetComplexEmptyResponse, error) {
	result := ArrayGetComplexEmptyResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.ProductArray); err != nil {
		return ArrayGetComplexEmptyResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getComplexEmptyHandleError(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 *ArrayClient) GetComplexItemEmpty(ctx context.Context, options *ArrayGetComplexItemEmptyOptions) (ArrayGetComplexItemEmptyResponse, error) {
	req, err := client.getComplexItemEmptyCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetComplexItemEmptyResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetComplexItemEmptyResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetComplexItemEmptyResponse{}, client.getComplexItemEmptyHandleError(resp)
	}
	return client.getComplexItemEmptyHandleResponse(resp)
}
func (client *ArrayClient) getComplexItemEmptyCreateRequest(ctx context.Context, options *ArrayGetComplexItemEmptyOptions) (*policy.Request, error) {
	urlPath := "/array/complex/itemempty"
	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 *ArrayClient) getComplexItemEmptyHandleResponse(resp *http.Response) (ArrayGetComplexItemEmptyResponse, error) {
	result := ArrayGetComplexItemEmptyResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.ProductArray); err != nil {
		return ArrayGetComplexItemEmptyResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getComplexItemEmptyHandleError(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 *ArrayClient) GetComplexItemNull(ctx context.Context, options *ArrayGetComplexItemNullOptions) (ArrayGetComplexItemNullResponse, error) {
	req, err := client.getComplexItemNullCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetComplexItemNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetComplexItemNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetComplexItemNullResponse{}, client.getComplexItemNullHandleError(resp)
	}
	return client.getComplexItemNullHandleResponse(resp)
}
func (client *ArrayClient) getComplexItemNullCreateRequest(ctx context.Context, options *ArrayGetComplexItemNullOptions) (*policy.Request, error) {
	urlPath := "/array/complex/itemnull"
	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 *ArrayClient) getComplexItemNullHandleResponse(resp *http.Response) (ArrayGetComplexItemNullResponse, error) {
	result := ArrayGetComplexItemNullResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.ProductArray); err != nil {
		return ArrayGetComplexItemNullResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getComplexItemNullHandleError(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 *ArrayClient) GetComplexNull(ctx context.Context, options *ArrayGetComplexNullOptions) (ArrayGetComplexNullResponse, error) {
	req, err := client.getComplexNullCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetComplexNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetComplexNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetComplexNullResponse{}, client.getComplexNullHandleError(resp)
	}
	return client.getComplexNullHandleResponse(resp)
}
func (client *ArrayClient) getComplexNullCreateRequest(ctx context.Context, options *ArrayGetComplexNullOptions) (*policy.Request, error) {
	urlPath := "/array/complex/null"
	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 *ArrayClient) getComplexNullHandleResponse(resp *http.Response) (ArrayGetComplexNullResponse, error) {
	result := ArrayGetComplexNullResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.ProductArray); err != nil {
		return ArrayGetComplexNullResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getComplexNullHandleError(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 *ArrayClient) GetComplexValid(ctx context.Context, options *ArrayGetComplexValidOptions) (ArrayGetComplexValidResponse, error) {
	req, err := client.getComplexValidCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetComplexValidResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetComplexValidResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetComplexValidResponse{}, client.getComplexValidHandleError(resp)
	}
	return client.getComplexValidHandleResponse(resp)
}
func (client *ArrayClient) getComplexValidCreateRequest(ctx context.Context, options *ArrayGetComplexValidOptions) (*policy.Request, error) {
	urlPath := "/array/complex/valid"
	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 *ArrayClient) getComplexValidHandleResponse(resp *http.Response) (ArrayGetComplexValidResponse, error) {
	result := ArrayGetComplexValidResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.ProductArray); err != nil {
		return ArrayGetComplexValidResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *ArrayClient) getComplexValidHandleError(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 *ArrayClient) GetDateInvalidChars(ctx context.Context, options *ArrayGetDateInvalidCharsOptions) (ArrayGetDateInvalidCharsResponse, error) {
	req, err := client.getDateInvalidCharsCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetDateInvalidCharsResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetDateInvalidCharsResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetDateInvalidCharsResponse{}, client.getDateInvalidCharsHandleError(resp)
	}
	return client.getDateInvalidCharsHandleResponse(resp)
}
func (client *ArrayClient) getDateInvalidCharsCreateRequest(ctx context.Context, options *ArrayGetDateInvalidCharsOptions) (*policy.Request, error) {
	urlPath := "/array/prim/date/invalidchars"
	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 *ArrayClient) getDateInvalidCharsHandleResponse(resp *http.Response) (ArrayGetDateInvalidCharsResponse, error) {
	result := ArrayGetDateInvalidCharsResponse{RawResponse: resp}
	var aux []*dateType
	if err := runtime.UnmarshalAsJSON(resp, &aux); err != nil {
		return ArrayGetDateInvalidCharsResponse{}, runtime.NewResponseError(err, resp)
	}
	cp := make([]*time.Time, len(aux), len(aux))
	for i := 0; i < len(aux); i++ {
		cp[i] = (*time.Time)(aux[i])
	}
	result.TimeArray = cp
	return result, nil
}
func (client *ArrayClient) getDateInvalidCharsHandleError(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 *ArrayClient) GetDateInvalidNull(ctx context.Context, options *ArrayGetDateInvalidNullOptions) (ArrayGetDateInvalidNullResponse, error) {
	req, err := client.getDateInvalidNullCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetDateInvalidNullResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetDateInvalidNullResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetDateInvalidNullResponse{}, client.getDateInvalidNullHandleError(resp)
	}
	return client.getDateInvalidNullHandleResponse(resp)
}
func (client *ArrayClient) getDateInvalidNullCreateRequest(ctx context.Context, options *ArrayGetDateInvalidNullOptions) (*policy.Request, error) {
	urlPath := "/array/prim/date/invalidnull"
	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 *ArrayClient) getDateInvalidNullHandleResponse(resp *http.Response) (ArrayGetDateInvalidNullResponse, error) {
	result := ArrayGetDateInvalidNullResponse{RawResponse: resp}
	var aux []*dateType
	if err := runtime.UnmarshalAsJSON(resp, &aux); err != nil {
		return ArrayGetDateInvalidNullResponse{}, runtime.NewResponseError(err, resp)
	}
	cp := make([]*time.Time, len(aux), len(aux))
	for i := 0; i < len(aux); i++ {
		cp[i] = (*time.Time)(aux[i])
	}
	result.TimeArray = cp
	return result, nil
}
func (client *ArrayClient) getDateInvalidNullHandleError(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 *ArrayClient) GetDateTimeInvalidChars(ctx context.Context, options *ArrayGetDateTimeInvalidCharsOptions) (ArrayGetDateTimeInvalidCharsResponse, error) {
	req, err := client.getDateTimeInvalidCharsCreateRequest(ctx, options)
	if err != nil {
		return ArrayGetDateTimeInvalidCharsResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return ArrayGetDateTimeInvalidCharsResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return ArrayGetDateTimeInvalidCharsResponse{}, client.getDateTimeInvalidCharsHandleError(resp)
	}
	return client.getDateTimeInvalidCharsHandleResponse(resp)
}
func (client *ArrayClient) getDateTimeInvalidCharsCreateRequest(ctx context.Context, options *ArrayGetDateTimeInvalidCharsOptions) (*policy.Request, error) {
	urlPath := "/array/prim/date-time/invalidchars"
	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
}