quick_scan

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for quick scan API

func (*Client) GetScans

func (a *Client) GetScans(params *GetScansParams, opts ...ClientOption) (*GetScansOK, error)

GetScans checks the status of a volume scan time required for analysis increases with the number of samples in a volume but usually it should take less than 1 minute

func (*Client) GetScansAggregates

func (a *Client) GetScansAggregates(params *GetScansAggregatesParams, opts ...ClientOption) (*GetScansAggregatesOK, error)

GetScansAggregates gets scans aggregations as specified via json in request body

func (*Client) QuerySubmissionsMixin0

func (a *Client) QuerySubmissionsMixin0(params *QuerySubmissionsMixin0Params, opts ...ClientOption) (*QuerySubmissionsMixin0OK, error)

QuerySubmissionsMixin0 finds i ds for submitted scans by providing an f q l filter and paging details returns a set of volume i ds that match your criteria

func (*Client) ScanSamples

func (a *Client) ScanSamples(params *ScanSamplesParams, opts ...ClientOption) (*ScanSamplesOK, error)

ScanSamples submits a volume of files for ml scanning time required for analysis increases with the number of samples in a volume but usually it should take less than 1 minute

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetScans(params *GetScansParams, opts ...ClientOption) (*GetScansOK, error)

	GetScansAggregates(params *GetScansAggregatesParams, opts ...ClientOption) (*GetScansAggregatesOK, error)

	QuerySubmissionsMixin0(params *QuerySubmissionsMixin0Params, opts ...ClientOption) (*QuerySubmissionsMixin0OK, error)

	ScanSamples(params *ScanSamplesParams, opts ...ClientOption) (*ScanSamplesOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new quick scan API client.

type GetScansAggregatesForbidden

type GetScansAggregatesForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

GetScansAggregatesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetScansAggregatesForbidden

func NewGetScansAggregatesForbidden() *GetScansAggregatesForbidden

NewGetScansAggregatesForbidden creates a GetScansAggregatesForbidden with default headers values

func (*GetScansAggregatesForbidden) Code added in v0.2.33

func (o *GetScansAggregatesForbidden) Code() int

Code gets the status code for the get scans aggregates forbidden response

func (*GetScansAggregatesForbidden) Error

func (*GetScansAggregatesForbidden) GetPayload

func (*GetScansAggregatesForbidden) IsClientError added in v0.2.27

func (o *GetScansAggregatesForbidden) IsClientError() bool

IsClientError returns true when this get scans aggregates forbidden response has a 4xx status code

func (*GetScansAggregatesForbidden) IsCode added in v0.2.27

func (o *GetScansAggregatesForbidden) IsCode(code int) bool

IsCode returns true when this get scans aggregates forbidden response a status code equal to that given

func (*GetScansAggregatesForbidden) IsRedirect added in v0.2.27

func (o *GetScansAggregatesForbidden) IsRedirect() bool

IsRedirect returns true when this get scans aggregates forbidden response has a 3xx status code

func (*GetScansAggregatesForbidden) IsServerError added in v0.2.27

func (o *GetScansAggregatesForbidden) IsServerError() bool

IsServerError returns true when this get scans aggregates forbidden response has a 5xx status code

func (*GetScansAggregatesForbidden) IsSuccess added in v0.2.27

func (o *GetScansAggregatesForbidden) IsSuccess() bool

IsSuccess returns true when this get scans aggregates forbidden response has a 2xx status code

func (*GetScansAggregatesForbidden) String added in v0.2.27

func (o *GetScansAggregatesForbidden) String() string

type GetScansAggregatesInternalServerError added in v0.9.0

type GetScansAggregatesInternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

GetScansAggregatesInternalServerError describes a response with status code 500, with default header values.

Unexpected Error

func NewGetScansAggregatesInternalServerError added in v0.9.0

func NewGetScansAggregatesInternalServerError() *GetScansAggregatesInternalServerError

NewGetScansAggregatesInternalServerError creates a GetScansAggregatesInternalServerError with default headers values

func (*GetScansAggregatesInternalServerError) Code added in v0.9.0

Code gets the status code for the get scans aggregates internal server error response

func (*GetScansAggregatesInternalServerError) Error added in v0.9.0

func (*GetScansAggregatesInternalServerError) GetPayload added in v0.9.0

func (*GetScansAggregatesInternalServerError) IsClientError added in v0.9.0

func (o *GetScansAggregatesInternalServerError) IsClientError() bool

IsClientError returns true when this get scans aggregates internal server error response has a 4xx status code

func (*GetScansAggregatesInternalServerError) IsCode added in v0.9.0

IsCode returns true when this get scans aggregates internal server error response a status code equal to that given

func (*GetScansAggregatesInternalServerError) IsRedirect added in v0.9.0

IsRedirect returns true when this get scans aggregates internal server error response has a 3xx status code

func (*GetScansAggregatesInternalServerError) IsServerError added in v0.9.0

func (o *GetScansAggregatesInternalServerError) IsServerError() bool

IsServerError returns true when this get scans aggregates internal server error response has a 5xx status code

func (*GetScansAggregatesInternalServerError) IsSuccess added in v0.9.0

IsSuccess returns true when this get scans aggregates internal server error response has a 2xx status code

func (*GetScansAggregatesInternalServerError) String added in v0.9.0

type GetScansAggregatesOK

type GetScansAggregatesOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64
}

GetScansAggregatesOK describes a response with status code 200, with default header values.

OK

func NewGetScansAggregatesOK

func NewGetScansAggregatesOK() *GetScansAggregatesOK

NewGetScansAggregatesOK creates a GetScansAggregatesOK with default headers values

func (*GetScansAggregatesOK) Code added in v0.2.33

func (o *GetScansAggregatesOK) Code() int

Code gets the status code for the get scans aggregates o k response

func (*GetScansAggregatesOK) Error

func (o *GetScansAggregatesOK) Error() string

func (*GetScansAggregatesOK) IsClientError added in v0.2.27

func (o *GetScansAggregatesOK) IsClientError() bool

IsClientError returns true when this get scans aggregates o k response has a 4xx status code

func (*GetScansAggregatesOK) IsCode added in v0.2.27

func (o *GetScansAggregatesOK) IsCode(code int) bool

