Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateScan(params *CreateScanParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanCreated, error)
- func (a *Client) GetComplianceByResourceTypes(params *GetComplianceByResourceTypesParams, ...) (*GetComplianceByResourceTypesOK, error)
- func (a *Client) GetComplianceByRules(params *GetComplianceByRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByRulesOK, error)
- func (a *Client) GetScan(params *GetScanParams, authInfo runtime.ClientAuthInfoWriter) (*GetScanOK, error)
- func (a *Client) ListScans(params *ListScansParams, authInfo runtime.ClientAuthInfoWriter) (*ListScansOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UploadRegulaScanView(params *UploadRegulaScanViewParams, authInfo runtime.ClientAuthInfoWriter) (*UploadRegulaScanViewOK, error)
- type ClientService
- type CreateScanBadRequest
- type CreateScanCreated
- type CreateScanForbidden
- type CreateScanInternalServerError
- type CreateScanParams
- func (o *CreateScanParams) SetContext(ctx context.Context)
- func (o *CreateScanParams) SetEnvironmentID(environmentID string)
- func (o *CreateScanParams) SetHTTPClient(client *http.Client)
- func (o *CreateScanParams) SetTimeout(timeout time.Duration)
- func (o *CreateScanParams) WithContext(ctx context.Context) *CreateScanParams
- func (o *CreateScanParams) WithEnvironmentID(environmentID string) *CreateScanParams
- func (o *CreateScanParams) WithHTTPClient(client *http.Client) *CreateScanParams
- func (o *CreateScanParams) WithTimeout(timeout time.Duration) *CreateScanParams
- func (o *CreateScanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateScanReader
- type CreateScanUnauthorized
- type GetComplianceByResourceTypesBadRequest
- type GetComplianceByResourceTypesForbidden
- type GetComplianceByResourceTypesInternalServerError
- type GetComplianceByResourceTypesNotFound
- type GetComplianceByResourceTypesOK
- type GetComplianceByResourceTypesParams
- func NewGetComplianceByResourceTypesParams() *GetComplianceByResourceTypesParams
- func NewGetComplianceByResourceTypesParamsWithContext(ctx context.Context) *GetComplianceByResourceTypesParams
- func NewGetComplianceByResourceTypesParamsWithHTTPClient(client *http.Client) *GetComplianceByResourceTypesParams
- func NewGetComplianceByResourceTypesParamsWithTimeout(timeout time.Duration) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) SetContext(ctx context.Context)
- func (o *GetComplianceByResourceTypesParams) SetFamily(family []string)
- func (o *GetComplianceByResourceTypesParams) SetHTTPClient(client *http.Client)
- func (o *GetComplianceByResourceTypesParams) SetMaxItems(maxItems *int64)
- func (o *GetComplianceByResourceTypesParams) SetOffset(offset *int64)
- func (o *GetComplianceByResourceTypesParams) SetResourceType(resourceType []string)
- func (o *GetComplianceByResourceTypesParams) SetScanID(scanID string)
- func (o *GetComplianceByResourceTypesParams) SetTimeout(timeout time.Duration)
- func (o *GetComplianceByResourceTypesParams) WithContext(ctx context.Context) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) WithFamily(family []string) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) WithHTTPClient(client *http.Client) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) WithMaxItems(maxItems *int64) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) WithOffset(offset *int64) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) WithResourceType(resourceType []string) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) WithScanID(scanID string) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) WithTimeout(timeout time.Duration) *GetComplianceByResourceTypesParams
- func (o *GetComplianceByResourceTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetComplianceByResourceTypesReader
- type GetComplianceByResourceTypesUnauthorized
- type GetComplianceByRulesBadRequest
- type GetComplianceByRulesForbidden
- type GetComplianceByRulesInternalServerError
- type GetComplianceByRulesNotFound
- type GetComplianceByRulesOK
- type GetComplianceByRulesParams
- func NewGetComplianceByRulesParams() *GetComplianceByRulesParams
- func NewGetComplianceByRulesParamsWithContext(ctx context.Context) *GetComplianceByRulesParams
- func NewGetComplianceByRulesParamsWithHTTPClient(client *http.Client) *GetComplianceByRulesParams
- func NewGetComplianceByRulesParamsWithTimeout(timeout time.Duration) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) SetContext(ctx context.Context)
- func (o *GetComplianceByRulesParams) SetFamily(family []string)
- func (o *GetComplianceByRulesParams) SetHTTPClient(client *http.Client)
- func (o *GetComplianceByRulesParams) SetMaxItems(maxItems *int64)
- func (o *GetComplianceByRulesParams) SetOffset(offset *int64)
- func (o *GetComplianceByRulesParams) SetResult(result []string)
- func (o *GetComplianceByRulesParams) SetScanID(scanID string)
- func (o *GetComplianceByRulesParams) SetTimeout(timeout time.Duration)
- func (o *GetComplianceByRulesParams) WithContext(ctx context.Context) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) WithFamily(family []string) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) WithHTTPClient(client *http.Client) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) WithMaxItems(maxItems *int64) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) WithOffset(offset *int64) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) WithResult(result []string) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) WithScanID(scanID string) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) WithTimeout(timeout time.Duration) *GetComplianceByRulesParams
- func (o *GetComplianceByRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetComplianceByRulesReader
- type GetComplianceByRulesUnauthorized
- type GetScanBadRequest
- type GetScanForbidden
- type GetScanInternalServerError
- type GetScanNotFound
- type GetScanOK
- type GetScanParams
- func (o *GetScanParams) SetContext(ctx context.Context)
- func (o *GetScanParams) SetHTTPClient(client *http.Client)
- func (o *GetScanParams) SetScanID(scanID string)
- func (o *GetScanParams) SetTimeout(timeout time.Duration)
- func (o *GetScanParams) WithContext(ctx context.Context) *GetScanParams
- func (o *GetScanParams) WithHTTPClient(client *http.Client) *GetScanParams
- func (o *GetScanParams) WithScanID(scanID string) *GetScanParams
- func (o *GetScanParams) WithTimeout(timeout time.Duration) *GetScanParams
- func (o *GetScanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetScanReader
- type GetScanUnauthorized
- type ListScansBadRequest
- type ListScansForbidden
- type ListScansInternalServerError
- type ListScansOK
- type ListScansParams
- func (o *ListScansParams) SetContext(ctx context.Context)
- func (o *ListScansParams) SetEnvironmentID(environmentID string)
- func (o *ListScansParams) SetHTTPClient(client *http.Client)
- func (o *ListScansParams) SetMaxItems(maxItems *int64)
- func (o *ListScansParams) SetOffset(offset *int64)
- func (o *ListScansParams) SetOrderBy(orderBy *string)
- func (o *ListScansParams) SetOrderDirection(orderDirection *string)
- func (o *ListScansParams) SetRangeFrom(rangeFrom *int64)
- func (o *ListScansParams) SetRangeTo(rangeTo *int64)
- func (o *ListScansParams) SetStatus(status []string)
- func (o *ListScansParams) SetTimeout(timeout time.Duration)
- func (o *ListScansParams) WithContext(ctx context.Context) *ListScansParams
- func (o *ListScansParams) WithEnvironmentID(environmentID string) *ListScansParams
- func (o *ListScansParams) WithHTTPClient(client *http.Client) *ListScansParams
- func (o *ListScansParams) WithMaxItems(maxItems *int64) *ListScansParams
- func (o *ListScansParams) WithOffset(offset *int64) *ListScansParams
- func (o *ListScansParams) WithOrderBy(orderBy *string) *ListScansParams
- func (o *ListScansParams) WithOrderDirection(orderDirection *string) *ListScansParams
- func (o *ListScansParams) WithRangeFrom(rangeFrom *int64) *ListScansParams
- func (o *ListScansParams) WithRangeTo(rangeTo *int64) *ListScansParams
- func (o *ListScansParams) WithStatus(status []string) *ListScansParams
- func (o *ListScansParams) WithTimeout(timeout time.Duration) *ListScansParams
- func (o *ListScansParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListScansReader
- type ListScansUnauthorized
- type UploadRegulaScanViewBadRequest
- type UploadRegulaScanViewForbidden
- type UploadRegulaScanViewInternalServerError
- type UploadRegulaScanViewNotFound
- type UploadRegulaScanViewOK
- type UploadRegulaScanViewParams
- func NewUploadRegulaScanViewParams() *UploadRegulaScanViewParams
- func NewUploadRegulaScanViewParamsWithContext(ctx context.Context) *UploadRegulaScanViewParams
- func NewUploadRegulaScanViewParamsWithHTTPClient(client *http.Client) *UploadRegulaScanViewParams
- func NewUploadRegulaScanViewParamsWithTimeout(timeout time.Duration) *UploadRegulaScanViewParams
- func (o *UploadRegulaScanViewParams) SetContext(ctx context.Context)
- func (o *UploadRegulaScanViewParams) SetHTTPClient(client *http.Client)
- func (o *UploadRegulaScanViewParams) SetScanID(scanID string)
- func (o *UploadRegulaScanViewParams) SetTimeout(timeout time.Duration)
- func (o *UploadRegulaScanViewParams) WithContext(ctx context.Context) *UploadRegulaScanViewParams
- func (o *UploadRegulaScanViewParams) WithHTTPClient(client *http.Client) *UploadRegulaScanViewParams
- func (o *UploadRegulaScanViewParams) WithScanID(scanID string) *UploadRegulaScanViewParams
- func (o *UploadRegulaScanViewParams) WithTimeout(timeout time.Duration) *UploadRegulaScanViewParams
- func (o *UploadRegulaScanViewParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UploadRegulaScanViewReader
- type UploadRegulaScanViewUnauthorized
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 scans API
func (*Client) CreateScan ¶
func (a *Client) CreateScan(params *CreateScanParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanCreated, error)
CreateScan creates and triggers a new environment scan
Creates and triggers a new environment scan.
func (*Client) GetComplianceByResourceTypes ¶
func (a *Client) GetComplianceByResourceTypes(params *GetComplianceByResourceTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByResourceTypesOK, error)
GetComplianceByResourceTypes lists compliance results by resource type for a scan
Lists compliance results by resource type for a scan.
func (*Client) GetComplianceByRules ¶
func (a *Client) GetComplianceByRules(params *GetComplianceByRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByRulesOK, error)
GetComplianceByRules lists compliance results by rule for a scan
Lists compliance results by rule for a scan.
func (*Client) GetScan ¶
func (a *Client) GetScan(params *GetScanParams, authInfo runtime.ClientAuthInfoWriter) (*GetScanOK, error)
GetScan retrieves details for a scan
Retrieves details for a scan.
func (*Client) ListScans ¶
func (a *Client) ListScans(params *ListScansParams, authInfo runtime.ClientAuthInfoWriter) (*ListScansOK, error)
ListScans lists scans for an environment
Lists scans for an environment.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UploadRegulaScanView ¶
func (a *Client) UploadRegulaScanView(params *UploadRegulaScanViewParams, authInfo runtime.ClientAuthInfoWriter) (*UploadRegulaScanViewOK, error)
UploadRegulaScanView uploads a regula produced scan view for an environment and scan
Uploads a regula-produced scan view for an environment and scan.
type ClientService ¶
type ClientService interface { CreateScan(params *CreateScanParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanCreated, error) GetComplianceByResourceTypes(params *GetComplianceByResourceTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByResourceTypesOK, error) GetComplianceByRules(params *GetComplianceByRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByRulesOK, error) GetScan(params *GetScanParams, authInfo runtime.ClientAuthInfoWriter) (*GetScanOK, error) ListScans(params *ListScansParams, authInfo runtime.ClientAuthInfoWriter) (*ListScansOK, error) UploadRegulaScanView(params *UploadRegulaScanViewParams, authInfo runtime.ClientAuthInfoWriter) (*UploadRegulaScanViewOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new scans API client.
type CreateScanBadRequest ¶
type CreateScanBadRequest struct {
Payload *models.BadRequestError
}
CreateScanBadRequest handles this case with default header values.
BadRequestError
func NewCreateScanBadRequest ¶
func NewCreateScanBadRequest() *CreateScanBadRequest
NewCreateScanBadRequest creates a CreateScanBadRequest with default headers values
func (*CreateScanBadRequest) Error ¶
func (o *CreateScanBadRequest) Error() string
func (*CreateScanBadRequest) GetPayload ¶
func (o *CreateScanBadRequest) GetPayload() *models.BadRequestError
type CreateScanCreated ¶
CreateScanCreated handles this case with default header values.
Scan details.
func NewCreateScanCreated ¶
func NewCreateScanCreated() *CreateScanCreated
NewCreateScanCreated creates a CreateScanCreated with default headers values
func (*CreateScanCreated) Error ¶
func (o *CreateScanCreated) Error() string
func (*CreateScanCreated) GetPayload ¶
func (o *CreateScanCreated) GetPayload() *models.Scan
type CreateScanForbidden ¶
type CreateScanForbidden struct {
Payload *models.AuthorizationError
}
CreateScanForbidden handles this case with default header values.
AuthorizationError
func NewCreateScanForbidden ¶
func NewCreateScanForbidden() *CreateScanForbidden
NewCreateScanForbidden creates a CreateScanForbidden with default headers values
func (*CreateScanForbidden) Error ¶
func (o *CreateScanForbidden) Error() string
func (*CreateScanForbidden) GetPayload ¶
func (o *CreateScanForbidden) GetPayload() *models.AuthorizationError
type CreateScanInternalServerError ¶
type CreateScanInternalServerError struct {
Payload *models.InternalServerError
}
CreateScanInternalServerError handles this case with default header values.
InternalServerError
func NewCreateScanInternalServerError ¶
func NewCreateScanInternalServerError() *CreateScanInternalServerError
NewCreateScanInternalServerError creates a CreateScanInternalServerError with default headers values
func (*CreateScanInternalServerError) Error ¶
func (o *CreateScanInternalServerError) Error() string
func (*CreateScanInternalServerError) GetPayload ¶
func (o *CreateScanInternalServerError) GetPayload() *models.InternalServerError
type CreateScanParams ¶
type CreateScanParams struct { /*EnvironmentID ID of the environment to scan. */ EnvironmentID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateScanParams contains all the parameters to send to the API endpoint for the create scan operation typically these are written to a http.Request
func NewCreateScanParams ¶
func NewCreateScanParams() *CreateScanParams
NewCreateScanParams creates a new CreateScanParams object with the default values initialized.
func NewCreateScanParamsWithContext ¶
func NewCreateScanParamsWithContext(ctx context.Context) *CreateScanParams
NewCreateScanParamsWithContext creates a new CreateScanParams object with the default values initialized, and the ability to set a context for a request
func NewCreateScanParamsWithHTTPClient ¶
func NewCreateScanParamsWithHTTPClient(client *http.Client) *CreateScanParams
NewCreateScanParamsWithHTTPClient creates a new CreateScanParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateScanParamsWithTimeout ¶
func NewCreateScanParamsWithTimeout(timeout time.Duration) *CreateScanParams
NewCreateScanParamsWithTimeout creates a new CreateScanParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateScanParams) SetContext ¶
func (o *CreateScanParams) SetContext(ctx context.Context)
SetContext adds the context to the create scan params
func (*CreateScanParams) SetEnvironmentID ¶
func (o *CreateScanParams) SetEnvironmentID(environmentID string)
SetEnvironmentID adds the environmentId to the create scan params
func (*CreateScanParams) SetHTTPClient ¶
func (o *CreateScanParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create scan params
func (*CreateScanParams) SetTimeout ¶
func (o *CreateScanParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create scan params
func (*CreateScanParams) WithContext ¶
func (o *CreateScanParams) WithContext(ctx context.Context) *CreateScanParams
WithContext adds the context to the create scan params
func (*CreateScanParams) WithEnvironmentID ¶
func (o *CreateScanParams) WithEnvironmentID(environmentID string) *CreateScanParams
WithEnvironmentID adds the environmentID to the create scan params
func (*CreateScanParams) WithHTTPClient ¶
func (o *CreateScanParams) WithHTTPClient(client *http.Client) *CreateScanParams
WithHTTPClient adds the HTTPClient to the create scan params
func (*CreateScanParams) WithTimeout ¶
func (o *CreateScanParams) WithTimeout(timeout time.Duration) *CreateScanParams
WithTimeout adds the timeout to the create scan params
func (*CreateScanParams) WriteToRequest ¶
func (o *CreateScanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateScanReader ¶
type CreateScanReader struct {
// contains filtered or unexported fields
}
CreateScanReader is a Reader for the CreateScan structure.
func (*CreateScanReader) ReadResponse ¶
func (o *CreateScanReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateScanUnauthorized ¶
type CreateScanUnauthorized struct {
}CreateScanUnauthorized handles this case with default header values.
AuthenticationError
func NewCreateScanUnauthorized ¶
func NewCreateScanUnauthorized() *CreateScanUnauthorized
NewCreateScanUnauthorized creates a CreateScanUnauthorized with default headers values
func (*CreateScanUnauthorized) Error ¶
func (o *CreateScanUnauthorized) Error() string
func (*CreateScanUnauthorized) GetPayload ¶
func (o *CreateScanUnauthorized) GetPayload() *models.AuthenticationError
type GetComplianceByResourceTypesBadRequest ¶
type GetComplianceByResourceTypesBadRequest struct {
Payload *models.BadRequestError
}
GetComplianceByResourceTypesBadRequest handles this case with default header values.
BadRequestError
func NewGetComplianceByResourceTypesBadRequest ¶
func NewGetComplianceByResourceTypesBadRequest() *GetComplianceByResourceTypesBadRequest
NewGetComplianceByResourceTypesBadRequest creates a GetComplianceByResourceTypesBadRequest with default headers values
func (*GetComplianceByResourceTypesBadRequest) Error ¶
func (o *GetComplianceByResourceTypesBadRequest) Error() string
func (*GetComplianceByResourceTypesBadRequest) GetPayload ¶
func (o *GetComplianceByResourceTypesBadRequest) GetPayload() *models.BadRequestError
type GetComplianceByResourceTypesForbidden ¶
type GetComplianceByResourceTypesForbidden struct {
Payload *models.AuthorizationError
}
GetComplianceByResourceTypesForbidden handles this case with default header values.
AuthorizationError
func NewGetComplianceByResourceTypesForbidden ¶
func NewGetComplianceByResourceTypesForbidden() *GetComplianceByResourceTypesForbidden
NewGetComplianceByResourceTypesForbidden creates a GetComplianceByResourceTypesForbidden with default headers values
func (*GetComplianceByResourceTypesForbidden) Error ¶
func (o *GetComplianceByResourceTypesForbidden) Error() string
func (*GetComplianceByResourceTypesForbidden) GetPayload ¶
func (o *GetComplianceByResourceTypesForbidden) GetPayload() *models.AuthorizationError
type GetComplianceByResourceTypesInternalServerError ¶
type GetComplianceByResourceTypesInternalServerError struct {
Payload *models.InternalServerError
}
GetComplianceByResourceTypesInternalServerError handles this case with default header values.
InternalServerError
func NewGetComplianceByResourceTypesInternalServerError ¶
func NewGetComplianceByResourceTypesInternalServerError() *GetComplianceByResourceTypesInternalServerError
NewGetComplianceByResourceTypesInternalServerError creates a GetComplianceByResourceTypesInternalServerError with default headers values
func (*GetComplianceByResourceTypesInternalServerError) Error ¶
func (o *GetComplianceByResourceTypesInternalServerError) Error() string
func (*GetComplianceByResourceTypesInternalServerError) GetPayload ¶
func (o *GetComplianceByResourceTypesInternalServerError) GetPayload() *models.InternalServerError
type GetComplianceByResourceTypesNotFound ¶
type GetComplianceByResourceTypesNotFound struct {
Payload *models.NotFoundError
}
GetComplianceByResourceTypesNotFound handles this case with default header values.
NotFoundError
func NewGetComplianceByResourceTypesNotFound ¶
func NewGetComplianceByResourceTypesNotFound() *GetComplianceByResourceTypesNotFound
NewGetComplianceByResourceTypesNotFound creates a GetComplianceByResourceTypesNotFound with default headers values
func (*GetComplianceByResourceTypesNotFound) Error ¶
func (o *GetComplianceByResourceTypesNotFound) Error() string
func (*GetComplianceByResourceTypesNotFound) GetPayload ¶
func (o *GetComplianceByResourceTypesNotFound) GetPayload() *models.NotFoundError
type GetComplianceByResourceTypesOK ¶
type GetComplianceByResourceTypesOK struct {
Payload *models.ComplianceByResourceTypeOutput
}
GetComplianceByResourceTypesOK handles this case with default header values.
List of compliance results from a scan grouped by resource type.
func NewGetComplianceByResourceTypesOK ¶
func NewGetComplianceByResourceTypesOK() *GetComplianceByResourceTypesOK
NewGetComplianceByResourceTypesOK creates a GetComplianceByResourceTypesOK with default headers values
func (*GetComplianceByResourceTypesOK) Error ¶
func (o *GetComplianceByResourceTypesOK) Error() string
func (*GetComplianceByResourceTypesOK) GetPayload ¶
func (o *GetComplianceByResourceTypesOK) GetPayload() *models.ComplianceByResourceTypeOutput
type GetComplianceByResourceTypesParams ¶
type GetComplianceByResourceTypesParams struct { /*Family Compliance family to filter by. When not specified, all compliance families will be returned. */ Family []string /*MaxItems Maximum number of items to return. */ MaxItems *int64 /*Offset Number of items to skip before returning. This parameter is used when the number of items spans multiple pages. */ Offset *int64 /*ResourceType Resource types to filter by. When not specified, all resource types will be returned. */ ResourceType []string /*ScanID Scan ID. */ ScanID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetComplianceByResourceTypesParams contains all the parameters to send to the API endpoint for the get compliance by resource types operation typically these are written to a http.Request
func NewGetComplianceByResourceTypesParams ¶
func NewGetComplianceByResourceTypesParams() *GetComplianceByResourceTypesParams
NewGetComplianceByResourceTypesParams creates a new GetComplianceByResourceTypesParams object with the default values initialized.
func NewGetComplianceByResourceTypesParamsWithContext ¶
func NewGetComplianceByResourceTypesParamsWithContext(ctx context.Context) *GetComplianceByResourceTypesParams
NewGetComplianceByResourceTypesParamsWithContext creates a new GetComplianceByResourceTypesParams object with the default values initialized, and the ability to set a context for a request
func NewGetComplianceByResourceTypesParamsWithHTTPClient ¶
func NewGetComplianceByResourceTypesParamsWithHTTPClient(client *http.Client) *GetComplianceByResourceTypesParams
NewGetComplianceByResourceTypesParamsWithHTTPClient creates a new GetComplianceByResourceTypesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetComplianceByResourceTypesParamsWithTimeout ¶
func NewGetComplianceByResourceTypesParamsWithTimeout(timeout time.Duration) *GetComplianceByResourceTypesParams
NewGetComplianceByResourceTypesParamsWithTimeout creates a new GetComplianceByResourceTypesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetComplianceByResourceTypesParams) SetContext ¶
func (o *GetComplianceByResourceTypesParams) SetContext(ctx context.Context)
SetContext adds the context to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) SetFamily ¶
func (o *GetComplianceByResourceTypesParams) SetFamily(family []string)
SetFamily adds the family to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) SetHTTPClient ¶
func (o *GetComplianceByResourceTypesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) SetMaxItems ¶
func (o *GetComplianceByResourceTypesParams) SetMaxItems(maxItems *int64)
SetMaxItems adds the maxItems to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) SetOffset ¶
func (o *GetComplianceByResourceTypesParams) SetOffset(offset *int64)
SetOffset adds the offset to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) SetResourceType ¶
func (o *GetComplianceByResourceTypesParams) SetResourceType(resourceType []string)
SetResourceType adds the resourceType to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) SetScanID ¶
func (o *GetComplianceByResourceTypesParams) SetScanID(scanID string)
SetScanID adds the scanId to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) SetTimeout ¶
func (o *GetComplianceByResourceTypesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WithContext ¶
func (o *GetComplianceByResourceTypesParams) WithContext(ctx context.Context) *GetComplianceByResourceTypesParams
WithContext adds the context to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WithFamily ¶
func (o *GetComplianceByResourceTypesParams) WithFamily(family []string) *GetComplianceByResourceTypesParams
WithFamily adds the family to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WithHTTPClient ¶
func (o *GetComplianceByResourceTypesParams) WithHTTPClient(client *http.Client) *GetComplianceByResourceTypesParams
WithHTTPClient adds the HTTPClient to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WithMaxItems ¶
func (o *GetComplianceByResourceTypesParams) WithMaxItems(maxItems *int64) *GetComplianceByResourceTypesParams
WithMaxItems adds the maxItems to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WithOffset ¶
func (o *GetComplianceByResourceTypesParams) WithOffset(offset *int64) *GetComplianceByResourceTypesParams
WithOffset adds the offset to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WithResourceType ¶
func (o *GetComplianceByResourceTypesParams) WithResourceType(resourceType []string) *GetComplianceByResourceTypesParams
WithResourceType adds the resourceType to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WithScanID ¶
func (o *GetComplianceByResourceTypesParams) WithScanID(scanID string) *GetComplianceByResourceTypesParams
WithScanID adds the scanID to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WithTimeout ¶
func (o *GetComplianceByResourceTypesParams) WithTimeout(timeout time.Duration) *GetComplianceByResourceTypesParams
WithTimeout adds the timeout to the get compliance by resource types params
func (*GetComplianceByResourceTypesParams) WriteToRequest ¶
func (o *GetComplianceByResourceTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetComplianceByResourceTypesReader ¶
type GetComplianceByResourceTypesReader struct {
// contains filtered or unexported fields
}
GetComplianceByResourceTypesReader is a Reader for the GetComplianceByResourceTypes structure.
func (*GetComplianceByResourceTypesReader) ReadResponse ¶
func (o *GetComplianceByResourceTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetComplianceByResourceTypesUnauthorized ¶
type GetComplianceByResourceTypesUnauthorized struct {
}GetComplianceByResourceTypesUnauthorized handles this case with default header values.
AuthenticationError
func NewGetComplianceByResourceTypesUnauthorized ¶
func NewGetComplianceByResourceTypesUnauthorized() *GetComplianceByResourceTypesUnauthorized
NewGetComplianceByResourceTypesUnauthorized creates a GetComplianceByResourceTypesUnauthorized with default headers values
func (*GetComplianceByResourceTypesUnauthorized) Error ¶
func (o *GetComplianceByResourceTypesUnauthorized) Error() string
func (*GetComplianceByResourceTypesUnauthorized) GetPayload ¶
func (o *GetComplianceByResourceTypesUnauthorized) GetPayload() *models.AuthenticationError
type GetComplianceByRulesBadRequest ¶
type GetComplianceByRulesBadRequest struct {
Payload *models.BadRequestError
}
GetComplianceByRulesBadRequest handles this case with default header values.
BadRequestError
func NewGetComplianceByRulesBadRequest ¶
func NewGetComplianceByRulesBadRequest() *GetComplianceByRulesBadRequest
NewGetComplianceByRulesBadRequest creates a GetComplianceByRulesBadRequest with default headers values
func (*GetComplianceByRulesBadRequest) Error ¶
func (o *GetComplianceByRulesBadRequest) Error() string
func (*GetComplianceByRulesBadRequest) GetPayload ¶
func (o *GetComplianceByRulesBadRequest) GetPayload() *models.BadRequestError
type GetComplianceByRulesForbidden ¶
type GetComplianceByRulesForbidden struct {
Payload *models.AuthorizationError
}
GetComplianceByRulesForbidden handles this case with default header values.
AuthorizationError
func NewGetComplianceByRulesForbidden ¶
func NewGetComplianceByRulesForbidden() *GetComplianceByRulesForbidden
NewGetComplianceByRulesForbidden creates a GetComplianceByRulesForbidden with default headers values
func (*GetComplianceByRulesForbidden) Error ¶
func (o *GetComplianceByRulesForbidden) Error() string
func (*GetComplianceByRulesForbidden) GetPayload ¶
func (o *GetComplianceByRulesForbidden) GetPayload() *models.AuthorizationError
type GetComplianceByRulesInternalServerError ¶
type GetComplianceByRulesInternalServerError struct {
Payload *models.InternalServerError
}
GetComplianceByRulesInternalServerError handles this case with default header values.
InternalServerError
func NewGetComplianceByRulesInternalServerError ¶
func NewGetComplianceByRulesInternalServerError() *GetComplianceByRulesInternalServerError
NewGetComplianceByRulesInternalServerError creates a GetComplianceByRulesInternalServerError with default headers values
func (*GetComplianceByRulesInternalServerError) Error ¶
func (o *GetComplianceByRulesInternalServerError) Error() string
func (*GetComplianceByRulesInternalServerError) GetPayload ¶
func (o *GetComplianceByRulesInternalServerError) GetPayload() *models.InternalServerError
type GetComplianceByRulesNotFound ¶
type GetComplianceByRulesNotFound struct {
Payload *models.NotFoundError
}
GetComplianceByRulesNotFound handles this case with default header values.
NotFoundError
func NewGetComplianceByRulesNotFound ¶
func NewGetComplianceByRulesNotFound() *GetComplianceByRulesNotFound
NewGetComplianceByRulesNotFound creates a GetComplianceByRulesNotFound with default headers values
func (*GetComplianceByRulesNotFound) Error ¶
func (o *GetComplianceByRulesNotFound) Error() string
func (*GetComplianceByRulesNotFound) GetPayload ¶
func (o *GetComplianceByRulesNotFound) GetPayload() *models.NotFoundError
type GetComplianceByRulesOK ¶
type GetComplianceByRulesOK struct {
Payload *models.ComplianceByRules
}
GetComplianceByRulesOK handles this case with default header values.
List of compliance results from a scan grouped by rule.
func NewGetComplianceByRulesOK ¶
func NewGetComplianceByRulesOK() *GetComplianceByRulesOK
NewGetComplianceByRulesOK creates a GetComplianceByRulesOK with default headers values
func (*GetComplianceByRulesOK) Error ¶
func (o *GetComplianceByRulesOK) Error() string
func (*GetComplianceByRulesOK) GetPayload ¶
func (o *GetComplianceByRulesOK) GetPayload() *models.ComplianceByRules
type GetComplianceByRulesParams ¶
type GetComplianceByRulesParams struct { /*Family Compliance family to filter by. When not specified, all compliance families will be returned. */ Family []string /*MaxItems Maximum number of items to return. */ MaxItems *int64 /*Offset Number of items to skip before returning. This parameter is used when the number of items spans multiple pages. */ Offset *int64 /*Result Rule result to filter by. When not specified, all results will be returned. */ Result []string /*ScanID Scan ID. */ ScanID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetComplianceByRulesParams contains all the parameters to send to the API endpoint for the get compliance by rules operation typically these are written to a http.Request
func NewGetComplianceByRulesParams ¶
func NewGetComplianceByRulesParams() *GetComplianceByRulesParams
NewGetComplianceByRulesParams creates a new GetComplianceByRulesParams object with the default values initialized.
func NewGetComplianceByRulesParamsWithContext ¶
func NewGetComplianceByRulesParamsWithContext(ctx context.Context) *GetComplianceByRulesParams
NewGetComplianceByRulesParamsWithContext creates a new GetComplianceByRulesParams object with the default values initialized, and the ability to set a context for a request
func NewGetComplianceByRulesParamsWithHTTPClient ¶
func NewGetComplianceByRulesParamsWithHTTPClient(client *http.Client) *GetComplianceByRulesParams
NewGetComplianceByRulesParamsWithHTTPClient creates a new GetComplianceByRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetComplianceByRulesParamsWithTimeout ¶
func NewGetComplianceByRulesParamsWithTimeout(timeout time.Duration) *GetComplianceByRulesParams
NewGetComplianceByRulesParamsWithTimeout creates a new GetComplianceByRulesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetComplianceByRulesParams) SetContext ¶
func (o *GetComplianceByRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the get compliance by rules params
func (*GetComplianceByRulesParams) SetFamily ¶
func (o *GetComplianceByRulesParams) SetFamily(family []string)
SetFamily adds the family to the get compliance by rules params
func (*GetComplianceByRulesParams) SetHTTPClient ¶
func (o *GetComplianceByRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get compliance by rules params
func (*GetComplianceByRulesParams) SetMaxItems ¶
func (o *GetComplianceByRulesParams) SetMaxItems(maxItems *int64)
SetMaxItems adds the maxItems to the get compliance by rules params
func (*GetComplianceByRulesParams) SetOffset ¶
func (o *GetComplianceByRulesParams) SetOffset(offset *int64)
SetOffset adds the offset to the get compliance by rules params
func (*GetComplianceByRulesParams) SetResult ¶
func (o *GetComplianceByRulesParams) SetResult(result []string)
SetResult adds the result to the get compliance by rules params
func (*GetComplianceByRulesParams) SetScanID ¶
func (o *GetComplianceByRulesParams) SetScanID(scanID string)
SetScanID adds the scanId to the get compliance by rules params
func (*GetComplianceByRulesParams) SetTimeout ¶
func (o *GetComplianceByRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get compliance by rules params
func (*GetComplianceByRulesParams) WithContext ¶
func (o *GetComplianceByRulesParams) WithContext(ctx context.Context) *GetComplianceByRulesParams
WithContext adds the context to the get compliance by rules params
func (*GetComplianceByRulesParams) WithFamily ¶
func (o *GetComplianceByRulesParams) WithFamily(family []string) *GetComplianceByRulesParams
WithFamily adds the family to the get compliance by rules params
func (*GetComplianceByRulesParams) WithHTTPClient ¶
func (o *GetComplianceByRulesParams) WithHTTPClient(client *http.Client) *GetComplianceByRulesParams
WithHTTPClient adds the HTTPClient to the get compliance by rules params
func (*GetComplianceByRulesParams) WithMaxItems ¶
func (o *GetComplianceByRulesParams) WithMaxItems(maxItems *int64) *GetComplianceByRulesParams
WithMaxItems adds the maxItems to the get compliance by rules params
func (*GetComplianceByRulesParams) WithOffset ¶
func (o *GetComplianceByRulesParams) WithOffset(offset *int64) *GetComplianceByRulesParams
WithOffset adds the offset to the get compliance by rules params
func (*GetComplianceByRulesParams) WithResult ¶
func (o *GetComplianceByRulesParams) WithResult(result []string) *GetComplianceByRulesParams
WithResult adds the result to the get compliance by rules params
func (*GetComplianceByRulesParams) WithScanID ¶
func (o *GetComplianceByRulesParams) WithScanID(scanID string) *GetComplianceByRulesParams
WithScanID adds the scanID to the get compliance by rules params
func (*GetComplianceByRulesParams) WithTimeout ¶
func (o *GetComplianceByRulesParams) WithTimeout(timeout time.Duration) *GetComplianceByRulesParams
WithTimeout adds the timeout to the get compliance by rules params
func (*GetComplianceByRulesParams) WriteToRequest ¶
func (o *GetComplianceByRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetComplianceByRulesReader ¶
type GetComplianceByRulesReader struct {
// contains filtered or unexported fields
}
GetComplianceByRulesReader is a Reader for the GetComplianceByRules structure.
func (*GetComplianceByRulesReader) ReadResponse ¶
func (o *GetComplianceByRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetComplianceByRulesUnauthorized ¶
type GetComplianceByRulesUnauthorized struct {
}GetComplianceByRulesUnauthorized handles this case with default header values.
AuthenticationError
func NewGetComplianceByRulesUnauthorized ¶
func NewGetComplianceByRulesUnauthorized() *GetComplianceByRulesUnauthorized
NewGetComplianceByRulesUnauthorized creates a GetComplianceByRulesUnauthorized with default headers values
func (*GetComplianceByRulesUnauthorized) Error ¶
func (o *GetComplianceByRulesUnauthorized) Error() string
func (*GetComplianceByRulesUnauthorized) GetPayload ¶
func (o *GetComplianceByRulesUnauthorized) GetPayload() *models.AuthenticationError
type GetScanBadRequest ¶
type GetScanBadRequest struct {
Payload *models.BadRequestError
}
GetScanBadRequest handles this case with default header values.
BadRequestError
func NewGetScanBadRequest ¶
func NewGetScanBadRequest() *GetScanBadRequest
NewGetScanBadRequest creates a GetScanBadRequest with default headers values
func (*GetScanBadRequest) Error ¶
func (o *GetScanBadRequest) Error() string
func (*GetScanBadRequest) GetPayload ¶
func (o *GetScanBadRequest) GetPayload() *models.BadRequestError
type GetScanForbidden ¶
type GetScanForbidden struct {
Payload *models.AuthorizationError
}
GetScanForbidden handles this case with default header values.
AuthorizationError
func NewGetScanForbidden ¶
func NewGetScanForbidden() *GetScanForbidden
NewGetScanForbidden creates a GetScanForbidden with default headers values
func (*GetScanForbidden) Error ¶
func (o *GetScanForbidden) Error() string
func (*GetScanForbidden) GetPayload ¶
func (o *GetScanForbidden) GetPayload() *models.AuthorizationError
type GetScanInternalServerError ¶
type GetScanInternalServerError struct {
Payload *models.InternalServerError
}
GetScanInternalServerError handles this case with default header values.
InternalServerError
func NewGetScanInternalServerError ¶
func NewGetScanInternalServerError() *GetScanInternalServerError
NewGetScanInternalServerError creates a GetScanInternalServerError with default headers values
func (*GetScanInternalServerError) Error ¶
func (o *GetScanInternalServerError) Error() string
func (*GetScanInternalServerError) GetPayload ¶
func (o *GetScanInternalServerError) GetPayload() *models.InternalServerError
type GetScanNotFound ¶
type GetScanNotFound struct {
Payload *models.NotFoundError
}
GetScanNotFound handles this case with default header values.
NotFoundError
func NewGetScanNotFound ¶
func NewGetScanNotFound() *GetScanNotFound
NewGetScanNotFound creates a GetScanNotFound with default headers values
func (*GetScanNotFound) Error ¶
func (o *GetScanNotFound) Error() string
func (*GetScanNotFound) GetPayload ¶
func (o *GetScanNotFound) GetPayload() *models.NotFoundError
type GetScanOK ¶
type GetScanOK struct {
Payload *models.ScanWithSummary
}
GetScanOK handles this case with default header values.
Scan details.
func NewGetScanOK ¶
func NewGetScanOK() *GetScanOK
NewGetScanOK creates a GetScanOK with default headers values
func (*GetScanOK) GetPayload ¶
func (o *GetScanOK) GetPayload() *models.ScanWithSummary
type GetScanParams ¶
type GetScanParams struct { /*ScanID Scan ID. */ ScanID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetScanParams contains all the parameters to send to the API endpoint for the get scan operation typically these are written to a http.Request
func NewGetScanParams ¶
func NewGetScanParams() *GetScanParams
NewGetScanParams creates a new GetScanParams object with the default values initialized.
func NewGetScanParamsWithContext ¶
func NewGetScanParamsWithContext(ctx context.Context) *GetScanParams
NewGetScanParamsWithContext creates a new GetScanParams object with the default values initialized, and the ability to set a context for a request
func NewGetScanParamsWithHTTPClient ¶
func NewGetScanParamsWithHTTPClient(client *http.Client) *GetScanParams
NewGetScanParamsWithHTTPClient creates a new GetScanParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetScanParamsWithTimeout ¶
func NewGetScanParamsWithTimeout(timeout time.Duration) *GetScanParams
NewGetScanParamsWithTimeout creates a new GetScanParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetScanParams) SetContext ¶
func (o *GetScanParams) SetContext(ctx context.Context)
SetContext adds the context to the get scan params
func (*GetScanParams) SetHTTPClient ¶
func (o *GetScanParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get scan params
func (*GetScanParams) SetScanID ¶
func (o *GetScanParams) SetScanID(scanID string)
SetScanID adds the scanId to the get scan params
func (*GetScanParams) SetTimeout ¶
func (o *GetScanParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get scan params
func (*GetScanParams) WithContext ¶
func (o *GetScanParams) WithContext(ctx context.Context) *GetScanParams
WithContext adds the context to the get scan params
func (*GetScanParams) WithHTTPClient ¶
func (o *GetScanParams) WithHTTPClient(client *http.Client) *GetScanParams
WithHTTPClient adds the HTTPClient to the get scan params
func (*GetScanParams) WithScanID ¶
func (o *GetScanParams) WithScanID(scanID string) *GetScanParams
WithScanID adds the scanID to the get scan params
func (*GetScanParams) WithTimeout ¶
func (o *GetScanParams) WithTimeout(timeout time.Duration) *GetScanParams
WithTimeout adds the timeout to the get scan params
func (*GetScanParams) WriteToRequest ¶
func (o *GetScanParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetScanReader ¶
type GetScanReader struct {
// contains filtered or unexported fields
}
GetScanReader is a Reader for the GetScan structure.
func (*GetScanReader) ReadResponse ¶
func (o *GetScanReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetScanUnauthorized ¶
type GetScanUnauthorized struct {
}GetScanUnauthorized handles this case with default header values.
AuthenticationError
func NewGetScanUnauthorized ¶
func NewGetScanUnauthorized() *GetScanUnauthorized
NewGetScanUnauthorized creates a GetScanUnauthorized with default headers values
func (*GetScanUnauthorized) Error ¶
func (o *GetScanUnauthorized) Error() string
func (*GetScanUnauthorized) GetPayload ¶
func (o *GetScanUnauthorized) GetPayload() *models.AuthenticationError
type ListScansBadRequest ¶
type ListScansBadRequest struct {
Payload *models.BadRequestError
}
ListScansBadRequest handles this case with default header values.
BadRequestError
func NewListScansBadRequest ¶
func NewListScansBadRequest() *ListScansBadRequest
NewListScansBadRequest creates a ListScansBadRequest with default headers values
func (*ListScansBadRequest) Error ¶
func (o *ListScansBadRequest) Error() string
func (*ListScansBadRequest) GetPayload ¶
func (o *ListScansBadRequest) GetPayload() *models.BadRequestError
type ListScansForbidden ¶
type ListScansForbidden struct {
Payload *models.AuthorizationError
}
ListScansForbidden handles this case with default header values.
AuthorizationError
func NewListScansForbidden ¶
func NewListScansForbidden() *ListScansForbidden
NewListScansForbidden creates a ListScansForbidden with default headers values
func (*ListScansForbidden) Error ¶
func (o *ListScansForbidden) Error() string
func (*ListScansForbidden) GetPayload ¶
func (o *ListScansForbidden) GetPayload() *models.AuthorizationError
type ListScansInternalServerError ¶
type ListScansInternalServerError struct {
Payload *models.InternalServerError
}
ListScansInternalServerError handles this case with default header values.
InternalServerError
func NewListScansInternalServerError ¶
func NewListScansInternalServerError() *ListScansInternalServerError
NewListScansInternalServerError creates a ListScansInternalServerError with default headers values
func (*ListScansInternalServerError) Error ¶
func (o *ListScansInternalServerError) Error() string
func (*ListScansInternalServerError) GetPayload ¶
func (o *ListScansInternalServerError) GetPayload() *models.InternalServerError
type ListScansOK ¶
ListScansOK handles this case with default header values.
List of scans.
func NewListScansOK ¶
func NewListScansOK() *ListScansOK
NewListScansOK creates a ListScansOK with default headers values
func (*ListScansOK) Error ¶
func (o *ListScansOK) Error() string
func (*ListScansOK) GetPayload ¶
func (o *ListScansOK) GetPayload() *models.Scans
type ListScansParams ¶
type ListScansParams struct { /*EnvironmentID ID of the environment to retrieve scans for. */ EnvironmentID string /*MaxItems Maximum number of items to return. */ MaxItems *int64 /*Offset Number of items to skip before returning. This parameter is used when the number of items spans multiple pages. */ Offset *int64 /*OrderBy Field to sort the items by. */ OrderBy *string /*OrderDirection Direction to sort the items in. */ OrderDirection *string /*RangeFrom Earliest created_at time to return scans from. */ RangeFrom *int64 /*RangeTo Latest created_at time to return scans from. */ RangeTo *int64 /*Status Status to filter by. When not specified, all statuses will be returned. */ Status []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListScansParams contains all the parameters to send to the API endpoint for the list scans operation typically these are written to a http.Request
func NewListScansParams ¶
func NewListScansParams() *ListScansParams
NewListScansParams creates a new ListScansParams object with the default values initialized.
func NewListScansParamsWithContext ¶
func NewListScansParamsWithContext(ctx context.Context) *ListScansParams
NewListScansParamsWithContext creates a new ListScansParams object with the default values initialized, and the ability to set a context for a request
func NewListScansParamsWithHTTPClient ¶
func NewListScansParamsWithHTTPClient(client *http.Client) *ListScansParams
NewListScansParamsWithHTTPClient creates a new ListScansParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListScansParamsWithTimeout ¶
func NewListScansParamsWithTimeout(timeout time.Duration) *ListScansParams
NewListScansParamsWithTimeout creates a new ListScansParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListScansParams) SetContext ¶
func (o *ListScansParams) SetContext(ctx context.Context)
SetContext adds the context to the list scans params
func (*ListScansParams) SetEnvironmentID ¶
func (o *ListScansParams) SetEnvironmentID(environmentID string)
SetEnvironmentID adds the environmentId to the list scans params
func (*ListScansParams) SetHTTPClient ¶
func (o *ListScansParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list scans params
func (*ListScansParams) SetMaxItems ¶
func (o *ListScansParams) SetMaxItems(maxItems *int64)
SetMaxItems adds the maxItems to the list scans params
func (*ListScansParams) SetOffset ¶
func (o *ListScansParams) SetOffset(offset *int64)
SetOffset adds the offset to the list scans params
func (*ListScansParams) SetOrderBy ¶
func (o *ListScansParams) SetOrderBy(orderBy *string)
SetOrderBy adds the orderBy to the list scans params
func (*ListScansParams) SetOrderDirection ¶
func (o *ListScansParams) SetOrderDirection(orderDirection *string)
SetOrderDirection adds the orderDirection to the list scans params
func (*ListScansParams) SetRangeFrom ¶
func (o *ListScansParams) SetRangeFrom(rangeFrom *int64)
SetRangeFrom adds the rangeFrom to the list scans params
func (*ListScansParams) SetRangeTo ¶
func (o *ListScansParams) SetRangeTo(rangeTo *int64)
SetRangeTo adds the rangeTo to the list scans params
func (*ListScansParams) SetStatus ¶
func (o *ListScansParams) SetStatus(status []string)
SetStatus adds the status to the list scans params
func (*ListScansParams) SetTimeout ¶
func (o *ListScansParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list scans params
func (*ListScansParams) WithContext ¶
func (o *ListScansParams) WithContext(ctx context.Context) *ListScansParams
WithContext adds the context to the list scans params
func (*ListScansParams) WithEnvironmentID ¶
func (o *ListScansParams) WithEnvironmentID(environmentID string) *ListScansParams
WithEnvironmentID adds the environmentID to the list scans params
func (*ListScansParams) WithHTTPClient ¶
func (o *ListScansParams) WithHTTPClient(client *http.Client) *ListScansParams
WithHTTPClient adds the HTTPClient to the list scans params
func (*ListScansParams) WithMaxItems ¶
func (o *ListScansParams) WithMaxItems(maxItems *int64) *ListScansParams
WithMaxItems adds the maxItems to the list scans params
func (*ListScansParams) WithOffset ¶
func (o *ListScansParams) WithOffset(offset *int64) *ListScansParams
WithOffset adds the offset to the list scans params
func (*ListScansParams) WithOrderBy ¶
func (o *ListScansParams) WithOrderBy(orderBy *string) *ListScansParams
WithOrderBy adds the orderBy to the list scans params
func (*ListScansParams) WithOrderDirection ¶
func (o *ListScansParams) WithOrderDirection(orderDirection *string) *ListScansParams
WithOrderDirection adds the orderDirection to the list scans params
func (*ListScansParams) WithRangeFrom ¶
func (o *ListScansParams) WithRangeFrom(rangeFrom *int64) *ListScansParams
WithRangeFrom adds the rangeFrom to the list scans params
func (*ListScansParams) WithRangeTo ¶
func (o *ListScansParams) WithRangeTo(rangeTo *int64) *ListScansParams
WithRangeTo adds the rangeTo to the list scans params
func (*ListScansParams) WithStatus ¶
func (o *ListScansParams) WithStatus(status []string) *ListScansParams
WithStatus adds the status to the list scans params
func (*ListScansParams) WithTimeout ¶
func (o *ListScansParams) WithTimeout(timeout time.Duration) *ListScansParams
WithTimeout adds the timeout to the list scans params
func (*ListScansParams) WriteToRequest ¶
func (o *ListScansParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListScansReader ¶
type ListScansReader struct {
// contains filtered or unexported fields
}
ListScansReader is a Reader for the ListScans structure.
func (*ListScansReader) ReadResponse ¶
func (o *ListScansReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListScansUnauthorized ¶
type ListScansUnauthorized struct {
}ListScansUnauthorized handles this case with default header values.
AuthenticationError
func NewListScansUnauthorized ¶
func NewListScansUnauthorized() *ListScansUnauthorized
NewListScansUnauthorized creates a ListScansUnauthorized with default headers values
func (*ListScansUnauthorized) Error ¶
func (o *ListScansUnauthorized) Error() string
func (*ListScansUnauthorized) GetPayload ¶
func (o *ListScansUnauthorized) GetPayload() *models.AuthenticationError
type UploadRegulaScanViewBadRequest ¶
type UploadRegulaScanViewBadRequest struct {
Payload *models.BadRequestError
}
UploadRegulaScanViewBadRequest handles this case with default header values.
BadRequestError
func NewUploadRegulaScanViewBadRequest ¶
func NewUploadRegulaScanViewBadRequest() *UploadRegulaScanViewBadRequest
NewUploadRegulaScanViewBadRequest creates a UploadRegulaScanViewBadRequest with default headers values
func (*UploadRegulaScanViewBadRequest) Error ¶
func (o *UploadRegulaScanViewBadRequest) Error() string
func (*UploadRegulaScanViewBadRequest) GetPayload ¶
func (o *UploadRegulaScanViewBadRequest) GetPayload() *models.BadRequestError
type UploadRegulaScanViewForbidden ¶
type UploadRegulaScanViewForbidden struct {
Payload *models.AuthorizationError
}
UploadRegulaScanViewForbidden handles this case with default header values.
AuthorizationError
func NewUploadRegulaScanViewForbidden ¶
func NewUploadRegulaScanViewForbidden() *UploadRegulaScanViewForbidden
NewUploadRegulaScanViewForbidden creates a UploadRegulaScanViewForbidden with default headers values
func (*UploadRegulaScanViewForbidden) Error ¶
func (o *UploadRegulaScanViewForbidden) Error() string
func (*UploadRegulaScanViewForbidden) GetPayload ¶
func (o *UploadRegulaScanViewForbidden) GetPayload() *models.AuthorizationError
type UploadRegulaScanViewInternalServerError ¶
type UploadRegulaScanViewInternalServerError struct {
Payload *models.InternalServerError
}
UploadRegulaScanViewInternalServerError handles this case with default header values.
InternalServerError
func NewUploadRegulaScanViewInternalServerError ¶
func NewUploadRegulaScanViewInternalServerError() *UploadRegulaScanViewInternalServerError
NewUploadRegulaScanViewInternalServerError creates a UploadRegulaScanViewInternalServerError with default headers values
func (*UploadRegulaScanViewInternalServerError) Error ¶
func (o *UploadRegulaScanViewInternalServerError) Error() string
func (*UploadRegulaScanViewInternalServerError) GetPayload ¶
func (o *UploadRegulaScanViewInternalServerError) GetPayload() *models.InternalServerError
type UploadRegulaScanViewNotFound ¶
type UploadRegulaScanViewNotFound struct {
Payload *models.NotFoundError
}
UploadRegulaScanViewNotFound handles this case with default header values.
NotFoundError
func NewUploadRegulaScanViewNotFound ¶
func NewUploadRegulaScanViewNotFound() *UploadRegulaScanViewNotFound
NewUploadRegulaScanViewNotFound creates a UploadRegulaScanViewNotFound with default headers values
func (*UploadRegulaScanViewNotFound) Error ¶
func (o *UploadRegulaScanViewNotFound) Error() string
func (*UploadRegulaScanViewNotFound) GetPayload ¶
func (o *UploadRegulaScanViewNotFound) GetPayload() *models.NotFoundError
type UploadRegulaScanViewOK ¶
type UploadRegulaScanViewOK struct {
Payload *models.UploadRegulaScanViewOutput
}
UploadRegulaScanViewOK handles this case with default header values.
A location to upload the regula scan view.
func NewUploadRegulaScanViewOK ¶
func NewUploadRegulaScanViewOK() *UploadRegulaScanViewOK
NewUploadRegulaScanViewOK creates a UploadRegulaScanViewOK with default headers values
func (*UploadRegulaScanViewOK) Error ¶
func (o *UploadRegulaScanViewOK) Error() string
func (*UploadRegulaScanViewOK) GetPayload ¶
func (o *UploadRegulaScanViewOK) GetPayload() *models.UploadRegulaScanViewOutput
type UploadRegulaScanViewParams ¶
type UploadRegulaScanViewParams struct { /*ScanID The ID of the started scan */ ScanID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UploadRegulaScanViewParams contains all the parameters to send to the API endpoint for the upload regula scan view operation typically these are written to a http.Request
func NewUploadRegulaScanViewParams ¶
func NewUploadRegulaScanViewParams() *UploadRegulaScanViewParams
NewUploadRegulaScanViewParams creates a new UploadRegulaScanViewParams object with the default values initialized.
func NewUploadRegulaScanViewParamsWithContext ¶
func NewUploadRegulaScanViewParamsWithContext(ctx context.Context) *UploadRegulaScanViewParams
NewUploadRegulaScanViewParamsWithContext creates a new UploadRegulaScanViewParams object with the default values initialized, and the ability to set a context for a request
func NewUploadRegulaScanViewParamsWithHTTPClient ¶
func NewUploadRegulaScanViewParamsWithHTTPClient(client *http.Client) *UploadRegulaScanViewParams
NewUploadRegulaScanViewParamsWithHTTPClient creates a new UploadRegulaScanViewParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUploadRegulaScanViewParamsWithTimeout ¶
func NewUploadRegulaScanViewParamsWithTimeout(timeout time.Duration) *UploadRegulaScanViewParams
NewUploadRegulaScanViewParamsWithTimeout creates a new UploadRegulaScanViewParams object with the default values initialized, and the ability to set a timeout on a request
func (*UploadRegulaScanViewParams) SetContext ¶
func (o *UploadRegulaScanViewParams) SetContext(ctx context.Context)
SetContext adds the context to the upload regula scan view params
func (*UploadRegulaScanViewParams) SetHTTPClient ¶
func (o *UploadRegulaScanViewParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the upload regula scan view params
func (*UploadRegulaScanViewParams) SetScanID ¶
func (o *UploadRegulaScanViewParams) SetScanID(scanID string)
SetScanID adds the scanId to the upload regula scan view params
func (*UploadRegulaScanViewParams) SetTimeout ¶
func (o *UploadRegulaScanViewParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the upload regula scan view params
func (*UploadRegulaScanViewParams) WithContext ¶
func (o *UploadRegulaScanViewParams) WithContext(ctx context.Context) *UploadRegulaScanViewParams
WithContext adds the context to the upload regula scan view params
func (*UploadRegulaScanViewParams) WithHTTPClient ¶
func (o *UploadRegulaScanViewParams) WithHTTPClient(client *http.Client) *UploadRegulaScanViewParams
WithHTTPClient adds the HTTPClient to the upload regula scan view params
func (*UploadRegulaScanViewParams) WithScanID ¶
func (o *UploadRegulaScanViewParams) WithScanID(scanID string) *UploadRegulaScanViewParams
WithScanID adds the scanID to the upload regula scan view params
func (*UploadRegulaScanViewParams) WithTimeout ¶
func (o *UploadRegulaScanViewParams) WithTimeout(timeout time.Duration) *UploadRegulaScanViewParams
WithTimeout adds the timeout to the upload regula scan view params
func (*UploadRegulaScanViewParams) WriteToRequest ¶
func (o *UploadRegulaScanViewParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UploadRegulaScanViewReader ¶
type UploadRegulaScanViewReader struct {
// contains filtered or unexported fields
}
UploadRegulaScanViewReader is a Reader for the UploadRegulaScanView structure.
func (*UploadRegulaScanViewReader) ReadResponse ¶
func (o *UploadRegulaScanViewReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UploadRegulaScanViewUnauthorized ¶
type UploadRegulaScanViewUnauthorized struct {
}UploadRegulaScanViewUnauthorized handles this case with default header values.
AuthenticationError
func NewUploadRegulaScanViewUnauthorized ¶
func NewUploadRegulaScanViewUnauthorized() *UploadRegulaScanViewUnauthorized
NewUploadRegulaScanViewUnauthorized creates a UploadRegulaScanViewUnauthorized with default headers values
func (*UploadRegulaScanViewUnauthorized) Error ¶
func (o *UploadRegulaScanViewUnauthorized) Error() string
func (*UploadRegulaScanViewUnauthorized) GetPayload ¶
func (o *UploadRegulaScanViewUnauthorized) GetPayload() *models.AuthenticationError
Source Files
¶
- create_scan_parameters.go
- create_scan_responses.go
- get_compliance_by_resource_types_parameters.go
- get_compliance_by_resource_types_responses.go
- get_compliance_by_rules_parameters.go
- get_compliance_by_rules_responses.go
- get_scan_parameters.go
- get_scan_responses.go
- list_scans_parameters.go
- list_scans_responses.go
- scans_client.go
- upload_regula_scan_view_parameters.go
- upload_regula_scan_view_responses.go