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)
}
Put - Put a float enum
If the operation fails it returns a generic error.
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)
}