IsCode returns true when this get scans aggregates o k response a status code equal to that given

func (*GetScansAggregatesOK) IsRedirect added in v0.2.27

func (o *GetScansAggregatesOK) IsRedirect() bool

IsRedirect returns true when this get scans aggregates o k response has a 3xx status code

func (*GetScansAggregatesOK) IsServerError added in v0.2.27

func (o *GetScansAggregatesOK) IsServerError() bool

IsServerError returns true when this get scans aggregates o k response has a 5xx status code

func (*GetScansAggregatesOK) IsSuccess added in v0.2.27

func (o *GetScansAggregatesOK) IsSuccess() bool

IsSuccess returns true when this get scans aggregates o k response has a 2xx status code

func (*GetScansAggregatesOK) String added in v0.2.27

func (o *GetScansAggregatesOK) String() string

type GetScansAggregatesParams

type GetScansAggregatesParams struct {

	// Body.
	Body *models.MsaAggregateQueryRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetScansAggregatesParams contains all the parameters to send to the API endpoint

for the get scans aggregates operation.

Typically these are written to a http.Request.

func NewGetScansAggregatesParams

func NewGetScansAggregatesParams() *GetScansAggregatesParams

NewGetScansAggregatesParams creates a new GetScansAggregatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetScansAggregatesParamsWithContext

func NewGetScansAggregatesParamsWithContext(ctx context.Context) *GetScansAggregatesParams

NewGetScansAggregatesParamsWithContext creates a new GetScansAggregatesParams object with the ability to set a context for a request.

func NewGetScansAggregatesParamsWithHTTPClient

func NewGetScansAggregatesParamsWithHTTPClient(client *http.Client) *GetScansAggregatesParams

NewGetScansAggregatesParamsWithHTTPClient creates a new GetScansAggregatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetScansAggregatesParamsWithTimeout

func NewGetScansAggregatesParamsWithTimeout(timeout time.Duration) *GetScansAggregatesParams

NewGetScansAggregatesParamsWithTimeout creates a new GetScansAggregatesParams object with the ability to set a timeout on a request.

func (*GetScansAggregatesParams) SetBody

SetBody adds the body to the get scans aggregates params

func (*GetScansAggregatesParams) SetContext

func (o *GetScansAggregatesParams) SetContext(ctx context.Context)

SetContext adds the context to the get scans aggregates params

func (*GetScansAggregatesParams) SetDefaults

func (o *GetScansAggregatesParams) SetDefaults()

SetDefaults hydrates default values in the get scans aggregates params (not the query body).

All values with no default are reset to their zero value.

func (*GetScansAggregatesParams) SetHTTPClient

func (o *GetScansAggregatesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get scans aggregates params

func (*GetScansAggregatesParams) SetTimeout

func (o *GetScansAggregatesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get scans aggregates params

func (*GetScansAggregatesParams) WithBody

WithBody adds the body to the get scans aggregates params

func (*GetScansAggregatesParams) WithContext

WithContext adds the context to the get scans aggregates params

func (*GetScansAggregatesParams) WithDefaults

WithDefaults hydrates default values in the get scans aggregates params (not the query body).

All values with no default are reset to their zero value.

func (*GetScansAggregatesParams) WithHTTPClient

func (o *GetScansAggregatesParams) WithHTTPClient(client *http.Client) *GetScansAggregatesParams

WithHTTPClient adds the HTTPClient to the get scans aggregates params

func (*GetScansAggregatesParams) WithTimeout

WithTimeout adds the timeout to the get scans aggregates params

func (*GetScansAggregatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetScansAggregatesReader

type GetScansAggregatesReader struct {
	// contains filtered or unexported fields
}

GetScansAggregatesReader is a Reader for the GetScansAggregates structure.

func (*GetScansAggregatesReader) ReadResponse

func (o *GetScansAggregatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetScansAggregatesTooManyRequests

type GetScansAggregatesTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

GetScansAggregatesTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetScansAggregatesTooManyRequests

func NewGetScansAggregatesTooManyRequests() *GetScansAggregatesTooManyRequests

NewGetScansAggregatesTooManyRequests creates a GetScansAggregatesTooManyRequests with default headers values

func (*GetScansAggregatesTooManyRequests) Code added in v0.2.33

Code gets the status code for the get scans aggregates too many requests response

func (*GetScansAggregatesTooManyRequests) Error

func (*GetScansAggregatesTooManyRequests) GetPayload

func (*GetScansAggregatesTooManyRequests) IsClientError added in v0.2.27

func (o *GetScansAggregatesTooManyRequests) IsClientError() bool

IsClientError returns true when this get scans aggregates too many requests response has a 4xx status code

func (*GetScansAggregatesTooManyRequests) IsCode added in v0.2.27

func (o *GetScansAggregatesTooManyRequests) IsCode(code int) bool

IsCode returns true when this get scans aggregates too many requests response a status code equal to that given

func (*GetScansAggregatesTooManyRequests) IsRedirect added in v0.2.27

func (o *GetScansAggregatesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get scans aggregates too many requests response has a 3xx status code

func (*GetScansAggregatesTooManyRequests) IsServerError added in v0.2.27

func (o *GetScansAggregatesTooManyRequests) IsServerError() bool

IsServerError returns true when this get scans aggregates too many requests response has a 5xx status code

func (*GetScansAggregatesTooManyRequests) IsSuccess added in v0.2.27

func (o *GetScansAggregatesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get scans aggregates too many requests response has a 2xx status code

func (*GetScansAggregatesTooManyRequests) String added in v0.2.27

type GetScansBadRequest

type GetScansBadRequest struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiScanV1Response
}

GetScansBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetScansBadRequest

func NewGetScansBadRequest() *GetScansBadRequest

NewGetScansBadRequest creates a GetScansBadRequest with default headers values

func (*GetScansBadRequest) Code added in v0.2.33

func (o *GetScansBadRequest) Code() int

Code gets the status code for the get scans bad request response

func (*GetScansBadRequest) Error

func (o *GetScansBadRequest) Error() string

func (*GetScansBadRequest) GetPayload

func (*GetScansBadRequest) IsClientError added in v0.2.27

func (o *GetScansBadRequest) IsClientError() bool

IsClientError returns true when this get scans bad request response has a 4xx status code

func (*GetScansBadRequest) IsCode added in v0.2.27

func (o *GetScansBadRequest) IsCode(code int) bool

IsCode returns true when this get scans bad request response a status code equal to that given

func (*GetScansBadRequest) IsRedirect added in v0.2.27

func (o *GetScansBadRequest) IsRedirect() bool

IsRedirect returns true when this get scans bad request response has a 3xx status code

func (*GetScansBadRequest) IsServerError added in v0.2.27

func (o *GetScansBadRequest) IsServerError() bool

IsServerError returns true when this get scans bad request response has a 5xx status code

func (*GetScansBadRequest) IsSuccess added in v0.2.27

func (o *GetScansBadRequest) IsSuccess() bool

IsSuccess returns true when this get scans bad request response has a 2xx status code

func (*GetScansBadRequest) String added in v0.2.27

func (o *GetScansBadRequest) String() string

type GetScansForbidden

type GetScansForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

GetScansForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetScansForbidden

func NewGetScansForbidden() *GetScansForbidden

NewGetScansForbidden creates a GetScansForbidden with default headers values

func (*GetScansForbidden) Code added in v0.2.33

func (o *GetScansForbidden) Code() int

Code gets the status code for the get scans forbidden response

func (*GetScansForbidden) Error

func (o *GetScansForbidden) Error() string

func (*GetScansForbidden) GetPayload

func (o *GetScansForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*GetScansForbidden) IsClientError added in v0.2.27

func (o *GetScansForbidden) IsClientError() bool

IsClientError returns true when this get scans forbidden response has a 4xx status code

func (*GetScansForbidden) IsCode added in v0.2.27

func (o *GetScansForbidden) IsCode(code int) bool

IsCode returns true when this get scans forbidden response a status code equal to that given

func (*GetScansForbidden) IsRedirect added in v0.2.27

func (o *GetScansForbidden) IsRedirect() bool

IsRedirect returns true when this get scans forbidden response has a 3xx status code

func (*GetScansForbidden) IsServerError added in v0.2.27

func (o *GetScansForbidden) IsServerError() bool

IsServerError returns true when this get scans forbidden response has a 5xx status code

func (*GetScansForbidden) IsSuccess added in v0.2.27

func (o *GetScansForbidden) IsSuccess() bool

IsSuccess returns true when this get scans forbidden response has a 2xx status code

func (*GetScansForbidden) String added in v0.2.27

func (o *GetScansForbidden) String() string

type GetScansInternalServerError

type GetScansInternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiScanV1Response
}

GetScansInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetScansInternalServerError

func NewGetScansInternalServerError() *GetScansInternalServerError

NewGetScansInternalServerError creates a GetScansInternalServerError with default headers values

func (*GetScansInternalServerError) Code added in v0.2.33

func (o *GetScansInternalServerError) Code() int

Code gets the status code for the get scans internal server error response

func (*GetScansInternalServerError) Error

func (*GetScansInternalServerError) GetPayload

func (*GetScansInternalServerError) IsClientError added in v0.2.27

func (o *GetScansInternalServerError) IsClientError() bool

IsClientError returns true when this get scans internal server error response has a 4xx status code

func (*GetScansInternalServerError) IsCode added in v0.2.27

func (o *GetScansInternalServerError) IsCode(code int) bool

IsCode returns true when this get scans internal server error response a status code equal to that given

func (*GetScansInternalServerError) IsRedirect added in v0.2.27

func (o *GetScansInternalServerError) IsRedirect() bool

IsRedirect returns true when this get scans internal server error response has a 3xx status code

func (*GetScansInternalServerError) IsServerError added in v0.2.27

func (o *GetScansInternalServerError) IsServerError() bool

IsServerError returns true when this get scans internal server error response has a 5xx status code

func (*GetScansInternalServerError) IsSuccess added in v0.2.27

func (o *GetScansInternalServerError) IsSuccess() bool

IsSuccess returns true when this get scans internal server error response has a 2xx status code

func (*GetScansInternalServerError) String added in v0.2.27

func (o *GetScansInternalServerError) String() string

type GetScansNotFound

type GetScansNotFound struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiScanV1Response
}

GetScansNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetScansNotFound

func NewGetScansNotFound() *GetScansNotFound

NewGetScansNotFound creates a GetScansNotFound with default headers values

func (*GetScansNotFound) Code added in v0.2.33

func (o *GetScansNotFound) Code() int

Code gets the status code for the get scans not found response

func (*GetScansNotFound) Error

func (o *GetScansNotFound) Error() string

func (*GetScansNotFound) GetPayload

func (*GetScansNotFound) IsClientError added in v0.2.27

func (o *GetScansNotFound) IsClientError() bool

IsClientError returns true when this get scans not found response has a 4xx status code

func (*GetScansNotFound) IsCode added in v0.2.27

func (o *GetScansNotFound) IsCode(code int) bool

IsCode returns true when this get scans not found response a status code equal to that given

func (*GetScansNotFound) IsRedirect added in v0.2.27

func (o *GetScansNotFound) IsRedirect() bool

IsRedirect returns true when this get scans not found response has a 3xx status code

func (*GetScansNotFound) IsServerError added in v0.2.27

func (o *GetScansNotFound) IsServerError() bool

IsServerError returns true when this get scans not found response has a 5xx status code

func (*GetScansNotFound) IsSuccess added in v0.2.27

func (o *GetScansNotFound) IsSuccess() bool

IsSuccess returns true when this get scans not found response has a 2xx status code

func (*GetScansNotFound) String added in v0.2.27

func (o *GetScansNotFound) String() string

type GetScansOK

type GetScansOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiScanV1Response
}

GetScansOK describes a response with status code 200, with default header values.

OK

func NewGetScansOK

func NewGetScansOK() *GetScansOK

NewGetScansOK creates a GetScansOK with default headers values

func (*GetScansOK) Code added in v0.2.33

func (o *GetScansOK) Code() int

Code gets the status code for the get scans o k response

func (*GetScansOK) Error

func (o *GetScansOK) Error() string

func (*GetScansOK) GetPayload

func (o *GetScansOK) GetPayload() *models.MlscannerapiScanV1Response

func (*GetScansOK) IsClientError added in v0.2.27

func (o *GetScansOK) IsClientError() bool

IsClientError returns true when this get scans o k response has a 4xx status code

func (*GetScansOK) IsCode added in v0.2.27

func (o *GetScansOK) IsCode(code int) bool

IsCode returns true when this get scans o k response a status code equal to that given

func (*GetScansOK) IsRedirect added in v0.2.27

func (o *GetScansOK) IsRedirect() bool

IsRedirect returns true when this get scans o k response has a 3xx status code

func (*GetScansOK) IsServerError added in v0.2.27

func (o *GetScansOK) IsServerError() bool

IsServerError returns true when this get scans o k response has a 5xx status code

func (*GetScansOK) IsSuccess added in v0.2.27

func (o *GetScansOK) IsSuccess() bool

IsSuccess returns true when this get scans o k response has a 2xx status code

func (*GetScansOK) String added in v0.2.27

func (o *GetScansOK) String() string

type GetScansParams

type GetScansParams struct {

	/* Ids.

	   ID of a submitted scan
	*/
	Ids []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetScansParams contains all the parameters to send to the API endpoint

for the get scans operation.

Typically these are written to a http.Request.

func NewGetScansParams

func NewGetScansParams() *GetScansParams

NewGetScansParams creates a new GetScansParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetScansParamsWithContext

func NewGetScansParamsWithContext(ctx context.Context) *GetScansParams

NewGetScansParamsWithContext creates a new GetScansParams object with the ability to set a context for a request.

func NewGetScansParamsWithHTTPClient

func NewGetScansParamsWithHTTPClient(client *http.Client) *GetScansParams

NewGetScansParamsWithHTTPClient creates a new GetScansParams object with the ability to set a custom HTTPClient for a request.

func NewGetScansParamsWithTimeout

func NewGetScansParamsWithTimeout(timeout time.Duration) *GetScansParams

NewGetScansParamsWithTimeout creates a new GetScansParams object with the ability to set a timeout on a request.

func (*GetScansParams) SetContext

func (o *GetScansParams) SetContext(ctx context.Context)

SetContext adds the context to the get scans params

func (*GetScansParams) SetDefaults

func (o *GetScansParams) SetDefaults()

SetDefaults hydrates default values in the get scans params (not the query body).

All values with no default are reset to their zero value.

func (*GetScansParams) SetHTTPClient

func (o *GetScansParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get scans params

func (*GetScansParams) SetIds

func (o *GetScansParams) SetIds(ids []string)

SetIds adds the ids to the get scans params

func (*GetScansParams) SetTimeout

func (o *GetScansParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get scans params

func (*GetScansParams) WithContext

func (o *GetScansParams) WithContext(ctx context.Context) *GetScansParams

WithContext adds the context to the get scans params

func (*GetScansParams) WithDefaults

func (o *GetScansParams) WithDefaults() *GetScansParams

WithDefaults hydrates default values in the get scans params (not the query body).

All values with no default are reset to their zero value.

func (*GetScansParams) WithHTTPClient

func (o *GetScansParams) WithHTTPClient(client *http.Client) *GetScansParams

WithHTTPClient adds the HTTPClient to the get scans params

func (*GetScansParams) WithIds

func (o *GetScansParams) WithIds(ids []string) *GetScansParams

WithIds adds the ids to the get scans params

func (*GetScansParams) WithTimeout

func (o *GetScansParams) WithTimeout(timeout time.Duration) *GetScansParams

WithTimeout adds the timeout to the get scans params

func (*GetScansParams) WriteToRequest

func (o *GetScansParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetScansReader

type GetScansReader struct {
	// contains filtered or unexported fields
}

GetScansReader is a Reader for the GetScans structure.

func (*GetScansReader) ReadResponse

func (o *GetScansReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetScansTooManyRequests

type GetScansTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

GetScansTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetScansTooManyRequests

func NewGetScansTooManyRequests() *GetScansTooManyRequests

NewGetScansTooManyRequests creates a GetScansTooManyRequests with default headers values

func (*GetScansTooManyRequests) Code added in v0.2.33

func (o *GetScansTooManyRequests) Code() int

Code gets the status code for the get scans too many requests response

func (*GetScansTooManyRequests) Error

func (o *GetScansTooManyRequests) Error() string

func (*GetScansTooManyRequests) GetPayload

func (*GetScansTooManyRequests) IsClientError added in v0.2.27

func (o *GetScansTooManyRequests) IsClientError() bool

IsClientError returns true when this get scans too many requests response has a 4xx status code

func (*GetScansTooManyRequests) IsCode added in v0.2.27

func (o *GetScansTooManyRequests) IsCode(code int) bool

IsCode returns true when this get scans too many requests response a status code equal to that given

func (*GetScansTooManyRequests) IsRedirect added in v0.2.27

func (o *GetScansTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get scans too many requests response has a 3xx status code

func (*GetScansTooManyRequests) IsServerError added in v0.2.27

func (o *GetScansTooManyRequests) IsServerError() bool

IsServerError returns true when this get scans too many requests response has a 5xx status code

func (*GetScansTooManyRequests) IsSuccess added in v0.2.27

func (o *GetScansTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get scans too many requests response has a 2xx status code

func (*GetScansTooManyRequests) String added in v0.2.27

func (o *GetScansTooManyRequests) String() string

type QuerySubmissionsMixin0BadRequest

type QuerySubmissionsMixin0BadRequest struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiQueryResponse
}

QuerySubmissionsMixin0BadRequest describes a response with status code 400, with default header values.

Bad Request

func NewQuerySubmissionsMixin0BadRequest

func NewQuerySubmissionsMixin0BadRequest() *QuerySubmissionsMixin0BadRequest

NewQuerySubmissionsMixin0BadRequest creates a QuerySubmissionsMixin0BadRequest with default headers values

func (*QuerySubmissionsMixin0BadRequest) Code added in v0.2.33

Code gets the status code for the query submissions mixin0 bad request response

func (*QuerySubmissionsMixin0BadRequest) Error

func (*QuerySubmissionsMixin0BadRequest) GetPayload

func (*QuerySubmissionsMixin0BadRequest) IsClientError added in v0.2.27

func (o *QuerySubmissionsMixin0BadRequest) IsClientError() bool

IsClientError returns true when this query submissions mixin0 bad request response has a 4xx status code

func (*QuerySubmissionsMixin0BadRequest) IsCode added in v0.2.27

func (o *QuerySubmissionsMixin0BadRequest) IsCode(code int) bool

IsCode returns true when this query submissions mixin0 bad request response a status code equal to that given

func (*QuerySubmissionsMixin0BadRequest) IsRedirect added in v0.2.27

func (o *QuerySubmissionsMixin0BadRequest) IsRedirect() bool

IsRedirect returns true when this query submissions mixin0 bad request response has a 3xx status code

func (*QuerySubmissionsMixin0BadRequest) IsServerError added in v0.2.27

func (o *QuerySubmissionsMixin0BadRequest) IsServerError() bool

IsServerError returns true when this query submissions mixin0 bad request response has a 5xx status code

func (*QuerySubmissionsMixin0BadRequest) IsSuccess added in v0.2.27

func (o *QuerySubmissionsMixin0BadRequest) IsSuccess() bool

IsSuccess returns true when this query submissions mixin0 bad request response has a 2xx status code

func (*QuerySubmissionsMixin0BadRequest) String added in v0.2.27

type QuerySubmissionsMixin0Forbidden

type QuerySubmissionsMixin0Forbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

QuerySubmissionsMixin0Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewQuerySubmissionsMixin0Forbidden

func NewQuerySubmissionsMixin0Forbidden() *QuerySubmissionsMixin0Forbidden

NewQuerySubmissionsMixin0Forbidden creates a QuerySubmissionsMixin0Forbidden with default headers values

func (*QuerySubmissionsMixin0Forbidden) Code added in v0.2.33

Code gets the status code for the query submissions mixin0 forbidden response

func (*QuerySubmissionsMixin0Forbidden) Error

func (*QuerySubmissionsMixin0Forbidden) GetPayload

func (*QuerySubmissionsMixin0Forbidden) IsClientError added in v0.2.27

func (o *QuerySubmissionsMixin0Forbidden) IsClientError() bool

IsClientError returns true when this query submissions mixin0 forbidden response has a 4xx status code

func (*QuerySubmissionsMixin0Forbidden) IsCode added in v0.2.27

func (o *QuerySubmissionsMixin0Forbidden) IsCode(code int) bool

IsCode returns true when this query submissions mixin0 forbidden response a status code equal to that given

func (*QuerySubmissionsMixin0Forbidden) IsRedirect added in v0.2.27

func (o *QuerySubmissionsMixin0Forbidden) IsRedirect() bool

IsRedirect returns true when this query submissions mixin0 forbidden response has a 3xx status code

func (*QuerySubmissionsMixin0Forbidden) IsServerError added in v0.2.27

func (o *QuerySubmissionsMixin0Forbidden) IsServerError() bool

IsServerError returns true when this query submissions mixin0 forbidden response has a 5xx status code

func (*QuerySubmissionsMixin0Forbidden) IsSuccess added in v0.2.27

func (o *QuerySubmissionsMixin0Forbidden) IsSuccess() bool

IsSuccess returns true when this query submissions mixin0 forbidden response has a 2xx status code

func (*QuerySubmissionsMixin0Forbidden) String added in v0.2.27

type QuerySubmissionsMixin0InternalServerError

type QuerySubmissionsMixin0InternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiQueryResponse
}

QuerySubmissionsMixin0InternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewQuerySubmissionsMixin0InternalServerError

func NewQuerySubmissionsMixin0InternalServerError() *QuerySubmissionsMixin0InternalServerError

NewQuerySubmissionsMixin0InternalServerError creates a QuerySubmissionsMixin0InternalServerError with default headers values

func (*QuerySubmissionsMixin0InternalServerError) Code added in v0.2.33

Code gets the status code for the query submissions mixin0 internal server error response

func (*QuerySubmissionsMixin0InternalServerError) Error

func (*QuerySubmissionsMixin0InternalServerError) GetPayload

func (*QuerySubmissionsMixin0InternalServerError) IsClientError added in v0.2.27

IsClientError returns true when this query submissions mixin0 internal server error response has a 4xx status code

func (*QuerySubmissionsMixin0InternalServerError) IsCode added in v0.2.27

IsCode returns true when this query submissions mixin0 internal server error response a status code equal to that given

func (*QuerySubmissionsMixin0InternalServerError) IsRedirect added in v0.2.27

IsRedirect returns true when this query submissions mixin0 internal server error response has a 3xx status code

func (*QuerySubmissionsMixin0InternalServerError) IsServerError added in v0.2.27

IsServerError returns true when this query submissions mixin0 internal server error response has a 5xx status code

func (*QuerySubmissionsMixin0InternalServerError) IsSuccess added in v0.2.27

IsSuccess returns true when this query submissions mixin0 internal server error response has a 2xx status code

func (*QuerySubmissionsMixin0InternalServerError) String added in v0.2.27

type QuerySubmissionsMixin0OK

type QuerySubmissionsMixin0OK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiQueryResponse
}

QuerySubmissionsMixin0OK describes a response with status code 200, with default header values.

OK

func NewQuerySubmissionsMixin0OK

func NewQuerySubmissionsMixin0OK() *QuerySubmissionsMixin0OK

NewQuerySubmissionsMixin0OK creates a QuerySubmissionsMixin0OK with default headers values

func (*QuerySubmissionsMixin0OK) Code added in v0.2.33

func (o *QuerySubmissionsMixin0OK) Code() int

Code gets the status code for the query submissions mixin0 o k response

func (*QuerySubmissionsMixin0OK) Error

func (o *QuerySubmissionsMixin0OK) Error() string

func (*QuerySubmissionsMixin0OK) GetPayload

func (*QuerySubmissionsMixin0OK) IsClientError added in v0.2.27

func (o *QuerySubmissionsMixin0OK) IsClientError() bool

IsClientError returns true when this query submissions mixin0 o k response has a 4xx status code

func (*QuerySubmissionsMixin0OK) IsCode added in v0.2.27

func (o *QuerySubmissionsMixin0OK) IsCode(code int) bool

IsCode returns true when this query submissions mixin0 o k response a status code equal to that given

func (*QuerySubmissionsMixin0OK) IsRedirect added in v0.2.27

func (o *QuerySubmissionsMixin0OK) IsRedirect() bool

IsRedirect returns true when this query submissions mixin0 o k response has a 3xx status code

func (*QuerySubmissionsMixin0OK) IsServerError added in v0.2.27

func (o *QuerySubmissionsMixin0OK) IsServerError() bool

IsServerError returns true when this query submissions mixin0 o k response has a 5xx status code

func (*QuerySubmissionsMixin0OK) IsSuccess added in v0.2.27

func (o *QuerySubmissionsMixin0OK) IsSuccess() bool

IsSuccess returns true when this query submissions mixin0 o k response has a 2xx status code

func (*QuerySubmissionsMixin0OK) String added in v0.2.27

func (o *QuerySubmissionsMixin0OK) String() string

type QuerySubmissionsMixin0Params

type QuerySubmissionsMixin0Params struct {

	/* Filter.

	   Optional filter and sort criteria in the form of an FQL query. For more information about FQL queries, see [our FQL documentation in Falcon](https://falcon.crowdstrike.com/support/documentation/45/falcon-query-language-feature-guide).
	*/
	Filter *string

	/* Limit.

	   Maximum number of volume IDs to return. Max: 5000.
	*/
	Limit *int64

	/* Offset.

	   The offset to start retrieving submissions from.
	*/
	Offset *string

	/* Sort.

	   Sort order: `asc` or `desc`.
	*/
	Sort *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QuerySubmissionsMixin0Params contains all the parameters to send to the API endpoint

for the query submissions mixin0 operation.

Typically these are written to a http.Request.

func NewQuerySubmissionsMixin0Params

func NewQuerySubmissionsMixin0Params() *QuerySubmissionsMixin0Params

NewQuerySubmissionsMixin0Params creates a new QuerySubmissionsMixin0Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewQuerySubmissionsMixin0ParamsWithContext

func NewQuerySubmissionsMixin0ParamsWithContext(ctx context.Context) *QuerySubmissionsMixin0Params

NewQuerySubmissionsMixin0ParamsWithContext creates a new QuerySubmissionsMixin0Params object with the ability to set a context for a request.

func NewQuerySubmissionsMixin0ParamsWithHTTPClient

func NewQuerySubmissionsMixin0ParamsWithHTTPClient(client *http.Client) *QuerySubmissionsMixin0Params

NewQuerySubmissionsMixin0ParamsWithHTTPClient creates a new QuerySubmissionsMixin0Params object with the ability to set a custom HTTPClient for a request.

func NewQuerySubmissionsMixin0ParamsWithTimeout

func NewQuerySubmissionsMixin0ParamsWithTimeout(timeout time.Duration) *QuerySubmissionsMixin0Params

NewQuerySubmissionsMixin0ParamsWithTimeout creates a new QuerySubmissionsMixin0Params object with the ability to set a timeout on a request.

func (*QuerySubmissionsMixin0Params) SetContext

func (o *QuerySubmissionsMixin0Params) SetContext(ctx context.Context)

SetContext adds the context to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) SetDefaults

func (o *QuerySubmissionsMixin0Params) SetDefaults()

SetDefaults hydrates default values in the query submissions mixin0 params (not the query body).

All values with no default are reset to their zero value.

func (*QuerySubmissionsMixin0Params) SetFilter

func (o *QuerySubmissionsMixin0Params) SetFilter(filter *string)

SetFilter adds the filter to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) SetHTTPClient

func (o *QuerySubmissionsMixin0Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) SetLimit

func (o *QuerySubmissionsMixin0Params) SetLimit(limit *int64)

SetLimit adds the limit to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) SetOffset

func (o *QuerySubmissionsMixin0Params) SetOffset(offset *string)

SetOffset adds the offset to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) SetSort

func (o *QuerySubmissionsMixin0Params) SetSort(sort *string)

SetSort adds the sort to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) SetTimeout

func (o *QuerySubmissionsMixin0Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) WithContext

WithContext adds the context to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) WithDefaults

WithDefaults hydrates default values in the query submissions mixin0 params (not the query body).

All values with no default are reset to their zero value.

func (*QuerySubmissionsMixin0Params) WithFilter

WithFilter adds the filter to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) WithLimit

WithLimit adds the limit to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) WithOffset

