configuration_assessment

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 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 configuration assessment API

func (*Client) GetCombinedAssessmentsQuery

func (a *Client) GetCombinedAssessmentsQuery(params *GetCombinedAssessmentsQueryParams, opts ...ClientOption) (*GetCombinedAssessmentsQueryOK, error)

GetCombinedAssessmentsQuery searches for assessments in your environment by providing an f q l filter and paging details returns a set of host finding entities which match the filter criteria

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 {
	GetCombinedAssessmentsQuery(params *GetCombinedAssessmentsQueryParams, opts ...ClientOption) (*GetCombinedAssessmentsQueryOK, 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 configuration assessment API client.

type GetCombinedAssessmentsQueryBadRequest

type GetCombinedAssessmentsQueryBadRequest 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.DomainAPICombinedFindingsResponseV1
}

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

Bad Request

func NewGetCombinedAssessmentsQueryBadRequest

func NewGetCombinedAssessmentsQueryBadRequest() *GetCombinedAssessmentsQueryBadRequest

NewGetCombinedAssessmentsQueryBadRequest creates a GetCombinedAssessmentsQueryBadRequest with default headers values

func (*GetCombinedAssessmentsQueryBadRequest) Code

Code gets the status code for the get combined assessments query bad request response

func (*GetCombinedAssessmentsQueryBadRequest) Error

func (*GetCombinedAssessmentsQueryBadRequest) GetPayload

func (*GetCombinedAssessmentsQueryBadRequest) IsClientError

func (o *GetCombinedAssessmentsQueryBadRequest) IsClientError() bool

IsClientError returns true when this get combined assessments query bad request response has a 4xx status code

func (*GetCombinedAssessmentsQueryBadRequest) IsCode

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

func (*GetCombinedAssessmentsQueryBadRequest) IsRedirect

IsRedirect returns true when this get combined assessments query bad request response has a 3xx status code

func (*GetCombinedAssessmentsQueryBadRequest) IsServerError

func (o *GetCombinedAssessmentsQueryBadRequest) IsServerError() bool

IsServerError returns true when this get combined assessments query bad request response has a 5xx status code

func (*GetCombinedAssessmentsQueryBadRequest) IsSuccess

IsSuccess returns true when this get combined assessments query bad request response has a 2xx status code

func (*GetCombinedAssessmentsQueryBadRequest) String

type GetCombinedAssessmentsQueryForbidden

type GetCombinedAssessmentsQueryForbidden 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
}

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

Forbidden

func NewGetCombinedAssessmentsQueryForbidden

func NewGetCombinedAssessmentsQueryForbidden() *GetCombinedAssessmentsQueryForbidden

NewGetCombinedAssessmentsQueryForbidden creates a GetCombinedAssessmentsQueryForbidden with default headers values

func (*GetCombinedAssessmentsQueryForbidden) Code

Code gets the status code for the get combined assessments query forbidden response

func (*GetCombinedAssessmentsQueryForbidden) Error

func (*GetCombinedAssessmentsQueryForbidden) GetPayload

func (*GetCombinedAssessmentsQueryForbidden) IsClientError

func (o *GetCombinedAssessmentsQueryForbidden) IsClientError() bool

IsClientError returns true when this get combined assessments query forbidden response has a 4xx status code

func (*GetCombinedAssessmentsQueryForbidden) IsCode

IsCode returns true when this get combined assessments query forbidden response a status code equal to that given

func (*GetCombinedAssessmentsQueryForbidden) IsRedirect

IsRedirect returns true when this get combined assessments query forbidden response has a 3xx status code

func (*GetCombinedAssessmentsQueryForbidden) IsServerError

func (o *GetCombinedAssessmentsQueryForbidden) IsServerError() bool

IsServerError returns true when this get combined assessments query forbidden response has a 5xx status code

func (*GetCombinedAssessmentsQueryForbidden) IsSuccess

IsSuccess returns true when this get combined assessments query forbidden response has a 2xx status code

func (*GetCombinedAssessmentsQueryForbidden) String

type GetCombinedAssessmentsQueryInternalServerError

type GetCombinedAssessmentsQueryInternalServerError 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.DomainAPICombinedFindingsResponseV1
}

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

