spotlight_vulnerabilities

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 11 Imported by: 3

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 spotlight vulnerabilities API

func (*Client) CombinedQueryVulnerabilities added in v0.2.13

func (a *Client) CombinedQueryVulnerabilities(params *CombinedQueryVulnerabilitiesParams, opts ...ClientOption) (*CombinedQueryVulnerabilitiesOK, error)

CombinedQueryVulnerabilities searches for vulnerabilities in your environment by providing an f q l filter and paging details returns a set of vulnerability entities which match the filter criteria

func (*Client) GetRemediationsV2 added in v0.2.8

func (a *Client) GetRemediationsV2(params *GetRemediationsV2Params, opts ...ClientOption) (*GetRemediationsV2OK, error)

GetRemediationsV2 gets details on remediation by providing one or more i ds

func (*Client) GetVulnerabilities

func (a *Client) GetVulnerabilities(params *GetVulnerabilitiesParams, opts ...ClientOption) (*GetVulnerabilitiesOK, error)

GetVulnerabilities gets details on vulnerabilities by providing one or more i ds

func (*Client) QueryVulnerabilities

func (a *Client) QueryVulnerabilities(params *QueryVulnerabilitiesParams, opts ...ClientOption) (*QueryVulnerabilitiesOK, error)

QueryVulnerabilities searches for vulnerabilities in your environment by providing an f q l filter and paging details returns a set of vulnerability i ds 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 {
	CombinedQueryVulnerabilities(params *CombinedQueryVulnerabilitiesParams, opts ...ClientOption) (*CombinedQueryVulnerabilitiesOK, error)

	GetRemediationsV2(params *GetRemediationsV2Params, opts ...ClientOption) (*GetRemediationsV2OK, error)

	GetVulnerabilities(params *GetVulnerabilitiesParams, opts ...ClientOption) (*GetVulnerabilitiesOK, error)

	QueryVulnerabilities(params *QueryVulnerabilitiesParams, opts ...ClientOption) (*QueryVulnerabilitiesOK, 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 spotlight vulnerabilities API client.

type CombinedQueryVulnerabilitiesBadRequest added in v0.2.13

type CombinedQueryVulnerabilitiesBadRequest 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.DomainSPAPICombinedVulnerabilitiesResponse
}
CombinedQueryVulnerabilitiesBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCombinedQueryVulnerabilitiesBadRequest added in v0.2.13

func NewCombinedQueryVulnerabilitiesBadRequest() *CombinedQueryVulnerabilitiesBadRequest

NewCombinedQueryVulnerabilitiesBadRequest creates a CombinedQueryVulnerabilitiesBadRequest with default headers values

func (*CombinedQueryVulnerabilitiesBadRequest) Error added in v0.2.13

func (*CombinedQueryVulnerabilitiesBadRequest) GetPayload added in v0.2.13

type CombinedQueryVulnerabilitiesDefault added in v0.2.13

type CombinedQueryVulnerabilitiesDefault struct {
	Payload *models.DomainSPAPICombinedVulnerabilitiesResponse
	// contains filtered or unexported fields
}
CombinedQueryVulnerabilitiesDefault describes a response with status code -1, with default header values.

OK

func NewCombinedQueryVulnerabilitiesDefault added in v0.2.13

func NewCombinedQueryVulnerabilitiesDefault(code int) *CombinedQueryVulnerabilitiesDefault

NewCombinedQueryVulnerabilitiesDefault creates a CombinedQueryVulnerabilitiesDefault with default headers values

func (*CombinedQueryVulnerabilitiesDefault) Code added in v0.2.13

Code gets the status code for the combined query vulnerabilities default response

func (*CombinedQueryVulnerabilitiesDefault) Error added in v0.2.13

func (*CombinedQueryVulnerabilitiesDefault) GetPayload added in v0.2.13

type CombinedQueryVulnerabilitiesForbidden added in v0.2.13

type CombinedQueryVulnerabilitiesForbidden 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
}
CombinedQueryVulnerabilitiesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCombinedQueryVulnerabilitiesForbidden added in v0.2.13

