func (client *FloatClient) putHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	if len(body) == 0 {
		return runtime.NewResponseError(errors.New(resp.Status), resp)
	}
	return runtime.NewResponseError(errors.New(string(body)), resp)
}
putHandleError handles the Put error response.
package nonstringenumgroup
import (
	"context"
	"errors"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/policy"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
	"net/http"
)
type FloatClient struct {
	con *Connection
}
func NewFloatClient(con *Connection) *FloatClient {
	return &FloatClient{con: con}
}
func (client *FloatClient) Get(ctx context.Context, options *FloatGetOptions) (FloatGetResponse, error) {
	req, err := client.getCreateRequest(ctx, options)
	if err != nil {
		return FloatGetResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return FloatGetResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return FloatGetResponse{}, client.getHandleError(resp)
	}
	return client.getHandleResponse(resp)
}
func (client *FloatClient) getCreateRequest(ctx context.Context, options *FloatGetOptions) (*policy.Request, error) {
	urlPath := "/nonStringEnums/float/get"
	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 *FloatClient) getHandleResponse(resp *http.Response) (FloatGetResponse, error) {
	result := FloatGetResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return FloatGetResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
func (client *FloatClient) getHandleError(resp *http.Response) error {
	body, err := runtime.Payload(resp)
	if err != nil {
		return runtime.NewResponseError(err, resp)
	}
	if len(body) == 0 {
		return runtime.NewResponseError(errors.New(resp.Status), resp)
	}
	return runtime.NewResponseError(errors.New(string(body)), resp)
}
func (client *FloatClient) Put(ctx context.Context, options *FloatPutOptions) (FloatPutResponse, error) {
	req, err := client.putCreateRequest(ctx, options)
	if err != nil {
		return FloatPutResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return FloatPutResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return FloatPutResponse{}, client.putHandleError(resp)
	}
	return client.putHandleResponse(resp)
}
func (client *FloatClient) putCreateRequest(ctx context.Context, options *FloatPutOptions) (*policy.Request, error) {
	urlPath := "/nonStringEnums/float/put"
	req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.con.Endpoint(), urlPath))
	if err != nil {
		return nil, err
	}
	req.Raw().Header.Set("Accept", "application/json")
	if options != nil && options.Input != nil {
		return req, runtime.MarshalAsJSON(req, *options.Input)
	}
	return req, nil
}
func (client *FloatClient) putHandleResponse(resp *http.Response) (FloatPutResponse, error) {
	result := FloatPutResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Value); err != nil {
		return FloatPutResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}