Internal Server Error

func NewGetCombinedAssessmentsQueryInternalServerError

func NewGetCombinedAssessmentsQueryInternalServerError() *GetCombinedAssessmentsQueryInternalServerError

NewGetCombinedAssessmentsQueryInternalServerError creates a GetCombinedAssessmentsQueryInternalServerError with default headers values

func (*GetCombinedAssessmentsQueryInternalServerError) Code

Code gets the status code for the get combined assessments query internal server error response

func (*GetCombinedAssessmentsQueryInternalServerError) Error

func (*GetCombinedAssessmentsQueryInternalServerError) GetPayload

func (*GetCombinedAssessmentsQueryInternalServerError) IsClientError

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

func (*GetCombinedAssessmentsQueryInternalServerError) IsCode

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

func (*GetCombinedAssessmentsQueryInternalServerError) IsRedirect

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

func (*GetCombinedAssessmentsQueryInternalServerError) IsServerError

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

func (*GetCombinedAssessmentsQueryInternalServerError) IsSuccess

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

func (*GetCombinedAssessmentsQueryInternalServerError) String

type GetCombinedAssessmentsQueryOK

type GetCombinedAssessmentsQueryOK 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.DomainAPICombinedFindingsResponseV1
}

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

OK

func NewGetCombinedAssessmentsQueryOK

func NewGetCombinedAssessmentsQueryOK() *GetCombinedAssessmentsQueryOK

NewGetCombinedAssessmentsQueryOK creates a GetCombinedAssessmentsQueryOK with default headers values

func (*GetCombinedAssessmentsQueryOK) Code

Code gets the status code for the get combined assessments query o k response

func (*GetCombinedAssessmentsQueryOK) Error

func (*GetCombinedAssessmentsQueryOK) GetPayload

func (*GetCombinedAssessmentsQueryOK) IsClientError

func (o *GetCombinedAssessmentsQueryOK) IsClientError() bool

IsClientError returns true when this get combined assessments query o k response has a 4xx status code

func (*GetCombinedAssessmentsQueryOK) IsCode

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

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

func (*GetCombinedAssessmentsQueryOK) IsRedirect

func (o *GetCombinedAssessmentsQueryOK) IsRedirect() bool

IsRedirect returns true when this get combined assessments query o k response has a 3xx status code

func (*GetCombinedAssessmentsQueryOK) IsServerError

func (o *GetCombinedAssessmentsQueryOK) IsServerError() bool

IsServerError returns true when this get combined assessments query o k response has a 5xx status code

func (*GetCombinedAssessmentsQueryOK) IsSuccess

func (o *GetCombinedAssessmentsQueryOK) IsSuccess() bool

IsSuccess returns true when this get combined assessments query o k response has a 2xx status code

func (*GetCombinedAssessmentsQueryOK) String

type GetCombinedAssessmentsQueryParams