func NewCombinedQueryVulnerabilitiesForbidden() *CombinedQueryVulnerabilitiesForbidden

NewCombinedQueryVulnerabilitiesForbidden creates a CombinedQueryVulnerabilitiesForbidden with default headers values

func (*CombinedQueryVulnerabilitiesForbidden) Error added in v0.2.13

func (*CombinedQueryVulnerabilitiesForbidden) GetPayload added in v0.2.13

type CombinedQueryVulnerabilitiesInternalServerError added in v0.2.13

type CombinedQueryVulnerabilitiesInternalServerError 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.DomainSPAPICombinedVulnerabilitiesResponse
}
CombinedQueryVulnerabilitiesInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewCombinedQueryVulnerabilitiesInternalServerError added in v0.2.13

func NewCombinedQueryVulnerabilitiesInternalServerError() *CombinedQueryVulnerabilitiesInternalServerError

NewCombinedQueryVulnerabilitiesInternalServerError creates a CombinedQueryVulnerabilitiesInternalServerError with default headers values

func (*CombinedQueryVulnerabilitiesInternalServerError) Error added in v0.2.13

func (*CombinedQueryVulnerabilitiesInternalServerError) GetPayload added in v0.2.13

type CombinedQueryVulnerabilitiesOK added in v0.2.13

type CombinedQueryVulnerabilitiesOK 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.DomainSPAPICombinedVulnerabilitiesResponse
}
CombinedQueryVulnerabilitiesOK describes a response with status code 200, with default header values.

OK

func NewCombinedQueryVulnerabilitiesOK added in v0.2.13

func NewCombinedQueryVulnerabilitiesOK() *CombinedQueryVulnerabilitiesOK

NewCombinedQueryVulnerabilitiesOK creates a CombinedQueryVulnerabilitiesOK with default headers values

func (*CombinedQueryVulnerabilitiesOK) Error added in v0.2.13

func (*CombinedQueryVulnerabilitiesOK) GetPayload added in v0.2.13

type CombinedQueryVulnerabilitiesParams added in v0.2.13

type CombinedQueryVulnerabilitiesParams 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 vulnerability entity. Supported values:

	<ul><li>host_info</li><li>remediation</li><li>cve</li><li>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>closed_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 vulnerabilities by their properties. Common sort options include:

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

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

CombinedQueryVulnerabilitiesParams contains all the parameters to send to the API endpoint

for the combined query vulnerabilities operation.

Typically these are written to a http.Request.

func NewCombinedQueryVulnerabilitiesParams added in v0.2.13

func NewCombinedQueryVulnerabilitiesParams() *CombinedQueryVulnerabilitiesParams

NewCombinedQueryVulnerabilitiesParams creates a new CombinedQueryVulnerabilitiesParams 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 NewCombinedQueryVulnerabilitiesParamsWithContext added in v0.2.13

func NewCombinedQueryVulnerabilitiesParamsWithContext(ctx context.Context) *CombinedQueryVulnerabilitiesParams

NewCombinedQueryVulnerabilitiesParamsWithContext creates a new CombinedQueryVulnerabilitiesParams object with the ability to set a context for a request.

func NewCombinedQueryVulnerabilitiesParamsWithHTTPClient added in v0.2.13

func NewCombinedQueryVulnerabilitiesParamsWithHTTPClient(client *http.Client) *CombinedQueryVulnerabilitiesParams

NewCombinedQueryVulnerabilitiesParamsWithHTTPClient creates a new CombinedQueryVulnerabilitiesParams object with the ability to set a custom HTTPClient for a request.

func NewCombinedQueryVulnerabilitiesParamsWithTimeout added in v0.2.13

func NewCombinedQueryVulnerabilitiesParamsWithTimeout(timeout time.Duration) *CombinedQueryVulnerabilitiesParams

NewCombinedQueryVulnerabilitiesParamsWithTimeout creates a new CombinedQueryVulnerabilitiesParams object with the ability to set a timeout on a request.

func (*CombinedQueryVulnerabilitiesParams) SetAfter added in v0.2.13

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