WithOffset adds the offset to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) WithSort

WithSort adds the sort to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) WithTimeout

WithTimeout adds the timeout to the query submissions mixin0 params

func (*QuerySubmissionsMixin0Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type QuerySubmissionsMixin0Reader

type QuerySubmissionsMixin0Reader struct {
	// contains filtered or unexported fields
}

QuerySubmissionsMixin0Reader is a Reader for the QuerySubmissionsMixin0 structure.

func (*QuerySubmissionsMixin0Reader) ReadResponse

func (o *QuerySubmissionsMixin0Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type QuerySubmissionsMixin0TooManyRequests

type QuerySubmissionsMixin0TooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

QuerySubmissionsMixin0TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewQuerySubmissionsMixin0TooManyRequests

func NewQuerySubmissionsMixin0TooManyRequests() *QuerySubmissionsMixin0TooManyRequests

NewQuerySubmissionsMixin0TooManyRequests creates a QuerySubmissionsMixin0TooManyRequests with default headers values

func (*QuerySubmissionsMixin0TooManyRequests) Code added in v0.2.33

Code gets the status code for the query submissions mixin0 too many requests response

func (*QuerySubmissionsMixin0TooManyRequests) Error

func (*QuerySubmissionsMixin0TooManyRequests) GetPayload

func (*QuerySubmissionsMixin0TooManyRequests) IsClientError added in v0.2.27

func (o *QuerySubmissionsMixin0TooManyRequests) IsClientError() bool

IsClientError returns true when this query submissions mixin0 too many requests response has a 4xx status code

func (*QuerySubmissionsMixin0TooManyRequests) IsCode added in v0.2.27

IsCode returns true when this query submissions mixin0 too many requests response a status code equal to that given

func (*QuerySubmissionsMixin0TooManyRequests) IsRedirect added in v0.2.27

IsRedirect returns true when this query submissions mixin0 too many requests response has a 3xx status code

func (*QuerySubmissionsMixin0TooManyRequests) IsServerError added in v0.2.27

func (o *QuerySubmissionsMixin0TooManyRequests) IsServerError() bool

IsServerError returns true when this query submissions mixin0 too many requests response has a 5xx status code

func (*QuerySubmissionsMixin0TooManyRequests) IsSuccess added in v0.2.27

IsSuccess returns true when this query submissions mixin0 too many requests response has a 2xx status code

func (*QuerySubmissionsMixin0TooManyRequests) String added in v0.2.27

type ScanSamplesBadRequest

type ScanSamplesBadRequest struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiQueryResponse
}

ScanSamplesBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewScanSamplesBadRequest

func NewScanSamplesBadRequest() *ScanSamplesBadRequest

NewScanSamplesBadRequest creates a ScanSamplesBadRequest with default headers values

func (*ScanSamplesBadRequest) Code added in v0.2.33

func (o *ScanSamplesBadRequest) Code() int

Code gets the status code for the scan samples bad request response

func (*ScanSamplesBadRequest) Error

func (o *ScanSamplesBadRequest) Error() string

func (*ScanSamplesBadRequest) GetPayload

func (*ScanSamplesBadRequest) IsClientError added in v0.2.27

func (o *ScanSamplesBadRequest) IsClientError() bool

IsClientError returns true when this scan samples bad request response has a 4xx status code

func (*ScanSamplesBadRequest) IsCode added in v0.2.27

func (o *ScanSamplesBadRequest) IsCode(code int) bool

IsCode returns true when this scan samples bad request response a status code equal to that given

func (*ScanSamplesBadRequest) IsRedirect added in v0.2.27

func (o *ScanSamplesBadRequest) IsRedirect() bool

IsRedirect returns true when this scan samples bad request response has a 3xx status code

func (*ScanSamplesBadRequest) IsServerError added in v0.2.27

func (o *ScanSamplesBadRequest) IsServerError() bool

IsServerError returns true when this scan samples bad request response has a 5xx status code

func (*ScanSamplesBadRequest) IsSuccess added in v0.2.27

func (o *ScanSamplesBadRequest) IsSuccess() bool

IsSuccess returns true when this scan samples bad request response has a 2xx status code

func (*ScanSamplesBadRequest) String added in v0.2.27

func (o *ScanSamplesBadRequest) String() string

type ScanSamplesForbidden

type ScanSamplesForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

ScanSamplesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewScanSamplesForbidden

func NewScanSamplesForbidden() *ScanSamplesForbidden

NewScanSamplesForbidden creates a ScanSamplesForbidden with default headers values

func (*ScanSamplesForbidden) Code added in v0.2.33

func (o *ScanSamplesForbidden) Code() int

Code gets the status code for the scan samples forbidden response

func (*ScanSamplesForbidden) Error

func (o *ScanSamplesForbidden) Error() string

func (*ScanSamplesForbidden) GetPayload

func (o *ScanSamplesForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*ScanSamplesForbidden) IsClientError added in v0.2.27

func (o *ScanSamplesForbidden) IsClientError() bool

IsClientError returns true when this scan samples forbidden response has a 4xx status code

func (*ScanSamplesForbidden) IsCode added in v0.2.27

func (o *ScanSamplesForbidden) IsCode(code int) bool

IsCode returns true when this scan samples forbidden response a status code equal to that given

func (*ScanSamplesForbidden) IsRedirect added in v0.2.27

func (o *ScanSamplesForbidden) IsRedirect() bool

IsRedirect returns true when this scan samples forbidden response has a 3xx status code

func (*ScanSamplesForbidden) IsServerError added in v0.2.27

func (o *ScanSamplesForbidden) IsServerError() bool

IsServerError returns true when this scan samples forbidden response has a 5xx status code

func (*ScanSamplesForbidden) IsSuccess added in v0.2.27

func (o *ScanSamplesForbidden) IsSuccess() bool

IsSuccess returns true when this scan samples forbidden response has a 2xx status code

func (*ScanSamplesForbidden) String added in v0.2.27

func (o *ScanSamplesForbidden) String() string

type ScanSamplesInternalServerError

type ScanSamplesInternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiQueryResponse
}

ScanSamplesInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewScanSamplesInternalServerError

func NewScanSamplesInternalServerError() *ScanSamplesInternalServerError

NewScanSamplesInternalServerError creates a ScanSamplesInternalServerError with default headers values

func (*ScanSamplesInternalServerError) Code added in v0.2.33

Code gets the status code for the scan samples internal server error response

func (*ScanSamplesInternalServerError) Error

func (*ScanSamplesInternalServerError) GetPayload

func (*ScanSamplesInternalServerError) IsClientError added in v0.2.27

func (o *ScanSamplesInternalServerError) IsClientError() bool

IsClientError returns true when this scan samples internal server error response has a 4xx status code

func (*ScanSamplesInternalServerError) IsCode added in v0.2.27

func (o *ScanSamplesInternalServerError) IsCode(code int) bool

IsCode returns true when this scan samples internal server error response a status code equal to that given

func (*ScanSamplesInternalServerError) IsRedirect added in v0.2.27

func (o *ScanSamplesInternalServerError) IsRedirect() bool

IsRedirect returns true when this scan samples internal server error response has a 3xx status code

func (*ScanSamplesInternalServerError) IsServerError added in v0.2.27

func (o *ScanSamplesInternalServerError) IsServerError() bool

IsServerError returns true when this scan samples internal server error response has a 5xx status code