type GetCombinedAssessmentsQueryParams struct {

	/* After.

	   A pagination token used with the `limit` parameter to manage pagination of results. On your first request, don't provide an `after` token. On subsequent requests, provide the `after` token from the previous response to continue from that place in the results.
	*/
	After *string

	/* Facet.

	     Select various details blocks to be returned for each assessment entity. Supported values:

	<ul><li>host</li><li>finding.rule</li><li>finding.evaluation_logic</li></ul>
	*/
	Facet []string

	/* Filter.

	     Filter items using a query in Falcon Query Language (FQL). Wildcards * are unsupported.

	Common filter options include:

	<ul><li>created_timestamp:>'2019-11-25T22:36:12Z'</li><li>updated_timestamp:>'2019-11-25T22:36:12Z'</li><li>aid:'8e7656b27d8c49a34a1af416424d6231'</li></ul>
	*/
	Filter string

	/* Limit.

	   The number of items to return in this response (default: 100, max: 5000). Use with the after parameter to manage pagination of results.
	*/
	Limit *int64

	/* Sort.

	     Sort assessment by their properties. Common sort options include:

	<ul><li>created_timestamp|desc</li><li>updated_timestamp|asc</li></ul>
	*/
	Sort *string

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

GetCombinedAssessmentsQueryParams contains all the parameters to send to the API endpoint

for the get combined assessments query operation.

Typically these are written to a http.Request.

func NewGetCombinedAssessmentsQueryParams

func NewGetCombinedAssessmentsQueryParams() *GetCombinedAssessmentsQueryParams

NewGetCombinedAssessmentsQueryParams creates a new GetCombinedAssessmentsQueryParams 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 NewGetCombinedAssessmentsQueryParamsWithContext

func NewGetCombinedAssessmentsQueryParamsWithContext(ctx context.Context) *GetCombinedAssessmentsQueryParams

NewGetCombinedAssessmentsQueryParamsWithContext creates a new GetCombinedAssessmentsQueryParams object with the ability to set a context for a request.

func NewGetCombinedAssessmentsQueryParamsWithHTTPClient

func NewGetCombinedAssessmentsQueryParamsWithHTTPClient(client *http.Client) *GetCombinedAssessmentsQueryParams

NewGetCombinedAssessmentsQueryParamsWithHTTPClient creates a new GetCombinedAssessmentsQueryParams object with the ability to set a custom HTTPClient for a request.

func NewGetCombinedAssessmentsQueryParamsWithTimeout

func NewGetCombinedAssessmentsQueryParamsWithTimeout(timeout time.Duration) *GetCombinedAssessmentsQueryParams

NewGetCombinedAssessmentsQueryParamsWithTimeout creates a new GetCombinedAssessmentsQueryParams object with the ability to set a timeout on a request.

func (*GetCombinedAssessmentsQueryParams) SetAfter

func (o *GetCombinedAssessmentsQueryParams) SetAfter(after *string)

SetAfter adds the after to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) SetContext

SetContext adds the context to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) SetDefaults

func (o *GetCombinedAssessmentsQueryParams) SetDefaults()

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

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

func (*GetCombinedAssessmentsQueryParams) SetFacet

func (o *GetCombinedAssessmentsQueryParams) SetFacet(facet []string)

SetFacet adds the facet to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) SetFilter

func (o *GetCombinedAssessmentsQueryParams) SetFilter(filter string)

SetFilter adds the filter to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) SetLimit

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

SetLimit adds the limit to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) SetSort

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

SetSort adds the sort to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) SetTimeout

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

SetTimeout adds the timeout to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WithAfter

WithAfter adds the after to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WithContext

WithContext adds the context to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WithDefaults

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

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

func (*GetCombinedAssessmentsQueryParams) WithFacet

WithFacet adds the facet to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WithFilter

WithFilter adds the filter to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WithLimit

WithLimit adds the limit to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WithSort

WithSort adds the sort to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WithTimeout

WithTimeout adds the timeout to the get combined assessments query params

func (*GetCombinedAssessmentsQueryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCombinedAssessmentsQueryReader

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

GetCombinedAssessmentsQueryReader is a Reader for the GetCombinedAssessmentsQuery structure.

func (*GetCombinedAssessmentsQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCombinedAssessmentsQueryTooManyRequests

type GetCombinedAssessmentsQueryTooManyRequests 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
}

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

Too Many Requests

func NewGetCombinedAssessmentsQueryTooManyRequests

func NewGetCombinedAssessmentsQueryTooManyRequests() *GetCombinedAssessmentsQueryTooManyRequests

NewGetCombinedAssessmentsQueryTooManyRequests creates a GetCombinedAssessmentsQueryTooManyRequests with default headers values

func (*GetCombinedAssessmentsQueryTooManyRequests) Code

Code gets the status code for the get combined assessments query too many requests response

func (*GetCombinedAssessmentsQueryTooManyRequests) Error

func (*GetCombinedAssessmentsQueryTooManyRequests) GetPayload

func (*GetCombinedAssessmentsQueryTooManyRequests) IsClientError

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

func (*GetCombinedAssessmentsQueryTooManyRequests) IsCode

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

func (*GetCombinedAssessmentsQueryTooManyRequests) IsRedirect

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

func (*GetCombinedAssessmentsQueryTooManyRequests) IsServerError

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

func (*GetCombinedAssessmentsQueryTooManyRequests) IsSuccess

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

func (*GetCombinedAssessmentsQueryTooManyRequests) String

Jump to

Keyboard shortcuts

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