SetAfter adds the after to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) SetContext added in v0.2.13

SetContext adds the context to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) SetDefaults added in v0.2.13

func (o *CombinedQueryVulnerabilitiesParams) SetDefaults()

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

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

func (*CombinedQueryVulnerabilitiesParams) SetFacet added in v0.2.13

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

SetFacet adds the facet to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) SetFilter added in v0.2.13

func (o *CombinedQueryVulnerabilitiesParams) SetFilter(filter string)

SetFilter adds the filter to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) SetHTTPClient added in v0.2.13

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

SetHTTPClient adds the HTTPClient to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) SetLimit added in v0.2.13

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

SetLimit adds the limit to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) SetSort added in v0.2.13

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

SetSort adds the sort to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) SetTimeout added in v0.2.13

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

SetTimeout adds the timeout to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WithAfter added in v0.2.13

WithAfter adds the after to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WithContext added in v0.2.13

WithContext adds the context to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WithDefaults added in v0.2.13

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

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

func (*CombinedQueryVulnerabilitiesParams) WithFacet added in v0.2.13

WithFacet adds the facet to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WithFilter added in v0.2.13

WithFilter adds the filter to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WithHTTPClient added in v0.2.13

WithHTTPClient adds the HTTPClient to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WithLimit added in v0.2.13

WithLimit adds the limit to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WithSort added in v0.2.13

WithSort adds the sort to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WithTimeout added in v0.2.13

WithTimeout adds the timeout to the combined query vulnerabilities params

func (*CombinedQueryVulnerabilitiesParams) WriteToRequest added in v0.2.13

WriteToRequest writes these params to a swagger request

type CombinedQueryVulnerabilitiesReader added in v0.2.13

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

CombinedQueryVulnerabilitiesReader is a Reader for the CombinedQueryVulnerabilities structure.

func (*CombinedQueryVulnerabilitiesReader) ReadResponse added in v0.2.13

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

ReadResponse reads a server response into the received o.

type CombinedQueryVulnerabilitiesTooManyRequests added in v0.2.13

type CombinedQueryVulnerabilitiesTooManyRequests 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
}
CombinedQueryVulnerabilitiesTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewCombinedQueryVulnerabilitiesTooManyRequests added in v0.2.13

func NewCombinedQueryVulnerabilitiesTooManyRequests() *CombinedQueryVulnerabilitiesTooManyRequests

NewCombinedQueryVulnerabilitiesTooManyRequests creates a CombinedQueryVulnerabilitiesTooManyRequests with default headers values

func (*CombinedQueryVulnerabilitiesTooManyRequests) Error added in v0.2.13

func (*CombinedQueryVulnerabilitiesTooManyRequests) GetPayload added in v0.2.13

type GetRemediationsV2Default added in v0.2.8

type GetRemediationsV2Default struct {
	Payload *models.DomainSPAPIRemediationEntitiesResponseV2
	// contains filtered or unexported fields
}
GetRemediationsV2Default describes a response with status code -1, with default header values.

OK

func NewGetRemediationsV2Default added in v0.2.8

func NewGetRemediationsV2Default(code int) *GetRemediationsV2Default

NewGetRemediationsV2Default creates a GetRemediationsV2Default with default headers values

func (*GetRemediationsV2Default) Code added in v0.2.8

func (o *GetRemediationsV2Default) Code() int

Code gets the status code for the get remediations v2 default response

func (*GetRemediationsV2Default) Error added in v0.2.8

func (o *GetRemediationsV2Default) Error() string

func (*GetRemediationsV2Default) GetPayload added in v0.2.8

type GetRemediationsV2Forbidden added in v0.2.8

type GetRemediationsV2Forbidden 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
}
GetRemediationsV2Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetRemediationsV2Forbidden added in v0.2.8

func NewGetRemediationsV2Forbidden() *GetRemediationsV2Forbidden

NewGetRemediationsV2Forbidden creates a GetRemediationsV2Forbidden with default headers values

func (*GetRemediationsV2Forbidden) Error added in v0.2.8