func (*ScanSamplesInternalServerError) IsSuccess added in v0.2.27

func (o *ScanSamplesInternalServerError) IsSuccess() bool

IsSuccess returns true when this scan samples internal server error response has a 2xx status code

func (*ScanSamplesInternalServerError) String added in v0.2.27

type ScanSamplesOK

type ScanSamplesOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MlscannerapiQueryResponse
}

ScanSamplesOK describes a response with status code 200, with default header values.

OK

func NewScanSamplesOK

func NewScanSamplesOK() *ScanSamplesOK

NewScanSamplesOK creates a ScanSamplesOK with default headers values

func (*ScanSamplesOK) Code added in v0.2.33

func (o *ScanSamplesOK) Code() int

Code gets the status code for the scan samples o k response

func (*ScanSamplesOK) Error

func (o *ScanSamplesOK) Error() string

func (*ScanSamplesOK) GetPayload

func (*ScanSamplesOK) IsClientError added in v0.2.27

func (o *ScanSamplesOK) IsClientError() bool

IsClientError returns true when this scan samples o k response has a 4xx status code

func (*ScanSamplesOK) IsCode added in v0.2.27

func (o *ScanSamplesOK) IsCode(code int) bool

IsCode returns true when this scan samples o k response a status code equal to that given

func (*ScanSamplesOK) IsRedirect added in v0.2.27

