Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteV1SeveritiesSeveritySlug(params *DeleteV1SeveritiesSeveritySlugParams, ...) (*DeleteV1SeveritiesSeveritySlugOK, error)
- func (a *Client) GetV1Severities(params *GetV1SeveritiesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetV1SeveritiesOK, error)
- func (a *Client) GetV1SeveritiesSeveritySlug(params *GetV1SeveritiesSeveritySlugParams, ...) (*GetV1SeveritiesSeveritySlugOK, error)
- func (a *Client) PatchV1SeveritiesSeveritySlug(params *PatchV1SeveritiesSeveritySlugParams, ...) (*PatchV1SeveritiesSeveritySlugOK, error)
- func (a *Client) PostV1Severities(params *PostV1SeveritiesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostV1SeveritiesCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteV1SeveritiesSeveritySlugOK
- func (o *DeleteV1SeveritiesSeveritySlugOK) Error() string
- func (o *DeleteV1SeveritiesSeveritySlugOK) GetPayload() *models.SeverityEntity
- func (o *DeleteV1SeveritiesSeveritySlugOK) IsClientError() bool
- func (o *DeleteV1SeveritiesSeveritySlugOK) IsCode(code int) bool
- func (o *DeleteV1SeveritiesSeveritySlugOK) IsRedirect() bool
- func (o *DeleteV1SeveritiesSeveritySlugOK) IsServerError() bool
- func (o *DeleteV1SeveritiesSeveritySlugOK) IsSuccess() bool
- func (o *DeleteV1SeveritiesSeveritySlugOK) String() string
- type DeleteV1SeveritiesSeveritySlugParams
- func NewDeleteV1SeveritiesSeveritySlugParams() *DeleteV1SeveritiesSeveritySlugParams
- func NewDeleteV1SeveritiesSeveritySlugParamsWithContext(ctx context.Context) *DeleteV1SeveritiesSeveritySlugParams
- func NewDeleteV1SeveritiesSeveritySlugParamsWithHTTPClient(client *http.Client) *DeleteV1SeveritiesSeveritySlugParams
- func NewDeleteV1SeveritiesSeveritySlugParamsWithTimeout(timeout time.Duration) *DeleteV1SeveritiesSeveritySlugParams
- func (o *DeleteV1SeveritiesSeveritySlugParams) SetContext(ctx context.Context)
- func (o *DeleteV1SeveritiesSeveritySlugParams) SetDefaults()
- func (o *DeleteV1SeveritiesSeveritySlugParams) SetHTTPClient(client *http.Client)
- func (o *DeleteV1SeveritiesSeveritySlugParams) SetSeveritySlug(severitySlug string)
- func (o *DeleteV1SeveritiesSeveritySlugParams) SetTimeout(timeout time.Duration)
- func (o *DeleteV1SeveritiesSeveritySlugParams) WithContext(ctx context.Context) *DeleteV1SeveritiesSeveritySlugParams
- func (o *DeleteV1SeveritiesSeveritySlugParams) WithDefaults() *DeleteV1SeveritiesSeveritySlugParams
- func (o *DeleteV1SeveritiesSeveritySlugParams) WithHTTPClient(client *http.Client) *DeleteV1SeveritiesSeveritySlugParams
- func (o *DeleteV1SeveritiesSeveritySlugParams) WithSeveritySlug(severitySlug string) *DeleteV1SeveritiesSeveritySlugParams
- func (o *DeleteV1SeveritiesSeveritySlugParams) WithTimeout(timeout time.Duration) *DeleteV1SeveritiesSeveritySlugParams
- func (o *DeleteV1SeveritiesSeveritySlugParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteV1SeveritiesSeveritySlugReader
- type GetV1SeveritiesOK
- func (o *GetV1SeveritiesOK) Error() string
- func (o *GetV1SeveritiesOK) GetPayload() *models.SeverityEntityPaginated
- func (o *GetV1SeveritiesOK) IsClientError() bool
- func (o *GetV1SeveritiesOK) IsCode(code int) bool
- func (o *GetV1SeveritiesOK) IsRedirect() bool
- func (o *GetV1SeveritiesOK) IsServerError() bool
- func (o *GetV1SeveritiesOK) IsSuccess() bool
- func (o *GetV1SeveritiesOK) String() string
- type GetV1SeveritiesParams
- func NewGetV1SeveritiesParams() *GetV1SeveritiesParams
- func NewGetV1SeveritiesParamsWithContext(ctx context.Context) *GetV1SeveritiesParams
- func NewGetV1SeveritiesParamsWithHTTPClient(client *http.Client) *GetV1SeveritiesParams
- func NewGetV1SeveritiesParamsWithTimeout(timeout time.Duration) *GetV1SeveritiesParams
- func (o *GetV1SeveritiesParams) SetContext(ctx context.Context)
- func (o *GetV1SeveritiesParams) SetDefaults()
- func (o *GetV1SeveritiesParams) SetHTTPClient(client *http.Client)
- func (o *GetV1SeveritiesParams) SetPage(page *int32)
- func (o *GetV1SeveritiesParams) SetPerPage(perPage *int32)
- func (o *GetV1SeveritiesParams) SetTimeout(timeout time.Duration)
- func (o *GetV1SeveritiesParams) WithContext(ctx context.Context) *GetV1SeveritiesParams
- func (o *GetV1SeveritiesParams) WithDefaults() *GetV1SeveritiesParams
- func (o *GetV1SeveritiesParams) WithHTTPClient(client *http.Client) *GetV1SeveritiesParams
- func (o *GetV1SeveritiesParams) WithPage(page *int32) *GetV1SeveritiesParams
- func (o *GetV1SeveritiesParams) WithPerPage(perPage *int32) *GetV1SeveritiesParams
- func (o *GetV1SeveritiesParams) WithTimeout(timeout time.Duration) *GetV1SeveritiesParams
- func (o *GetV1SeveritiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1SeveritiesReader
- type GetV1SeveritiesSeveritySlugOK
- func (o *GetV1SeveritiesSeveritySlugOK) Error() string
- func (o *GetV1SeveritiesSeveritySlugOK) GetPayload() *models.SeverityEntity
- func (o *GetV1SeveritiesSeveritySlugOK) IsClientError() bool
- func (o *GetV1SeveritiesSeveritySlugOK) IsCode(code int) bool
- func (o *GetV1SeveritiesSeveritySlugOK) IsRedirect() bool
- func (o *GetV1SeveritiesSeveritySlugOK) IsServerError() bool
- func (o *GetV1SeveritiesSeveritySlugOK) IsSuccess() bool
- func (o *GetV1SeveritiesSeveritySlugOK) String() string
- type GetV1SeveritiesSeveritySlugParams
- func NewGetV1SeveritiesSeveritySlugParams() *GetV1SeveritiesSeveritySlugParams
- func NewGetV1SeveritiesSeveritySlugParamsWithContext(ctx context.Context) *GetV1SeveritiesSeveritySlugParams
- func NewGetV1SeveritiesSeveritySlugParamsWithHTTPClient(client *http.Client) *GetV1SeveritiesSeveritySlugParams
- func NewGetV1SeveritiesSeveritySlugParamsWithTimeout(timeout time.Duration) *GetV1SeveritiesSeveritySlugParams
- func (o *GetV1SeveritiesSeveritySlugParams) SetContext(ctx context.Context)
- func (o *GetV1SeveritiesSeveritySlugParams) SetDefaults()
- func (o *GetV1SeveritiesSeveritySlugParams) SetHTTPClient(client *http.Client)
- func (o *GetV1SeveritiesSeveritySlugParams) SetSeveritySlug(severitySlug string)
- func (o *GetV1SeveritiesSeveritySlugParams) SetTimeout(timeout time.Duration)
- func (o *GetV1SeveritiesSeveritySlugParams) WithContext(ctx context.Context) *GetV1SeveritiesSeveritySlugParams
- func (o *GetV1SeveritiesSeveritySlugParams) WithDefaults() *GetV1SeveritiesSeveritySlugParams
- func (o *GetV1SeveritiesSeveritySlugParams) WithHTTPClient(client *http.Client) *GetV1SeveritiesSeveritySlugParams
- func (o *GetV1SeveritiesSeveritySlugParams) WithSeveritySlug(severitySlug string) *GetV1SeveritiesSeveritySlugParams
- func (o *GetV1SeveritiesSeveritySlugParams) WithTimeout(timeout time.Duration) *GetV1SeveritiesSeveritySlugParams
- func (o *GetV1SeveritiesSeveritySlugParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1SeveritiesSeveritySlugReader
- type PatchV1SeveritiesSeveritySlugOK
- func (o *PatchV1SeveritiesSeveritySlugOK) Error() string
- func (o *PatchV1SeveritiesSeveritySlugOK) GetPayload() *models.SeverityEntity
- func (o *PatchV1SeveritiesSeveritySlugOK) IsClientError() bool
- func (o *PatchV1SeveritiesSeveritySlugOK) IsCode(code int) bool
- func (o *PatchV1SeveritiesSeveritySlugOK) IsRedirect() bool
- func (o *PatchV1SeveritiesSeveritySlugOK) IsServerError() bool
- func (o *PatchV1SeveritiesSeveritySlugOK) IsSuccess() bool
- func (o *PatchV1SeveritiesSeveritySlugOK) String() string
- type PatchV1SeveritiesSeveritySlugParams
- func NewPatchV1SeveritiesSeveritySlugParams() *PatchV1SeveritiesSeveritySlugParams
- func NewPatchV1SeveritiesSeveritySlugParamsWithContext(ctx context.Context) *PatchV1SeveritiesSeveritySlugParams
- func NewPatchV1SeveritiesSeveritySlugParamsWithHTTPClient(client *http.Client) *PatchV1SeveritiesSeveritySlugParams
- func NewPatchV1SeveritiesSeveritySlugParamsWithTimeout(timeout time.Duration) *PatchV1SeveritiesSeveritySlugParams
- func (o *PatchV1SeveritiesSeveritySlugParams) SetContext(ctx context.Context)
- func (o *PatchV1SeveritiesSeveritySlugParams) SetDefaults()
- func (o *PatchV1SeveritiesSeveritySlugParams) SetHTTPClient(client *http.Client)
- func (o *PatchV1SeveritiesSeveritySlugParams) SetPatchV1SeveritiesSeveritySlug(patchV1SeveritiesSeveritySlug *models.PatchV1SeveritiesSeveritySlug)
- func (o *PatchV1SeveritiesSeveritySlugParams) SetSeveritySlug(severitySlug string)
- func (o *PatchV1SeveritiesSeveritySlugParams) SetTimeout(timeout time.Duration)
- func (o *PatchV1SeveritiesSeveritySlugParams) WithContext(ctx context.Context) *PatchV1SeveritiesSeveritySlugParams
- func (o *PatchV1SeveritiesSeveritySlugParams) WithDefaults() *PatchV1SeveritiesSeveritySlugParams
- func (o *PatchV1SeveritiesSeveritySlugParams) WithHTTPClient(client *http.Client) *PatchV1SeveritiesSeveritySlugParams
- func (o *PatchV1SeveritiesSeveritySlugParams) WithPatchV1SeveritiesSeveritySlug(patchV1SeveritiesSeveritySlug *models.PatchV1SeveritiesSeveritySlug) *PatchV1SeveritiesSeveritySlugParams
- func (o *PatchV1SeveritiesSeveritySlugParams) WithSeveritySlug(severitySlug string) *PatchV1SeveritiesSeveritySlugParams
- func (o *PatchV1SeveritiesSeveritySlugParams) WithTimeout(timeout time.Duration) *PatchV1SeveritiesSeveritySlugParams
- func (o *PatchV1SeveritiesSeveritySlugParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchV1SeveritiesSeveritySlugReader
- type PostV1SeveritiesCreated
- func (o *PostV1SeveritiesCreated) Error() string
- func (o *PostV1SeveritiesCreated) GetPayload() *models.SeverityEntity
- func (o *PostV1SeveritiesCreated) IsClientError() bool
- func (o *PostV1SeveritiesCreated) IsCode(code int) bool
- func (o *PostV1SeveritiesCreated) IsRedirect() bool
- func (o *PostV1SeveritiesCreated) IsServerError() bool
- func (o *PostV1SeveritiesCreated) IsSuccess() bool
- func (o *PostV1SeveritiesCreated) String() string
- type PostV1SeveritiesParams
- func NewPostV1SeveritiesParams() *PostV1SeveritiesParams
- func NewPostV1SeveritiesParamsWithContext(ctx context.Context) *PostV1SeveritiesParams
- func NewPostV1SeveritiesParamsWithHTTPClient(client *http.Client) *PostV1SeveritiesParams
- func NewPostV1SeveritiesParamsWithTimeout(timeout time.Duration) *PostV1SeveritiesParams
- func (o *PostV1SeveritiesParams) SetContext(ctx context.Context)
- func (o *PostV1SeveritiesParams) SetDefaults()
- func (o *PostV1SeveritiesParams) SetHTTPClient(client *http.Client)
- func (o *PostV1SeveritiesParams) SetPostV1Severities(postV1Severities *models.PostV1Severities)
- func (o *PostV1SeveritiesParams) SetTimeout(timeout time.Duration)
- func (o *PostV1SeveritiesParams) WithContext(ctx context.Context) *PostV1SeveritiesParams
- func (o *PostV1SeveritiesParams) WithDefaults() *PostV1SeveritiesParams
- func (o *PostV1SeveritiesParams) WithHTTPClient(client *http.Client) *PostV1SeveritiesParams
- func (o *PostV1SeveritiesParams) WithPostV1Severities(postV1Severities *models.PostV1Severities) *PostV1SeveritiesParams
- func (o *PostV1SeveritiesParams) WithTimeout(timeout time.Duration) *PostV1SeveritiesParams
- func (o *PostV1SeveritiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostV1SeveritiesReader
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 severities API
func (*Client) DeleteV1SeveritiesSeveritySlug ¶
func (a *Client) DeleteV1SeveritiesSeveritySlug(params *DeleteV1SeveritiesSeveritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1SeveritiesSeveritySlugOK, error)
DeleteV1SeveritiesSeveritySlug deletes a specific severity
Delete a specific severity
func (*Client) GetV1Severities ¶
func (a *Client) GetV1Severities(params *GetV1SeveritiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1SeveritiesOK, error)
GetV1Severities lists severities
Lists severities
func (*Client) GetV1SeveritiesSeveritySlug ¶
func (a *Client) GetV1SeveritiesSeveritySlug(params *GetV1SeveritiesSeveritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1SeveritiesSeveritySlugOK, error)
GetV1SeveritiesSeveritySlug retrieves a specific severity
Retrieve a specific severity
func (*Client) PatchV1SeveritiesSeveritySlug ¶
func (a *Client) PatchV1SeveritiesSeveritySlug(params *PatchV1SeveritiesSeveritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchV1SeveritiesSeveritySlugOK, error)
PatchV1SeveritiesSeveritySlug updates a specific severity
Update a specific severity
func (*Client) PostV1Severities ¶
func (a *Client) PostV1Severities(params *PostV1SeveritiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1SeveritiesCreated, error)
PostV1Severities creates severity
Create a new severity
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { DeleteV1SeveritiesSeveritySlug(params *DeleteV1SeveritiesSeveritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1SeveritiesSeveritySlugOK, error) GetV1Severities(params *GetV1SeveritiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1SeveritiesOK, error) GetV1SeveritiesSeveritySlug(params *GetV1SeveritiesSeveritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1SeveritiesSeveritySlugOK, error) PatchV1SeveritiesSeveritySlug(params *PatchV1SeveritiesSeveritySlugParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchV1SeveritiesSeveritySlugOK, error) PostV1Severities(params *PostV1SeveritiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1SeveritiesCreated, 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 severities API client.
type DeleteV1SeveritiesSeveritySlugOK ¶
type DeleteV1SeveritiesSeveritySlugOK struct {
Payload *models.SeverityEntity
}
DeleteV1SeveritiesSeveritySlugOK describes a response with status code 200, with default header values.
Delete a specific severity
func NewDeleteV1SeveritiesSeveritySlugOK ¶
func NewDeleteV1SeveritiesSeveritySlugOK() *DeleteV1SeveritiesSeveritySlugOK
NewDeleteV1SeveritiesSeveritySlugOK creates a DeleteV1SeveritiesSeveritySlugOK with default headers values
func (*DeleteV1SeveritiesSeveritySlugOK) Error ¶
func (o *DeleteV1SeveritiesSeveritySlugOK) Error() string
func (*DeleteV1SeveritiesSeveritySlugOK) GetPayload ¶
func (o *DeleteV1SeveritiesSeveritySlugOK) GetPayload() *models.SeverityEntity
func (*DeleteV1SeveritiesSeveritySlugOK) IsClientError ¶
func (o *DeleteV1SeveritiesSeveritySlugOK) IsClientError() bool
IsClientError returns true when this delete v1 severities severity slug o k response has a 4xx status code
func (*DeleteV1SeveritiesSeveritySlugOK) IsCode ¶
func (o *DeleteV1SeveritiesSeveritySlugOK) IsCode(code int) bool
IsCode returns true when this delete v1 severities severity slug o k response a status code equal to that given
func (*DeleteV1SeveritiesSeveritySlugOK) IsRedirect ¶
func (o *DeleteV1SeveritiesSeveritySlugOK) IsRedirect() bool
IsRedirect returns true when this delete v1 severities severity slug o k response has a 3xx status code
func (*DeleteV1SeveritiesSeveritySlugOK) IsServerError ¶
func (o *DeleteV1SeveritiesSeveritySlugOK) IsServerError() bool
IsServerError returns true when this delete v1 severities severity slug o k response has a 5xx status code
func (*DeleteV1SeveritiesSeveritySlugOK) IsSuccess ¶
func (o *DeleteV1SeveritiesSeveritySlugOK) IsSuccess() bool
IsSuccess returns true when this delete v1 severities severity slug o k response has a 2xx status code
func (*DeleteV1SeveritiesSeveritySlugOK) String ¶
func (o *DeleteV1SeveritiesSeveritySlugOK) String() string
type DeleteV1SeveritiesSeveritySlugParams ¶
type DeleteV1SeveritiesSeveritySlugParams struct { // SeveritySlug. SeveritySlug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteV1SeveritiesSeveritySlugParams contains all the parameters to send to the API endpoint
for the delete v1 severities severity slug operation. Typically these are written to a http.Request.
func NewDeleteV1SeveritiesSeveritySlugParams ¶
func NewDeleteV1SeveritiesSeveritySlugParams() *DeleteV1SeveritiesSeveritySlugParams
NewDeleteV1SeveritiesSeveritySlugParams creates a new DeleteV1SeveritiesSeveritySlugParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteV1SeveritiesSeveritySlugParamsWithContext ¶
func NewDeleteV1SeveritiesSeveritySlugParamsWithContext(ctx context.Context) *DeleteV1SeveritiesSeveritySlugParams
NewDeleteV1SeveritiesSeveritySlugParamsWithContext creates a new DeleteV1SeveritiesSeveritySlugParams object with the ability to set a context for a request.
func NewDeleteV1SeveritiesSeveritySlugParamsWithHTTPClient ¶
func NewDeleteV1SeveritiesSeveritySlugParamsWithHTTPClient(client *http.Client) *DeleteV1SeveritiesSeveritySlugParams
NewDeleteV1SeveritiesSeveritySlugParamsWithHTTPClient creates a new DeleteV1SeveritiesSeveritySlugParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteV1SeveritiesSeveritySlugParamsWithTimeout ¶
func NewDeleteV1SeveritiesSeveritySlugParamsWithTimeout(timeout time.Duration) *DeleteV1SeveritiesSeveritySlugParams
NewDeleteV1SeveritiesSeveritySlugParamsWithTimeout creates a new DeleteV1SeveritiesSeveritySlugParams object with the ability to set a timeout on a request.
func (*DeleteV1SeveritiesSeveritySlugParams) SetContext ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) SetContext(ctx context.Context)
SetContext adds the context to the delete v1 severities severity slug params
func (*DeleteV1SeveritiesSeveritySlugParams) SetDefaults ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) SetDefaults()
SetDefaults hydrates default values in the delete v1 severities severity slug params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteV1SeveritiesSeveritySlugParams) SetHTTPClient ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete v1 severities severity slug params
func (*DeleteV1SeveritiesSeveritySlugParams) SetSeveritySlug ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) SetSeveritySlug(severitySlug string)
SetSeveritySlug adds the severitySlug to the delete v1 severities severity slug params
func (*DeleteV1SeveritiesSeveritySlugParams) SetTimeout ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete v1 severities severity slug params
func (*DeleteV1SeveritiesSeveritySlugParams) WithContext ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) WithContext(ctx context.Context) *DeleteV1SeveritiesSeveritySlugParams
WithContext adds the context to the delete v1 severities severity slug params
func (*DeleteV1SeveritiesSeveritySlugParams) WithDefaults ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) WithDefaults() *DeleteV1SeveritiesSeveritySlugParams
WithDefaults hydrates default values in the delete v1 severities severity slug params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteV1SeveritiesSeveritySlugParams) WithHTTPClient ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) WithHTTPClient(client *http.Client) *DeleteV1SeveritiesSeveritySlugParams
WithHTTPClient adds the HTTPClient to the delete v1 severities severity slug params
func (*DeleteV1SeveritiesSeveritySlugParams) WithSeveritySlug ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) WithSeveritySlug(severitySlug string) *DeleteV1SeveritiesSeveritySlugParams
WithSeveritySlug adds the severitySlug to the delete v1 severities severity slug params
func (*DeleteV1SeveritiesSeveritySlugParams) WithTimeout ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) WithTimeout(timeout time.Duration) *DeleteV1SeveritiesSeveritySlugParams
WithTimeout adds the timeout to the delete v1 severities severity slug params
func (*DeleteV1SeveritiesSeveritySlugParams) WriteToRequest ¶
func (o *DeleteV1SeveritiesSeveritySlugParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteV1SeveritiesSeveritySlugReader ¶
type DeleteV1SeveritiesSeveritySlugReader struct {
// contains filtered or unexported fields
}
DeleteV1SeveritiesSeveritySlugReader is a Reader for the DeleteV1SeveritiesSeveritySlug structure.
func (*DeleteV1SeveritiesSeveritySlugReader) ReadResponse ¶
func (o *DeleteV1SeveritiesSeveritySlugReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1SeveritiesOK ¶
type GetV1SeveritiesOK struct {
Payload *models.SeverityEntityPaginated
}
GetV1SeveritiesOK describes a response with status code 200, with default header values.
Lists severities
func NewGetV1SeveritiesOK ¶
func NewGetV1SeveritiesOK() *GetV1SeveritiesOK
NewGetV1SeveritiesOK creates a GetV1SeveritiesOK with default headers values
func (*GetV1SeveritiesOK) Error ¶
func (o *GetV1SeveritiesOK) Error() string
func (*GetV1SeveritiesOK) GetPayload ¶
func (o *GetV1SeveritiesOK) GetPayload() *models.SeverityEntityPaginated
func (*GetV1SeveritiesOK) IsClientError ¶
func (o *GetV1SeveritiesOK) IsClientError() bool
IsClientError returns true when this get v1 severities o k response has a 4xx status code
func (*GetV1SeveritiesOK) IsCode ¶
func (o *GetV1SeveritiesOK) IsCode(code int) bool
IsCode returns true when this get v1 severities o k response a status code equal to that given
func (*GetV1SeveritiesOK) IsRedirect ¶
func (o *GetV1SeveritiesOK) IsRedirect() bool
IsRedirect returns true when this get v1 severities o k response has a 3xx status code
func (*GetV1SeveritiesOK) IsServerError ¶
func (o *GetV1SeveritiesOK) IsServerError() bool
IsServerError returns true when this get v1 severities o k response has a 5xx status code
func (*GetV1SeveritiesOK) IsSuccess ¶
func (o *GetV1SeveritiesOK) IsSuccess() bool
IsSuccess returns true when this get v1 severities o k response has a 2xx status code
func (*GetV1SeveritiesOK) String ¶
func (o *GetV1SeveritiesOK) String() string
type GetV1SeveritiesParams ¶
type GetV1SeveritiesParams struct { // Page. // // Format: int32 Page *int32 // PerPage. // // Format: int32 PerPage *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1SeveritiesParams contains all the parameters to send to the API endpoint
for the get v1 severities operation. Typically these are written to a http.Request.
func NewGetV1SeveritiesParams ¶
func NewGetV1SeveritiesParams() *GetV1SeveritiesParams
NewGetV1SeveritiesParams creates a new GetV1SeveritiesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetV1SeveritiesParamsWithContext ¶
func NewGetV1SeveritiesParamsWithContext(ctx context.Context) *GetV1SeveritiesParams
NewGetV1SeveritiesParamsWithContext creates a new GetV1SeveritiesParams object with the ability to set a context for a request.
func NewGetV1SeveritiesParamsWithHTTPClient ¶
func NewGetV1SeveritiesParamsWithHTTPClient(client *http.Client) *GetV1SeveritiesParams
NewGetV1SeveritiesParamsWithHTTPClient creates a new GetV1SeveritiesParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1SeveritiesParamsWithTimeout ¶
func NewGetV1SeveritiesParamsWithTimeout(timeout time.Duration) *GetV1SeveritiesParams
NewGetV1SeveritiesParamsWithTimeout creates a new GetV1SeveritiesParams object with the ability to set a timeout on a request.
func (*GetV1SeveritiesParams) SetContext ¶
func (o *GetV1SeveritiesParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 severities params
func (*GetV1SeveritiesParams) SetDefaults ¶
func (o *GetV1SeveritiesParams) SetDefaults()
SetDefaults hydrates default values in the get v1 severities params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1SeveritiesParams) SetHTTPClient ¶
func (o *GetV1SeveritiesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 severities params
func (*GetV1SeveritiesParams) SetPage ¶
func (o *GetV1SeveritiesParams) SetPage(page *int32)
SetPage adds the page to the get v1 severities params
func (*GetV1SeveritiesParams) SetPerPage ¶
func (o *GetV1SeveritiesParams) SetPerPage(perPage *int32)
SetPerPage adds the perPage to the get v1 severities params
func (*GetV1SeveritiesParams) SetTimeout ¶
func (o *GetV1SeveritiesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 severities params
func (*GetV1SeveritiesParams) WithContext ¶
func (o *GetV1SeveritiesParams) WithContext(ctx context.Context) *GetV1SeveritiesParams
WithContext adds the context to the get v1 severities params
func (*GetV1SeveritiesParams) WithDefaults ¶
func (o *GetV1SeveritiesParams) WithDefaults() *GetV1SeveritiesParams
WithDefaults hydrates default values in the get v1 severities params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1SeveritiesParams) WithHTTPClient ¶
func (o *GetV1SeveritiesParams) WithHTTPClient(client *http.Client) *GetV1SeveritiesParams
WithHTTPClient adds the HTTPClient to the get v1 severities params
func (*GetV1SeveritiesParams) WithPage ¶
func (o *GetV1SeveritiesParams) WithPage(page *int32) *GetV1SeveritiesParams
WithPage adds the page to the get v1 severities params
func (*GetV1SeveritiesParams) WithPerPage ¶
func (o *GetV1SeveritiesParams) WithPerPage(perPage *int32) *GetV1SeveritiesParams
WithPerPage adds the perPage to the get v1 severities params
func (*GetV1SeveritiesParams) WithTimeout ¶
func (o *GetV1SeveritiesParams) WithTimeout(timeout time.Duration) *GetV1SeveritiesParams
WithTimeout adds the timeout to the get v1 severities params
func (*GetV1SeveritiesParams) WriteToRequest ¶
func (o *GetV1SeveritiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1SeveritiesReader ¶
type GetV1SeveritiesReader struct {
// contains filtered or unexported fields
}
GetV1SeveritiesReader is a Reader for the GetV1Severities structure.
func (*GetV1SeveritiesReader) ReadResponse ¶
func (o *GetV1SeveritiesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1SeveritiesSeveritySlugOK ¶
type GetV1SeveritiesSeveritySlugOK struct {
Payload *models.SeverityEntity
}
GetV1SeveritiesSeveritySlugOK describes a response with status code 200, with default header values.
Retrieve a specific severity
func NewGetV1SeveritiesSeveritySlugOK ¶
func NewGetV1SeveritiesSeveritySlugOK() *GetV1SeveritiesSeveritySlugOK
NewGetV1SeveritiesSeveritySlugOK creates a GetV1SeveritiesSeveritySlugOK with default headers values
func (*GetV1SeveritiesSeveritySlugOK) Error ¶
func (o *GetV1SeveritiesSeveritySlugOK) Error() string
func (*GetV1SeveritiesSeveritySlugOK) GetPayload ¶
func (o *GetV1SeveritiesSeveritySlugOK) GetPayload() *models.SeverityEntity
func (*GetV1SeveritiesSeveritySlugOK) IsClientError ¶
func (o *GetV1SeveritiesSeveritySlugOK) IsClientError() bool
IsClientError returns true when this get v1 severities severity slug o k response has a 4xx status code
func (*GetV1SeveritiesSeveritySlugOK) IsCode ¶
func (o *GetV1SeveritiesSeveritySlugOK) IsCode(code int) bool
IsCode returns true when this get v1 severities severity slug o k response a status code equal to that given
func (*GetV1SeveritiesSeveritySlugOK) IsRedirect ¶
func (o *GetV1SeveritiesSeveritySlugOK) IsRedirect() bool
IsRedirect returns true when this get v1 severities severity slug o k response has a 3xx status code
func (*GetV1SeveritiesSeveritySlugOK) IsServerError ¶
func (o *GetV1SeveritiesSeveritySlugOK) IsServerError() bool
IsServerError returns true when this get v1 severities severity slug o k response has a 5xx status code
func (*GetV1SeveritiesSeveritySlugOK) IsSuccess ¶
func (o *GetV1SeveritiesSeveritySlugOK) IsSuccess() bool
IsSuccess returns true when this get v1 severities severity slug o k response has a 2xx status code
func (*GetV1SeveritiesSeveritySlugOK) String ¶
func (o *GetV1SeveritiesSeveritySlugOK) String() string
type GetV1SeveritiesSeveritySlugParams ¶
type GetV1SeveritiesSeveritySlugParams struct { // SeveritySlug. SeveritySlug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1SeveritiesSeveritySlugParams contains all the parameters to send to the API endpoint
for the get v1 severities severity slug operation. Typically these are written to a http.Request.
func NewGetV1SeveritiesSeveritySlugParams ¶
func NewGetV1SeveritiesSeveritySlugParams() *GetV1SeveritiesSeveritySlugParams
NewGetV1SeveritiesSeveritySlugParams creates a new GetV1SeveritiesSeveritySlugParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetV1SeveritiesSeveritySlugParamsWithContext ¶
func NewGetV1SeveritiesSeveritySlugParamsWithContext(ctx context.Context) *GetV1SeveritiesSeveritySlugParams
NewGetV1SeveritiesSeveritySlugParamsWithContext creates a new GetV1SeveritiesSeveritySlugParams object with the ability to set a context for a request.
func NewGetV1SeveritiesSeveritySlugParamsWithHTTPClient ¶
func NewGetV1SeveritiesSeveritySlugParamsWithHTTPClient(client *http.Client) *GetV1SeveritiesSeveritySlugParams
NewGetV1SeveritiesSeveritySlugParamsWithHTTPClient creates a new GetV1SeveritiesSeveritySlugParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1SeveritiesSeveritySlugParamsWithTimeout ¶
func NewGetV1SeveritiesSeveritySlugParamsWithTimeout(timeout time.Duration) *GetV1SeveritiesSeveritySlugParams
NewGetV1SeveritiesSeveritySlugParamsWithTimeout creates a new GetV1SeveritiesSeveritySlugParams object with the ability to set a timeout on a request.
func (*GetV1SeveritiesSeveritySlugParams) SetContext ¶
func (o *GetV1SeveritiesSeveritySlugParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 severities severity slug params
func (*GetV1SeveritiesSeveritySlugParams) SetDefaults ¶
func (o *GetV1SeveritiesSeveritySlugParams) SetDefaults()
SetDefaults hydrates default values in the get v1 severities severity slug params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1SeveritiesSeveritySlugParams) SetHTTPClient ¶
func (o *GetV1SeveritiesSeveritySlugParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 severities severity slug params
func (*GetV1SeveritiesSeveritySlugParams) SetSeveritySlug ¶
func (o *GetV1SeveritiesSeveritySlugParams) SetSeveritySlug(severitySlug string)
SetSeveritySlug adds the severitySlug to the get v1 severities severity slug params
func (*GetV1SeveritiesSeveritySlugParams) SetTimeout ¶
func (o *GetV1SeveritiesSeveritySlugParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 severities severity slug params
func (*GetV1SeveritiesSeveritySlugParams) WithContext ¶
func (o *GetV1SeveritiesSeveritySlugParams) WithContext(ctx context.Context) *GetV1SeveritiesSeveritySlugParams
WithContext adds the context to the get v1 severities severity slug params
func (*GetV1SeveritiesSeveritySlugParams) WithDefaults ¶
func (o *GetV1SeveritiesSeveritySlugParams) WithDefaults() *GetV1SeveritiesSeveritySlugParams
WithDefaults hydrates default values in the get v1 severities severity slug params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1SeveritiesSeveritySlugParams) WithHTTPClient ¶
func (o *GetV1SeveritiesSeveritySlugParams) WithHTTPClient(client *http.Client) *GetV1SeveritiesSeveritySlugParams
WithHTTPClient adds the HTTPClient to the get v1 severities severity slug params
func (*GetV1SeveritiesSeveritySlugParams) WithSeveritySlug ¶
func (o *GetV1SeveritiesSeveritySlugParams) WithSeveritySlug(severitySlug string) *GetV1SeveritiesSeveritySlugParams
WithSeveritySlug adds the severitySlug to the get v1 severities severity slug params
func (*GetV1SeveritiesSeveritySlugParams) WithTimeout ¶
func (o *GetV1SeveritiesSeveritySlugParams) WithTimeout(timeout time.Duration) *GetV1SeveritiesSeveritySlugParams
WithTimeout adds the timeout to the get v1 severities severity slug params
func (*GetV1SeveritiesSeveritySlugParams) WriteToRequest ¶
func (o *GetV1SeveritiesSeveritySlugParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1SeveritiesSeveritySlugReader ¶
type GetV1SeveritiesSeveritySlugReader struct {
// contains filtered or unexported fields
}
GetV1SeveritiesSeveritySlugReader is a Reader for the GetV1SeveritiesSeveritySlug structure.
func (*GetV1SeveritiesSeveritySlugReader) ReadResponse ¶
func (o *GetV1SeveritiesSeveritySlugReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchV1SeveritiesSeveritySlugOK ¶
type PatchV1SeveritiesSeveritySlugOK struct {
Payload *models.SeverityEntity
}
PatchV1SeveritiesSeveritySlugOK describes a response with status code 200, with default header values.
Update a specific severity
func NewPatchV1SeveritiesSeveritySlugOK ¶
func NewPatchV1SeveritiesSeveritySlugOK() *PatchV1SeveritiesSeveritySlugOK
NewPatchV1SeveritiesSeveritySlugOK creates a PatchV1SeveritiesSeveritySlugOK with default headers values
func (*PatchV1SeveritiesSeveritySlugOK) Error ¶
func (o *PatchV1SeveritiesSeveritySlugOK) Error() string
func (*PatchV1SeveritiesSeveritySlugOK) GetPayload ¶
func (o *PatchV1SeveritiesSeveritySlugOK) GetPayload() *models.SeverityEntity
func (*PatchV1SeveritiesSeveritySlugOK) IsClientError ¶
func (o *PatchV1SeveritiesSeveritySlugOK) IsClientError() bool
IsClientError returns true when this patch v1 severities severity slug o k response has a 4xx status code
func (*PatchV1SeveritiesSeveritySlugOK) IsCode ¶
func (o *PatchV1SeveritiesSeveritySlugOK) IsCode(code int) bool
IsCode returns true when this patch v1 severities severity slug o k response a status code equal to that given
func (*PatchV1SeveritiesSeveritySlugOK) IsRedirect ¶
func (o *PatchV1SeveritiesSeveritySlugOK) IsRedirect() bool
IsRedirect returns true when this patch v1 severities severity slug o k response has a 3xx status code
func (*PatchV1SeveritiesSeveritySlugOK) IsServerError ¶
func (o *PatchV1SeveritiesSeveritySlugOK) IsServerError() bool
IsServerError returns true when this patch v1 severities severity slug o k response has a 5xx status code
func (*PatchV1SeveritiesSeveritySlugOK) IsSuccess ¶
func (o *PatchV1SeveritiesSeveritySlugOK) IsSuccess() bool
IsSuccess returns true when this patch v1 severities severity slug o k response has a 2xx status code
func (*PatchV1SeveritiesSeveritySlugOK) String ¶
func (o *PatchV1SeveritiesSeveritySlugOK) String() string
type PatchV1SeveritiesSeveritySlugParams ¶
type PatchV1SeveritiesSeveritySlugParams struct { // PatchV1SeveritiesSeveritySlug. PatchV1SeveritiesSeveritySlug *models.PatchV1SeveritiesSeveritySlug // SeveritySlug. SeveritySlug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchV1SeveritiesSeveritySlugParams contains all the parameters to send to the API endpoint
for the patch v1 severities severity slug operation. Typically these are written to a http.Request.
func NewPatchV1SeveritiesSeveritySlugParams ¶
func NewPatchV1SeveritiesSeveritySlugParams() *PatchV1SeveritiesSeveritySlugParams
NewPatchV1SeveritiesSeveritySlugParams creates a new PatchV1SeveritiesSeveritySlugParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPatchV1SeveritiesSeveritySlugParamsWithContext ¶
func NewPatchV1SeveritiesSeveritySlugParamsWithContext(ctx context.Context) *PatchV1SeveritiesSeveritySlugParams
NewPatchV1SeveritiesSeveritySlugParamsWithContext creates a new PatchV1SeveritiesSeveritySlugParams object with the ability to set a context for a request.
func NewPatchV1SeveritiesSeveritySlugParamsWithHTTPClient ¶
func NewPatchV1SeveritiesSeveritySlugParamsWithHTTPClient(client *http.Client) *PatchV1SeveritiesSeveritySlugParams
NewPatchV1SeveritiesSeveritySlugParamsWithHTTPClient creates a new PatchV1SeveritiesSeveritySlugParams object with the ability to set a custom HTTPClient for a request.
func NewPatchV1SeveritiesSeveritySlugParamsWithTimeout ¶
func NewPatchV1SeveritiesSeveritySlugParamsWithTimeout(timeout time.Duration) *PatchV1SeveritiesSeveritySlugParams
NewPatchV1SeveritiesSeveritySlugParamsWithTimeout creates a new PatchV1SeveritiesSeveritySlugParams object with the ability to set a timeout on a request.
func (*PatchV1SeveritiesSeveritySlugParams) SetContext ¶
func (o *PatchV1SeveritiesSeveritySlugParams) SetContext(ctx context.Context)
SetContext adds the context to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) SetDefaults ¶
func (o *PatchV1SeveritiesSeveritySlugParams) SetDefaults()
SetDefaults hydrates default values in the patch v1 severities severity slug params (not the query body).
All values with no default are reset to their zero value.
func (*PatchV1SeveritiesSeveritySlugParams) SetHTTPClient ¶
func (o *PatchV1SeveritiesSeveritySlugParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) SetPatchV1SeveritiesSeveritySlug ¶
func (o *PatchV1SeveritiesSeveritySlugParams) SetPatchV1SeveritiesSeveritySlug(patchV1SeveritiesSeveritySlug *models.PatchV1SeveritiesSeveritySlug)
SetPatchV1SeveritiesSeveritySlug adds the patchV1SeveritiesSeveritySlug to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) SetSeveritySlug ¶
func (o *PatchV1SeveritiesSeveritySlugParams) SetSeveritySlug(severitySlug string)
SetSeveritySlug adds the severitySlug to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) SetTimeout ¶
func (o *PatchV1SeveritiesSeveritySlugParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) WithContext ¶
func (o *PatchV1SeveritiesSeveritySlugParams) WithContext(ctx context.Context) *PatchV1SeveritiesSeveritySlugParams
WithContext adds the context to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) WithDefaults ¶
func (o *PatchV1SeveritiesSeveritySlugParams) WithDefaults() *PatchV1SeveritiesSeveritySlugParams
WithDefaults hydrates default values in the patch v1 severities severity slug params (not the query body).
All values with no default are reset to their zero value.
func (*PatchV1SeveritiesSeveritySlugParams) WithHTTPClient ¶
func (o *PatchV1SeveritiesSeveritySlugParams) WithHTTPClient(client *http.Client) *PatchV1SeveritiesSeveritySlugParams
WithHTTPClient adds the HTTPClient to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) WithPatchV1SeveritiesSeveritySlug ¶
func (o *PatchV1SeveritiesSeveritySlugParams) WithPatchV1SeveritiesSeveritySlug(patchV1SeveritiesSeveritySlug *models.PatchV1SeveritiesSeveritySlug) *PatchV1SeveritiesSeveritySlugParams
WithPatchV1SeveritiesSeveritySlug adds the patchV1SeveritiesSeveritySlug to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) WithSeveritySlug ¶
func (o *PatchV1SeveritiesSeveritySlugParams) WithSeveritySlug(severitySlug string) *PatchV1SeveritiesSeveritySlugParams
WithSeveritySlug adds the severitySlug to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) WithTimeout ¶
func (o *PatchV1SeveritiesSeveritySlugParams) WithTimeout(timeout time.Duration) *PatchV1SeveritiesSeveritySlugParams
WithTimeout adds the timeout to the patch v1 severities severity slug params
func (*PatchV1SeveritiesSeveritySlugParams) WriteToRequest ¶
func (o *PatchV1SeveritiesSeveritySlugParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchV1SeveritiesSeveritySlugReader ¶
type PatchV1SeveritiesSeveritySlugReader struct {
// contains filtered or unexported fields
}
PatchV1SeveritiesSeveritySlugReader is a Reader for the PatchV1SeveritiesSeveritySlug structure.
func (*PatchV1SeveritiesSeveritySlugReader) ReadResponse ¶
func (o *PatchV1SeveritiesSeveritySlugReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostV1SeveritiesCreated ¶
type PostV1SeveritiesCreated struct {
Payload *models.SeverityEntity
}
PostV1SeveritiesCreated describes a response with status code 201, with default header values.
Create a new severity
func NewPostV1SeveritiesCreated ¶
func NewPostV1SeveritiesCreated() *PostV1SeveritiesCreated
NewPostV1SeveritiesCreated creates a PostV1SeveritiesCreated with default headers values
func (*PostV1SeveritiesCreated) Error ¶
func (o *PostV1SeveritiesCreated) Error() string
func (*PostV1SeveritiesCreated) GetPayload ¶
func (o *PostV1SeveritiesCreated) GetPayload() *models.SeverityEntity
func (*PostV1SeveritiesCreated) IsClientError ¶
func (o *PostV1SeveritiesCreated) IsClientError() bool
IsClientError returns true when this post v1 severities created response has a 4xx status code
func (*PostV1SeveritiesCreated) IsCode ¶
func (o *PostV1SeveritiesCreated) IsCode(code int) bool
IsCode returns true when this post v1 severities created response a status code equal to that given
func (*PostV1SeveritiesCreated) IsRedirect ¶
func (o *PostV1SeveritiesCreated) IsRedirect() bool
IsRedirect returns true when this post v1 severities created response has a 3xx status code
func (*PostV1SeveritiesCreated) IsServerError ¶
func (o *PostV1SeveritiesCreated) IsServerError() bool
IsServerError returns true when this post v1 severities created response has a 5xx status code
func (*PostV1SeveritiesCreated) IsSuccess ¶
func (o *PostV1SeveritiesCreated) IsSuccess() bool
IsSuccess returns true when this post v1 severities created response has a 2xx status code
func (*PostV1SeveritiesCreated) String ¶
func (o *PostV1SeveritiesCreated) String() string
type PostV1SeveritiesParams ¶
type PostV1SeveritiesParams struct { // PostV1Severities. PostV1Severities *models.PostV1Severities Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostV1SeveritiesParams contains all the parameters to send to the API endpoint
for the post v1 severities operation. Typically these are written to a http.Request.
func NewPostV1SeveritiesParams ¶
func NewPostV1SeveritiesParams() *PostV1SeveritiesParams
NewPostV1SeveritiesParams creates a new PostV1SeveritiesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostV1SeveritiesParamsWithContext ¶
func NewPostV1SeveritiesParamsWithContext(ctx context.Context) *PostV1SeveritiesParams
NewPostV1SeveritiesParamsWithContext creates a new PostV1SeveritiesParams object with the ability to set a context for a request.
func NewPostV1SeveritiesParamsWithHTTPClient ¶
func NewPostV1SeveritiesParamsWithHTTPClient(client *http.Client) *PostV1SeveritiesParams
NewPostV1SeveritiesParamsWithHTTPClient creates a new PostV1SeveritiesParams object with the ability to set a custom HTTPClient for a request.
func NewPostV1SeveritiesParamsWithTimeout ¶
func NewPostV1SeveritiesParamsWithTimeout(timeout time.Duration) *PostV1SeveritiesParams
NewPostV1SeveritiesParamsWithTimeout creates a new PostV1SeveritiesParams object with the ability to set a timeout on a request.
func (*PostV1SeveritiesParams) SetContext ¶
func (o *PostV1SeveritiesParams) SetContext(ctx context.Context)
SetContext adds the context to the post v1 severities params
func (*PostV1SeveritiesParams) SetDefaults ¶
func (o *PostV1SeveritiesParams) SetDefaults()
SetDefaults hydrates default values in the post v1 severities params (not the query body).
All values with no default are reset to their zero value.
func (*PostV1SeveritiesParams) SetHTTPClient ¶
func (o *PostV1SeveritiesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post v1 severities params
func (*PostV1SeveritiesParams) SetPostV1Severities ¶
func (o *PostV1SeveritiesParams) SetPostV1Severities(postV1Severities *models.PostV1Severities)
SetPostV1Severities adds the postV1Severities to the post v1 severities params
func (*PostV1SeveritiesParams) SetTimeout ¶
func (o *PostV1SeveritiesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post v1 severities params
func (*PostV1SeveritiesParams) WithContext ¶
func (o *PostV1SeveritiesParams) WithContext(ctx context.Context) *PostV1SeveritiesParams
WithContext adds the context to the post v1 severities params
func (*PostV1SeveritiesParams) WithDefaults ¶
func (o *PostV1SeveritiesParams) WithDefaults() *PostV1SeveritiesParams
WithDefaults hydrates default values in the post v1 severities params (not the query body).
All values with no default are reset to their zero value.
func (*PostV1SeveritiesParams) WithHTTPClient ¶
func (o *PostV1SeveritiesParams) WithHTTPClient(client *http.Client) *PostV1SeveritiesParams
WithHTTPClient adds the HTTPClient to the post v1 severities params
func (*PostV1SeveritiesParams) WithPostV1Severities ¶
func (o *PostV1SeveritiesParams) WithPostV1Severities(postV1Severities *models.PostV1Severities) *PostV1SeveritiesParams
WithPostV1Severities adds the postV1Severities to the post v1 severities params
func (*PostV1SeveritiesParams) WithTimeout ¶
func (o *PostV1SeveritiesParams) WithTimeout(timeout time.Duration) *PostV1SeveritiesParams
WithTimeout adds the timeout to the post v1 severities params
func (*PostV1SeveritiesParams) WriteToRequest ¶
func (o *PostV1SeveritiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostV1SeveritiesReader ¶
type PostV1SeveritiesReader struct {
// contains filtered or unexported fields
}
PostV1SeveritiesReader is a Reader for the PostV1Severities structure.
func (*PostV1SeveritiesReader) ReadResponse ¶
func (o *PostV1SeveritiesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- delete_v1_severities_severity_slug_parameters.go
- delete_v1_severities_severity_slug_responses.go
- get_v1_severities_parameters.go
- get_v1_severities_responses.go
- get_v1_severities_severity_slug_parameters.go
- get_v1_severities_severity_slug_responses.go
- patch_v1_severities_severity_slug_parameters.go
- patch_v1_severities_severity_slug_responses.go
- post_v1_severities_parameters.go
- post_v1_severities_responses.go
- severities_client.go