func (*GetRemediationsV2Forbidden) GetPayload added in v0.2.8

type GetRemediationsV2OK added in v0.2.8

type GetRemediationsV2OK 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.DomainSPAPIRemediationEntitiesResponseV2
}
GetRemediationsV2OK describes a response with status code 200, with default header values.

OK

func NewGetRemediationsV2OK added in v0.2.8

func NewGetRemediationsV2OK() *GetRemediationsV2OK

NewGetRemediationsV2OK creates a GetRemediationsV2OK with default headers values

func (*GetRemediationsV2OK) Error added in v0.2.8

func (o *GetRemediationsV2OK) Error() string

func (*GetRemediationsV2OK) GetPayload added in v0.2.8

type GetRemediationsV2Params added in v0.2.8

type GetRemediationsV2Params struct {

	/* Ids.

	   One or more remediation IDs
	*/
	Ids []string

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

GetRemediationsV2Params contains all the parameters to send to the API endpoint

for the get remediations v2 operation.

Typically these are written to a http.Request.

func NewGetRemediationsV2Params added in v0.2.8

func NewGetRemediationsV2Params() *GetRemediationsV2Params

NewGetRemediationsV2Params creates a new GetRemediationsV2Params 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 NewGetRemediationsV2ParamsWithContext added in v0.2.8

func NewGetRemediationsV2ParamsWithContext(ctx context.Context) *GetRemediationsV2Params

NewGetRemediationsV2ParamsWithContext creates a new GetRemediationsV2Params object with the ability to set a context for a request.

func NewGetRemediationsV2ParamsWithHTTPClient added in v0.2.8

func NewGetRemediationsV2ParamsWithHTTPClient(client *http.Client) *GetRemediationsV2Params

NewGetRemediationsV2ParamsWithHTTPClient creates a new GetRemediationsV2Params object with the ability to set a custom HTTPClient for a request.

func NewGetRemediationsV2ParamsWithTimeout added in v0.2.8

func NewGetRemediationsV2ParamsWithTimeout(timeout time.Duration) *GetRemediationsV2Params

NewGetRemediationsV2ParamsWithTimeout creates a new GetRemediationsV2Params object with the ability to set a timeout on a request.

func (*GetRemediationsV2Params) SetContext added in v0.2.8

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

SetContext adds the context to the get remediations v2 params

func (*GetRemediationsV2Params) SetDefaults added in v0.2.8

func (o *GetRemediationsV2Params) SetDefaults()

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

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

func (*GetRemediationsV2Params) SetHTTPClient added in v0.2.8

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

SetHTTPClient adds the HTTPClient to the get remediations v2 params

func (*GetRemediationsV2Params) SetIds added in v0.2.8

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

SetIds adds the ids to the get remediations v2 params

func (*GetRemediationsV2Params) SetTimeout added in v0.2.8

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

SetTimeout adds the timeout to the get remediations v2 params

func (*GetRemediationsV2Params) WithContext added in v0.2.8

WithContext adds the context to the get remediations v2 params

func (*GetRemediationsV2Params) WithDefaults added in v0.2.8

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

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

func (*GetRemediationsV2Params) WithHTTPClient added in v0.2.8

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

WithHTTPClient adds the HTTPClient to the get remediations v2 params

func (*GetRemediationsV2Params) WithIds added in v0.2.8

WithIds adds the ids to the get remediations v2 params

func (*GetRemediationsV2Params) WithTimeout added in v0.2.8

WithTimeout adds the timeout to the get remediations v2 params

func (*GetRemediationsV2Params) WriteToRequest added in v0.2.8

WriteToRequest writes these params to a swagger request

type GetRemediationsV2Reader added in v0.2.8

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

GetRemediationsV2Reader is a Reader for the GetRemediationsV2 structure.

func (*GetRemediationsV2Reader) ReadResponse added in v0.2.8

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

ReadResponse reads a server response into the received o.

type GetRemediationsV2TooManyRequests added in v0.2.8

type GetRemediationsV2TooManyRequests 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
}
GetRemediationsV2TooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetRemediationsV2TooManyRequests added in v0.2.8