func (o *ScanSamplesOK) IsRedirect() bool

IsRedirect returns true when this scan samples o k response has a 3xx status code

func (*ScanSamplesOK) IsServerError added in v0.2.27

func (o *ScanSamplesOK) IsServerError() bool

IsServerError returns true when this scan samples o k response has a 5xx status code

func (*ScanSamplesOK) IsSuccess added in v0.2.27

func (o *ScanSamplesOK) IsSuccess() bool

IsSuccess returns true when this scan samples o k response has a 2xx status code

func (*ScanSamplesOK) String added in v0.2.27

func (o *ScanSamplesOK) String() string

type ScanSamplesParams

type ScanSamplesParams struct {

	/* Body.

	   Submit a batch of SHA256s for ml scanning. The samples must have been previously uploaded through `/samples/entities/samples/v3`
	*/
	Body *models.MlscannerapiSamplesScanParameters

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ScanSamplesParams contains all the parameters to send to the API endpoint

for the scan samples operation.

Typically these are written to a http.Request.

func NewScanSamplesParams

func NewScanSamplesParams() *ScanSamplesParams

NewScanSamplesParams creates a new ScanSamplesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewScanSamplesParamsWithContext

func NewScanSamplesParamsWithContext(ctx context.Context) *ScanSamplesParams

NewScanSamplesParamsWithContext creates a new ScanSamplesParams object with the ability to set a context for a request.

func NewScanSamplesParamsWithHTTPClient

func NewScanSamplesParamsWithHTTPClient(client *http.Client) *ScanSamplesParams

NewScanSamplesParamsWithHTTPClient creates a new ScanSamplesParams object with the ability to set a custom HTTPClient for a request.

func NewScanSamplesParamsWithTimeout

func NewScanSamplesParamsWithTimeout(timeout time.Duration) *ScanSamplesParams

NewScanSamplesParamsWithTimeout creates a new ScanSamplesParams object with the ability to set a timeout on a request.

func (*ScanSamplesParams) SetBody

SetBody adds the body to the scan samples params

func (*ScanSamplesParams) SetContext

func (o *ScanSamplesParams) SetContext(ctx context.Context)

SetContext adds the context to the scan samples params

func (*ScanSamplesParams) SetDefaults

func (o *ScanSamplesParams) SetDefaults()

SetDefaults hydrates default values in the scan samples params (not the query body).

All values with no default are reset to their zero value.

func (*ScanSamplesParams) SetHTTPClient

func (o *ScanSamplesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the scan samples params

func (*ScanSamplesParams) SetTimeout

func (o *ScanSamplesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the scan samples params

func (*ScanSamplesParams) WithBody

WithBody adds the body to the scan samples params

func (*ScanSamplesParams) WithContext

func (o *ScanSamplesParams) WithContext(ctx context.Context) *ScanSamplesParams

WithContext adds the context to the scan samples params

func (*ScanSamplesParams) WithDefaults

func (o *ScanSamplesParams) WithDefaults() *ScanSamplesParams

WithDefaults hydrates default values in the scan samples params (not the query body).

All values with no default are reset to their zero value.

func (*ScanSamplesParams) WithHTTPClient

func (o *ScanSamplesParams) WithHTTPClient(client *http.Client) *ScanSamplesParams

WithHTTPClient adds the HTTPClient to the scan samples params

func (*ScanSamplesParams) WithTimeout

func (o *ScanSamplesParams) WithTimeout(timeout time.Duration) *ScanSamplesParams

WithTimeout adds the timeout to the scan samples params

func (*ScanSamplesParams) WriteToRequest

func (o *ScanSamplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ScanSamplesReader

type ScanSamplesReader struct {
	// contains filtered or unexported fields
}

ScanSamplesReader is a Reader for the ScanSamples structure.

func (*ScanSamplesReader) ReadResponse

func (o *ScanSamplesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ScanSamplesTooManyRequests

type ScanSamplesTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

ScanSamplesTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewScanSamplesTooManyRequests

func NewScanSamplesTooManyRequests() *ScanSamplesTooManyRequests

NewScanSamplesTooManyRequests creates a ScanSamplesTooManyRequests with default headers values

func (*ScanSamplesTooManyRequests) Code added in v0.2.33

func (o *ScanSamplesTooManyRequests) Code() int

Code gets the status code for the scan samples too many requests response

func (*ScanSamplesTooManyRequests) Error

func (*ScanSamplesTooManyRequests) GetPayload

func (*ScanSamplesTooManyRequests) IsClientError added in v0.2.27

func (o *ScanSamplesTooManyRequests) IsClientError() bool

IsClientError returns true when this scan samples too many requests response has a 4xx status code

func (*ScanSamplesTooManyRequests) IsCode added in v0.2.27

func (o *ScanSamplesTooManyRequests) IsCode(code int) bool

IsCode returns true when this scan samples too many requests response a status code equal to that given

func (*ScanSamplesTooManyRequests) IsRedirect added in v0.2.27

func (o *ScanSamplesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this scan samples too many requests response has a 3xx status code

func (*ScanSamplesTooManyRequests) IsServerError added in v0.2.27

func (o *ScanSamplesTooManyRequests) IsServerError() bool

IsServerError returns true when this scan samples too many requests response has a 5xx status code

func (*ScanSamplesTooManyRequests) IsSuccess added in v0.2.27

func (o *ScanSamplesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this scan samples too many requests response has a 2xx status code

func (*ScanSamplesTooManyRequests) String added in v0.2.27

func (o *ScanSamplesTooManyRequests) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL