func (client *InheritanceClient) getValidHandleResponse(resp *http.Response) (InheritanceGetValidResponse, error) {
	result := InheritanceGetValidResponse{RawResponse: resp}
	if err := runtime.UnmarshalAsJSON(resp, &result.Siamese); err != nil {
		return InheritanceGetValidResponse{}, runtime.NewResponseError(err, resp)
	}
	return result, nil
}
getValidHandleResponse handles the GetValid response.
package complexgroup
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"
)
type InheritanceClient struct {
	con *Connection
}
func NewInheritanceClient(con *Connection) *InheritanceClient {
	return &InheritanceClient{con: con}
}
func (client *InheritanceClient) GetValid(ctx context.Context, options *InheritanceGetValidOptions) (InheritanceGetValidResponse, error) {
	req, err := client.getValidCreateRequest(ctx, options)
	if err != nil {
		return InheritanceGetValidResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return InheritanceGetValidResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return InheritanceGetValidResponse{}, client.getValidHandleError(resp)
	}
	return client.getValidHandleResponse(resp)
}
func (client *InheritanceClient) getValidCreateRequest(ctx context.Context, options *InheritanceGetValidOptions) (*policy.Request, error) {
	urlPath := "/complex/inheritance/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
}