func NewGetRemediationsV2TooManyRequests() *GetRemediationsV2TooManyRequests

NewGetRemediationsV2TooManyRequests creates a GetRemediationsV2TooManyRequests with default headers values

func (*GetRemediationsV2TooManyRequests) Error added in v0.2.8

func (*GetRemediationsV2TooManyRequests) GetPayload added in v0.2.8

type GetVulnerabilitiesDefault

type GetVulnerabilitiesDefault struct {
	Payload *models.DomainSPAPIVulnerabilitiesEntitiesResponseV2
	// contains filtered or unexported fields
}
GetVulnerabilitiesDefault describes a response with status code -1, with default header values.

OK

func NewGetVulnerabilitiesDefault

func NewGetVulnerabilitiesDefault(code int) *GetVulnerabilitiesDefault

NewGetVulnerabilitiesDefault creates a GetVulnerabilitiesDefault with default headers values

func (*GetVulnerabilitiesDefault) Code

func (o *GetVulnerabilitiesDefault) Code() int

Code gets the status code for the get vulnerabilities default response

func (*GetVulnerabilitiesDefault) Error

func (o *GetVulnerabilitiesDefault) Error() string

func (*GetVulnerabilitiesDefault) GetPayload

type GetVulnerabilitiesForbidden

type GetVulnerabilitiesForbidden 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
}
GetVulnerabilitiesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetVulnerabilitiesForbidden

func NewGetVulnerabilitiesForbidden() *GetVulnerabilitiesForbidden

NewGetVulnerabilitiesForbidden creates a GetVulnerabilitiesForbidden with default headers values

func (*GetVulnerabilitiesForbidden) Error

func (*GetVulnerabilitiesForbidden) GetPayload

type GetVulnerabilitiesOK

type GetVulnerabilitiesOK 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.DomainSPAPIVulnerabilitiesEntitiesResponseV2
}
GetVulnerabilitiesOK describes a response with status code 200, with default header values.

OK

func NewGetVulnerabilitiesOK

func NewGetVulnerabilitiesOK() *GetVulnerabilitiesOK

NewGetVulnerabilitiesOK creates a GetVulnerabilitiesOK with default headers values

func (*GetVulnerabilitiesOK) Error

func (o *GetVulnerabilitiesOK) Error() string

func (*GetVulnerabilitiesOK) GetPayload

type GetVulnerabilitiesParams

type GetVulnerabilitiesParams struct {

	/* Ids.

	   One or more vulnerability IDs (max: 400). Find vulnerability IDs with GET /spotlight/queries/vulnerabilities/v1
	*/
	Ids []string

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

GetVulnerabilitiesParams contains all the parameters to send to the API endpoint

for the get vulnerabilities operation.

Typically these are written to a http.Request.

func NewGetVulnerabilitiesParams

func NewGetVulnerabilitiesParams() *GetVulnerabilitiesParams

NewGetVulnerabilitiesParams creates a new GetVulnerabilitiesParams 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 NewGetVulnerabilitiesParamsWithContext

func NewGetVulnerabilitiesParamsWithContext(ctx context.Context) *GetVulnerabilitiesParams

NewGetVulnerabilitiesParamsWithContext creates a new GetVulnerabilitiesParams object with the ability to set a context for a request.

func NewGetVulnerabilitiesParamsWithHTTPClient

func NewGetVulnerabilitiesParamsWithHTTPClient(client *http.Client) *GetVulnerabilitiesParams

NewGetVulnerabilitiesParamsWithHTTPClient creates a new GetVulnerabilitiesParams object with the ability to set a custom HTTPClient for a request.

func NewGetVulnerabilitiesParamsWithTimeout

func NewGetVulnerabilitiesParamsWithTimeout(timeout time.Duration) *GetVulnerabilitiesParams

NewGetVulnerabilitiesParamsWithTimeout creates a new GetVulnerabilitiesParams object with the ability to set a timeout on a request.

func (*GetVulnerabilitiesParams) SetContext

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

SetContext adds the context to the get vulnerabilities params

func (*GetVulnerabilitiesParams) SetDefaults

func (o *GetVulnerabilitiesParams) SetDefaults()

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

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

func (*GetVulnerabilitiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get vulnerabilities params

func (*GetVulnerabilitiesParams) SetIds

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

SetIds adds the ids to the get vulnerabilities params

func (*GetVulnerabilitiesParams) SetTimeout

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

SetTimeout adds the timeout to the get vulnerabilities params

func (*GetVulnerabilitiesParams) WithContext

WithContext adds the context to the get vulnerabilities params

func (*GetVulnerabilitiesParams) WithDefaults

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

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

func (*GetVulnerabilitiesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get vulnerabilities params

func (*GetVulnerabilitiesParams) WithIds

WithIds adds the ids to the get vulnerabilities params

func (*GetVulnerabilitiesParams) WithTimeout

WithTimeout adds the timeout to the get vulnerabilities params

func (*GetVulnerabilitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetVulnerabilitiesReader

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

GetVulnerabilitiesReader is a Reader for the GetVulnerabilities structure.

func (*GetVulnerabilitiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetVulnerabilitiesTooManyRequests

type GetVulnerabilitiesTooManyRequests 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
}
GetVulnerabilitiesTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetVulnerabilitiesTooManyRequests

func NewGetVulnerabilitiesTooManyRequests() *GetVulnerabilitiesTooManyRequests

NewGetVulnerabilitiesTooManyRequests creates a GetVulnerabilitiesTooManyRequests with default headers values

func (*GetVulnerabilitiesTooManyRequests) Error

func (*GetVulnerabilitiesTooManyRequests) GetPayload

type QueryVulnerabilitiesBadRequest

type QueryVulnerabilitiesBadRequest 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.DomainSPAPIQueryResponse
}
QueryVulnerabilitiesBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewQueryVulnerabilitiesBadRequest

func NewQueryVulnerabilitiesBadRequest() *QueryVulnerabilitiesBadRequest

NewQueryVulnerabilitiesBadRequest creates a QueryVulnerabilitiesBadRequest with default headers values

func (*QueryVulnerabilitiesBadRequest) Error

func (*QueryVulnerabilitiesBadRequest) GetPayload

type QueryVulnerabilitiesDefault

type QueryVulnerabilitiesDefault struct {
	Payload *models.DomainSPAPIQueryResponse
	// contains filtered or unexported fields
}
QueryVulnerabilitiesDefault describes a response with status code -1, with default header values.

OK

func NewQueryVulnerabilitiesDefault

func NewQueryVulnerabilitiesDefault(code int) *QueryVulnerabilitiesDefault

NewQueryVulnerabilitiesDefault creates a QueryVulnerabilitiesDefault with default headers values

func (*QueryVulnerabilitiesDefault) Code

func (o *QueryVulnerabilitiesDefault) Code() int

Code gets the status code for the query vulnerabilities default response

func (*QueryVulnerabilitiesDefault) Error

func (*QueryVulnerabilitiesDefault) GetPayload

type QueryVulnerabilitiesForbidden

type QueryVulnerabilitiesForbidden 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
}
QueryVulnerabilitiesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewQueryVulnerabilitiesForbidden

func NewQueryVulnerabilitiesForbidden() *QueryVulnerabilitiesForbidden

NewQueryVulnerabilitiesForbidden creates a QueryVulnerabilitiesForbidden with default headers values

func (*QueryVulnerabilitiesForbidden) Error

func (*QueryVulnerabilitiesForbidden) GetPayload

type QueryVulnerabilitiesInternalServerError

type QueryVulnerabilitiesInternalServerError 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.DomainSPAPIQueryResponse
}
QueryVulnerabilitiesInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewQueryVulnerabilitiesInternalServerError

func NewQueryVulnerabilitiesInternalServerError() *QueryVulnerabilitiesInternalServerError

NewQueryVulnerabilitiesInternalServerError creates a QueryVulnerabilitiesInternalServerError with default headers values

func (*QueryVulnerabilitiesInternalServerError) Error

func (*QueryVulnerabilitiesInternalServerError) GetPayload

type QueryVulnerabilitiesOK

type QueryVulnerabilitiesOK 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.DomainSPAPIQueryResponse
}
QueryVulnerabilitiesOK describes a response with status code 200, with default header values.

