func (client *AutoRestReportServiceClient) GetOptionalReport(ctx context.Context, options *AutoRestReportServiceGetOptionalReportOptions) (AutoRestReportServiceGetOptionalReportResponse, error) {
	req, err := client.getOptionalReportCreateRequest(ctx, options)
	if err != nil {
		return AutoRestReportServiceGetOptionalReportResponse{}, err
	}
	resp, err := client.con.Pipeline().Do(req)
	if err != nil {
		return AutoRestReportServiceGetOptionalReportResponse{}, err
	}
	if !runtime.HasStatusCode(resp, http.StatusOK) {
		return AutoRestReportServiceGetOptionalReportResponse{}, client.getOptionalReportHandleError(resp)
	}
	return client.getOptionalReportHandleResponse(resp)
}
GetOptionalReport - Get optional test coverage report
If the operation fails it returns the *Error error type.
package reportgroup
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 AutoRestReportServiceClient struct {
	con *Connection
}
func NewAutoRestReportServiceClient(con *Connection) *AutoRestReportServiceClient {
	return &AutoRestReportServiceClient{con: con}
}