Documentation ¶
Index ¶
- Constants
- type AssociateReportViolations
- type AssociateReportViolationsBadRequest
- func (o *AssociateReportViolationsBadRequest) SetPayload(payload *ghcmessages.Error)
- func (o *AssociateReportViolationsBadRequest) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsBadRequest
- func (o *AssociateReportViolationsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AssociateReportViolationsConflict
- func (o *AssociateReportViolationsConflict) SetPayload(payload *ghcmessages.Error)
- func (o *AssociateReportViolationsConflict) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsConflict
- func (o *AssociateReportViolationsConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AssociateReportViolationsForbidden
- func (o *AssociateReportViolationsForbidden) SetPayload(payload *ghcmessages.Error)
- func (o *AssociateReportViolationsForbidden) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsForbidden
- func (o *AssociateReportViolationsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AssociateReportViolationsHandler
- type AssociateReportViolationsHandlerFunc
- type AssociateReportViolationsInternalServerError
- func (o *AssociateReportViolationsInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *AssociateReportViolationsInternalServerError) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsInternalServerError
- func (o *AssociateReportViolationsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AssociateReportViolationsNoContent
- type AssociateReportViolationsNotFound
- func (o *AssociateReportViolationsNotFound) SetPayload(payload *ghcmessages.Error)
- func (o *AssociateReportViolationsNotFound) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsNotFound
- func (o *AssociateReportViolationsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AssociateReportViolationsParams
- type AssociateReportViolationsURL
- func (o *AssociateReportViolationsURL) Build() (*url.URL, error)
- func (o *AssociateReportViolationsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AssociateReportViolationsURL) Must(u *url.URL, err error) *url.URL
- func (o *AssociateReportViolationsURL) SetBasePath(bp string)
- func (o *AssociateReportViolationsURL) String() string
- func (o *AssociateReportViolationsURL) StringFull(scheme, host string) string
- func (o *AssociateReportViolationsURL) WithBasePath(bp string) *AssociateReportViolationsURL
- type AssociateReportViolationsUnprocessableEntity
- func (o *AssociateReportViolationsUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
- func (o *AssociateReportViolationsUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *AssociateReportViolationsUnprocessableEntity
- func (o *AssociateReportViolationsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportViolationsByReportID
- type GetReportViolationsByReportIDBadRequest
- func (o *GetReportViolationsByReportIDBadRequest) SetPayload(payload *ghcmessages.Error)
- func (o *GetReportViolationsByReportIDBadRequest) WithPayload(payload *ghcmessages.Error) *GetReportViolationsByReportIDBadRequest
- func (o *GetReportViolationsByReportIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportViolationsByReportIDForbidden
- func (o *GetReportViolationsByReportIDForbidden) SetPayload(payload *ghcmessages.Error)
- func (o *GetReportViolationsByReportIDForbidden) WithPayload(payload *ghcmessages.Error) *GetReportViolationsByReportIDForbidden
- func (o *GetReportViolationsByReportIDForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportViolationsByReportIDHandler
- type GetReportViolationsByReportIDHandlerFunc
- type GetReportViolationsByReportIDInternalServerError
- func (o *GetReportViolationsByReportIDInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *GetReportViolationsByReportIDInternalServerError) WithPayload(payload *ghcmessages.Error) *GetReportViolationsByReportIDInternalServerError
- func (o *GetReportViolationsByReportIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportViolationsByReportIDNotFound
- func (o *GetReportViolationsByReportIDNotFound) SetPayload(payload *ghcmessages.Error)
- func (o *GetReportViolationsByReportIDNotFound) WithPayload(payload *ghcmessages.Error) *GetReportViolationsByReportIDNotFound
- func (o *GetReportViolationsByReportIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportViolationsByReportIDOK
- func (o *GetReportViolationsByReportIDOK) SetPayload(payload ghcmessages.ReportViolations)
- func (o *GetReportViolationsByReportIDOK) WithPayload(payload ghcmessages.ReportViolations) *GetReportViolationsByReportIDOK
- func (o *GetReportViolationsByReportIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportViolationsByReportIDParams
- type GetReportViolationsByReportIDURL
- func (o *GetReportViolationsByReportIDURL) Build() (*url.URL, error)
- func (o *GetReportViolationsByReportIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetReportViolationsByReportIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetReportViolationsByReportIDURL) SetBasePath(bp string)
- func (o *GetReportViolationsByReportIDURL) String() string
- func (o *GetReportViolationsByReportIDURL) StringFull(scheme, host string) string
- func (o *GetReportViolationsByReportIDURL) WithBasePath(bp string) *GetReportViolationsByReportIDURL
Constants ¶
const AssociateReportViolationsBadRequestCode int = 400
AssociateReportViolationsBadRequestCode is the HTTP code returned for type AssociateReportViolationsBadRequest
const AssociateReportViolationsConflictCode int = 409
AssociateReportViolationsConflictCode is the HTTP code returned for type AssociateReportViolationsConflict
const AssociateReportViolationsForbiddenCode int = 403
AssociateReportViolationsForbiddenCode is the HTTP code returned for type AssociateReportViolationsForbidden
const AssociateReportViolationsInternalServerErrorCode int = 500
AssociateReportViolationsInternalServerErrorCode is the HTTP code returned for type AssociateReportViolationsInternalServerError
const AssociateReportViolationsNoContentCode int = 204
AssociateReportViolationsNoContentCode is the HTTP code returned for type AssociateReportViolationsNoContent
const AssociateReportViolationsNotFoundCode int = 404
AssociateReportViolationsNotFoundCode is the HTTP code returned for type AssociateReportViolationsNotFound
const AssociateReportViolationsUnprocessableEntityCode int = 422
AssociateReportViolationsUnprocessableEntityCode is the HTTP code returned for type AssociateReportViolationsUnprocessableEntity
const GetReportViolationsByReportIDBadRequestCode int = 400
GetReportViolationsByReportIDBadRequestCode is the HTTP code returned for type GetReportViolationsByReportIDBadRequest
const GetReportViolationsByReportIDForbiddenCode int = 403
GetReportViolationsByReportIDForbiddenCode is the HTTP code returned for type GetReportViolationsByReportIDForbidden
const GetReportViolationsByReportIDInternalServerErrorCode int = 500
GetReportViolationsByReportIDInternalServerErrorCode is the HTTP code returned for type GetReportViolationsByReportIDInternalServerError
const GetReportViolationsByReportIDNotFoundCode int = 404
GetReportViolationsByReportIDNotFoundCode is the HTTP code returned for type GetReportViolationsByReportIDNotFound
const GetReportViolationsByReportIDOKCode int = 200
GetReportViolationsByReportIDOKCode is the HTTP code returned for type GetReportViolationsByReportIDOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociateReportViolations ¶
type AssociateReportViolations struct { Context *middleware.Context Handler AssociateReportViolationsHandler }
AssociateReportViolations swagger:route POST /report-violations/{reportID} reportViolations associateReportViolations
Associate violations with an evaluation report ¶
Associate violations with an evaluation report. This will overwrite any existing report-violations associations for the report and replace them with the newly provided ones. An empty array will remove all violation associations for a given report.
func NewAssociateReportViolations ¶
func NewAssociateReportViolations(ctx *middleware.Context, handler AssociateReportViolationsHandler) *AssociateReportViolations
NewAssociateReportViolations creates a new http.Handler for the associate report violations operation
func (*AssociateReportViolations) ServeHTTP ¶
func (o *AssociateReportViolations) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AssociateReportViolationsBadRequest ¶
type AssociateReportViolationsBadRequest struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
AssociateReportViolationsBadRequest The request payload is invalid
swagger:response associateReportViolationsBadRequest
func NewAssociateReportViolationsBadRequest ¶
func NewAssociateReportViolationsBadRequest() *AssociateReportViolationsBadRequest
NewAssociateReportViolationsBadRequest creates AssociateReportViolationsBadRequest with default headers values
func (*AssociateReportViolationsBadRequest) SetPayload ¶
func (o *AssociateReportViolationsBadRequest) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the associate report violations bad request response
func (*AssociateReportViolationsBadRequest) WithPayload ¶
func (o *AssociateReportViolationsBadRequest) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsBadRequest
WithPayload adds the payload to the associate report violations bad request response
func (*AssociateReportViolationsBadRequest) WriteResponse ¶
func (o *AssociateReportViolationsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssociateReportViolationsConflict ¶
type AssociateReportViolationsConflict struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
AssociateReportViolationsConflict Conflict error
swagger:response associateReportViolationsConflict
func NewAssociateReportViolationsConflict ¶
func NewAssociateReportViolationsConflict() *AssociateReportViolationsConflict
NewAssociateReportViolationsConflict creates AssociateReportViolationsConflict with default headers values
func (*AssociateReportViolationsConflict) SetPayload ¶
func (o *AssociateReportViolationsConflict) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the associate report violations conflict response
func (*AssociateReportViolationsConflict) WithPayload ¶
func (o *AssociateReportViolationsConflict) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsConflict
WithPayload adds the payload to the associate report violations conflict response
func (*AssociateReportViolationsConflict) WriteResponse ¶
func (o *AssociateReportViolationsConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssociateReportViolationsForbidden ¶
type AssociateReportViolationsForbidden struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
AssociateReportViolationsForbidden The request was denied
swagger:response associateReportViolationsForbidden
func NewAssociateReportViolationsForbidden ¶
func NewAssociateReportViolationsForbidden() *AssociateReportViolationsForbidden
NewAssociateReportViolationsForbidden creates AssociateReportViolationsForbidden with default headers values
func (*AssociateReportViolationsForbidden) SetPayload ¶
func (o *AssociateReportViolationsForbidden) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the associate report violations forbidden response
func (*AssociateReportViolationsForbidden) WithPayload ¶
func (o *AssociateReportViolationsForbidden) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsForbidden
WithPayload adds the payload to the associate report violations forbidden response
func (*AssociateReportViolationsForbidden) WriteResponse ¶
func (o *AssociateReportViolationsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssociateReportViolationsHandler ¶
type AssociateReportViolationsHandler interface {
Handle(AssociateReportViolationsParams) middleware.Responder
}
AssociateReportViolationsHandler interface for that can handle valid associate report violations params
type AssociateReportViolationsHandlerFunc ¶
type AssociateReportViolationsHandlerFunc func(AssociateReportViolationsParams) middleware.Responder
AssociateReportViolationsHandlerFunc turns a function with the right signature into a associate report violations handler
func (AssociateReportViolationsHandlerFunc) Handle ¶
func (fn AssociateReportViolationsHandlerFunc) Handle(params AssociateReportViolationsParams) middleware.Responder
Handle executing the request and returning a response
type AssociateReportViolationsInternalServerError ¶
type AssociateReportViolationsInternalServerError struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
AssociateReportViolationsInternalServerError A server error occurred
swagger:response associateReportViolationsInternalServerError
func NewAssociateReportViolationsInternalServerError ¶
func NewAssociateReportViolationsInternalServerError() *AssociateReportViolationsInternalServerError
NewAssociateReportViolationsInternalServerError creates AssociateReportViolationsInternalServerError with default headers values
func (*AssociateReportViolationsInternalServerError) SetPayload ¶
func (o *AssociateReportViolationsInternalServerError) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the associate report violations internal server error response
func (*AssociateReportViolationsInternalServerError) WithPayload ¶
func (o *AssociateReportViolationsInternalServerError) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsInternalServerError
WithPayload adds the payload to the associate report violations internal server error response
func (*AssociateReportViolationsInternalServerError) WriteResponse ¶
func (o *AssociateReportViolationsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssociateReportViolationsNoContent ¶
type AssociateReportViolationsNoContent struct { }
AssociateReportViolationsNoContent Successfully saved the report violations
swagger:response associateReportViolationsNoContent
func NewAssociateReportViolationsNoContent ¶
func NewAssociateReportViolationsNoContent() *AssociateReportViolationsNoContent
NewAssociateReportViolationsNoContent creates AssociateReportViolationsNoContent with default headers values
func (*AssociateReportViolationsNoContent) WriteResponse ¶
func (o *AssociateReportViolationsNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssociateReportViolationsNotFound ¶
type AssociateReportViolationsNotFound struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
AssociateReportViolationsNotFound The requested resource wasn't found
swagger:response associateReportViolationsNotFound
func NewAssociateReportViolationsNotFound ¶
func NewAssociateReportViolationsNotFound() *AssociateReportViolationsNotFound
NewAssociateReportViolationsNotFound creates AssociateReportViolationsNotFound with default headers values
func (*AssociateReportViolationsNotFound) SetPayload ¶
func (o *AssociateReportViolationsNotFound) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the associate report violations not found response
func (*AssociateReportViolationsNotFound) WithPayload ¶
func (o *AssociateReportViolationsNotFound) WithPayload(payload *ghcmessages.Error) *AssociateReportViolationsNotFound
WithPayload adds the payload to the associate report violations not found response
func (*AssociateReportViolationsNotFound) WriteResponse ¶
func (o *AssociateReportViolationsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssociateReportViolationsParams ¶
type AssociateReportViolationsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ Body *ghcmessages.AssociateReportViolations /*the evaluation report ID that has associated violations Required: true In: path */ ReportID strfmt.UUID }
AssociateReportViolationsParams contains all the bound params for the associate report violations operation typically these are obtained from a http.Request
swagger:parameters associateReportViolations
func NewAssociateReportViolationsParams ¶
func NewAssociateReportViolationsParams() AssociateReportViolationsParams
NewAssociateReportViolationsParams creates a new AssociateReportViolationsParams object
There are no default values defined in the spec.
func (*AssociateReportViolationsParams) BindRequest ¶
func (o *AssociateReportViolationsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAssociateReportViolationsParams() beforehand.
type AssociateReportViolationsURL ¶
type AssociateReportViolationsURL struct { ReportID strfmt.UUID // contains filtered or unexported fields }
AssociateReportViolationsURL generates an URL for the associate report violations operation
func (*AssociateReportViolationsURL) Build ¶
func (o *AssociateReportViolationsURL) Build() (*url.URL, error)
Build a url path and query string
func (*AssociateReportViolationsURL) BuildFull ¶
func (o *AssociateReportViolationsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AssociateReportViolationsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AssociateReportViolationsURL) SetBasePath ¶
func (o *AssociateReportViolationsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AssociateReportViolationsURL) String ¶
func (o *AssociateReportViolationsURL) String() string
String returns the string representation of the path with query string
func (*AssociateReportViolationsURL) StringFull ¶
func (o *AssociateReportViolationsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AssociateReportViolationsURL) WithBasePath ¶
func (o *AssociateReportViolationsURL) WithBasePath(bp string) *AssociateReportViolationsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AssociateReportViolationsUnprocessableEntity ¶
type AssociateReportViolationsUnprocessableEntity struct { /* In: Body */ Payload *ghcmessages.ValidationError `json:"body,omitempty"` }
AssociateReportViolationsUnprocessableEntity The payload was unprocessable.
swagger:response associateReportViolationsUnprocessableEntity
func NewAssociateReportViolationsUnprocessableEntity ¶
func NewAssociateReportViolationsUnprocessableEntity() *AssociateReportViolationsUnprocessableEntity
NewAssociateReportViolationsUnprocessableEntity creates AssociateReportViolationsUnprocessableEntity with default headers values
func (*AssociateReportViolationsUnprocessableEntity) SetPayload ¶
func (o *AssociateReportViolationsUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
SetPayload sets the payload to the associate report violations unprocessable entity response
func (*AssociateReportViolationsUnprocessableEntity) WithPayload ¶
func (o *AssociateReportViolationsUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *AssociateReportViolationsUnprocessableEntity
WithPayload adds the payload to the associate report violations unprocessable entity response
func (*AssociateReportViolationsUnprocessableEntity) WriteResponse ¶
func (o *AssociateReportViolationsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportViolationsByReportID ¶
type GetReportViolationsByReportID struct { Context *middleware.Context Handler GetReportViolationsByReportIDHandler }
GetReportViolationsByReportID swagger:route GET /report-violations/{reportID} reportViolations getReportViolationsByReportId
Fetch the report violations for an evaluation report ¶
Fetch the report violations for an evaluation report
func NewGetReportViolationsByReportID ¶
func NewGetReportViolationsByReportID(ctx *middleware.Context, handler GetReportViolationsByReportIDHandler) *GetReportViolationsByReportID
NewGetReportViolationsByReportID creates a new http.Handler for the get report violations by report ID operation
func (*GetReportViolationsByReportID) ServeHTTP ¶
func (o *GetReportViolationsByReportID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetReportViolationsByReportIDBadRequest ¶
type GetReportViolationsByReportIDBadRequest struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetReportViolationsByReportIDBadRequest The request payload is invalid
swagger:response getReportViolationsByReportIdBadRequest
func NewGetReportViolationsByReportIDBadRequest ¶
func NewGetReportViolationsByReportIDBadRequest() *GetReportViolationsByReportIDBadRequest
NewGetReportViolationsByReportIDBadRequest creates GetReportViolationsByReportIDBadRequest with default headers values
func (*GetReportViolationsByReportIDBadRequest) SetPayload ¶
func (o *GetReportViolationsByReportIDBadRequest) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get report violations by report Id bad request response
func (*GetReportViolationsByReportIDBadRequest) WithPayload ¶
func (o *GetReportViolationsByReportIDBadRequest) WithPayload(payload *ghcmessages.Error) *GetReportViolationsByReportIDBadRequest
WithPayload adds the payload to the get report violations by report Id bad request response
func (*GetReportViolationsByReportIDBadRequest) WriteResponse ¶
func (o *GetReportViolationsByReportIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportViolationsByReportIDForbidden ¶
type GetReportViolationsByReportIDForbidden struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetReportViolationsByReportIDForbidden The request was denied
swagger:response getReportViolationsByReportIdForbidden
func NewGetReportViolationsByReportIDForbidden ¶
func NewGetReportViolationsByReportIDForbidden() *GetReportViolationsByReportIDForbidden
NewGetReportViolationsByReportIDForbidden creates GetReportViolationsByReportIDForbidden with default headers values
func (*GetReportViolationsByReportIDForbidden) SetPayload ¶
func (o *GetReportViolationsByReportIDForbidden) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get report violations by report Id forbidden response
func (*GetReportViolationsByReportIDForbidden) WithPayload ¶
func (o *GetReportViolationsByReportIDForbidden) WithPayload(payload *ghcmessages.Error) *GetReportViolationsByReportIDForbidden
WithPayload adds the payload to the get report violations by report Id forbidden response
func (*GetReportViolationsByReportIDForbidden) WriteResponse ¶
func (o *GetReportViolationsByReportIDForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportViolationsByReportIDHandler ¶
type GetReportViolationsByReportIDHandler interface {
Handle(GetReportViolationsByReportIDParams) middleware.Responder
}
GetReportViolationsByReportIDHandler interface for that can handle valid get report violations by report ID params
type GetReportViolationsByReportIDHandlerFunc ¶
type GetReportViolationsByReportIDHandlerFunc func(GetReportViolationsByReportIDParams) middleware.Responder
GetReportViolationsByReportIDHandlerFunc turns a function with the right signature into a get report violations by report ID handler
func (GetReportViolationsByReportIDHandlerFunc) Handle ¶
func (fn GetReportViolationsByReportIDHandlerFunc) Handle(params GetReportViolationsByReportIDParams) middleware.Responder
Handle executing the request and returning a response
type GetReportViolationsByReportIDInternalServerError ¶
type GetReportViolationsByReportIDInternalServerError struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetReportViolationsByReportIDInternalServerError A server error occurred
swagger:response getReportViolationsByReportIdInternalServerError
func NewGetReportViolationsByReportIDInternalServerError ¶
func NewGetReportViolationsByReportIDInternalServerError() *GetReportViolationsByReportIDInternalServerError
NewGetReportViolationsByReportIDInternalServerError creates GetReportViolationsByReportIDInternalServerError with default headers values
func (*GetReportViolationsByReportIDInternalServerError) SetPayload ¶
func (o *GetReportViolationsByReportIDInternalServerError) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get report violations by report Id internal server error response
func (*GetReportViolationsByReportIDInternalServerError) WithPayload ¶
func (o *GetReportViolationsByReportIDInternalServerError) WithPayload(payload *ghcmessages.Error) *GetReportViolationsByReportIDInternalServerError
WithPayload adds the payload to the get report violations by report Id internal server error response
func (*GetReportViolationsByReportIDInternalServerError) WriteResponse ¶
func (o *GetReportViolationsByReportIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportViolationsByReportIDNotFound ¶
type GetReportViolationsByReportIDNotFound struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetReportViolationsByReportIDNotFound The requested resource wasn't found
swagger:response getReportViolationsByReportIdNotFound
func NewGetReportViolationsByReportIDNotFound ¶
func NewGetReportViolationsByReportIDNotFound() *GetReportViolationsByReportIDNotFound
NewGetReportViolationsByReportIDNotFound creates GetReportViolationsByReportIDNotFound with default headers values
func (*GetReportViolationsByReportIDNotFound) SetPayload ¶
func (o *GetReportViolationsByReportIDNotFound) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get report violations by report Id not found response
func (*GetReportViolationsByReportIDNotFound) WithPayload ¶
func (o *GetReportViolationsByReportIDNotFound) WithPayload(payload *ghcmessages.Error) *GetReportViolationsByReportIDNotFound
WithPayload adds the payload to the get report violations by report Id not found response
func (*GetReportViolationsByReportIDNotFound) WriteResponse ¶
func (o *GetReportViolationsByReportIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportViolationsByReportIDOK ¶
type GetReportViolationsByReportIDOK struct { /* In: Body */ Payload ghcmessages.ReportViolations `json:"body,omitempty"` }
GetReportViolationsByReportIDOK Successfully retrieved the report violations
swagger:response getReportViolationsByReportIdOK
func NewGetReportViolationsByReportIDOK ¶
func NewGetReportViolationsByReportIDOK() *GetReportViolationsByReportIDOK
NewGetReportViolationsByReportIDOK creates GetReportViolationsByReportIDOK with default headers values
func (*GetReportViolationsByReportIDOK) SetPayload ¶
func (o *GetReportViolationsByReportIDOK) SetPayload(payload ghcmessages.ReportViolations)
SetPayload sets the payload to the get report violations by report Id o k response
func (*GetReportViolationsByReportIDOK) WithPayload ¶
func (o *GetReportViolationsByReportIDOK) WithPayload(payload ghcmessages.ReportViolations) *GetReportViolationsByReportIDOK
WithPayload adds the payload to the get report violations by report Id o k response
func (*GetReportViolationsByReportIDOK) WriteResponse ¶
func (o *GetReportViolationsByReportIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportViolationsByReportIDParams ¶
type GetReportViolationsByReportIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*the evaluation report ID that has associated violations Required: true In: path */ ReportID strfmt.UUID }
GetReportViolationsByReportIDParams contains all the bound params for the get report violations by report ID operation typically these are obtained from a http.Request
swagger:parameters getReportViolationsByReportID
func NewGetReportViolationsByReportIDParams ¶
func NewGetReportViolationsByReportIDParams() GetReportViolationsByReportIDParams
NewGetReportViolationsByReportIDParams creates a new GetReportViolationsByReportIDParams object
There are no default values defined in the spec.
func (*GetReportViolationsByReportIDParams) BindRequest ¶
func (o *GetReportViolationsByReportIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetReportViolationsByReportIDParams() beforehand.
type GetReportViolationsByReportIDURL ¶
type GetReportViolationsByReportIDURL struct { ReportID strfmt.UUID // contains filtered or unexported fields }
GetReportViolationsByReportIDURL generates an URL for the get report violations by report ID operation
func (*GetReportViolationsByReportIDURL) Build ¶
func (o *GetReportViolationsByReportIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetReportViolationsByReportIDURL) BuildFull ¶
func (o *GetReportViolationsByReportIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetReportViolationsByReportIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetReportViolationsByReportIDURL) SetBasePath ¶
func (o *GetReportViolationsByReportIDURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetReportViolationsByReportIDURL) String ¶
func (o *GetReportViolationsByReportIDURL) String() string
String returns the string representation of the path with query string
func (*GetReportViolationsByReportIDURL) StringFull ¶
func (o *GetReportViolationsByReportIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetReportViolationsByReportIDURL) WithBasePath ¶
func (o *GetReportViolationsByReportIDURL) WithBasePath(bp string) *GetReportViolationsByReportIDURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files ¶
- associate_report_violations.go
- associate_report_violations_parameters.go
- associate_report_violations_responses.go
- associate_report_violations_urlbuilder.go
- get_report_violations_by_report_id.go
- get_report_violations_by_report_id_parameters.go
- get_report_violations_by_report_id_responses.go
- get_report_violations_by_report_id_urlbuilder.go