OK

func NewQueryVulnerabilitiesOK

func NewQueryVulnerabilitiesOK() *QueryVulnerabilitiesOK

NewQueryVulnerabilitiesOK creates a QueryVulnerabilitiesOK with default headers values

func (*QueryVulnerabilitiesOK) Error

func (o *QueryVulnerabilitiesOK) Error() string

func (*QueryVulnerabilitiesOK) GetPayload

type QueryVulnerabilitiesParams

type QueryVulnerabilitiesParams 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

	/* 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>closed_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: 400). Use with the after parameter to manage pagination of results.
	*/
	Limit *int64

	/* Sort.

	     Sort vulnerabilities by their properties. Common sort options include:

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

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

QueryVulnerabilitiesParams contains all the parameters to send to the API endpoint

for the query vulnerabilities operation.

Typically these are written to a http.Request.

func NewQueryVulnerabilitiesParams

func NewQueryVulnerabilitiesParams() *QueryVulnerabilitiesParams

NewQueryVulnerabilitiesParams creates a new QueryVulnerabilitiesParams 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 NewQueryVulnerabilitiesParamsWithContext

func NewQueryVulnerabilitiesParamsWithContext(ctx context.Context) *QueryVulnerabilitiesParams

NewQueryVulnerabilitiesParamsWithContext creates a new QueryVulnerabilitiesParams object with the ability to set a context for a request.

func NewQueryVulnerabilitiesParamsWithHTTPClient

func NewQueryVulnerabilitiesParamsWithHTTPClient(client *http.Client) *QueryVulnerabilitiesParams

NewQueryVulnerabilitiesParamsWithHTTPClient creates a new QueryVulnerabilitiesParams object with the ability to set a custom HTTPClient for a request.

func NewQueryVulnerabilitiesParamsWithTimeout

func NewQueryVulnerabilitiesParamsWithTimeout(timeout time.Duration) *QueryVulnerabilitiesParams

NewQueryVulnerabilitiesParamsWithTimeout creates a new QueryVulnerabilitiesParams object with the ability to set a timeout on a request.

func (*QueryVulnerabilitiesParams) SetAfter

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

SetAfter adds the after to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) SetContext

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

SetContext adds the context to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) SetDefaults

func (o *QueryVulnerabilitiesParams) SetDefaults()

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

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

func (*QueryVulnerabilitiesParams) SetFilter

func (o *QueryVulnerabilitiesParams) SetFilter(filter string)

SetFilter adds the filter to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) SetLimit

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

SetLimit adds the limit to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) SetSort

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

SetSort adds the sort to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) SetTimeout

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

SetTimeout adds the timeout to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) WithAfter

WithAfter adds the after to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) WithContext

WithContext adds the context to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) WithDefaults

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

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

func (*QueryVulnerabilitiesParams) WithFilter

WithFilter adds the filter to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) WithLimit

WithLimit adds the limit to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) WithSort

WithSort adds the sort to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) WithTimeout

WithTimeout adds the timeout to the query vulnerabilities params

func (*QueryVulnerabilitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QueryVulnerabilitiesReader

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

QueryVulnerabilitiesReader is a Reader for the QueryVulnerabilities structure.

func (*QueryVulnerabilitiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryVulnerabilitiesTooManyRequests

type QueryVulnerabilitiesTooManyRequests 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
}
QueryVulnerabilitiesTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewQueryVulnerabilitiesTooManyRequests

func NewQueryVulnerabilitiesTooManyRequests() *QueryVulnerabilitiesTooManyRequests

NewQueryVulnerabilitiesTooManyRequests creates a QueryVulnerabilitiesTooManyRequests with default headers values

func (*QueryVulnerabilitiesTooManyRequests) Error

func (*QueryVulnerabilitiesTooManyRequests) GetPayload

Jump to

Keyboard shortcuts

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