func (a *Client) GetComplianceByRules(params *GetComplianceByRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByRulesOK, error) {
	if params == nil {
		params = NewGetComplianceByRulesParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "getComplianceByRules",
		Method:             "GET",
		PathPattern:        "/scans/{scan_id}/compliance_by_rules",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetComplianceByRulesReader{formats: a.formats},
		AuthInfo:           authInfo,
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetComplianceByRulesOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for getComplianceByRules: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
/*
GetComplianceByRules lists compliance results by rule for a scan

Lists compliance results by rule for a scan.
package scans
import (
	"fmt"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
)
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
	return &Client{transport: transport, formats: formats}
}
type Client struct {
	transport runtime.ClientTransport
	formats   strfmt.Registry
}
type ClientService interface {
	CreateScan(params *CreateScanParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanCreated, error)
	GetComplianceByResourceTypes(params *GetComplianceByResourceTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByResourceTypesOK, error)
	GetComplianceByRules(params *GetComplianceByRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByRulesOK, error)
	GetScan(params *GetScanParams, authInfo runtime.ClientAuthInfoWriter) (*GetScanOK, error)
	ListScans(params *ListScansParams, authInfo runtime.ClientAuthInfoWriter) (*ListScansOK, error)
	UploadRegulaScanView(params *UploadRegulaScanViewParams, authInfo runtime.ClientAuthInfoWriter) (*UploadRegulaScanViewOK, error)
	SetTransport(transport runtime.ClientTransport)
}
func (a *Client) CreateScan(params *CreateScanParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanCreated, error) {
	if params == nil {
		params = NewCreateScanParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "createScan",
		Method:             "POST",
		PathPattern:        "/scans",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &CreateScanReader{formats: a.formats},
		AuthInfo:           authInfo,
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*CreateScanCreated)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for createScan: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetComplianceByResourceTypes(params *GetComplianceByResourceTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByResourceTypesOK, error) {
	if params == nil {
		params = NewGetComplianceByResourceTypesParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "getComplianceByResourceTypes",
		Method:             "GET",
		PathPattern:        "/scans/{scan_id}/compliance_by_resource_types",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetComplianceByResourceTypesReader{formats: a.formats},
		AuthInfo:           authInfo,
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetComplianceByResourceTypesOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for getComplianceByResourceTypes: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}